:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:#fff;--brand: #5b5fc7;--brand-strong: #7c3aed;--muted: #6b7280;--border: #e5e7eb;--soft: #f8f6ff}*{box-sizing:border-box}body{margin:0;background:#fff}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:280px;background:var(--soft);border-right:1px solid #ede9fe;display:flex;flex-direction:column;padding:22px 12px}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;cursor:pointer}.brand-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#5b5fc7);color:#fff;display:grid;place-items:center;font-weight:900;font-style:italic}.brand-mark.large{width:54px;height:54px;margin:0 auto 16px;font-size:20px}.brand-name{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.brand-sub,.nav-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:#9ca3af}.sidebar-divider{height:1px;background:#e9d5ff;margin:0 4px 14px}.nav-label{padding:0 14px 8px}.nav-item,.logout{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:0;border-radius:12px;background:transparent;color:#374151;font-size:14px;font-weight:700;cursor:pointer}.nav-item.active{color:var(--brand-strong);background:#fff;box-shadow:0 1px 3px #7c3aed1a}.logout{margin-top:auto;color:#6b7280}.content-shell{margin-left:280px;min-height:100vh;flex:1}.topbar{height:64px;position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--border);display:flex;justify-content:flex-end;align-items:center;padding:0 24px}.user-block{display:flex;align-items:center;gap:10px}.user-text{display:flex;flex-direction:column;text-align:right}.user-text span{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.avatar{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:#ede9fe;color:#5b21b6;font-weight:900}.page-body{padding:24px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:16px}h1{margin:0;font-size:20px}p{margin:4px 0 0;color:var(--muted);font-size:14px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat-card,.card,.table-wrap{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 2px 8px #00000014}.stat-card{display:flex;justify-content:space-between;padding:18px}.stat-card p,.card span,.mini-grid span{display:block;color:var(--muted);font-size:12px;font-weight:700}.stat-card strong{display:block;margin-top:6px;font-size:24px}.stat-card span{display:block;margin-top:8px;color:var(--muted);font-size:12px}.stat-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#ede9fe;color:var(--brand)}.flow-grid,.report-grid,.summary-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}.report-grid,.summary-row{grid-template-columns:repeat(3,minmax(0,1fr))}.padded{padding:18px}.card-title,.title-row{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:16px}.mini-grid,.detail-grid,.header-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mini-grid strong,.detail-grid strong,.header-metrics strong,.summary-row strong{display:block;margin-top:5px;font-size:16px}.filters{display:flex;align-items:center;gap:12px;margin-bottom:18px}.search-box{flex:1;display:flex;align-items:center;gap:8px;background:#f0effe;border:1px solid #e0dffe;color:#9ca3af;border-radius:12px;padding:10px 14px}.search-box input{flex:1;border:0;background:transparent;outline:none}select,.filter-input{border:1px solid #e0dffe;background:#f0effe;color:var(--brand);border-radius:12px;padding:10px 14px;outline:none}.table-wrap{overflow:hidden}table{width:100%;border-collapse:collapse}th{background:#fafafa;color:var(--muted);font-size:12px;font-weight:800;text-align:left;padding:13px 18px}td{border-top:1px solid #f3f4f6;padding:13px 18px;font-size:14px;vertical-align:top}td small{display:block;margin-top:3px;color:var(--muted)}.accent{color:var(--brand);font-weight:800}.truncate{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;white-space:nowrap}.empty-cell,.loading{text-align:center;color:#9ca3af;padding:42px}.icon-link{display:inline-flex}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;font-weight:800}.client-header{display:flex;justify-content:space-between;gap:24px;margin-bottom:18px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:18px}.tabs button{border:0;background:transparent;padding:12px 16px;color:var(--muted);font-weight:800;cursor:pointer}.tabs button.active{color:var(--brand);border-bottom:2px solid var(--brand)}.report-main{display:block;margin:12px 0 4px;font-size:26px}.dashboard-head{align-items:center}.head-actions{display:flex;align-items:center;gap:10px}.dashboard-search{width:280px;margin:0}.action-btn{height:40px;border:1px solid #e0dffe;border-radius:10px;background:#fff;color:var(--brand);display:inline-flex;align-items:center;gap:7px;padding:0 12px;font-size:13px;font-weight:800;cursor:pointer}.action-btn:hover{background:#f8f6ff}.quick-search-results{display:grid;gap:8px;margin:-8px 0 18px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff}.quick-search-results a,.quick-search-results>span{display:flex;justify-content:space-between;gap:12px;color:#111827;font-size:13px}.quick-search-results span{color:var(--muted)}.section-title{margin:22px 0 12px;font-size:16px}.section-note{margin:-8px 0 20px}.owner-stat-grid{grid-template-columns:repeat(4,minmax(180px,1fr))}.dashboard-grid{display:grid;gap:16px;margin-bottom:20px}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.focus-grid,.finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.metric span{display:block;color:var(--muted);font-size:12px;font-weight:700}.metric strong{display:block;margin-top:5px;font-size:17px}.pipeline-grid{display:grid;grid-template-columns:repeat(8,minmax(100px,1fr));gap:10px;margin-bottom:18px}.pipeline-stage{min-height:96px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.pipeline-stage span{color:var(--muted);font-size:12px;font-weight:800}.pipeline-stage strong{font-size:24px}.pipeline-stage small{color:var(--muted)}.pipeline-stage.bottleneck{border-color:#f59e0b;background:#fffbeb}.mini-heading{margin:16px 0 8px;font-size:13px}.mini-list{display:grid;gap:8px}.mini-list-row{border:1px solid #f3f4f6;border-radius:10px;padding:10px 12px;background:#fafafa}.mini-list-row span{display:flex;align-items:center;gap:7px;color:#111827;font-size:13px;font-weight:800}.mini-list-row small,.mini-empty{display:block;margin-top:3px;color:var(--muted);font-size:12px}.mini-empty{margin-top:8px;padding:18px;border:1px dashed var(--border);border-radius:10px;text-align:center}.severity-dot{width:8px;height:8px;border-radius:999px;display:inline-block;flex:0 0 auto}.severity-dot.green{background:#16a34a}.severity-dot.yellow{background:#f59e0b}.severity-dot.red{background:#dc2626}.automation-list{display:grid;gap:10px}.automation-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f3f4f6;font-size:13px;font-weight:800}.automation-row:last-child{border-bottom:0}.workflow-strip{margin-bottom:16px}.client-detail-dashboard{display:grid;gap:16px}.client-overview-grid,.detail-wide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.detail-wide-grid{grid-template-columns:2fr 1fr}.detail-panel{min-height:178px}.detail-panel-body{display:grid;gap:12px}.info-line{display:flex;align-items:center;gap:12px}.info-icon{width:34px;height:34px;border-radius:10px;background:#f0effe;color:var(--brand);display:grid;place-items:center;flex:0 0 auto}.info-line span{display:block;color:var(--muted);font-size:12px;font-weight:700}.info-line strong{display:block;margin-top:3px;font-size:15px}.client-stage-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.client-stage-node{min-height:88px;border:1px solid var(--border);border-radius:12px;background:#f9fafb;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.client-stage-node span{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:#e5e7eb;color:#374151;font-size:12px;font-weight:900}.client-stage-node strong{font-size:15px}.client-stage-node.completed{background:#f0fdf4;border-color:#bbf7d0}.client-stage-node.completed span{background:#16a34a;color:#fff}.client-stage-node.active{background:#fffbeb;border-color:#fde68a}.client-stage-node.active span{background:#f59e0b;color:#fff}.workflow-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.team-chip-list{display:flex;flex-wrap:wrap;gap:8px;min-height:84px;align-content:flex-start}.team-chip-list span{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;background:#f0effe;color:#374151;padding:5px 11px;font-size:13px;font-weight:800}.detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.stage-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stage-pill{min-height:76px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.stage-pill span{color:var(--muted);font-size:12px;font-weight:800}.stage-pill strong{font-size:15px}.stage-pill.completed{border-color:#bbf7d0;background:#f0fdf4}.stage-pill.in-progress{border-color:#fde68a;background:#fffbeb}.stage-pill.pending{background:#f9fafb}.muted-block{margin-top:18px;color:var(--muted);text-align:center}.login-page{min-height:100vh;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:24px;background-color:#faf5ff}.login-pattern{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg width='60' height='103.92305' viewBox='0 0 60 103.92305' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 103.92305L0 86.60254V51.96152L30 34.64102l30 17.3205v34.64102L30 103.92305zM30 0l30 17.32051v34.64102M0 17.32051L30 0 M0 51.96152V17.32051' fill='none' stroke='%23e9d5ff' stroke-width='2' stroke-opacity='0.6'/%3E%3C/svg%3E");background-size:100px 173px;background-position:center;opacity:.9}.login-grid{width:min(1120px,100%);position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:center;gap:92px}.login-hero h1{margin:0 0 16px;font-size:44px;line-height:1.08;letter-spacing:0;color:#0f172a}.login-hero p{max-width:430px;margin:0 0 34px;color:#64748b;font-size:16px;line-height:1.7}.login-art-wrap{width:min(380px,100%);position:relative;padding:28px 20px 0}.login-art-glow{position:absolute;inset:50px 38px 0;border-radius:999px 999px 22px 22px;background:#c4b5fd7a;filter:blur(42px)}.login-art{position:relative;z-index:1;width:118%;margin-left:-9%;display:block;mix-blend-mode:multiply;animation:login-float 3s ease-in-out infinite}@keyframes login-float{0%,to{transform:translateY(0)}50%{transform:translateY(-14px)}}.login-card-wrap{display:flex;justify-content:center}.login-card{width:100%;max-width:400px;background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:28px;box-shadow:0 20px 60px -15px #6d28d926;padding:32px}.login-logo{display:flex;align-items:center;justify-content:center;margin-bottom:38px}.login-logo img{height:40px;width:auto;object-fit:contain}.login-card h2{margin:0;color:#0f172a;font-size:24px;line-height:1.2;font-weight:800}.login-subtitle{margin:8px 0 30px;color:#64748b;font-size:14px}.login-field{margin-top:20px}.login-field label{display:block;margin-bottom:8px;color:#334155;font-size:12px;font-weight:800}.login-field input{width:100%;height:50px;border:2px solid transparent;border-radius:12px;background:#f4f7fb;padding:0 15px;color:#0f172a;outline:none;font-size:14px;transition:border-color .18s ease,background .18s ease}.login-field input:focus{border-color:#7c3aed;background:#fff}.password-wrap{position:relative}.password-wrap input{padding-right:56px;letter-spacing:0}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#94a3b8;width:34px;height:30px;display:grid;place-items:center;cursor:pointer}.password-toggle:hover{color:#7c3aed}.login-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.forgot-link{border:0;background:transparent;color:#7c3aed;font-size:14px;font-weight:800;cursor:pointer;padding:0}.login-submit{width:100%;height:50px;border:0;border-radius:12px;margin-top:26px;background:#7c3aed;color:#fff;font-size:14px;font-weight:900;box-shadow:0 8px 20px -6px #7c3aed80;cursor:pointer}.login-submit:hover{background:#6d28d9}.login-submit:disabled{opacity:.75;cursor:wait}.error{display:flex;align-items:center;gap:8px;margin-bottom:20px;padding:12px 14px;border-radius:12px;border:1px solid #fee2e2;background:#fef2f2;color:#dc2626;font-size:13px;font-weight:700}@media(max-width:1050px){.stat-grid,.flow-grid,.report-grid,.summary-row,.header-metrics,.detail-grid,.stage-strip,.client-overview-grid,.detail-wide-grid,.workflow-meta-grid,.client-stage-timeline,.owner-stat-grid,.pipeline-grid,.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.login-grid{max-width:430px;grid-template-columns:1fr;gap:0}.login-hero{display:none}}@media(max-width:760px){.login-page{padding:16px}.login-card{padding:24px;border-radius:24px}.sidebar{width:230px}.content-shell{margin-left:230px}.stat-grid,.flow-grid,.report-grid,.summary-row,.mini-grid,.header-metrics,.detail-grid,.owner-stat-grid,.pipeline-grid,.two-col,.focus-grid,.finance-grid,.stage-strip,.client-overview-grid,.detail-wide-grid,.workflow-meta-grid,.client-stage-timeline{grid-template-columns:1fr}.filters,.client-header,.head-actions,.quick-search-results a{flex-direction:column}.head-actions,.dashboard-search{width:100%}}
