*{box-sizing:border-box} :root{--bg:#f3f6fb;--panel:#fff;--ink:#18243a;--muted:#68758a;--line:#e2e8f0;--blue:#2858df;--blue2:#eaf0ff;--green:#15803d;--amber:#b45309;--red:#b91c1c}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{border:0;border-radius:10px;padding:10px 13px;font-weight:700;cursor:pointer}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--blue);color:#fff}.secondary{background:#eef2f7;color:#253247}.danger{background:#fff0f0;color:var(--red)}.wide{width:100%;margin-top:9px}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:1.4px;color:var(--blue)}.brand{display:flex;align-items:center;gap:10px;font-weight:850;font-size:20px}.brand-icon{width:38px;height:38px;display:grid;place-items:center;background:#315ce7;border-radius:12px;color:white}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top right,#e0e9ff,transparent 40%),var(--bg)}.login-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 18px 60px #1e293b12}.login-card h1{font-size:29px;line-height:1.1;margin:9px 0}.login-card .brand{margin-bottom:30px}.login-card form{margin-top:22px}.login-card label,.dialog label,.panel label{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;font-size:12px;font-weight:750;color:#44516a}.login-card input,.dialog input,.dialog select,.dialog textarea,.panel input,.panel textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:white;color:var(--ink);min-width:0}.login-card input:focus,.dialog input:focus,.panel input:focus,textarea:focus,select:focus{outline:2px solid #b8c9ff;border-color:#6688ef}.message{font-size:12px;margin-top:12px;color:var(--red)}.notice{padding:12px 14px;background:#fff6df;border:1px solid #f5d89a;color:#8a4b08;border-radius:11px;font-size:12px;line-height:1.5;margin:14px 0}.app{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#121e37;color:white;padding:24px 15px;display:flex;flex-direction:column;gap:26px}.sidebar .brand-icon{background:#3867f4}.nav-label{font-size:10px;letter-spacing:1.3px;color:#8d9dbb;font-weight:850;margin:10px 10px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav{width:100%;text-align:left;background:transparent;color:#c8d3e8;display:flex;gap:12px;align-items:center}.nav.active,.nav:hover{background:#253657;color:#fff}.sidebar-foot{margin-top:auto;background:#1c2b49;border:1px solid #2b3c5d;border-radius:13px;padding:14px;font-size:12px;line-height:1.7;color:#d2dced}.sidebar-foot small{color:#9eb0cf}.online-dot{display:inline-block;width:7px;height:7px;background:#42d392;border-radius:50%;margin-right:5px}.main{padding:28px;max-width:1600px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.topbar h1{font-size:27px;letter-spacing:-.8px;margin:5px 0}.topbar p{margin:0;font-size:13px}.top-actions{display:flex;gap:8px;flex-wrap:wrap}.hero{background:linear-gradient(120deg,#1d3d9d,#3168ef);color:white;border-radius:17px;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.hero h2{font-size:18px;margin:0 0 6px}.hero p{font-size:12px;color:#e0e9ff;margin:0}.hero-emoji{font-size:37px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.stat,.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 7px 26px #17233d08}.stat{padding:17px}.stat div{display:flex;justify-content:space-between;gap:7px;font-size:11px;font-weight:750;color:var(--muted)}.stat div span{background:var(--blue2);color:var(--blue);padding:7px;border-radius:9px}.stat strong{display:block;font-size:30px;margin:12px 0 2px;letter-spacing:-1px}.stat small{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.85fr);gap:15px}.stack{display:flex;flex-direction:column;gap:15px}.panel{padding:18px;margin-bottom:15px;min-width:0}.stack .panel{margin-bottom:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel h2{font-size:16px;margin:0}.panel-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.text-btn{background:transparent;color:var(--blue);padding:5px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.toolbar input{flex:1;min-width:170px}.toolbar input,.toolbar select{border:1px solid var(--line);background:white;border-radius:10px;padding:10px;color:var(--ink)}.customer-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.customer-row:last-child{border-bottom:0}.avatar{width:36px;height:36px;border-radius:11px;background:#e8eeff;color:#284fc7;display:grid;place-items:center;font-size:12px;font-weight:850;flex-shrink:0}.customer-main{flex:1;min-width:0}.customer-main strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis}.customer-main small{display:block;color:var(--muted);font-size:11px;margin-top:4px;overflow-wrap:anywhere}.row-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.small-btn{font-size:11px;padding:7px 9px;background:#eef2f7;color:#334155}.pill{display:inline-flex;border-radius:20px;padding:5px 8px;background:#edf2f7;color:#475569;font-size:10px;font-weight:800;white-space:nowrap}.pill.green{background:#e6f7ed;color:#13733b}.pill.blue{background:#eaf0ff;color:#2451d0}.pill.amber{background:#fff3dc;color:#a04e00}.pill.red{background:#ffeded;color:#b91c1c}.empty{font-size:12px;color:var(--muted);padding:18px 6px;text-align:center}.page{display:none}.page.active{display:block}.quick-prompts{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 15px}.quick-prompts button{font-size:11px}.ai-badge{background:#eaf0ff;color:#2451d0;border-radius:30px;padding:7px 10px;font-size:11px;font-weight:800}.ai-output{margin-top:16px;border:1px solid var(--line);background:#f8faff;border-radius:12px;padding:15px;white-space:pre-wrap;line-height:1.65;font-size:13px;min-height:90px}.integration-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.status-ok{color:var(--green)}.status-pending{color:var(--amber)}.dialog{position:fixed;inset:0;background:#0b153577;display:grid;place-items:center;padding:15px;z-index:10;overflow:auto}.dialog-card{background:white;border-radius:18px;padding:22px;width:min(700px,100%);max-height:94vh;overflow:auto;box-shadow:0 20px 80px #11182744}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{margin:0;font-size:20px}.icon-btn{background:#eef2f7;padding:7px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}.form-grid .full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.toast{position:fixed;right:20px;bottom:20px;background:#13213c;color:white;border-radius:12px;padding:13px 17px;box-shadow:0 8px 30px #11182733;z-index:30;font-size:13px}.toast.error{background:#9b2222}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.stack{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:650px){.app{display:block}.sidebar{padding:11px 12px;gap:9px}.sidebar .brand{font-size:17px}.sidebar .brand-icon{width:32px;height:32px}.nav-label,.sidebar-foot{display:none}.sidebar nav{flex-direction:row;overflow-x:auto}.nav{width:auto;white-space:nowrap;padding:9px 10px;font-size:12px}.nav span{display:inline}.main{padding:15px}.topbar{align-items:flex-start;flex-direction:column}.topbar h1{font-size:23px}.top-actions{width:100%}.top-actions button{flex:1}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:26px}.stack{display:flex}.panel{padding:14px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.hero{padding:17px}.hero-emoji{font-size:29px}.customer-row{align-items:flex-start;flex-wrap:wrap}.row-actions{width:100%;padding-left:47px;justify-content:flex-start}.integration-row{flex-direction:column;gap:5px}}
