:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#202823;background:#f5f0e8;font-synthesis:none;--green:#235a49;--line:#e5e4db;--muted:#70736e;--paper:#faf7f1}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:11px 17px;background:var(--paper);color:inherit}button:hover{background:#e9ede5}button:disabled{opacity:.5;cursor:wait}.primary{color:white;background:var(--green);border-color:var(--green)}.primary:hover{background:#174938}.danger{color:#a13528}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px}h2{font-size:24px}h3{font-size:18px}small,.muted{color:var(--muted)}input,select,textarea{width:100%;padding:12px 14px;border:1px solid #d7dacf;border-radius:12px;background:#fffdf9;color:inherit}textarea{resize:vertical;min-height:90px}label{display:grid;gap:7px;font-size:14px}form{display:grid;gap:18px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;accent-color:var(--green)}.checks{display:flex;gap:12px;flex-wrap:wrap}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:20px}.error{color:#aa3825;font-size:14px;white-space:pre-wrap}.login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 10% 30%,#dce4d4,transparent 55%),radial-gradient(ellipse at 90% 90%,#ebddc9,transparent 60%)}.login-card{width:min(420px,100%);padding:36px;background:#faf7f1e8;border:1px solid white;border-radius:28px;box-shadow:0 18px 65px #46554016}.brand{font-size:14px;letter-spacing:2px;text-transform:uppercase;color:var(--green);font-weight:700;margin-bottom:18px}.login-card h1{margin-bottom:10px}.login-card p{margin-bottom:30px;line-height:1.5}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{padding:30px 20px;border-right:1px solid var(--line);background:#f9f7f1;display:flex;flex-direction:column;gap:8px}.sidebar .brand{padding:0 12px;margin-bottom:30px}.sidebar button{border:0;text-align:left;background:transparent;display:flex;gap:12px}.sidebar button.active{background:#e2e9df;color:var(--green);font-weight:600}.sidebar footer{margin-top:auto;padding:24px 12px 0;font-size:13px;line-height:1.6}.sidebar .account{border-top:1px solid var(--line);padding-top:16px;margin-top:24px}.main{padding:36px 40px;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-head p{margin-top:8px;color:var(--muted)}.card{border:1px solid #ffffff;border-radius:20px;background:var(--paper);padding:24px;box-shadow:0 3px 18px #334d3810}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.stat{font-size:36px;font-weight:600;color:var(--green);margin:12px 0 3px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}table{border-collapse:collapse;min-width:620px;width:100%;background:var(--paper)}th,td{padding:16px 18px;text-align:left;border-bottom:1px solid var(--line);font-size:14px}th{font-weight:500;color:var(--muted)}tr:last-child td{border:0}.badge{display:inline-block;padding:4px 9px;font-size:12px;border-radius:20px;background:#e6ece1;color:var(--green)}.badge.off{background:#e8e5df;color:#777}.empty{padding:36px 20px;text-align:center;color:var(--muted);line-height:1.7}.chat-layout{display:grid;grid-template-columns:290px 1fr;border:1px solid white;border-radius:24px;overflow:hidden;height:calc(100dvh - 166px);min-height:480px;background:#f9f6ef}.chat-list{border-right:1px solid var(--line);overflow:auto;padding:12px}.chat-link{display:flex;gap:12px;width:100%;text-align:left;border:0;margin:4px 0;padding:15px 12px}.chat-link.selected{background:#e2e9df}.avatar{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#dfe6da;color:var(--green);font-weight:700}.chat-link .info{min-width:0;flex:1}.chat-link strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.preview{font-size:13px;margin-top:5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.messages{overflow:auto;flex:1;padding:24px;display:flex;flex-direction:column;gap:14px;background:radial-gradient(ellipse at 80% 85%,#e6e7d94a,transparent 60%)}.bubble{max-width:82%;align-self:flex-start;padding:14px 17px;background:#fffdf9;border:1px solid #f0ede5;border-radius:18px;box-shadow:0 2px 6px #313c2e06;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:var(--green);color:white;border-color:var(--green)}.bubble .sender{font-size:12px;color:var(--green);margin-bottom:6px}.bubble .text{white-space:pre-wrap;line-height:1.5}.bubble time{display:block;text-align:right;font-size:11px;margin-top:6px;opacity:.65}.composer{display:flex;gap:12px;align-items:flex-end;padding:16px;border-top:1px solid var(--line)}.composer textarea{min-height:48px;max-height:150px;flex:1;resize:vertical}.composer button{height:48px}.task-grid{display:grid;gap:16px}.task-card{display:flex;gap:20px;justify-content:space-between;align-items:flex-start}.task-card p{margin:9px 0;line-height:1.5;white-space:pre-wrap}.task-card .actions{display:flex;gap:8px;flex-shrink:0}.note{font-size:14px;line-height:1.6;color:var(--muted)}.pre{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}dialog{border:1px solid white;border-radius:24px;background:var(--paper);padding:28px;width:min(620px,calc(100% - 32px));max-height:90dvh;color:inherit;box-shadow:0 30px 90px #192d3340}dialog::backdrop{background:#15251c65;backdrop-filter:blur(4px)}dialog h2{margin-bottom:22px}dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:90vw;background:#1c4438;color:white;border-radius:14px;padding:14px 22px;box-shadow:0 8px 25px #0002;display:none;z-index:10}#toast.visible{display:block}.connection{font-size:12px;color:#996323}.search{max-width:300px}.footnote{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.7}
@media(max-width:900px){.shell{grid-template-columns:180px 1fr}.sidebar{padding:24px 10px}.main{padding:24px 18px}.chat-layout{grid-template-columns:220px 1fr}.task-card{flex-direction:column}.page-head{align-items:flex-start}}
@media(max-width:640px){.shell{display:block}.sidebar{padding:12px;flex-direction:row;overflow:auto;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line)}.sidebar .brand,.sidebar footer,.sidebar .account{display:none}.sidebar button{white-space:nowrap;padding:9px 12px}.main{padding:24px 14px}.page-head{flex-wrap:wrap}.page-head h1{font-size:28px}.chat-layout{display:flex;flex-direction:column;height:calc(100dvh - 205px)}.chat-list{display:flex;flex-shrink:0;max-height:100px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line)}.chat-link{min-width:180px}.chat-link .avatar{display:none}.conversation{flex:1}.chat-head{padding:12px 16px}.messages{padding:16px}.bubble{max-width:92%}.task-card .actions{flex-wrap:wrap}dialog{padding:22px}.card{padding:20px}}
