:root{
  --navy:#0c2342;--navy2:#153b68;--blue:#1769ff;--cyan:#12c9e8;--violet:#7658ff;
  --bg:#f5f7fb;--card:#fff;--text:#13233a;--muted:#6a7890;--line:#e3e9f2;
  --green:#0f9f67;--green-bg:#e9f8f1;--orange:#dc7b12;--orange-bg:#fff2df;--blue-bg:#eaf2ff;
  --shadow:0 7px 24px rgba(18,38,67,.07);--radius:16px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:270px 1fr 205px;align-items:center;padding:0 28px;position:sticky;top:0;z-index:30}.client-brand{display:flex;gap:14px;align-items:center}.client-logo{width:72px;height:54px;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:center;white-space:pre-line;text-align:center;font-weight:800;line-height:.95;color:#0675cc;background:#fff;font-size:15px}.client-name strong{display:block;font-size:16px}.client-name span{font-size:12px;color:var(--muted)}
.agent-tabs{height:100%;display:flex;align-items:flex-end;gap:8px;overflow-x:auto;padding:0 8px 12px}.agent-tab{border:1px solid var(--line);background:#fafbfd;padding:11px 15px;border-radius:11px;color:#29384d;white-space:nowrap;font-size:13px;transition:.2s}.agent-tab:hover{border-color:#b9cef8}.agent-tab.active{background:#fff;color:var(--blue);border-color:#c9dcff;box-shadow:0 3px 12px rgba(23,105,255,.09)}.top-right{display:flex;align-items:center;justify-content:flex-end;gap:14px}.iaemi-logo{width:92px;height:auto}.bell{width:35px;height:35px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;position:relative}.bell:after{content:"3";position:absolute;right:-3px;top:-6px;background:#e72f47;color:#fff;font-size:9px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center}.avatar{width:36px;height:36px;background:var(--blue-bg);color:var(--blue);border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;padding:22px 28px 28px;max-width:1600px;width:100%;margin:0 auto}.main{min-width:0}.page-title h1{font-size:25px;margin:0 0 5px}.page-title p{margin:0;color:var(--muted);font-size:14px}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.primary{border:0;background:linear-gradient(135deg,var(--blue),#0750d6);color:#fff;border-radius:10px;padding:12px 17px;font-weight:650;box-shadow:0 5px 14px rgba(23,105,255,.22)}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-height:112px}.metric .n{font-size:28px;font-weight:750;margin:4px 0}.metric .label{font-size:12px;color:var(--muted)}.metric .hint{font-size:11px;color:#78859a;margin-top:6px}.metric-icon{width:34px;height:34px;border-radius:9px;background:var(--blue-bg);color:var(--blue);display:grid;place-items:center;font-weight:800}
.home-grid,.work-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:17px}.card h3{font-size:14px;margin:0 0 14px}.quick-list{display:flex;flex-direction:column;gap:9px}.quick{border:0;background:#f7f9fc;padding:13px;border-radius:10px;text-align:left;color:var(--text);display:flex;align-items:center;gap:10px}.quick:hover{background:#eef4ff}.quick i{font-style:normal;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--blue-bg);color:var(--blue)}
.activity{display:flex;flex-direction:column}.activity-row,.data-row,.file-row{display:grid;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.activity-row:first-of-type,.data-row:first-of-type,.file-row:first-of-type{border-top:0}.activity-row{grid-template-columns:34px 1fr auto auto}.aicon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#f0f4fa;color:var(--navy)}.activity-row strong,.data-row strong,.file-row strong{display:block;font-size:12px}.sub{font-size:11px;color:var(--muted);margin-top:3px}.status{padding:5px 8px;border-radius:7px;font-size:10px;white-space:nowrap}.status.done{background:var(--green-bg);color:var(--green)}.status.wait{background:var(--orange-bg);color:var(--orange)}.status.run{background:var(--blue-bg);color:var(--blue)}
.help{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);height:calc(100vh - 138px);position:sticky;top:110px;display:flex;flex-direction:column;overflow:hidden}.help-head{padding:16px;border-bottom:1px solid var(--line)}.help-head strong{font-size:13px}.online{float:right;color:var(--green);font-size:10px}.help-body{padding:14px;overflow:auto;flex:1}.bubble{background:#f3f6fa;border-radius:13px 13px 13px 4px;padding:12px;font-size:12px;line-height:1.45;margin-bottom:12px}.bubble.me{background:var(--blue);color:#fff;border-radius:13px 13px 4px 13px;margin-left:30px}.suggestions{display:grid;gap:7px}.suggestions button{background:#fff;border:1px solid #bcd2fa;color:#1460dc;border-radius:7px;padding:8px;text-align:left;font-size:11px}.help-input{border-top:1px solid var(--line);padding:11px;display:flex;gap:7px}.help-input input{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px;outline:none}.help-input button{border:0;border-radius:8px;background:var(--blue);color:#fff;width:38px}
.agent-layout{display:grid;grid-template-columns:195px minmax(0,1fr);gap:18px}.agent-side{background:linear-gradient(180deg,#153961,#0d2949);color:#fff;border-radius:var(--radius);padding:16px 11px;min-height:650px;display:flex;flex-direction:column}.agent-title{padding:5px 9px 15px;border-bottom:1px solid rgba(255,255,255,.12)}.agent-title strong{display:block;font-size:14px}.agent-title small{font-size:10px;color:#c9d5e4;line-height:1.45}.agent-menu{padding-top:12px;display:flex;flex-direction:column;gap:4px}.agent-menu button{border:0;background:transparent;color:#d7e1ed;text-align:left;border-radius:8px;padding:10px 9px;font-size:11px}.agent-menu button.active,.agent-menu button:hover{background:#1769ff;color:#fff}.back{margin-top:auto;border:0;background:transparent;color:#fff;text-align:left;padding:10px;font-size:11px}.agent-main{min-width:0}.tabs{display:flex;gap:8px;margin-bottom:10px}.tab-chip{border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 10px;font-size:11px;color:var(--muted)}.tab-chip.active{color:var(--blue);border-color:var(--blue)}.data-row{grid-template-columns:1.2fr 2fr .7fr auto}.file-row{grid-template-columns:1fr auto}.download{color:var(--blue);font-size:15px}.empty-panel{padding:35px;text-align:center;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.toast{position:fixed;right:26px;bottom:24px;background:var(--navy);color:#fff;padding:13px 16px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.2);font-size:12px;z-index:100}.mobile-help{display:none}
@media(max-width:1050px){.content-grid{grid-template-columns:1fr}.help{display:none}.mobile-help{display:block;position:fixed;right:18px;bottom:18px;border:0;background:var(--blue);color:#fff;border-radius:50%;width:52px;height:52px;z-index:40}.topbar{grid-template-columns:220px 1fr 150px}.iaemi-logo{width:72px}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.topbar{height:auto;grid-template-columns:1fr auto;padding:10px 14px}.client-brand{grid-column:1}.top-right{grid-column:2}.agent-tabs{grid-column:1/-1;order:3;padding:10px 0 2px;align-items:center}.content-grid{padding:15px}.metrics{grid-template-columns:1fr 1fr}.home-grid,.work-grid{grid-template-columns:1fr}.agent-layout{grid-template-columns:1fr}.agent-side{min-height:auto}.agent-menu{display:grid;grid-template-columns:repeat(2,1fr)}.back{margin-top:8px}.data-row{grid-template-columns:1fr auto}.data-row .desc,.data-row .channel{display:none}.page-head{align-items:flex-start}.page-head .primary{padding:10px}.client-name{display:none}.iaemi-logo{display:none}}
