/* ==========================================================================
   OppNode MVP UI Prototype - Clean B2B SaaS Design System
   Step 06 Final Refactored Stylesheet:
   - Eliminated orphaned cockpit / radar / KPI / AI monitoring legacy styles
   - Unified Light-first B2B SaaS palette (#F8FAFC canvas, #FFFFFF cards)
   - High readability Pretendard typography & OppNode Teal CTAs
   - Zero horizontal overflow, responsive down to 375px mobile screens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Slate Canvas & Surfaces */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-sunken: #f1f5f9;
  --bg-surface-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.98);

  /* Subtle Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: rgba(13, 148, 136, 0.3);
  --border-cyan: rgba(14, 165, 233, 0.3);

  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Typography Palette (High contrast Dark Charcoal) */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  /* OppNode Teal (CTAs & Key Status) */
  --accent-teal: #0d9488;
  --accent-teal-hover: #0f766e;
  --accent-teal-bg: #f0fdfa;
  --accent-teal-text: #0f766e;

  /* Sky Blue & Cyan */
  --accent-cyan: #0284c7;
  --accent-cyan-bg: #f0f9ff;
  --accent-cyan-text: #0369a1;
  --accent-blue: #2563eb;
  --accent-blue-bg: #eff6ff;

  /* Emerald & Green */
  --accent-emerald: #059669;
  --accent-emerald-bg: #ecfdf5;
  --accent-emerald-text: #047857;

  /* Semantic Alerts */
  --status-danger: #e11d48;
  --status-danger-bg: #fff1f2;
  --status-warning: #d97706;
  --status-warning-bg: #fffbeb;
  --status-done: #059669;
  --status-done-bg: #ecfdf5;

  /* Elevation: Minimal & Clean */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --nav-height: 56px;
  --content-max-width: 1180px;
}

[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-sunken: #f1f5f9;
  --bg-surface-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.98);
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
}

/* --------------------------------------------------------------------------
   2. BASE RESET & GLOBAL TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Material Symbols Icon Sizing */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* Utility Icon Sizing & Color Classes */
.proto-icon-14 { font-size: 14px !important; }
.proto-icon-15 { font-size: 15px !important; }
.proto-icon-16 { font-size: 16px !important; }
.proto-icon-18 { font-size: 18px !important; }
.proto-icon-38 { font-size: 38px !important; }
.proto-icon-teal { color: var(--accent-teal) !important; }

/* --------------------------------------------------------------------------
   3. MINIMAL SAAS HEADER
   -------------------------------------------------------------------------- */
.proto-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.proto-header-inner {
  max-width: var(--content-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.proto-brand-group {
  display: flex;
  align-items: center;
}

.proto-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.proto-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proto-header-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.proto-header-edit-btn:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.proto-header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.proto-header-link:hover {
  color: var(--accent-teal);
}

/* --------------------------------------------------------------------------
   4. VIEW CONTAINERS & SCREEN SWITCHING
   -------------------------------------------------------------------------- */
.proto-main {
  flex: 1;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.proto-view {
  display: none;
}

.proto-view.active {
  display: block;
  animation: protoFadeIn 0.2s ease;
}

@keyframes protoFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   5. REUSABLE ATOMS & FORM CONTROLS
   -------------------------------------------------------------------------- */
.proto-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.proto-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.proto-tag-teal { background: #f0fdfa; color: #0f766e; border: 1px solid #ccfbf1; }
.proto-tag-cyan { background: #f0f9ff; color: #0369a1; border: 1px solid #e0f2fe; }
.proto-tag-subtle { background: #f1f5f9; color: #475569; border: 1px solid var(--border-subtle); }
.proto-tag-warning { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }

.proto-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.proto-btn-primary {
  background: var(--accent-teal);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.proto-btn-primary:hover {
  background: var(--accent-teal-hover);
  color: #ffffff;
}

.proto-btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.proto-btn-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
  background: #f8fafc;
}

.proto-btn-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  background: var(--accent-teal);
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
  transition: all 0.15s ease;
}

.proto-btn-cta:hover {
  background: var(--accent-teal-hover);
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.35);
}

.proto-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease;
}

.proto-btn-link:hover {
  color: var(--text-primary);
}

.proto-btn-link-teal {
  color: var(--accent-teal) !important;
  font-weight: 600 !important;
}

.proto-btn-link-teal:hover {
  text-decoration: underline;
}

/* Form Inputs, Selects, and Textarea */
.proto-input,
.proto-select,
.proto-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.proto-input::placeholder,
.proto-textarea::placeholder {
  color: var(--text-muted);
}

.proto-input:focus,
.proto-select:focus,
.proto-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  background: #ffffff;
}

.proto-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.proto-select option {
  background: #ffffff;
  color: var(--text-primary);
}

.proto-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.proto-sep {
  color: var(--border-medium);
}

/* --------------------------------------------------------------------------
   6. SCREEN 01: ONBOARDING / COMPANY PROFILE (QUICK MATCH)
   -------------------------------------------------------------------------- */
.proto-onboarding-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 60px 0;
}

.proto-onboarding-header {
  text-align: center;
  margin-bottom: 28px;
}

.proto-onboarding-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.proto-onboarding-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

.proto-onboarding-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.proto-form-group {
  margin-bottom: 20px;
}

.proto-form-group:last-child {
  margin-bottom: 0;
}

.proto-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.proto-badge-required {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.proto-badge-optional {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.proto-form-help-text {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.45;
}

.proto-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.proto-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.proto-cert-group {
  margin-bottom: 28px;
}

.proto-cert-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.proto-cert-checkbox-label:hover {
  background: #f1f5f9;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.proto-cert-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-teal);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.proto-cert-checkbox-label:has(input:checked) {
  background: #f0fdfa;
  border-color: var(--accent-teal);
  color: #0f766e;
  font-weight: 600;
}

.proto-onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.proto-onboarding-subactions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   7. SOURCE COVERAGE CARD & MODAL
   -------------------------------------------------------------------------- */
.proto-source-coverage-card {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proto-source-coverage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proto-source-coverage-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.proto-source-title-icon {
  font-size: 18px;
  color: var(--accent-teal);
}

.proto-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-sunken);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 8px;
}

.proto-source-item-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.proto-source-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.proto-source-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.proto-source-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
}

.proto-source-status-badge.pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.proto-source-status-badge.connected {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.proto-source-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
}

.proto-source-status-dot.pending {
  background: #94a3b8;
}

.proto-source-status-dot.connected {
  background: #10b981;
}

.proto-source-upcoming {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.proto-source-upcoming-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.proto-source-upcoming-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.proto-source-tag {
  display: inline-block;
  padding: 2px 7px;
  background: var(--bg-surface-sunken);
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Modal styles for [데이터 출처 보기] */
.proto-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.proto-modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.proto-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.proto-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-modal-title-icon {
  font-size: 20px;
  color: var(--accent-teal);
}

.proto-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.proto-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
}

.proto-modal-close:hover {
  background: var(--bg-surface-sunken);
  color: var(--text-primary);
}

.proto-modal-body {
  padding: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.proto-source-modal-section h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.proto-source-modal-section p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.proto-source-modal-status {
  margin: 0 0 12px 0;
}

.proto-source-modal-list {
  margin: 6px 0 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proto-source-modal-notice {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--bg-surface-sunken);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-source-modal-notice-icon {
  font-size: 16px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.proto-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-canvas);
}

.proto-modal-confirm-btn {
  padding: 8px 18px;
}

/* --------------------------------------------------------------------------
   8. SCREEN 02: SIMPLIFIED OPPORTUNITIES RESULTS VIEW
   -------------------------------------------------------------------------- */
.proto-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.proto-page-title-group h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  word-break: keep-all;
}

.proto-page-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.proto-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-opps-top-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.proto-opps-summary-counts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proto-opps-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.proto-opps-count-badge.top {
  color: var(--accent-teal);
  font-weight: 700;
}

.proto-opps-count-badge strong {
  font-weight: 800;
  font-size: 16px;
}

.proto-opps-test-indicator {
  font-size: 11.5px;
  color: var(--text-tertiary);
  background: var(--bg-surface-sunken);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.proto-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.proto-pill-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.proto-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.proto-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.proto-count-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.proto-pill-btn.active .proto-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Opportunity Cards */
.proto-opp-card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.proto-opp-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.proto-opp-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.proto-opp-card.high {
  border-left: 4px solid var(--accent-teal);
}

.proto-opp-card.needs-check {
  border-left: 4px solid var(--status-warning);
}

.proto-opp-card.excluded {
  border-left: 4px solid #cbd5e1;
  opacity: 0.75;
}

.proto-opp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.proto-opp-card-tags-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.proto-relevance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.proto-relevance-badge.high {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.proto-relevance-badge.needs-check {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.proto-opp-card-tags-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-opp-dday {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.proto-opp-dday.dday-urgent {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.proto-opp-dday.dday-normal {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.proto-opp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proto-opp-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.015em;
  cursor: pointer;
}

.proto-opp-card-title:hover {
  color: var(--accent-teal);
}

.proto-opp-agency {
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.proto-opp-budget-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.proto-opp-budget-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.proto-opp-budget-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.proto-opp-target-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.proto-opp-reasons-box {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 4px;
  padding: 10px 14px;
}

.proto-opp-reasons-title {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.proto-opp-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.45;
}

.proto-opp-checkpoint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.proto-checkpoint-tag {
  color: #b45309;
  font-weight: 700;
  flex-shrink: 0;
}

.proto-checkpoint-text {
  color: #92400e;
}

.proto-opp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.proto-opp-source-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.proto-opp-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State Card */
.proto-empty-state-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  max-width: 640px;
  margin: 32px auto;
  box-shadow: var(--shadow-sm);
}

.proto-empty-state-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent-teal);
}

.proto-empty-state-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.proto-empty-state-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px;
}

.proto-empty-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proto-empty-cta-btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   9. SCREEN 03: OPPORTUNITY DETAIL VIEW (1-MINUTE DECISION)
   -------------------------------------------------------------------------- */
.proto-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.proto-detail-back-btn {
  font-size: 13px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proto-breadcrumb.in-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.proto-breadcrumb-link {
  color: var(--text-tertiary);
  text-decoration: none;
}

.proto-breadcrumb-link:hover {
  color: var(--text-primary);
}

.proto-breadcrumb-sep {
  font-size: 14px;
  color: var(--border-medium);
}

.proto-breadcrumb-agency {
  color: var(--text-secondary);
}

.proto-breadcrumb-title {
  color: var(--text-primary);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-detail-card-container {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proto-detail-header-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.proto-detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.proto-detail-header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proto-detail-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 8px 0 16px 0;
  word-break: keep-all;
}

.proto-detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.proto-detail-kpi-cell {
  display: flex;
  flex-direction: column;
}

.proto-detail-kpi-cell .kpi-cell-label {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 4px;
}

.proto-detail-kpi-cell .kpi-cell-value {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.proto-detail-kpi-cell .kpi-cell-value.dday {
  color: #dc2626;
}

.proto-opps-count-badge.excluded-info {
  font-size: 12.5px;
  color: var(--text-tertiary);
  padding-left: 10px;
  border-left: 1px solid var(--border-subtle);
}

.proto-dev-excluded-wrapper {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

.proto-dev-excluded-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

.proto-dev-excluded-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* STEP 8.6 USER DECISION BRIEFING */
.proto-decision-briefing {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proto-decision-verdict-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.proto-decision-verdict-label {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: #0f172a;
  color: #ffffff;
  flex-shrink: 0;
}

.proto-decision-verdict-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: keep-all;
}

.proto-decision-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.proto-decision-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  align-items: baseline;
}

.proto-decision-key {
  font-weight: 700;
  color: var(--text-secondary);
}

.proto-decision-val {
  color: var(--text-primary);
  word-break: keep-all;
}

.proto-decision-val.highlight-check {
  color: #b45309;
  font-weight: 600;
}

.proto-decision-action-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--accent-teal);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proto-decision-action-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
}

.proto-decision-action-text {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #134e4a;
  line-height: 1.5;
  word-break: keep-all;
}

.proto-detail-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.proto-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.proto-detail-section-title .proto-section-icon {
  font-size: 20px;
  color: var(--accent-teal);
}

.proto-detail-section-title h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* SECTION 1: 왜 추천했나요? */
.proto-detail-summary-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 14px 0;
  word-break: keep-all;
}

.proto-detail-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proto-detail-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.proto-detail-bullet-icon {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

/* SECTION 2: 지원 대상 및 자격 (SOURCE FACT + OPPNODE JUDGMENT) */
.proto-source-fact-banner {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.proto-source-fact-banner.support {
  border-left-color: var(--accent-teal);
}

.proto-source-fact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.proto-source-fact-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #1e293b;
  color: #ffffff;
}

.proto-source-fact-origin {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.proto-source-fact-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}

.proto-detail-qual-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proto-detail-qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.proto-qual-block {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.proto-qual-block.fulfilled {
  border-top: 3px solid #16a34a;
}

.proto-qual-block.failed {
  border-top: 3px solid #dc2626;
  background: #fffbfa;
}

.proto-qual-block.needs-check {
  border-top: 3px solid #d97706;
}

.proto-qual-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.proto-qual-subtitle-icon.fulfilled {
  color: #16a34a;
  font-size: 18px;
}

.proto-qual-subtitle-icon.failed {
  color: #dc2626;
  font-size: 18px;
}

.proto-qual-subtitle-icon.warning {
  color: #d97706;
  font-size: 18px;
}

.proto-qual-count-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.proto-qual-count-pill.fulfilled {
  background: #dcfce7;
  color: #15803d;
}

.proto-qual-count-pill.failed {
  background: #fee2e2;
  color: #b91c1c;
}

.proto-qual-count-pill.needs-check {
  background: #fef3c7;
  color: #b45309;
}

.proto-qual-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proto-qual-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.proto-qual-item.fulfilled {
  color: var(--text-primary);
}

.proto-qual-item.failed {
  color: #991b1b;
}

.proto-qual-item.needs-check {
  color: var(--text-secondary);
}

.proto-qual-evidence-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.proto-qual-evidence-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.proto-qual-evidence-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.proto-qual-evidence-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}

.proto-qual-evidence-badge.pass {
  background: #dcfce7;
  color: #15803d;
}

.proto-qual-evidence-badge.fail {
  background: #fee2e2;
  color: #b91c1c;
}

.proto-qual-evidence-badge.check {
  background: #fef3c7;
  color: #b45309;
}

.proto-qual-evidence-grid {
  display: grid;
  grid-template-columns: 78px 1fr;
  row-gap: 3px;
  column-gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.proto-qual-ev-key {
  color: var(--text-tertiary);
  font-weight: 600;
}

.proto-qual-ev-val {
  color: var(--text-primary);
  word-break: keep-all;
}

.proto-qual-ev-val.company {
  font-weight: 600;
  color: #0f172a;
}

.proto-qual-ev-source {
  font-size: 11px;
  color: var(--text-tertiary);
}

.proto-symbol-check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

.proto-symbol-fail {
  color: #dc2626;
  font-weight: 700;
  flex-shrink: 0;
}

.proto-symbol-triangle {
  color: #d97706;
  font-weight: 700;
  flex-shrink: 0;
}

/* SECTION 3: 지원 내용 테이블 */
.proto-detail-info-table {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-table-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.info-table-row:nth-child(even) {
  background: #f8fafc;
}

.info-table-row:last-child {
  border-bottom: none;
}

.info-table-key {
  color: var(--text-tertiary);
  font-weight: 600;
  width: 128px;
  flex-shrink: 0;
}

.info-table-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  flex: 1;
  line-height: 1.45;
  word-break: keep-all;
}

.info-table-val.unverified {
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 12px;
}

.proto-detail-note-text {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin: 10px 0 0 0;
  line-height: 1.4;
}

/* SECTION 4: 필요서류 / 준비사항 */
.proto-prep-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.proto-prep-sub-block {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.proto-prep-sub-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.proto-prep-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* SECTION 5: 출처 */
.proto-detail-source-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.source-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border-subtle);
}

.source-info-row.no-border {
  border-bottom: none;
}

.source-label {
  color: var(--text-tertiary);
  font-weight: 600;
  width: 130px;
  flex-shrink: 0;
}

.source-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.source-link-val {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-align: right;
  word-break: break-all;
}

.source-link-val:hover {
  text-decoration: underline;
}

/* Detail CTAs */
.proto-detail-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.proto-detail-cta-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   10. APP SHELL EXTRAS: TOAST NOTIFICATION & FOOTER
   -------------------------------------------------------------------------- */
.proto-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--accent-teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(13, 148, 136, 0.25);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.proto-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.proto-toast-icon {
  color: #2dd4bf;
  font-size: 20px;
  flex-shrink: 0;
}

.proto-toast-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.proto-toast-text span {
  font-size: 11.5px;
  color: #94a3b8;
}

.proto-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 20px 24px;
  margin-top: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  width: 100%;
  box-sizing: border-box;
}

.proto-footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.proto-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proto-footer-blueprint-link {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
}

.proto-footer-blueprint-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. COMPREHENSIVE RESPONSIVE ENGINE (1024px / 768px / 375px)
   -------------------------------------------------------------------------- */

/* TABLET & LAPTOP (<= 1024px) */
@media (max-width: 1024px) {
  .proto-main {
    padding: 20px 16px;
  }
}

/* TABLET PORTRAIT & MOBILE (<= 768px) */
@media (max-width: 768px) {
  .proto-header-inner {
    padding: 0 16px;
  }
  .proto-onboarding-card {
    padding: 24px 18px;
  }
  .proto-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .proto-cert-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .proto-opp-card {
    padding: 18px 16px;
  }
  .proto-detail-kpi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .proto-detail-qual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .proto-prep-container {
    grid-template-columns: 1fr;
  }
  .proto-detail-bottom-actions {
    flex-direction: column;
    width: 100%;
  }
  .proto-detail-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .proto-detail-title {
    font-size: 18px;
  }
  .source-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .source-val, .source-link-val {
    text-align: left;
  }
  .proto-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* MOBILE COMPACT (<= 480px / 375px) */
@media (max-width: 480px) {
  .proto-main {
    padding: 14px 12px;
  }
  .proto-onboarding-title {
    font-size: 21px;
  }
  .proto-onboarding-desc {
    font-size: 13.5px;
  }
  .proto-onboarding-card {
    padding: 20px 14px;
  }
  .proto-page-title-group h1 {
    font-size: 20px;
  }
  .proto-opp-card-title {
    font-size: 16px;
  }
  .proto-opp-budget-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .proto-opp-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .proto-opp-card-actions {
    width: 100%;
  }
  .proto-opp-card-actions .proto-btn {
    width: 100%;
    justify-content: center;
  }
  .proto-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
