:root{--primary:#0f391b;--primary-light:#185a2d;--accent:#26a24c;--bg-page:#f8fafc;--bg-surface:#fff;--text-main:#0f172a;--text-muted:#64748b;--border:#e2e8f0;--radius-sm:8px;--radius-md:16px;--radius-lg:24px;--radius-pill:9999px;--shadow-sm:0 1px 2px 0 rgba(0,0,0,.05);--shadow-md:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--shadow-glow:0 0 20px rgba(38,162,76,.15)}*{box-sizing:border-box}body{font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--bg-page);color:var(--text-main);line-height:1.5;-webkit-font-smoothing:antialiased}body,h1,h2,h3,h4,p{margin:0}a{text-decoration:none;color:inherit}.layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh;padding:24px;grid-gap:32px;gap:32px}.main-panel{display:flex;flex-direction:column;gap:32px;max-width:1600px}.login-page{min-height:100vh;display:grid;place-items:center;background:var(--bg-page);padding:24px}.login-card{width:min(420px,100%)}.sidebar{background:var(--bg-surface);padding:24px 16px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:4px;height:calc(100vh - 48px);position:-webkit-sticky;position:sticky;top:24px}.sidebar-brand{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--border);margin-bottom:12px;padding-left:8px}.brand-icon{width:32px;height:32px;background:var(--primary);color:#fff;border-radius:8px;display:grid;place-items:center;font-weight:700;font-size:16px}.sidebar-section{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);font-weight:700;margin:20px 0 8px 12px}.sidebar h2{font-size:16px;font-weight:700;color:var(--primary)}.nav-link{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:var(--radius-md);color:var(--text-muted);font-weight:500;transition:all .2s;border:none;background:transparent;width:100%;cursor:pointer;text-align:left}.nav-link:hover{background:#f1f5f9;color:var(--text-main)}.nav-link.active{background:transparent;color:var(--primary);font-weight:700;position:relative}.nav-link.active:before{content:"";position:absolute;left:-16px;top:50%;transform:translateY(-50%);height:20px;width:4px;background:var(--primary);border-radius:0 4px 4px 0}.nav-icon{width:20px;display:flex;justify-content:center;font-size:18px}.sidebar-cta{margin-top:auto;background:var(--primary);border-radius:var(--radius-md);padding:24px;color:#fff;text-align:center;box-shadow:var(--shadow-lg)}.sidebar-cta-title{font-weight:700;margin-bottom:8px;font-size:16px}.sidebar-cta-text{font-size:13px;opacity:.9;margin-bottom:16px}.sidebar-cta .button{width:100%;background:#fff;color:var(--primary);justify-content:center}.topbar{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.topbar-title{font-size:28px;font-weight:800;color:var(--text-main);letter-spacing:-.02em}.topbar-subtitle{color:var(--text-muted);margin-top:4px}.search-input{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-pill);padding:10px 20px;box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:12px;width:380px;color:var(--text-muted)}.search-input input{border:none;background:transparent;outline:none;width:100%;color:var(--text-main);font-weight:500}.topbar-actions{gap:16px}.bell,.topbar-actions{display:flex;align-items:center}.bell{width:48px;height:48px;border-radius:50%;border:1px solid var(--border);background:var(--bg-surface);justify-content:center;cursor:pointer;transition:all .2s}.bell:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}.topbar-user{background:var(--bg-surface);padding:6px 16px 6px 6px;border-radius:var(--radius-pill);border:1px solid var(--border);display:flex;align-items:center;gap:12px;cursor:pointer}.avatar{width:36px;height:36px;background:#dcfce7;color:var(--primary);border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px}.card{background:var(--bg-surface);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-sm);border:1px solid var(--border)}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;background:transparent!important;box-shadow:none!important;border:none!important;padding:0!important}.header-title{font-size:32px;font-weight:800;color:var(--text-main);letter-spacing:-.03em}table{width:100%;border-collapse:separate;border-spacing:0;background:var(--bg-surface);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);border:1px solid var(--border)}th{background:#f8fafc;padding:16px 24px;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:700}td,th{border-bottom:1px solid var(--border)}td{padding:20px 24px;color:var(--text-main);font-size:14px;font-weight:500}tr:last-child td{border-bottom:none}tr:hover td{background:#f1f5f9}input,select,textarea{width:100%;padding:12px 16px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--bg-surface);font-family:inherit;font-size:14px;transition:all .2s;color:var(--text-main);margin-top:6px}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,57,27,.1)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:var(--radius-pill);font-weight:600;cursor:pointer;border:none;font-size:14px;transition:all .2s}.btn-primary,.button{background:var(--primary);color:#fff;box-shadow:var(--shadow-glow)}.button:hover{background:var(--primary-light);transform:translateY(-1px)}.button-outline{background:#fff!important;border:1px solid var(--border)!important;color:var(--text-main)!important;box-shadow:none!important}.button-outline:hover{border-color:var(--text-muted)!important;background:#f8fafc!important}.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-gap:24px;gap:24px}.stat-pill{background:var(--bg-surface);padding:24px;border-radius:var(--radius-lg);border:1px solid var(--border);display:flex;flex-direction:column;justify-content:space-between;height:180px;box-shadow:var(--shadow-sm);position:relative;transition:transform .2s}.stat-pill:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}.stat-pill:first-child{background:var(--primary);color:#fff;border:none;box-shadow:var(--shadow-lg)}.stat-pill:first-child .value{color:#fff;font-size:48px}.stat-pill:first-child .delta{background:hsla(0,0%,100%,.2);color:#fff;padding:4px 12px;border-radius:var(--radius-md);width:-moz-fit-content;width:fit-content}.stat-pill .value{font-size:36px;font-weight:800;margin-top:auto;color:var(--text-main)}.stat-pill .delta{font-size:13px;font-weight:600;color:var(--accent)}.stat-pill:not(:first-child):after{content:"↗";position:absolute;top:24px;right:24px;width:32px;height:32px;border-radius:50%;border:1px solid var(--border);display:grid;place-items:center;color:var(--text-muted)}.dashboard-main{display:grid;grid-template-columns:2fr 1fr;grid-gap:24px;gap:24px}.right-card,.stack{display:flex;flex-direction:column;gap:24px}.chart-card{height:300px;background:linear-gradient(180deg,#f0fdf4,#fff);border-radius:var(--radius-md);border:1px dashed #cbd5e1;display:grid;place-items:center;color:var(--text-muted);font-size:14px}.chart-card:after{content:"Interactive Analytics Chart";opacity:.5}.list-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f8fafc;border-radius:var(--radius-md);margin-bottom:8px;border:1px solid transparent;transition:all .2s}button.list-item{width:100%;text-align:left;border:none;cursor:pointer}.list-item:hover{background:#fff;border-color:var(--border);box-shadow:var(--shadow-sm)}.badge{background:#f1f5f9;color:var(--text-muted);padding:4px 12px;border-radius:var(--radius-pill);font-size:12px;font-weight:700}.pill{border-radius:999px}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:16px;gap:16px}.segmented{background:var(--bg-surface);border:1px solid var(--border);padding:4px;border-radius:var(--radius-pill);display:inline-flex}.segmented button{background:transparent;border:none;padding:8px 16px;border-radius:var(--radius-pill);font-size:13px;font-weight:600;color:var(--text-muted);cursor:pointer}.segmented button.active{background:var(--primary);color:#fff;box-shadow:var(--shadow-sm)}.chat-layout{display:grid;grid-template-columns:320px 1fr;grid-gap:24px;gap:24px;height:calc(100vh - 140px)}.chat-list-card{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:0}.chat-list-header{padding:20px;border-bottom:1px solid var(--border)}.chat-items{flex:1 1;overflow-y:auto;padding:12px;gap:8px}.chat-items,.chat-thread-item{display:flex;flex-direction:column}.chat-thread-item{padding:12px 16px;border-radius:var(--radius-md);cursor:pointer;transition:all .2s;gap:4px}.chat-thread-item:hover{background:#f1f5f9}.chat-thread-item.active{background:#f0fdf4;border-left:4px solid var(--primary)}.chat-window-card{display:flex;flex-direction:column;height:100%;padding:0;overflow:hidden;background:#efe7dd;background-image:linear-gradient(#e5ddd5 2px,transparent 0),linear-gradient(90deg,#e5ddd5 2px,transparent 0);background-size:40px 40px;background-color:#efe7dd}.chat-header{padding:16px 24px;background:var(--bg-surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;z-index:10}.messages-area{flex:1 1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:12px}.message-bubble{max-width:60%;padding:10px 16px;border-radius:12px;position:relative;font-size:14px;line-height:1.4;box-shadow:0 1px 2px rgba(0,0,0,.1)}.message-bubble.sent{align-self:flex-end;background:#dcf8c6;color:#111b21;border-top-right-radius:0}.message-bubble.received{align-self:flex-start;background:#fff;color:#111b21;border-top-left-radius:0}.message-meta{font-size:10px;color:rgba(0,0,0,.45);text-align:right;margin-top:4px}.chat-input-area{padding:16px 24px;background:var(--bg-surface);border-top:1px solid var(--border);display:flex;gap:12px}.chat-input{flex:1 1;background:#f0f2f5;border:none;border-radius:24px;padding:12px 20px;font-size:15px}.chat-input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--primary)}