:root{--ink:#202924;--muted:#6e7971;--paper:#f5f7f4;--white:#fff;--line:#dfe6df;--green:#267451;--green-dark:#1d5a3f;--green-soft:#e8f2ec;--yellow:#f0c84b;--yellow-soft:#fff7dc;--red:#a94d3d;--shadow:0 1px 2px rgba(20,34,25,.05);font-family:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.45}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button,input,select,textarea{font:inherit;color:inherit}.app-shell{min-height:100vh}.topbar{height:70px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:18px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{height:34px;width:34px;display:grid;place-items:center;background:var(--yellow);border-radius:7px;font-weight:800;color:#263229}.brand-title{font-size:14px;font-weight:750}.brand-sub{font-size:11px;color:var(--muted);margin-top:1px}.topbar-right{display:flex;align-items:center;gap:12px}.user-pill{font-size:12px;color:var(--muted)}.user-pill strong{color:var(--ink)}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 70px)}.sidebar{border-right:1px solid var(--line);background:#f9fbf8;padding:25px 15px}.nav-label{font-size:10px;color:#8b958e;font-weight:750;margin:0 11px 9px}.nav-link{display:flex;align-items:center;gap:10px;padding:10px 11px;margin:3px 0;border-radius:5px;color:#59655d;font-size:12px;font-weight:620}.nav-link:hover,.nav-link.active{background:var(--green-soft);color:var(--green-dark)}.nav-link svg{width:16px;height:16px}.main{padding:30px 38px 44px;max-width:1600px;width:100%}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.eyebrow{color:var(--green);font-size:11px;font-weight:750;margin:0 0 7px}.page-head h1{font-size:25px;line-height:1.15;margin:0;font-weight:750}.page-head p{margin:7px 0 0;color:var(--muted);font-size:13px}.actions{display:flex;align-items:center;gap:9px}.button{height:36px;background:var(--white);border:1px solid #cad4cc;border-radius:5px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-size:12px;font-weight:680}.button:hover{background:#f4f8f4}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:var(--green-dark)}.button.danger{color:var(--red);border-color:#e7c8c2}.button.small{height:31px;padding:0 9px;font-size:11px}.button.full{width:100%}.button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9bc9ad;outline-offset:2px}.icon-button{border:0;background:transparent;padding:6px;cursor:pointer;color:var(--muted)}.icon-button:hover{color:var(--ink)}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--white);border:1px solid var(--line);border-radius:7px;box-shadow:var(--shadow);margin-bottom:18px}.metric{padding:16px 18px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric-label{font-size:11px;color:var(--muted);font-weight:650}.metric-value{font-size:24px;font-weight:750;line-height:1.15;margin-top:9px}.metric-foot{font-size:10px;color:#879189;margin-top:5px}.metric.emphasis .metric-value{color:var(--green)}.panel{background:var(--white);border:1px solid var(--line);border-radius:7px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 19px 13px}.panel-title{font-size:14px;font-weight:750;margin:0}.panel-caption{font-size:11px;color:var(--muted);margin-top:4px}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0 15px;margin:0 0 18px}.filters .label{font-size:11px;color:var(--muted);font-weight:700}.control{height:34px;border:1px solid #d3ddd5;background:#fff;border-radius:5px;padding:0 9px;font-size:12px}.search{height:33px;width:210px;border:1px solid #d3ddd5;background:#fff;border-radius:5px;padding:0 10px;font-size:11px}.filter-note{margin-left:auto;color:var(--muted);font-size:11px}.content-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:16px}.table-panel{margin-top:16px}.table-scroll{overflow:auto;border-top:1px solid var(--line)}table{border-collapse:collapse;width:100%;min-width:900px}th{background:#f8faf8;color:#667269;font-size:10px;font-weight:700;text-align:left;padding:11px 13px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:11px 13px;border-bottom:1px solid #edf0ed;font-size:12px;vertical-align:top}tr:last-child td{border-bottom:0}tr:hover td{background:#fafcf9}.right{text-align:right!important}.nowrap{white-space:nowrap}.muted{color:var(--muted)}.subtle{color:#a2aba4}.status{display:inline-flex;align-items:center;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:700;white-space:nowrap}.status-new{background:#edf3ff;color:#3566a3}.status-contacted{background:#edf5ed;color:#3f7355}.status-follow-up{background:#fff7dc;color:#816720}.status-qualified{background:#ecebff;color:#5e57a5}.status-won{background:#e3f4e9;color:#267451}.status-lost{background:#f9e9e6;color:#a94d3d}.notice{padding:11px 13px;border-radius:5px;font-size:12px;margin:0 0 16px}.notice.success{background:var(--green-soft);border:1px solid #c4dfcc;color:#2a6245}.notice.danger{background:#fceceb;border:1px solid #eccac5;color:#934537}.notice.info{background:#edf4fb;border:1px solid #caddec;color:#3d617e}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;padding:19px}.field{display:flex;flex-direction:column;gap:6px}.field.full-span{grid-column:1/-1}.field label{font-size:11px;font-weight:700;color:#4f5d54}.field input,.field select,.field textarea{width:100%;border:1px solid #d3ddd5;background:#fff;border-radius:5px;padding:9px 10px;font-size:12px}.field input,.field select{height:37px}.field textarea{resize:vertical;min-height:96px}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding:0 19px 19px}.empty{padding:33px 18px;text-align:center;color:var(--muted);font-size:12px}.pagination{display:flex;justify-content:flex-end;gap:6px;padding:13px 16px}.pagination a{min-width:30px;height:30px;border:1px solid var(--line);border-radius:4px;display:grid;place-items:center;font-size:11px}.pagination a.active{background:var(--green);color:#fff;border-color:var(--green)}.auth-page{min-height:100vh;display:grid;place-items:center;background:var(--paper);padding:20px}.auth-card{width:min(100%,390px);background:#fff;border:1px solid var(--line);border-radius:8px;padding:32px;box-shadow:var(--shadow)}.auth-card .brand-mark{margin-bottom:22px}.auth-card h1{font-size:24px;margin:0 0 7px}.auth-card .eyebrow{margin-bottom:8px}.auth-card .field{margin-top:17px}.auth-card .button{margin-top:20px}.auth-card .muted{font-size:12px}.auth-foot{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;color:var(--muted);font-size:10px}.kpi-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 19px 19px}.mini-stat{background:#f7faf7;border:1px solid #e3ebe4;border-radius:5px;padding:11px}.mini-stat-label{font-size:10px;color:var(--muted)}.mini-stat-value{font-size:17px;font-weight:750;margin-top:4px}.footer-note{padding:14px 0;color:#8b958e;font-size:10px}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metric:nth-child(3){border:0}.metric:nth-child(n+4){border-top:1px solid var(--line)}.content-grid{grid-template-columns:1fr}.side-panel{display:block}}
@media(max-width:760px){.topbar{padding:0 16px}.topbar-right .user-pill{display:none}.layout{display:block}.sidebar{display:none}.main{padding:22px 15px 30px}.page-head{align-items:flex-start;flex-direction:column}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:13px 12px}.metric:nth-child(2),.metric:nth-child(4){border:0}.metric:nth-child(n+3){border-top:1px solid var(--line)}.metric:last-child{grid-column:1/-1}.metric-value{font-size:21px}.filter-note{width:100%;margin-left:0}.form-grid{grid-template-columns:1fr;padding:15px}.field.full-span{grid-column:auto}.form-actions{padding:0 15px 15px}.panel-head{padding:15px}.search{width:145px}.actions{width:100%}.actions .button{flex:1}}
