@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#07060d;--surface:#0d0a17;--surface2:#120e20;--surface3:#19132b;--line:rgba(190,158,255,.14);--line2:rgba(190,158,255,.25);--text:#f7f4ff;--muted:#a39bb8;--soft:#77708b;--purple:#8b5cf6;--violet:#a78bfa;--pink:#d946ef;--green:#45d6a1;--radius:20px;--shadow:0 24px 80px rgba(0,0,0,.45)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;min-height:100vh;overflow-x:hidden}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}.ambient{position:fixed;pointer-events:none;z-index:0;border-radius:50%;filter:blur(70px);opacity:.22}.ambient-one{width:560px;height:560px;top:-280px;left:24%;background:#6d28d9}.ambient-two{width:480px;height:480px;right:-280px;top:40%;background:#4c1d95}.shell{position:relative;z-index:1;max-width:1480px;margin:auto;display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--line);background:rgba(9,7,15,.82);backdrop-filter:blur(20px);padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 32px}.mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#a855f7,#6d28d9);box-shadow:0 0 25px rgba(139,92,246,.4);display:grid;place-items:center;font-family:'Space Grotesk';font-weight:700;font-size:18px}.brand strong{font-family:'Space Grotesk';font-size:17px;letter-spacing:-.5px}.brand strong span{color:#a78bfa}.brand small{display:block;color:#817990;font-size:9px;letter-spacing:1.5px;margin-top:4px}.side-label{color:#69627c;font-size:10px;font-weight:700;letter-spacing:1.6px;margin:16px 9px 10px}.nav{border:1px solid transparent;background:transparent;text-align:left;padding:12px 13px;border-radius:12px;color:#aaa2bd;font-size:13px;margin:3px 0;transition:.2s}.nav:hover,.nav.active{color:#fff;background:linear-gradient(90deg,rgba(139,92,246,.2),rgba(139,92,246,.04));border-color:rgba(167,139,250,.18)}.team-label{margin-top:30px}.agent{font-size:12px;color:#888199;padding:9px 10px;display:flex;align-items:center;gap:10px}.agent i{width:6px;height:6px;border-radius:50%;background:#5b526e;box-shadow:0 0 0 3px rgba(91,82,110,.12)}.sidebar-status{margin-top:auto;padding:13px 11px;border:1px solid var(--line);background:rgba(20,15,31,.7);border-radius:12px;display:flex;align-items:center;gap:8px;font-size:11px;color:#a9a0bb}.sidebar-status small{margin-left:auto;color:#615a72}.green{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(69,214,161,.6)}.main{min-width:0;padding:0 42px 40px}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);color:#847c96;font-size:12px}.topbar b{color:#4f4860;margin:0 8px}.topbar strong{color:#e8e2f5;font-weight:600}.pill{border:1px solid var(--line);padding:8px 12px;border-radius:30px;color:#aaa1bd;font-size:11px;background:rgba(20,15,31,.5)}.pill i{display:inline-block;width:6px;height:6px;background:#a78bfa;border-radius:50%;margin-right:7px;box-shadow:0 0 8px #a78bfa}.hero{text-align:center;position:relative;padding:72px 20px 50px;max-width:880px;margin:0 auto}.hero:before{content:"";position:absolute;z-index:-1;left:50%;top:20px;transform:translateX(-50%);width:min(700px,95%);height:260px;background:radial-gradient(ellipse at center,rgba(124,58,237,.28),rgba(79,29,149,.1) 40%,transparent 70%);filter:blur(10px)}.eyebrow{display:inline-flex;border:1px solid rgba(167,139,250,.2);background:rgba(139,92,246,.09);padding:8px 13px;border-radius:30px;color:#c3a8ff;font-size:10px;letter-spacing:1.2px}.hero h1{font-family:'Space Grotesk';font-size:clamp(38px,5vw,68px);line-height:1.08;letter-spacing:-3px;margin:22px 0 18px;font-weight:600}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#d7c2ff,#9b6dff,#e2b8ff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{max-width:650px;margin:0 auto;color:#a59bb9;font-size:15px;line-height:1.8}.stats{display:flex;justify-content:center;gap:0;margin:34px auto 0;max-width:480px}.stats>div{padding:0 28px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats b{display:block;font-family:'Space Grotesk';font-size:23px;color:#d9caff}.stats small{display:block;color:#77708b;font-size:10px;margin-top:4px}.panel{border:1px solid var(--line);background:linear-gradient(145deg,rgba(19,14,31,.95),rgba(12,9,19,.94));border-radius:22px;padding:28px;margin:0 auto 22px;max-width:1000px;box-shadow:var(--shadow);position:relative;overflow:hidden}.panel:before{content:"";position:absolute;top:-130px;right:-100px;width:320px;height:260px;background:radial-gradient(circle,rgba(124,58,237,.13),transparent 68%);pointer-events:none}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.panel-head small,.report-head small{font-size:10px;letter-spacing:1.6px;color:#9b7be8;font-weight:700}.panel-head h2,.report-head h2{font-family:'Space Grotesk';font-size:25px;letter-spacing:-.7px;margin:9px 0}.panel-head p{color:var(--muted);font-size:13px;margin:0}.step{font-size:10px;letter-spacing:1px;color:#716985;border:1px solid var(--line);padding:9px 12px;border-radius:9px;white-space:nowrap}.step span{color:#b18aff;margin:0 6px}form label{display:block;font-size:12px;font-weight:600;color:#e7e1f3;margin:16px 0 9px}form label sup{color:#d88cff}form label small{float:right;color:#746c85;font-size:9px;letter-spacing:1px}textarea,input{width:100%;background:#090711;border:1px solid rgba(180,150,245,.17);border-radius:12px;color:#f4efff;padding:14px 15px;outline:none;transition:.2s}textarea{min-height:116px;resize:vertical;line-height:1.65}textarea::placeholder,input::placeholder{color:#5f586f;font-size:12px}textarea:focus,input:focus{border-color:rgba(167,139,250,.55);box-shadow:0 0 0 3px rgba(139,92,246,.09)}.examples{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 4px}.examples small{color:#716985;font-size:11px;margin-right:3px}.examples button{border:1px solid var(--line);background:rgba(139,92,246,.06);color:#b8aacd;padding:7px 10px;border-radius:8px;font-size:10px;transition:.2s}.examples button:hover{border-color:var(--line2);color:#fff;background:rgba(139,92,246,.15)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:12px 0}.primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;border:0;border-radius:12px;padding:15px 18px;margin-top:20px;background:linear-gradient(100deg,#7c3aed,#9333ea,#a855f7);color:white;font-weight:700;font-size:13px;box-shadow:0 8px 26px rgba(124,58,237,.28);transition:transform .2s,filter .2s}.primary:hover{transform:translateY(-2px);filter:brightness(1.12)}.primary:disabled{opacity:.6;cursor:wait;transform:none}.primary span{font-size:17px}.disclaimer{color:#6e6680;text-align:center;font-size:10px;margin-top:13px}.hidden{display:none!important}.spinner{width:26px;height:26px;border:2px solid rgba(167,139,250,.2);border-top-color:#a78bfa;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.progress-list{display:grid;gap:10px}.progress-item,.progress-row{background:#0b0814;border:1px solid var(--line);border-radius:12px;padding:13px 15px;color:#aaa1bb}.progress-list>*{border-radius:12px}.report-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:24px 0}.report-head h2{font-size:28px}.report-head p{color:var(--muted);font-size:12px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.status{color:#d2b6ff;background:rgba(139,92,246,.12);border:1px solid rgba(167,139,250,.2);border-radius:30px;padding:8px 11px;font-size:10px}.actions button,.outline{border:1px solid var(--line2);background:rgba(139,92,246,.12);border-radius:10px;padding:10px 12px;color:#e7dcff;font-size:11px}.actions button:hover,.outline:hover{background:rgba(139,92,246,.22)}.actions .disabled{opacity:.4;cursor:not-allowed}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report{min-width:0;border:1px solid var(--line);background:linear-gradient(145deg,#110d1c,#0b0813);border-radius:16px;padding:20px;overflow-wrap:anywhere}.report.wide{grid-column:1/-1}.report h3{font-family:'Space Grotesk';font-size:15px;margin:0 0 16px;color:#e9e2f6}.report h3 b{color:#a78bfa;font-size:11px;margin-right:9px}.copy{font-size:12px;line-height:1.8;color:#b7adc8}.copy h4{color:#e4d9fa;font-size:13px;margin:16px 0 8px}.copy ul,.copy ol{padding-left:20px}.copy li{margin:5px 0}.copy table{border-collapse:collapse;width:100%;font-size:11px}.copy th,.copy td{border:1px solid var(--line);padding:8px;text-align:left}.copy th{color:#c8b2ff;background:rgba(139,92,246,.08)}.swot,.canvas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.swot>*,.canvas>*{border:1px solid var(--line);background:#0b0814;border-radius:12px;padding:14px;color:#bcb1cf;font-size:12px;line-height:1.7}.swot h4,.canvas h4{margin:0 0 8px;color:#d8c7ff}.history-item{border:1px solid var(--line);background:#0b0814;border-radius:13px;padding:15px;margin:10px 0;display:flex;justify-content:space-between;gap:15px;align-items:center}.history-item h3{font-size:13px;margin:0 0 6px}.history-item p{font-size:11px;color:var(--muted);margin:0}.history-item button{border:1px solid var(--line2);background:rgba(139,92,246,.1);border-radius:8px;padding:8px 10px;color:#d5c3ff;font-size:10px}footer{display:flex;justify-content:space-between;padding:26px 4px;color:#605970;font-size:10px;max-width:1000px;margin:auto}footer b{letter-spacing:1.5px;color:#9184a7}#toast{position:fixed;bottom:24px;right:24px;z-index:50;background:#211832;border:1px solid rgba(167,139,250,.35);color:#f5edff;padding:13px 16px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;max-width:360px;opacity:0;transform:translateY(10px);transition:.25s}#toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1050px){.shell{grid-template-columns:220px 1fr}.main{padding:0 24px 30px}.hero{padding-top:55px}.panel{padding:23px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:15px 16px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;align-items:center}.brand{padding:0}.side-label,.team-label,.agent,.sidebar-status{display:none}.sidebar nav{display:none}.sidebar .nav{display:inline-flex;padding:9px 11px;margin:0;font-size:11px}.main{padding:0 14px 26px}.topbar{height:56px}.hero{padding:48px 8px 32px}.hero h1{font-size:clamp(35px,10vw,48px);letter-spacing:-1.8px}.hero p{font-size:13px}.stats>div{padding:0 15px}.stats b{font-size:20px}.panel{padding:19px;border-radius:17px}.panel-head{display:block}.step{display:inline-block;margin-top:15px}.fields{grid-template-columns:1fr;gap:4px}.report-head{display:block}.actions{margin-top:14px}.report-grid{grid-template-columns:1fr}.report.wide{grid-column:auto}.swot,.canvas{grid-template-columns:1fr}.history-item{align-items:flex-start}.history-item button{white-space:nowrap}footer{gap:10px;flex-direction:column}.pill{font-size:10px}}

#progress-list>div{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);background:#0b0814;padding:13px 15px;border-radius:12px;color:#9d94b0;font-size:12px}
#progress-list>div.active{border-color:rgba(167,139,250,.4);color:#e4d7ff;background:rgba(139,92,246,.08)}
#progress-list>div.done{border-color:rgba(69,214,161,.2);color:#b6e8d5}
#progress-list>div span{color:#a78bfa;font-size:16px}
#approve:disabled{opacity:.65;cursor:default}
.status.approved{color:#80e5bd;border-color:rgba(69,214,161,.25);background:rgba(69,214,161,.08)}


/* ==========================================
   STRATOVA AI - MARKDOWN REPORT FIX
========================================== */

.markdown-content {
    line-height: 1.85;
    font-size: 15px;
    color: var(--text, #e5e7eb);
    overflow-wrap: anywhere;
}

.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5 {
    margin: 24px 0 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.markdown-content h2 {
    font-size: 23px;
}

.markdown-content h3 {
    font-size: 19px;
}

.markdown-content h4 {
    font-size: 16px;
}

.markdown-content p {
    margin: 0 0 16px;
}

.markdown-content strong {
    font-weight: 700;
    color: inherit;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 24px;
    margin: 12px 0 20px;
}

.markdown-content li {
    margin: 7px 0;
    line-height: 1.75;
}

.markdown-content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid #a78bfa;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 10px 10px 0;
}

.markdown-content hr {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 24px 0;
}

.markdown-content code {
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.13);
    font-size: 0.9em;
}

/* Tables */

.markdown-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
}

.markdown-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.65;
}

.markdown-table th {
    padding: 13px 15px;
    text-align: left;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.markdown-table td {
    padding: 13px 15px;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.markdown-table tr:last-child td {
    border-bottom: none;
}

.markdown-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.045);
}

.empty-content {
    opacity: 0.65;
    font-style: italic;
}

/* Cards */

.swot-card,
.canvas-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.swot-card li {
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Mobile */

@media (max-width: 768px) {
    .markdown-content {
        font-size: 14px;
    }

.markdown-content h2 {
        font-size: 20px;
    }

.markdown-content h3 {
        font-size: 17px;
    }

.markdown-table {
        min-width: 520px;
    }
}

