const THEMES = {
    dark: {
        primary: '#7c3aed',
        secondary: '#4f46e5',
        accent: '#e94560',
        bg: '#0f0f1a',
        surface: '#1a1a2e',
        surfaceAlt: '#16213e',
        text: '#e2e8f0',
        textMuted: '#94a3b8',
        border: '#2d3748',
        heroGradient: 'linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #e94560 100%)',
        tableHeader: '#1a1a2e',
        tableHeaderText: '#e2e8f0',
        badgeBg: '#2d3748',
        subtotalBg: 'rgba(124,58,237,0.15)',
        totalBg: '#7c3aed',
        totalText: '#ffffff',
    },
    light: {
        primary: '#4f46e5',
        secondary: '#6366f1',
        accent: '#f59e0b',
        bg: '#ffffff',
        surface: '#f9fafb',
        surfaceAlt: '#f3f4f6',
        text: '#111827',
        textMuted: '#6b7280',
        border: '#e5e7eb',
        heroGradient: 'linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%)',
        tableHeader: '#111827',
        tableHeaderText: '#ffffff',
        badgeBg: '#e5e7eb',
        subtotalBg: '#eef2ff',
        totalBg: '#4f46e5',
        totalText: '#ffffff',
    },
    corporate: {
        primary: '#1e40af',
        secondary: '#1d4ed8',
        accent: '#d97706',
        bg: '#ffffff',
        surface: '#f8fafc',
        surfaceAlt: '#f1f5f9',
        text: '#0f172a',
        textMuted: '#64748b',
        border: '#e2e8f0',
        heroGradient: 'linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%)',
        tableHeader: '#0f172a',
        tableHeaderText: '#f8fafc',
        badgeBg: '#e2e8f0',
        subtotalBg: '#dbeafe',
        totalBg: '#1e40af',
        totalText: '#ffffff',
    },
    startup: {
        primary: '#059669',
        secondary: '#0891b2',
        accent: '#f43f5e',
        bg: '#ffffff',
        surface: '#f0fdf4',
        surfaceAlt: '#ecfdf5',
        text: '#064e3b',
        textMuted: '#6b7280',
        border: '#d1fae5',
        heroGradient: 'linear-gradient(135deg, #064e3b 0%, #065f46 40%, #059669 70%, #34d399 100%)',
        tableHeader: '#064e3b',
        tableHeaderText: '#ecfdf5',
        badgeBg: '#d1fae5',
        subtotalBg: '#f0fdf4',
        totalBg: '#059669',
        totalText: '#ffffff',
    },
};
/**
 * Returns full inline CSS for the proposal document, parameterized by theme.
 */
const STATIC_CSS = `
    @page { margin: 1.5cm; size: A4; }
    @media print {
      print-color-adjust: exact; -webkit-print-color-adjust: exact;
      .no-print { display: none !important; }
      section, .card, .kpi-card, tr { break-inside: avoid; }
      body { font-size: 12px; }
      .hero { min-height: auto; padding: 32px 40px; }
    }
    @media (max-width: 768px) {
      body { padding: 16px; }
      .kpi-grid { grid-template-columns: repeat(2, 1fr); }
      .spec-table { font-size: 12px; }
      .hero h1 { font-size: 2em; } .hero h2 { font-size: 1.1em; }
      .content { padding: 24px 16px; }
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.6; max-width: 1100px; margin: 0 auto; padding: 0; }
    .hero { color: #ffffff; padding: 60px 60px 48px; position: relative; overflow: hidden; }
    .hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
    .hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.78em; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
    .hero h1 { font-size: 2.8em; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
    .hero h2 { font-size: 1.3em; font-weight: 400; opacity: 0.85; margin-bottom: 24px; }
    .hero-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.88em; opacity: 0.8; margin-top: 16px; }
    .hero-meta span { display: flex; align-items: center; gap: 6px; }
    .confidential-banner { background: rgba(239,68,68,0.25); border: 1px solid rgba(239,68,68,0.5); color: #fca5a5; padding: 8px 20px; font-size: 0.8em; font-weight: 700; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
    .content { padding: 40px 60px; }
    section { margin-bottom: 48px; } section:last-child { margin-bottom: 0; }
    .section-title { font-size: 1.3em; font-weight: 700; padding-left: 14px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
    .section-title .icon { font-size: 1.1em; }
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
    .kpi-card { border-radius: 12px; padding: 20px; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
    .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
    .kpi-value { font-size: 2.2em; font-weight: 800; line-height: 1; margin-bottom: 6px; }
    .kpi-label { font-size: 0.78em; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
    .card { border-radius: 12px; padding: 24px; margin-bottom: 16px; }
    .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
    .table-wrap { overflow-x: auto; border-radius: 10px; }
    .spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .spec-table thead th { padding: 12px 14px; text-align: left; font-weight: 600; font-size: 0.78em; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
    .spec-table tbody tr:last-child { border-bottom: none; }
    .spec-table td { padding: 10px 14px; vertical-align: middle; }
    .spec-table .right { text-align: right; }
    .badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 600; white-space: nowrap; }
    .badge-status-done { background: #d1fae5; color: #065f46; }
    .badge-status-implementing { background: #fef3c7; color: #92400e; }
    .badge-status-approved { background: #dbeafe; color: #1d4ed8; }
    .badge-status-review { background: #e0e7ff; color: #3730a3; }
    .badge-risk-low { background: #d1fae5; color: #065f46; }
    .badge-risk-medium { background: #fef3c7; color: #92400e; }
    .badge-risk-high { background: #fee2e2; color: #991b1b; }
    .badge-risk-critical { background: #fce7f3; color: #9d174d; }
    .badge-diff-1 { background: #d1fae5; color: #065f46; }
    .badge-diff-2 { background: #dbeafe; color: #1d4ed8; }
    .badge-diff-3 { background: #fef3c7; color: #92400e; }
    .badge-diff-4 { background: #fee2e2; color: #991b1b; }
    .badge-diff-5 { background: #fce7f3; color: #9d174d; }
    .phase-card { border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
    .phase-card h3 { font-size: 0.95em; font-weight: 700; margin-bottom: 4px; }
    .gantt-container { overflow-x: auto; }
    .gantt-grid { display: grid; gap: 8px; min-width: 600px; }
    .gantt-row { display: flex; align-items: center; gap: 12px; min-height: 36px; }
    .gantt-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; display: flex; align-items: center; padding-left: 8px; font-size: 0.7em; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; }
    .gantt-header { display: flex; gap: 12px; margin-bottom: 4px; }
    .risk-matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
    .risk-cell { border-radius: 6px; padding: 8px 4px; text-align: center; font-size: 0.72em; font-weight: 600; }
    .progress-track { border-radius: 8px; height: 10px; overflow: hidden; }
    .progress-bar { height: 100%; border-radius: 8px; }
    .progress-bar.high { background: #059669; }
    .progress-bar.medium { background: #d97706; }
    .progress-bar.low { background: #dc2626; }
    .investment-box { color: #fff; border-radius: 16px; padding: 32px 40px; text-align: center; margin: 24px 0; }
    .investment-box .big-number { font-size: 3.5em; font-weight: 900; line-height: 1; }
    .investment-box .label { font-size: 1em; opacity: 0.85; margin-top: 6px; }
    .footer { padding: 24px 60px; font-size: 0.78em; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
    p { margin-bottom: 8px; } p:last-child { margin-bottom: 0; }
    strong { font-weight: 700; }
    ul { padding-left: 20px; } li { margin: 4px 0; }
    .score-before { font-size: 1.4em; font-weight: 600; color: #6b7280; text-decoration: line-through; }
    .score-after { font-size: 2em; font-weight: 800; }
    .score-delta { font-size: 0.85em; font-weight: 700; padding: 2px 8px; border-radius: 12px; display: inline-block; margin-top: 6px; }
    .delta-positive { background: #d1fae5; color: #065f46; }
    .delta-negative { background: #fee2e2; color: #991b1b; }
    .delta-neutral { background: #f3f4f6; color: #6b7280; }
    .score-values { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
    .mermaid-container { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
    .mermaid-container h3 { text-align: center; margin-bottom: 16px; font-size: 1.1em; }
    .mermaid-caption { text-align: center; font-size: 0.85em; color: #6b7280; margin-top: 8px; }
    .arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
    .verdict { border-radius: 16px; padding: 32px; text-align: center; margin: 32px 0; }
    .verdict h2 { font-size: 1.8em; margin-bottom: 8px; }
    .verdict p { font-size: 1.05em; max-width: 700px; margin: 0 auto; }
    .verdict .confidence-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.8em; font-weight: 700; margin-top: 12px; }
    .verdict ol { text-align: left; max-width: 500px; margin: 16px auto 0; }
    @media (max-width: 768px) { .arch-grid { grid-template-columns: 1fr; } }`;
function getThemeCss(v) {
    return `
    body { color: ${v.text}; background: ${v.bg}; }
    .hero { background: ${v.heroGradient}; }
    .section-title { color: ${v.primary}; border-left: 4px solid ${v.primary}; }
    .kpi-card { background: ${v.surface}; border: 1px solid ${v.border}; }
    .kpi-value { color: ${v.primary}; }
    .kpi-value.accent { color: ${v.accent}; }
    .kpi-value.secondary { color: ${v.secondary}; }
    .kpi-label { color: ${v.textMuted}; }
    .card { background: ${v.surface}; border: 1px solid ${v.border}; }
    .table-wrap { border: 1px solid ${v.border}; }
    .spec-table thead tr { background: ${v.tableHeader}; color: ${v.tableHeaderText}; }
    .spec-table tbody tr { border-bottom: 1px solid ${v.border}; transition: background 0.1s; }
    .spec-table tbody tr:hover { background: ${v.surfaceAlt}; }
    .spec-table .subtotal-row { background: ${v.subtotalBg}; font-weight: 600; }
    .spec-table .total-row { background: ${v.totalBg}; color: ${v.totalText}; font-weight: 700; }
    .badge-status-draft { background: ${v.badgeBg}; color: ${v.textMuted}; }
    .phase-card { border-left: 4px solid ${v.primary}; }
    .phase-card p { font-size: 0.85em; color: ${v.textMuted}; }
    .gantt-label { width: 200px; flex-shrink: 0; font-size: 0.82em; font-weight: 500; color: ${v.text}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gantt-track { flex: 1; background: ${v.surfaceAlt}; border-radius: 4px; height: 24px; position: relative; }
    .gantt-header-label { width: 200px; flex-shrink: 0; font-size: 0.75em; color: ${v.textMuted}; font-weight: 600; }
    .gantt-header-weeks { flex: 1; display: flex; }
    .gantt-week { flex: 1; text-align: center; font-size: 0.7em; color: ${v.textMuted}; border-left: 1px dashed ${v.border}; padding-left: 4px; }
    .risk-cell-label { font-size: 0.7em; color: ${v.textMuted}; }
    .progress-track { background: ${v.surfaceAlt}; }
    .progress-bar { background: ${v.primary}; }
    .investment-box { background: ${v.heroGradient}; }
    .footer { border-top: 1px solid ${v.border}; color: ${v.textMuted}; background: ${v.surface}; }
    code { background: ${v.surfaceAlt}; padding: 1px 5px; border-radius: 3px; font-size: 0.88em; }
    .text-muted { color: ${v.textMuted}; }
    .summary-paragraph { font-size: 0.95em; color: ${v.text}; line-height: 1.7; }`;
}
export function getProposalThemeCSS(theme = 'light') {
    const vars = THEMES[theme] ?? THEMES.light;
    return STATIC_CSS + getThemeCss(vars);
}
//# sourceMappingURL=proposal-themes.js.map