:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:16px;color:#132a3b;background:#f4f7fb;--green:#008e70;--line:#e0e8ef;--muted:#738394;--navy:#122d40}*{box-sizing:border-box}body{margin:0}a{color:var(--green)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:.7rem 1.1rem;background:var(--green);color:#fff}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#ecf4f3;color:#00664f}button.danger{background:#fff0f0;color:#a92338}button.small{padding:.4rem .65rem;font-size:.86rem}input,select,textarea{border:1px solid #d4dfe6;border-radius:8px;padding:.65rem .8rem;background:#fff;color:#132a3b;min-width:0;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #64c9ae;outline-offset:1px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green)}textarea{resize:vertical;min-height:90px}label{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem}.check{display:flex;flex-direction:row;align-items:center;gap:.7rem}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem;line-height:1.5}h2{font-size:1.15rem}h3{font-size:1rem}p{line-height:1.8}small,.muted{color:var(--muted);font-size:.87rem;line-height:1.7}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-left:1px solid var(--line);padding:1.6rem 1rem;overflow:auto}.brand{font-size:2rem;color:#132a3b;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:.5rem;margin-bottom:.15rem}.logo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--green);color:#fff;font-size:1.5rem}.sidebar>p{font-size:.8rem;color:var(--muted);margin-bottom:1.4rem}.sidebar nav{display:flex;flex-direction:column;gap:.3rem}.nav{display:flex;gap:.75rem;width:100%;text-align:right;border-radius:8px;background:transparent;color:#506476;padding:.75rem .8rem;font-size:.9rem;align-items:center}.nav.active{background:#e4f4ee;color:#007b5f;font-weight:700}.nav svg{width:18px;height:18px;flex-shrink:0}.main{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.topbar span{font-size:.9rem}.topbar .user{display:flex;align-items:center;gap:.8rem}.avatar{width:38px;height:38px;background:#e6f1ef;color:#00745c;display:grid;place-items:center;border-radius:50%}.content{max-width:1500px;padding:2rem;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}.heading h1{margin-bottom:.2rem}.heading p{margin-bottom:0}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.35rem;box-shadow:0 4px 18px #15395203;min-width:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.stat .value{font-size:2rem;font-weight:700;margin:.6rem 0}.stat .label{color:var(--muted);font-size:.9rem}.service .top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.badge{display:inline-block;background:#e5f6ed;color:#007952;border-radius:999px;padding:.25rem .6rem;font-size:.8rem;white-space:nowrap}.badge.warning{background:#fff3dc;color:#936000}.badge.gray{background:#edf1f5;color:#687888}.badge.red{background:#ffeded;color:#9d2935}.meter{height:7px;background:#edf1f4;border-radius:8px;margin:1rem 0 .5rem;overflow:hidden}.meter i{display:block;height:100%;background:var(--green)}progress{height:8px;width:100%;accent-color:var(--green)}.service p{font-size:.85rem;color:var(--muted);margin-bottom:0}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form .wide{grid-column:1/-1}.form button[type=submit]{justify-self:start}.section{margin-bottom:1.3rem}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{padding:.85rem .7rem;text-align:right;border-bottom:1px solid #edf1f5;vertical-align:middle}th{color:var(--muted);font-size:.82rem;background:#f9fbfd;font-weight:500}td.actions{display:flex;gap:.4rem;flex-wrap:wrap}.empty{padding:2.5rem;text-align:center;color:var(--muted);line-height:1.8}.error{background:#fff1f1;color:#a32634;padding:1rem;border:1px solid #f3cbd1;border-radius:10px;margin-bottom:1rem}.notice{background:#eff7fd;border:1px solid #d1e5f6;border-radius:10px;padding:.85rem 1rem;font-size:.9rem;color:#285679;line-height:1.8;margin-bottom:1rem}.success{background:#e8f8ef;color:#087b55;padding:1rem;border-radius:9px}.code{background:#102e40;color:#d2f6ec;border-radius:10px;padding:1rem;direction:ltr;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem;line-height:1.7}.auth{max-width:460px;margin:7vh auto;padding:2rem}.auth .brand{justify-content:center;margin-bottom:1.5rem}.auth form{display:grid;gap:1rem}.auth h1{text-align:center;font-size:1.5rem}.auth .switch{display:block;margin:1rem auto;background:transparent;color:var(--green)}.qr{display:block;width:240px;height:240px;margin:1rem auto;border:1px solid var(--line);border-radius:12px}.connection{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.split{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem}.chat-list{padding:.5rem}.chat-item{width:100%;border-radius:8px;background:white;color:var(--navy);display:flex;justify-content:space-between;text-align:right;margin-bottom:.3rem;border:1px solid #edf1f5}.chat-item.selected{background:#e5f4ec;border-color:#94d9c3}.chat-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.chat-stream{height:380px;overflow:auto;padding:1rem 0;display:flex;flex-direction:column;gap:.8rem}.bubble{max-width:85%;padding:.8rem 1rem;border-radius:12px;background:#f0f3f7;align-self:flex-start;white-space:pre-wrap;line-height:1.8;font-size:.92rem}.bubble.out{background:#e4f4ed;align-self:flex-end}.bubble.ai{background:#eeeaff}.bubble small{display:block;text-align:left;margin-top:.4rem}.chat-input{display:flex;gap:.5rem}.chat-input textarea{min-height:65px}.stack{display:grid;gap:1rem}.checklist{max-height:220px;overflow:auto;display:grid;gap:.65rem;border:1px solid var(--line);padding:1rem;border-radius:9px}.ticket{border-bottom:1px solid var(--line);padding:1rem 0}.ticket:last-child{border:0}#toast{display:none;position:fixed;bottom:24px;left:24px;max-width:450px;z-index:20;background:#123647;color:#fff;border-radius:12px;padding:1rem 1.3rem;box-shadow:0 8px 40px #0002}.loading{text-align:center;padding:4rem}.mobile-nav{display:none}dialog{border:1px solid var(--line);border-radius:14px;padding:1.5rem;max-width:650px;width:90%;max-height:90vh}dialog::backdrop{background:#122d4055}dialog.details-dialog{max-width:min(980px,94vw);width:94vw}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:195px minmax(0,1fr)}.content{padding:1.25rem}.split{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:750px){.layout{display:block}.sidebar{position:relative;height:auto;padding:.75rem}.sidebar nav{flex-direction:row;overflow:auto}.nav{width:auto;white-space:nowrap}.sidebar>p{display:none}.brand{font-size:1.5rem}.sidebar .brand{margin-bottom:.8rem}.topbar{padding:.75rem 1rem;height:auto}.content{padding:1rem}.grid,.cards,.form,.split{grid-template-columns:1fr}.heading{align-items:flex-start;flex-direction:column}.stats{gap:.6rem}.stat .value{font-size:1.6rem}.card{padding:1rem}.chat-list{max-height:200px;overflow:auto}.chat-stream{height:320px}.form .wide{grid-column:auto}h1{font-size:1.5rem}}
