:root{--primary-color: #4f46e5;--primary-hover: #4338ca;--bg-color: #f8fafc;--sidebar-bg: #1e293b;--sidebar-text: #94a3b8;--sidebar-active: #ffffff;--card-bg: #ffffff;--text-main: #0f172a;--text-muted: #64748b;--border-color: #e2e8f0;--danger-color: #ef4444;--success-color: #10b981;--radius: 8px;--shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-color:var(--bg-color);color:var(--text-main);line-height:1.5}.app-container{display:flex;min-height:100vh}.sidebar{width:250px;background-color:var(--sidebar-bg);color:var(--sidebar-text);display:flex;flex-direction:column;flex-shrink:0}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top left,rgba(15,118,110,.12),transparent 28%),radial-gradient(circle at bottom right,rgba(30,64,175,.12),transparent 24%),linear-gradient(180deg,#f8fafc,#eef6ff)}.auth-card{width:min(100%,460px);padding:30px;border-radius:14px;border:1px solid #dbe5f0;background:#fffffff5;box-shadow:0 24px 60px #0f172a1f}.auth-card-badge{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;padding:8px 12px;border-radius:999px;background:#ecfeff;color:#0f766e;font-weight:700;font-size:.82rem}.auth-card h1{margin-bottom:10px;font-size:1.8rem}.auth-card p{margin-bottom:20px;color:var(--text-muted);line-height:1.65}.auth-password-wrap{position:relative}.auth-password-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#64748b}.auth-password-wrap .auth-password-input{width:100%}.auth-password-input{padding-left:42px}.auth-submit-btn{width:100%;justify-content:center}.auth-loading-state{min-height:100vh;display:flex;align-items:center;justify-content:center;color:#475569;font-size:1rem;background:linear-gradient(180deg,#f8fafc,#eef6ff)}.sidebar-brand{height:64px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.1);color:#fff;font-weight:600;font-size:1.1rem}.sidebar-nav{padding:16px 12px;display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 14px;color:var(--sidebar-text);text-decoration:none;border-radius:var(--radius);font-weight:500;transition:all .2s ease}.nav-item:hover{background-color:#ffffff0d;color:#fff}.nav-item.active{background-color:var(--primary-color);color:#fff}.main-wrapper{flex:1;display:flex;flex-direction:column;min-width:0}.header{height:64px;background-color:#fff;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.header-title h1{font-size:1.25rem;font-weight:600}.header-actions{display:flex;align-items:center;gap:16px}.user-profile{display:flex;align-items:center;gap:8px}.avatar{width:36px;height:36px;border-radius:50%;background-color:#e0e7ff;color:var(--primary-color);display:flex;align-items:center;justify-content:center}.user-name{font-size:.9rem;font-weight:500}.content{padding:28px;flex:1}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.page-title{font-size:1.5rem;font-weight:700}.page-subtitle{color:var(--text-muted);font-size:.875rem;margin-top:4px}.card{background:var(--card-bg);border-radius:var(--radius);border:1px solid var(--border-color);box-shadow:var(--shadow);padding:24px}.card-title{font-size:1.1rem;font-weight:600}.form-card{max-width:640px}.form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:.875rem;font-weight:500}.form-control{padding:9px 12px;border-radius:var(--radius);border:1px solid var(--border-color);font-size:.9rem;outline:none;transition:border-color .2s}.form-control:focus{border-color:var(--primary-color)}.textarea{resize:vertical}.form-help{font-size:.775rem;color:var(--text-muted)}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px}.btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;border:none;text-decoration:none;transition:background-color .2s}.btn-primary{background-color:var(--primary-color);color:#fff}.btn-primary:hover{background-color:var(--primary-hover)}.btn-secondary{background-color:#f1f5f9;color:#334155;border:1px solid var(--border-color)}.btn-secondary:hover{background-color:#e2e8f0}.btn-light{background-color:transparent;color:var(--text-muted)}.btn-light:hover{background-color:#f1f5f9}.btn-danger{background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca}.btn-danger:hover{background-color:#fecaca}.btn-sm{padding:4px 10px;font-size:.8rem}.btn-icon{padding:8px;background-color:#f1f5f9;border-radius:var(--radius);color:var(--text-main)}.icon-button{position:relative;background:none;border:none;cursor:pointer;color:var(--text-muted);padding:6px;border-radius:50%}.icon-button:hover{background-color:#f1f5f9}.header-notification-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.66rem;font-weight:700}.table-responsive{overflow-x:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th,.table td{padding:12px 16px;border-bottom:1px solid var(--border-color)}.table th{background-color:#f8fafc;font-size:.75rem;text-transform:uppercase;color:var(--text-muted);letter-spacing:.05em}.table tr:last-child td{border-bottom:none}.flex-align{display:flex;align-items:center}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mb-4{margin-bottom:16px}.text-right{text-align:right}.text-muted{color:var(--text-muted)}.text-danger{color:var(--danger-color)}.font-medium{font-weight:500}.error-banner{background-color:#fef2f2;color:#991b1b;padding:12px 16px;border-radius:var(--radius);border:1px solid #fecaca;font-size:.875rem}.success-banner{background-color:#ecfdf5;color:#065f46;padding:12px 16px;border-radius:var(--radius);border:1px solid #a7f3d0;font-size:.875rem}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;color:var(--text-muted)}.empty-icon{margin-bottom:12px;opacity:.5}.search-box{position:relative;max-width:320px;margin-bottom:16px}.search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted)}.search-input{padding-left:36px;width:100%}.detail-list{display:flex;flex-direction:column;gap:16px;margin-top:16px}.detail-item{display:flex;gap:12px}.detail-label{width:140px;color:var(--text-muted);font-size:.875rem;display:flex;align-items:center;gap:6px}.detail-value{font-weight:500;font-size:.95rem}.text-block{background-color:#f8fafc;padding:12px 16px;border-radius:var(--radius);border:1px solid var(--border-color);width:100%;white-space:pre-wrap}.company-hero{align-items:flex-start}.company-hero-readable{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(59,130,246,.1),transparent 34%),linear-gradient(180deg,#fff,#f8fbff)}.company-hero-main{gap:12px}.company-hero-stack{align-items:flex-start}.company-hero-copy{max-width:760px}.company-badge-row{display:flex;gap:10px;margin-bottom:8px}.company-area{display:inline-block;margin-top:10px;color:#1d4ed8;font-size:.85rem;font-weight:600}.company-hero-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.hero-meta-item{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border-radius:999px;background:#ffffffd1;border:1px solid #dbe5f0;color:#334155;font-size:.82rem;font-weight:600}.company-hero-actions{align-items:flex-start;max-width:320px}.company-badge,.status-pill,.role-pill,.capability-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:.75rem;font-weight:600}.company-badge{background:#dbeafe;color:#1d4ed8;padding:5px 10px}.status-draft{background:#e2e8f0;color:#334155}.status-paused{background:#fef3c7;color:#92400e}.task-todo{background:#e0f2fe;color:#075985}.task-in_progress{background:#fef3c7;color:#92400e}.task-done{background:#dcfce7;color:#166534}.task-blocked{background:#fee2e2;color:#991b1b}.status-pill{padding:5px 10px;text-transform:capitalize}.status-active,.state-active{background:#dcfce7;color:#166534}.state-busy{background:#fef3c7;color:#92400e}.state-waiting{background:#e0f2fe;color:#075985}.state-blocked{background:#fee2e2;color:#991b1b}.role-pill{background:#eef2ff;color:#4338ca;padding:6px 12px}.role-pill.subtle{background:#f1f5f9;color:#475569}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid var(--border-color);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);color:#1e3a8a}.metric-value{font-size:1.6rem;font-weight:700;color:var(--text-main)}.metric-label{font-size:.85rem;color:var(--text-muted)}.company-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.company-quick-card{text-align:left;padding:18px;border-radius:8px;border:1px solid #dbe5f0;background:#fff;box-shadow:var(--shadow);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.company-quick-card:hover{transform:translateY(-1px);border-color:#bfdbfe;box-shadow:0 10px 24px #0f172a14}.company-quick-card p{margin-top:12px;color:#475569;line-height:1.65;font-size:.88rem}.company-quick-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.company-quick-head{display:inline-flex;align-items:center;gap:8px;color:#1e40af;font-weight:700;font-size:.85rem}.emphasis-card{background:linear-gradient(180deg,#eff6ff,#fff)}.company-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:20px}.page-actions,.table-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.company-main-column,.company-side-column{display:flex;flex-direction:column;gap:20px}.org-chart-list,.timeline-list,.activity-feed{display:flex;flex-direction:column;gap:14px;margin-top:16px}.org-card,.timeline-card{border:1px solid var(--border-color);border-radius:var(--radius);padding:16px;background:#fcfdff}.org-card-head,.timeline-head,.timeline-footer,.org-meta-row,.activity-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.org-name-row{display:flex;align-items:center;gap:10px;margin-bottom:4px}.org-title,.timeline-target,.activity-text,.org-notes{color:var(--text-muted)}.org-notes,.timeline-content,.leader-text{margin:12px 0;line-height:1.6}.capabilities-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.capability-chip{background:#f8fafc;border:1px solid #dbeafe;color:#1e40af;padding:4px 10px}.org-tree-shell{display:flex;flex-direction:column;gap:16px;margin-top:16px}.org-tree-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.org-tree-list{display:flex;flex-direction:column;gap:14px}.org-tree-node{position:relative}.org-tree-children{position:relative;margin-left:28px;margin-top:12px;padding-left:18px;display:flex;flex-direction:column;gap:12px}.org-tree-children:before{content:"";position:absolute;left:0;top:4px;bottom:10px;width:1px;background:#cbd5e1}.org-tree-card{position:relative;padding:16px;border:1px solid #dfe7f1;border-radius:8px;background:#fff;box-shadow:0 8px 22px #0f172a0d}.org-tree-children>.org-tree-node>.org-tree-card:before{content:"";position:absolute;left:-19px;top:28px;width:18px;height:1px;background:#cbd5e1}.org-tree-card.level-0{background:linear-gradient(180deg,#eef6ff,#fff);border-color:#bfdbfe}.org-tree-card.level-1{background:linear-gradient(180deg,#f8fbff,#fff)}.org-tree-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.org-tree-meta-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.org-empty-card{min-height:140px;display:flex;align-items:center;justify-content:center;padding:18px;border:1px dashed #cbd5e1;border-radius:8px;color:var(--text-muted);text-align:center;background:#ffffffbf}.org-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 2px}.org-person-meta-card{padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;display:flex;flex-direction:column;gap:4px}.org-person-meta-card span,.org-inline-meta{color:var(--text-muted);font-size:.8rem}.org-person-meta-card strong{font-size:.9rem;color:var(--text-main)}.org-inline-meta{display:flex;flex-direction:column;gap:4px}.leader-card{background:linear-gradient(180deg,#fff,#f8fafc)}.leader-mini-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.leader-name{font-size:1.2rem;font-weight:700;margin-top:14px}.leader-title{color:var(--text-muted);margin-top:4px}.activity-item{display:flex;gap:12px;align-items:flex-start}.activity-dot{width:10px;height:10px;border-radius:50%;background:var(--primary-color);margin-top:8px;flex-shrink:0}.activity-meta{justify-content:flex-start;color:var(--text-muted);font-size:.8rem;margin-top:6px}.learning-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.learning-summary>div{background:#f8fafc;border:1px solid var(--border-color);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:4px}.memory-section{margin-top:16px}.memory-list{margin:10px 0 0 18px;color:var(--text-muted);line-height:1.6}.focus-task-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.focus-task-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:8px;background:#ffffffd1}.focus-task-item span{color:var(--text-muted);font-size:.82rem}.access-grants-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}.access-grant-card{padding:14px;border-radius:10px;border:1px solid #dbeafe;background:radial-gradient(circle at top right,rgba(59,130,246,.09),transparent 42%),linear-gradient(180deg,#fff,#f8fbff)}.access-grant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.access-grant-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.access-grant-purpose{margin-top:10px;color:#475569;line-height:1.55}.access-grant-fields{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.access-grant-field{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:8px;background:#ffffffdb;border:1px solid #e2e8f0}.access-grant-field span{color:#64748b;font-size:.76rem}.former-agents-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}.former-agent-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-color)}.former-agent-item:last-child{border-bottom:none}.founder-requests-list{display:flex;flex-direction:column;gap:14px;margin-top:16px}.founder-request-card{border:1px solid #fcd34d;background:#fffbeb;border-radius:var(--radius);padding:16px}.section-footer-link{display:flex;justify-content:flex-start;margin-top:16px}.company-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a7a}.company-modal{width:min(760px,100%);max-height:min(78vh,760px);overflow:hidden;border-radius:8px;border:1px solid #dbe5f0;background:#fff;box-shadow:0 24px 80px #0f172a38}.company-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e2e8f0}.company-modal-header h3{font-size:1.05rem}.company-modal-content{max-height:calc(min(78vh,760px) - 76px);overflow-y:auto;padding:20px}.company-modal-content p{color:#475569;line-height:1.75;white-space:pre-wrap}.tasks-page{display:flex;flex-direction:column;gap:20px}.tasks-loading-state{min-height:320px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--text-muted)}.tasks-hero{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(59,130,246,.12),transparent 32%),linear-gradient(180deg,#fff,#f7fafc)}.tasks-hero-copy{max-width:640px}.tasks-hero-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:.78rem;font-weight:700}.tasks-hero-stats{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;width:min(100%,720px)}.task-stat-card{min-height:104px;padding:16px;border-radius:8px;border:1px solid #dbe5f0;background:#ffffffeb;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 25px #0f172a0d}.task-stat-card svg{opacity:.9}.task-stat-card span{color:var(--text-muted);font-size:.78rem;font-weight:600}.task-stat-card strong{font-size:1.7rem;line-height:1;color:var(--text-main)}.accent-blue{color:#1d4ed8}.accent-sky{color:#0369a1}.accent-amber{color:#b45309}.accent-rose{color:#be123c}.accent-emerald{color:#047857}.tasks-toolbar{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--border-color);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.tasks-filter-popover-wrap{position:relative}.tasks-filter-trigger{min-width:44px;height:44px;padding:0;justify-content:center}.tasks-filter-trigger.has-active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.tasks-filter-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:20;width:320px;padding:14px;border-radius:10px;border:1px solid #dbe5f0;background:#fffffffa;box-shadow:0 20px 40px #0f172a1f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tasks-filter-section+.tasks-filter-section{margin-top:14px}.tasks-filter-section strong{display:block;margin-bottom:10px;font-size:.85rem}.tasks-filter-option-list{display:flex;flex-wrap:wrap;gap:8px}.tasks-filter-option{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid #dbe5f0;background:#f8fafc;color:#475569;font-size:.8rem;cursor:pointer}.tasks-filter-option.active{border-color:#93c5fd;background:#dbeafe;color:#1d4ed8}.tasks-filter-actions{display:flex;justify-content:flex-end;margin-top:14px}.tasks-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:-6px}.tasks-filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:.78rem;cursor:pointer}.tasks-toolbar-search{position:relative;flex:1}.tasks-toolbar-search .search-icon{left:12px}.tasks-toolbar-search .search-input{margin:0;height:44px;padding-left:40px;background:#f8fafc}.tasks-company-filter{width:260px;height:44px;background:#f8fafc}.task-board-grid{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:16px;align-items:start}.task-column{height:min(72vh,760px);min-height:560px;display:flex;flex-direction:column;border:1px solid #dbe5f0;border-radius:8px;background:linear-gradient(180deg,#f8fbff,#fefefe);overflow:hidden}.task-column-header{padding:16px 16px 14px;border-bottom:1px solid #e2e8f0;background:#ffffffd9}.task-column-header h3{font-size:.95rem;font-weight:700}.task-column-header span{display:inline-block;margin-top:4px;color:var(--text-muted);font-size:.78rem}.task-column-body{display:flex;flex-direction:column;gap:12px;padding:14px;flex:1;overflow-y:auto}.task-column-empty{min-height:180px;display:flex;align-items:center;justify-content:center;padding:16px;border:1px dashed #cbd5e1;border-radius:8px;color:var(--text-muted);background:#ffffffb3;text-align:center;font-size:.85rem}.task-board-card{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:8px;border:1px solid #dde6f1;background:#fff;box-shadow:0 8px 20px #0f172a0d}.task-board-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-card-top-actions{display:inline-flex;align-items:center;gap:8px}.task-board-card h4{font-size:.98rem;line-height:1.4}.task-board-card p{color:var(--text-muted);font-size:.85rem;line-height:1.6;min-height:54px}.task-board-meta{display:flex;flex-wrap:wrap;gap:8px}.task-meta-chip,.priority-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px;border-radius:999px;font-size:.74rem;font-weight:600}.task-meta-chip{background:#f8fafc;color:#334155;border:1px solid #e2e8f0}.task-company-chip{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.task-agent-chip{background:#f8fafc;color:#475569}.task-date-chip{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}.priority-low{background:#ecfeff;color:#0f766e}.priority-medium{background:#fef3c7;color:#92400e}.priority-high{background:#fee2e2;color:#b91c1c}.task-delete-button{width:28px;height:28px;border:1px solid #fecaca;border-radius:999px;background:#fff1f2;color:#be123c;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.task-delete-button:hover{background:#ffe4e6}.task-delete-button:disabled{opacity:.6;cursor:not-allowed}.task-status-select{height:40px;background:#f8fafc}.task-inline-loading{display:inline-flex;align-items:center;gap:8px;color:var(--text-muted);font-size:.8rem}.tasks-empty-state{min-height:280px}.ideas-page{display:flex;flex-direction:column;gap:20px}.ideas-loading-state{min-height:320px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--text-muted)}.ideas-hero{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(168,85,247,.12),transparent 34%),linear-gradient(180deg,#fff,#f8fbff)}.ideas-hero-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#f3e8ff;color:#7e22ce;font-size:.78rem;font-weight:700}.ideas-hero-actions{display:flex;align-items:flex-start}.ideas-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ideas-stat-card{background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid var(--border-color);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);color:#6d28d9}.ideas-stat-card strong{font-size:1.6rem;font-weight:700;color:var(--text-main)}.ideas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.idea-card{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid #dbe5f0;border-radius:8px;background:#fff;box-shadow:var(--shadow)}.idea-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.idea-card h3{font-size:1.02rem;line-height:1.4}.idea-summary{color:#1e293b;font-weight:500;line-height:1.6}.idea-description{color:var(--text-muted);line-height:1.7}.idea-benefit-box{padding:12px 14px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.idea-benefit-box strong{display:block;margin-bottom:6px}.idea-benefit-box p{color:#475569;line-height:1.6}.idea-prompt-box{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.idea-prompt-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.idea-prompt-textarea{min-height:180px;max-height:260px;font-size:.82rem;line-height:1.5}.idea-footer{display:flex;flex-wrap:wrap;gap:8px}.ideas-empty-state{min-height:280px}.dashboard-page{display:flex;flex-direction:column;gap:20px}.dashboard-header{align-items:flex-start}.dashboard-hero{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(16,185,129,.12),transparent 32%),linear-gradient(180deg,#fff,#f7fafc)}.dashboard-hero-copy{max-width:640px}.dashboard-hero-copy h3{font-size:1.5rem;line-height:1.2;margin-bottom:12px}.dashboard-hero-copy p{color:var(--text-muted);line-height:1.7}.dashboard-hero-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.78rem;font-weight:700}.dashboard-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;width:min(100%,420px)}.dashboard-stat-card{min-height:112px;padding:16px;border-radius:8px;border:1px solid #dbe5f0;background:#ffffffeb;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 25px #0f172a0d}.dashboard-stat-card span{color:var(--text-muted);font-size:.78rem;font-weight:600}.dashboard-stat-card strong{font-size:1.7rem;line-height:1;color:var(--text-main)}.dashboard-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:start}.dashboard-request-list,.dashboard-company-list{display:flex;flex-direction:column;gap:14px}.dashboard-request-card,.dashboard-company-card{padding:16px;border-radius:10px;border:1px solid #dbe5f0;background:linear-gradient(180deg,#fff,#f8fbff)}.dashboard-request-head,.dashboard-company-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dashboard-request-company,.dashboard-company-area{margin-top:4px;color:var(--text-muted);font-size:.82rem}.dashboard-request-card p,.dashboard-company-description{margin-top:10px;color:#475569;line-height:1.6}.dashboard-request-meta,.dashboard-company-meta,.dashboard-request-actions,.dashboard-company-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.crm-page{display:flex;flex-direction:column;gap:20px}.crm-hero{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(14,165,233,.12),transparent 32%),linear-gradient(180deg,#fff,#f8fbff)}.crm-hero-copy{max-width:640px}.crm-hero-copy h3{font-size:1.45rem;line-height:1.2;margin-bottom:12px}.crm-hero-copy p{color:var(--text-muted);line-height:1.7}.crm-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;width:min(100%,420px)}.crm-form,.crm-filter-form{margin-top:16px}.crm-toolbar{justify-content:space-between}.crm-toolbar-actions{display:inline-flex;align-items:center;gap:10px}.crm-filter-popover{width:340px}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.crm-board-shell{overflow-x:auto;padding-bottom:6px}.crm-board{display:grid;grid-template-columns:repeat(6,minmax(240px,1fr));gap:16px;align-items:start;min-width:1540px}.crm-column{min-height:560px;display:flex;flex-direction:column;border:1px solid #dbe5f0;border-radius:8px;background:linear-gradient(180deg,#f8fbff,#fff);overflow:hidden}.crm-column-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #e2e8f0;background:#ffffffe6}.crm-column-head span{min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e0f2fe;color:#0369a1;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}.crm-column-body{display:flex;flex-direction:column;gap:12px;padding:14px;flex:1;overflow-y:auto}.crm-lead-card{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:8px;border:1px solid #dde6f1;background:#fff;box-shadow:0 8px 20px #0f172a0d}.crm-lead-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.crm-lead-top h4{font-size:.96rem;line-height:1.35}.crm-lead-top span{display:inline-block;margin-top:4px;color:var(--text-muted);font-size:.8rem}.crm-lead-meta{display:flex;flex-wrap:wrap;gap:8px}.crm-lead-next,.crm-lead-notes{color:#475569;line-height:1.55;font-size:.84rem}.crm-lead-footer{display:flex;flex-direction:column;gap:10px}.crm-status-select{min-width:100%}.crm-create-modal{width:min(900px,100%)}.contacts-page{display:flex;flex-direction:column;gap:20px}.contacts-hero{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border:1px solid #d9e4f5;border-radius:8px;background:radial-gradient(circle at top right,rgba(34,197,94,.12),transparent 34%),linear-gradient(180deg,#fff,#f7fcf9)}.contacts-hero-copy{max-width:680px}.contacts-hero-copy h3{font-size:1.45rem;line-height:1.2;margin-bottom:12px}.contacts-hero-copy p{color:var(--text-muted);line-height:1.7}.contacts-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;width:min(100%,420px)}.contacts-type-strip{display:flex;flex-wrap:wrap;gap:10px}.contacts-type-pill{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid #dbe4ee;background:#fff;color:#334155;cursor:pointer;transition:border-color .2s ease,color .2s ease,box-shadow .2s ease}.contacts-type-pill strong{min-width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#ecfeff;color:#0f766e;font-size:.78rem}.contacts-type-pill.active{border-color:#0f766e;color:#0f766e;box-shadow:0 10px 22px #0f766e1f}.contacts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.contact-card{display:flex;flex-direction:column;gap:14px;min-height:240px;padding:18px;border-radius:8px;border:1px solid #dbe5f0;background:linear-gradient(180deg,#f8fafcf5,#fff);box-shadow:0 10px 28px #0f172a0d}.contact-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.contact-type-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:600;font-size:.82rem}.contact-card-body{display:flex;flex-direction:column;gap:8px}.contact-card-body h4{font-size:1rem;line-height:1.35}.contact-value-link,.contact-value-text{color:#0f172a;font-size:.95rem;line-height:1.55;word-break:break-word}.contact-value-link{color:#0f766e}.contact-card-extra{display:flex;flex-direction:column;gap:6px;color:#475569;font-size:.84rem}.contact-tags{display:flex;flex-wrap:wrap;gap:8px}.contact-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f8fafc;border:1px solid #dbe4ee;color:#475569;font-size:.78rem}.request-low{background:#e0f2fe;color:#075985}.request-medium{background:#fef3c7;color:#92400e}.request-high,.request-urgent{background:#fee2e2;color:#991b1b}.messenger-shell{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:620px;background:#fff;border:1px solid var(--border-color);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.messenger-shell-enhanced{height:min(720px,calc(100vh - 190px));min-height:560px;max-height:720px}.spin{animation:spin .9s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.messenger-page-status{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:.8rem}.live-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px #d1fae5}.live-dot.offline{background:#f59e0b;box-shadow:0 0 0 4px #fef3c7}.conversation-sidebar{border-right:1px solid var(--border-color);background:#f8fafc;min-height:0;overflow-y:auto}.messenger-sidebar-tools{padding:12px;border-bottom:1px solid var(--border-color)}.messenger-search{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border-color);border-radius:var(--radius);background:#fff;color:var(--text-muted)}.messenger-search input{width:100%;border:none;outline:none;background:transparent;color:var(--text-main);font-size:.85rem}.messenger-filters{display:flex;gap:6px;margin-top:10px}.messenger-filters button{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border-color);border-radius:999px;padding:5px 8px;background:#fff;color:var(--text-muted);cursor:pointer;font-size:.72rem}.messenger-filters button.active{border-color:#a5b4fc;background:#e0e7ff;color:#3730a3}.messenger-filters button span{min-width:16px;height:16px;border-radius:999px;background:#ef4444;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.65rem}.messenger-panel-title,.conversation-header,.message-meta{display:flex;align-items:center;gap:10px}.messenger-panel-title{padding:18px;font-weight:700;border-bottom:1px solid var(--border-color)}.conversation-count{margin-left:auto;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#dbeafe;color:#1d4ed8;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem}.conversation-header-actions{display:inline-flex;align-items:center;gap:10px}.conversation-list{display:flex;flex-direction:column}.conversation-item{display:flex;gap:10px;width:100%;padding:14px 16px;border:none;border-bottom:1px solid var(--border-color);background:transparent;text-align:left;cursor:pointer;color:var(--text-main)}.conversation-item:hover,.conversation-item.selected{background:#e0e7ff}.conversation-icon{width:34px;height:34px;border-radius:50%;background:#fff;color:var(--primary-color);display:flex;align-items:center;justify-content:center;flex-shrink:0}.founder-conversation-icon{background:#fef3c7;color:#b45309}.conversation-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.conversation-copy strong,.conversation-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-copy span,.conversation-header p{color:var(--text-muted);font-size:.8rem}.conversation-name-row,.conversation-title-row,.message-bottom-line,.request-inline-head{display:flex;align-items:center;gap:8px}.conversation-name-row{justify-content:space-between}.conversation-copy small{color:#94a3b8;font-size:.7rem}.conversation-alert,.request-header-label{display:inline-flex;align-items:center;gap:3px;color:#b45309;font-size:.68rem;font-weight:700}.conversation-panel{min-width:0;display:flex;flex-direction:column;min-height:0;background:#dfe7f1}.conversation-header{justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--border-color);background:#ffffffeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.conversation-header h3{font-size:1rem;margin-bottom:4px}.message-list{flex:1;padding:16px 14px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:linear-gradient(#dfe7f1f2,#dfe7f1f2),radial-gradient(circle at top left,rgba(255,255,255,.75),transparent 35%);min-height:0}.load-older-button{align-self:center;display:inline-flex;align-items:center;gap:6px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 12px;cursor:pointer;font-size:.78rem}.load-older-button:hover{background:#dbeafe}.message-bubble{max-width:min(72%,640px);align-self:flex-start;padding:11px 13px 9px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid var(--border-color);box-shadow:0 1px 2px #0f172a0a}.message-row{display:flex;justify-content:flex-start}.message-row.founder-row{justify-content:flex-end}.message-bubble.founder-message{align-self:flex-end;border-color:#c7d2fe;background:linear-gradient(180deg,#eff6ff,#e0e7ff);border-radius:14px 14px 4px}.message-meta{justify-content:space-between;margin-bottom:7px}.message-meta span,.message-kind{color:var(--text-muted);font-size:.75rem}.message-bottom-line{justify-content:space-between;margin-top:8px}.message-actions{display:inline-flex;align-items:center;gap:8px}.message-action-button{display:inline-flex;align-items:center;gap:4px;border:none;padding:3px 5px;border-radius:4px;background:transparent;color:#64748b;cursor:pointer;font-size:.72rem}.message-action-button:hover{background:#e0e7ff;color:#4338ca}.message-reply-preview{margin-bottom:10px;padding:7px 9px;border-left:3px solid #a5b4fc;background:#f8fafc;border-radius:3px;display:flex;flex-direction:column;gap:3px;color:#64748b;font-size:.75rem}.message-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-bottom-line svg{color:#4f46e5}.request-message{border-color:#fcd34d}.request-inline-card{margin-top:12px;padding:10px;border-left:3px solid #f59e0b;background:#fffbeb;border-radius:4px}.request-inline-head{justify-content:space-between;color:#92400e;font-size:.8rem}.request-inline-head span{font-size:.7rem}.request-inline-card p,.request-answer{margin-top:6px;font-size:.8rem;color:#57534e}.request-access-summary,.request-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.request-form-card{margin-top:12px;padding:12px;border:1px solid #fde68a;border-radius:8px;background:#ffffffb8}.request-form-title{font-size:.82rem;font-weight:700;color:#92400e;margin-bottom:10px}.request-form-group{display:flex;flex-direction:column;gap:6px;margin-top:10px;color:#44403c;font-size:.8rem}.request-form-group small{color:#78716c}.request-form-input{background:#fff}.request-response-grid{margin-top:10px;display:flex;flex-direction:column;gap:8px}.request-response-item{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:8px;background:#ffffffb8;color:#44403c}.request-answer{padding-top:7px;border-top:1px solid #fde68a;color:#166534}.request-closed{border-left-color:#10b981;background:#f0fdf4}.message-bubble p{line-height:1.55;white-space:pre-wrap}.message-kind{display:block;margin-top:8px}.messenger-composer{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:14px;background:#fffffff5;border-top:1px solid rgba(191,219,254,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.composer-reply-context{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-left:3px solid #4f46e5;border-radius:4px;background:#eef2ff;color:#3730a3;font-size:.8rem}.composer-reply-context>div{display:flex;flex-direction:column;gap:3px;min-width:0}.composer-reply-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b}.composer-cancel-reply{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:none;background:transparent;color:#64748b;cursor:pointer}.messenger-composer .form-control{flex:1;min-height:42px;max-height:96px;height:42px;overflow-y:auto;resize:none;border-radius:16px;background:#fff;border-color:#cbd5e1;line-height:1.35}.messenger-composer .btn-primary{width:42px;min-width:42px;padding:0;border-radius:999px;height:42px;justify-content:center;flex-shrink:0}.messenger-composer .btn-primary span{display:none}.compact-empty{padding:36px 18px;font-size:.85rem;text-align:center}.toast-stack{position:fixed;top:18px;right:18px;z-index:1200;display:flex;flex-direction:column;gap:10px;pointer-events:none}.toast-card{width:min(360px,calc(100vw - 32px));padding:14px 16px;border-radius:10px;border:1px solid #dbeafe;background:#fffffff5;box-shadow:0 18px 40px #0f172a1f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.toast-card strong{display:block;color:#0f172a}.toast-card span{display:block;margin-top:2px;color:#64748b;font-size:.76rem}.toast-card p{margin-top:8px;color:#334155;font-size:.84rem;line-height:1.45}@media (max-width: 1100px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero,.crm-hero,.contacts-hero{flex-direction:column}.dashboard-hero-stats,.crm-hero-stats,.contacts-hero-stats{width:100%}.dashboard-grid,.company-overview-grid{grid-template-columns:1fr}.company-hero-readable{flex-direction:column}.company-quick-grid{grid-template-columns:1fr}.ideas-hero{flex-direction:column}.ideas-stats-grid,.ideas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.org-tree-children{margin-left:16px;padding-left:14px}.tasks-hero{flex-direction:column}.tasks-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.task-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-board{grid-template-columns:repeat(2,minmax(260px,1fr))}.contacts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 768px){.app-container{flex-direction:column}.sidebar{width:100%}.header,.content{padding-left:16px;padding-right:16px}.page-header{flex-direction:column;align-items:flex-start;gap:16px}.company-hero-meta-grid{grid-template-columns:1fr}.company-hero-actions{max-width:none}.ideas-stats-grid,.ideas-grid{grid-template-columns:1fr}.tasks-toolbar{flex-direction:column;align-items:stretch}.crm-toolbar-actions{width:100%;justify-content:space-between}.tasks-filter-popover{left:0;right:auto;width:min(100%,360px)}.tasks-hero{padding:18px}.tasks-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.task-board-grid{grid-template-columns:1fr}.task-column{height:auto;min-height:auto}.page-actions,.table-actions{justify-content:flex-start}.metrics-grid{grid-template-columns:1fr}.conversation-header-actions{width:100%;justify-content:space-between;flex-wrap:wrap}.dashboard-hero-stats,.crm-hero-stats,.contacts-hero-stats,.crm-form-grid,.crm-board,.contacts-grid{grid-template-columns:1fr}.dashboard-request-head,.dashboard-company-head,.detail-item,.org-card-head,.org-person-top,.org-tree-card-head,.timeline-head,.timeline-footer,.org-meta-row,.org-tree-meta-row{flex-direction:column;align-items:flex-start}.org-person-grid{grid-template-columns:1fr}.org-tree-children{margin-left:10px;padding-left:12px}.detail-label{width:auto}.messenger-shell{grid-template-columns:1fr}.messenger-shell-enhanced{height:calc(100vh - 170px);min-height:520px}.conversation-sidebar{border-right:none;border-bottom:1px solid var(--border-color)}.messenger-composer{flex-direction:column;align-items:stretch}.message-bubble{max-width:92%}.tasks-hero-stats{grid-template-columns:1fr}}
