:root{--brand-teal: #2faf9c;--brand-teal-dark: #259585;--brand-teal-soft: #bfe7df;--bg-body: #f9fafb;--bg-surface: #ffffff;--bg-subtle: #f3f4f6;--border-subtle: #e5e7eb;--border-strong: #d1d5db;--text-main: #111827;--text-muted: #6b7280;--text-subtle: #9ca3af;--status-open: #2faf9c;--status-in-progress: #e4c767;--status-closed: #9fb59e;--status-won: #6fcf97;--status-lost: #f27c65;--status-danger: #dc2626;--shadow-card: 0 1px 3px rgba(0, 0, 0, .08);--shadow-modal: 0 12px 30px rgba(15, 23, 42, .24);--radius-input: 4px;--radius-button: 6px;--radius-card: 8px;--radius-modal: 10px;--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:var(--font-sans);background:var(--bg-body);color:var(--text-main);min-height:100vh}a{color:inherit;text-decoration:none}button{font-family:inherit}.app-shell{display:flex;min-height:100vh;background:var(--bg-body);color:var(--text-main)}.app-sidebar{width:240px;background:var(--bg-surface);border-right:1px solid var(--border-subtle);display:flex;flex-direction:column;padding:16px;gap:16px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:8px 10px}.sidebar-brand img{width:32px;height:32px;object-fit:contain}.sidebar-brand .name{font-weight:700;font-size:16px;letter-spacing:-.01em}.sidebar-nav{display:flex;flex-direction:column;gap:6px}.sidebar-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;color:var(--text-main);font-size:14px;transition:background .15s ease,border-color .15s ease,color .15s ease}.sidebar-link:hover{background:var(--bg-subtle);border-color:var(--border-subtle)}.sidebar-link.is-active{background:var(--bg-subtle);border-color:var(--brand-teal-soft);color:var(--brand-teal-dark);box-shadow:inset 3px 0 0 var(--brand-teal)}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border-subtle);padding-top:12px;font-size:13px;color:var(--text-muted)}.app-content{flex:1;display:flex;flex-direction:column;min-height:100vh}.app-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-bottom:1px solid var(--border-subtle);background:var(--bg-surface);position:sticky;top:0;z-index:10}.topbar-title{font-size:20px;font-weight:600;color:var(--text-main)}.topbar-subtitle{font-size:13px;color:var(--text-muted);margin-top:2px}.topbar-right{display:flex;align-items:center;gap:12px}.user-chip{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-subtle)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand-teal-soft);color:var(--brand-teal-dark);font-weight:700;font-size:13px}.user-meta{display:flex;flex-direction:column;gap:2px}.user-meta .name{font-size:13px;font-weight:600}.user-meta .tenant{font-size:12px;color:var(--text-muted)}.app-page{flex:1;padding:24px;background:var(--bg-body)}.app-page-inner{max-width:1440px;margin:0 auto;display:flex;flex-direction:column;gap:16px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.page-header h1{margin:0;font-size:22px;font-weight:600}.page-header p{margin:4px 0 0;color:var(--text-muted);font-size:14px}.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ui-card{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:16px}.ui-card.inset{padding:12px}.ui-card h3{margin:0 0 8px;font-size:15px;font-weight:600}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.kpi-card{display:flex;flex-direction:column;gap:6px}.kpi-label{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}.kpi-value{font-size:22px;font-weight:600;color:var(--text-main)}.kpi-sub{font-size:12px;color:var(--text-subtle)}.ui-btn{border-radius:var(--radius-button);border:1px solid transparent;background:var(--bg-subtle);color:var(--text-main);font-size:14px;font-weight:500;height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .08s ease}.ui-btn:disabled{opacity:.6;cursor:not-allowed}.ui-btn:focus-visible{outline:2px solid var(--brand-teal-soft);outline-offset:2px}.ui-btn:hover:not(:disabled){border-color:var(--border-strong)}.ui-btn:active:not(:disabled){transform:translateY(1px)}.ui-btn--primary{background:var(--brand-teal);color:#fff;border-color:var(--brand-teal-dark);box-shadow:0 8px 18px #2faf9c3d}.ui-btn--secondary{background:var(--bg-subtle);color:var(--text-main);border-color:var(--border-strong)}.ui-btn--outline{background:transparent;color:var(--text-main);border-color:var(--border-strong)}.ui-btn--danger{background:var(--status-danger);color:#fff;border-color:#b91c1c}.ui-btn--sm{height:32px;padding:0 10px;font-size:13px}.ui-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-main)}.ui-field label{font-weight:500}.ui-input,.ui-select,.ui-textarea{width:100%;border:1px solid var(--border-strong);border-radius:var(--radius-input);background:var(--bg-surface);padding:9px 10px;font-size:14px;color:var(--text-main);transition:border-color .15s ease,box-shadow .15s ease}.ui-textarea{min-height:90px;resize:vertical}.ui-input:focus-visible,.ui-select:focus-visible,.ui-textarea:focus-visible{border-color:var(--brand-teal);box-shadow:0 0 0 2px var(--brand-teal-soft);outline:none}.ui-badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;border:1px solid var(--border-subtle);font-size:12px;font-weight:600}.ui-badge.status-open{background:#2faf9c1f;color:var(--brand-teal-dark);border-color:#2faf9c66}.ui-badge.status-progress{background:#e4c76729;color:#8a6e1f;border-color:#e4c76766}.ui-badge.status-closed{background:#9fb59e2e;color:#3e5940;border-color:#9fb59e73}.ui-badge.status-won{background:#6fcf9726;color:#1f5e20;border-color:#6fcf9773}.ui-badge.status-lost{background:#f27c6529;color:#a23f2b;border-color:#f27c6573}.ui-badge.deal{background:var(--bg-subtle);color:var(--text-main)}.ui-pill{border:1px solid var(--border-strong);border-radius:999px;padding:6px 10px;background:var(--bg-subtle);color:var(--text-main);font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.ui-pill.is-active{background:var(--brand-teal-soft);border-color:var(--brand-teal-dark);color:var(--brand-teal-dark)}.ui-table{width:100%;border-collapse:collapse;font-size:13px}.ui-table th{text-align:left;padding:10px 8px;border-bottom:1px solid var(--border-strong);background:var(--bg-subtle);color:var(--text-muted);font-weight:600}.ui-table td{padding:10px 8px;border-bottom:1px solid var(--border-subtle);color:var(--text-main)}.ui-table tbody tr:hover{background:#f4f8f7}.ui-modal-backdrop{position:fixed;inset:0;background:#11182761;display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.ui-modal{background:var(--bg-surface);border-radius:var(--radius-modal);border:1px solid var(--border-subtle);box-shadow:var(--shadow-modal);width:min(980px,100%);max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.ui-modal__header{padding:14px 16px;border-bottom:1px solid var(--border-subtle);background:var(--bg-subtle);display:flex;align-items:center;justify-content:space-between;gap:12px}.ui-modal__body{padding:16px;overflow:auto}.ui-modal__footer{padding:12px 16px;border-top:1px solid var(--border-subtle);background:var(--bg-subtle);display:flex;justify-content:flex-end;gap:8px}.stack{display:flex;flex-direction:column;gap:10px}.stack-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.surface-muted{background:var(--bg-subtle);border:1px solid var(--border-subtle);border-radius:var(--radius-card);padding:10px}.table-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.auth-shell{min-height:100vh;background:var(--bg-subtle);display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:min(960px,100%);background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:12px;box-shadow:var(--shadow-card);display:grid;grid-template-columns:1fr 1fr;overflow:hidden}@media(max-width:900px){.auth-card{grid-template-columns:1fr}}.auth-hero{background:linear-gradient(135deg,#f3f4f6,#d8f2eb 40%,#fff);padding:32px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.auth-hero .brand{display:flex;align-items:center;gap:12px}.auth-hero .brand img{width:48px;height:48px;object-fit:contain}.auth-hero h1{margin:0;font-size:24px;font-weight:700}.auth-hero p{margin:0;color:var(--text-muted);font-size:14px}.auth-form{padding:32px;display:flex;flex-direction:column;gap:12px}.auth-form h2{margin:0 0 6px;font-size:20px;font-weight:700}.auth-form p{margin:0 0 10px;color:var(--text-muted)}.pill-bar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.table-meta{display:flex;justify-content:flex-end;gap:12px;font-size:12px;color:var(--text-muted)}.badge-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.subtle-card{background:var(--bg-subtle);border:1px solid var(--border-subtle);border-radius:var(--radius-card);padding:12px}.flex-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
