:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e5e7eb;background:#0b1020;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh}button,input{font:inherit}button{cursor:pointer}.auth-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 85% 15%,#314584,transparent 30%),radial-gradient(circle at 10% 90%,#164e63,transparent 32%),#0b1020;padding:24px}.auth-card{width:100%;max-width:410px;background:#12192fe0;border:1px solid #273456;border-radius:24px;padding:40px;box-shadow:0 25px 80px #020617a8;text-align:center}.brand-mark{height:48px;width:48px;display:grid;place-items:center;margin:0 auto 14px;border-radius:16px;color:#fff;font-weight:900;font-size:25px;background:linear-gradient(135deg,#7c3aed,#2563eb)}.auth-card h1{margin:0;font-size:28px}.auth-card>p{color:#94a3b8;margin:8px 0 28px}.auth-card form{text-align:left;display:grid;gap:15px}label{display:grid;gap:7px;color:#cbd5e1;font-size:13px;font-weight:650}input{width:100%;background:#0b1124;border:1px solid #334155;border-radius:10px;padding:11px 12px;color:#f8fafc;outline:none}input:focus{border-color:#7c3aed;box-shadow:0 0 0 3px #7c3aed32}.primary{border:0;border-radius:10px;padding:11px 15px;font-weight:750;color:#fff;background:#6d3dea}.primary:hover{background:#7c4dff}.primary:disabled{opacity:.65;cursor:wait}.link-button{color:#b9a6ff;background:transparent;border:0;margin-top:20px}.error{background:#7f1d1d;color:#fecaca;border-radius:8px;padding:9px;margin:0;font-size:13px}.app-shell{height:100vh;height:100dvh;display:grid;grid-template-columns:285px minmax(0,1fr);background:#11182a;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:#101629;border-right:1px solid #27324d;min-height:0}.sidebar-profile{height:84px;display:flex;align-items:center;gap:11px;padding:16px;border-bottom:1px solid #27324d}.sidebar-profile>div{display:grid;gap:3px;min-width:0}.sidebar-profile strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile span,.conversation small,.chat-header span{color:#8d9bb3;font-size:12px}.sidebar-profile button{margin-left:auto;border:0;background:transparent;color:#a9b6cf;font-size:20px}.avatar{flex:0 0 auto;position:relative;display:inline-grid;place-items:center;width:37px;height:37px;border-radius:50%;color:#e8e4ff;font-weight:700;font-size:12px;background:linear-gradient(135deg,#285886,#6d3dea)}.avatar i{position:absolute;width:10px;height:10px;right:-1px;bottom:-1px;background:#4b5563;border:2px solid #101629;border-radius:50%}.avatar i.online{background:#22c55e}.avatar-large{width:43px;height:43px}.side-heading{display:flex;justify-content:space-between;padding:20px 16px 8px;color:#8d9bb3;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.side-heading button{color:#c4b5fd;background:transparent;border:0;font-size:21px;line-height:13px}.conversation-list{overflow-y:auto}.conversation{display:flex;gap:11px;align-items:center;border:0;background:transparent;color:#f1f5f9;width:100%;padding:9px 16px;text-align:left}.conversation:hover,.conversation.selected{background:#202947}.conversation>span{display:grid;min-width:0;gap:3px}.conversation strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation .unread{margin-left:auto;min-width:19px;padding:2px 5px;border-radius:10px;text-align:center;color:#fff;background:#7044ec;font-size:11px}.groups{padding-bottom:12px}.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#151c30}.chat-header{display:flex;align-items:center;gap:12px;padding:15px 24px;border-bottom:1px solid #29334b;background:#161e33}.chat-header h2{margin:0 0 3px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-title{min-width:0}.chat-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-back{display:none;border:0;background:transparent;color:#e5e7eb;font-size:33px;line-height:1}.call-actions{display:flex;margin-left:auto;gap:8px}.call-actions button{flex:0 0 auto;border:1px solid #35415d;background:#202a45;color:#c4b5fd;width:34px;height:34px;border-radius:10px;font-size:17px}.messages{flex:1;padding:22px clamp(15px,4vw,55px);overflow-y:auto;display:flex;flex-direction:column;gap:9px;background-image:radial-gradient(#ffffff07 1px,transparent 1px);background-size:23px 23px}.message{align-self:flex-start;min-width:75px;max-width:min(78%,640px);background:#242e49;padding:9px 12px 6px;border-radius:5px 14px 14px;box-shadow:0 2px 7px #03071220}.message.mine{align-self:flex-end;border-radius:14px 5px 14px 14px;background:#6140cb}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 4px;font-size:14px;line-height:1.4}.message>small{display:block;color:#c4b5fd;font-size:11px;margin-bottom:5px}.message footer{color:#b9c4d8;text-align:right;font-size:10px}.message footer span{color:#cbd5e1;margin-left:4px}.message footer span.read{color:#60d8ff}.message-image{max-height:270px;max-width:100%;display:block;margin:3px 0 6px;border-radius:8px}.message-video{display:block;max-width:100%;max-height:280px;margin:4px 0 6px;border-radius:8px}.message audio{display:block;max-width:100%;margin:3px 0 6px}.file-link{color:#fff;display:inline-block;margin:4px 0 6px;text-decoration:none}.empty-state{margin:auto;color:#7f8ba4}.composer{display:flex;align-items:center;gap:7px;padding:13px clamp(14px,4vw,35px);background:#161e33;border-top:1px solid #29334b}.composer input{flex:1 1 auto;min-width:0;border-radius:22px;border:1px solid #34415d;background:#222b44;padding:11px 15px}.composer>button,.file-picker{flex:0 0 auto;border:0;background:transparent;color:#aeb9ce;display:grid;place-items:center;width:31px;height:31px;font-size:20px;padding:0}.file-picker input{display:none}.composer button.recording{color:#ff5d70;animation:pulse 1s infinite}.composer button.send{background:#7044ec;width:38px;height:38px;border-radius:50%;color:#fff;font-size:16px}.welcome{margin:auto;text-align:center;color:#9ba9c2}.welcome .brand-mark{width:70px;height:70px;font-size:36px;border-radius:22px}.welcome h1{color:#e7eaf0;margin-bottom:5px}.voice-note{--voice-accent: #63e6a6;display:flex;align-items:center;gap:10px;width:min(310px,62vw);min-width:220px;padding:4px 2px 3px}.voice-note audio{display:none}.voice-play{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;padding:0 0 0 2px;border:0;border-radius:50%;color:#12392b;background:var(--voice-accent);box-shadow:0 3px 10px #061b1438}.voice-play:hover{filter:brightness(1.08)}.voice-note-body{min-width:0;flex:1}.voice-waveform{position:relative;height:32px;display:flex;align-items:center;gap:2px;overflow:hidden}.voice-waveform i{flex:1 1 2px;min-width:2px;max-width:3px;border-radius:3px;background:#9eabc0a6;transition:background .12s ease}.voice-waveform i.played{background:var(--voice-accent)}.voice-seek{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.voice-meta{display:flex;align-items:center;gap:4px;min-height:16px;color:#c2ccdc;font-size:10px}.voice-meta svg{color:var(--voice-accent)}.voice-meta span:last-child{margin-left:auto;opacity:.75}.message.mine .voice-note{--voice-accent: #bff6dc}.composer button.voice-record{width:38px;height:38px;border-radius:50%;color:#b5c0d3;transition:color .15s ease,background .15s ease,transform .15s ease}.composer button.voice-record:hover{color:#fff;background:#2b3652}.composer button.voice-record.recording{color:#fff;background:#df4057;animation:recordPulse 1.25s ease-in-out infinite}.record-stop{width:12px;height:12px;border-radius:3px;background:currentColor}.toast{position:fixed;right:22px;bottom:22px;max-width:360px;background:#7f1d1d;color:#fee2e2;padding:12px 16px;border-radius:10px;box-shadow:0 10px 30px #0008;cursor:pointer;z-index:10}.incoming-call{position:fixed;z-index:12;right:22px;top:22px;min-width:285px;background:#1d2741;border:1px solid #485779;padding:18px;border-radius:15px;box-shadow:0 18px 55px #000b;display:grid;gap:8px}.incoming-call span{font-size:13px;color:#aeb9ce}.incoming-call div{display:flex;justify-content:flex-end;gap:9px}.decline,.end-call{border:0;color:#fff;background:#c0344a;border-radius:9px;padding:9px 14px}.call-overlay{position:fixed;z-index:11;inset:auto 20px 20px auto;width:min(660px,calc(100vw - 40px));background:#0d1425;border:1px solid #33415e;padding:15px;border-radius:16px;box-shadow:0 20px 70px #000b}.call-overlay>div:first-child{display:flex;flex-direction:column;gap:3px}.call-overlay>div:first-child span{color:#99a8c2;font-size:12px}.call-videos{min-height:90px;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px;margin:12px 0}.video-tile{position:relative;aspect-ratio:16 / 9;overflow:hidden;border-radius:9px;background:#1f2a44}.video-tile video{width:100%;height:100%;object-fit:cover}.video-tile.audio-only{background:radial-gradient(circle at center,#6242c8 0,#6242c8 18%,#253250 19%,#253250 42%,#151e34 43%)}.video-tile.audio-only video{position:absolute;width:1px;height:1px;opacity:.01}.video-tile span{position:absolute;left:7px;bottom:6px;padding:3px 6px;border-radius:4px;background:#0008;font-size:11px}.call-waiting{align-self:center;justify-self:center;color:#a9b7cf}.call-controls{display:flex;justify-content:flex-end;gap:8px}.call-controls button{border:1px solid #44516c;color:#fff;background:#27324d;border-radius:9px;padding:9px 14px}.call-controls button.control-off{background:#8b3043;border-color:#b9485d}.call-controls .end-call{border:0;background:#c0344a}.water-nav{margin-top:0}.water-nav-icon{display:grid!important;place-items:center;width:37px;height:37px;border-radius:50%;color:#95f4d1;background:#176453;font-size:25px;line-height:1}.water-dashboard{display:flex;flex-direction:column;min-height:0;height:100%;background:#111a2b;overflow-y:auto}.water-dashboard-header{display:flex;align-items:center;gap:16px;padding:22px clamp(20px,4vw,52px);border-bottom:1px solid #293850;background:#151f34}.water-dashboard-header>div{min-width:0}.water-eyebrow{margin:0 0 5px;color:#79e6c1;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.water-dashboard h1,.water-dashboard h2{margin:0;color:#f5f8ff}.water-dashboard h1{font-size:clamp(20px,3vw,27px)}.water-dashboard-header span{display:block;margin-top:5px;color:#9caec9;font-size:13px}.water-refresh{margin-left:auto;border:1px solid #456275;border-radius:9px;padding:9px 13px;color:#d9fff3;background:#173d42;font-weight:700}.water-refresh:hover{background:#1d5057}.water-dashboard-content{width:min(1180px,100%);margin:0 auto;padding:24px clamp(16px,4vw,48px) 38px}.water-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;color:#a9b8cf;font-size:13px}.water-toolbar>span{font-weight:700}.water-toolbar>div{display:flex;gap:6px}.water-toolbar button{border:1px solid #40506b;border-radius:8px;padding:7px 10px;color:#afc0d9;background:#1a263d;font-size:12px}.water-toolbar button.active{border-color:#47cba5;color:#d9fff3;background:#176453}.water-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.water-summary-grid article,.water-chart-card{border:1px solid #2d3c57;border-radius:14px;background:#172238;box-shadow:0 12px 30px #0207161f}.water-summary-grid article{display:grid;align-content:start;gap:7px;min-height:128px;padding:17px}.water-summary-grid span,.water-summary-grid small{color:#9aaac2;font-size:12px;line-height:1.35}.water-summary-grid strong{color:#f4f8ff;font-size:19px;line-height:1.2}.water-summary-grid .water-refill-card strong{font-size:14px;color:#9ff3d8}.water-chart-card{margin-top:18px;padding:20px}.water-chart-card>header{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:18px}.water-chart-card h2{font-size:17px}.water-chart-card p{margin:5px 0 0;color:#9aaac2;font-size:12px}.water-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:11px;color:#b6c4d8;font-size:11px}.water-legend span{display:inline-flex;align-items:center;gap:5px}.water-legend i{width:17px;border-top:3px solid;border-radius:2px}.water-legend i.tank{border-color:#60e3ba}.water-legend i.trigger{border-color:#ffb657;border-top-style:dashed}.water-legend i.target{border-color:#9c8aff;border-top-style:dashed}.water-chart-wrap{height:min(41vh,340px);min-height:225px;border-radius:10px;overflow:hidden;background:linear-gradient(180deg,#0d1729,#121d30)}.water-chart{width:100%;height:100%;touch-action:pan-y;cursor:crosshair}.water-grid-line{stroke:#52627c;stroke-opacity:.34;stroke-width:1;vector-effect:non-scaling-stroke}.water-target-line,.water-trigger-line,.water-tank-line,.water-cursor-line{fill:none;vector-effect:non-scaling-stroke}.water-target-line{stroke:#9c8aff;stroke-width:1.5;stroke-dasharray:6 5}.water-trigger-line{stroke:#ffb657;stroke-width:1.5;stroke-dasharray:5 5}.water-tank-line{stroke:#60e3ba;stroke-width:3;filter:drop-shadow(0 0 5px #60e3ba77)}.water-cursor-line{stroke:#b9c7dc;stroke-opacity:.38;stroke-width:1}.water-cursor-dot{fill:#60e3ba;stroke:#e4fff6;stroke-width:2;vector-effect:non-scaling-stroke}.water-axis-label{fill:#a4b2c7;font-size:17px}.water-point-detail{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px;padding:14px 2px 0}.water-point-detail>div{display:grid;gap:4px}.water-point-detail strong{font-size:14px}.water-point-detail>div span{color:#79e6c1;font-size:12px}.water-point-detail dl{display:flex;gap:18px;margin:0}.water-point-detail dl div{display:grid;gap:3px}.water-point-detail dt{color:#9aaac2;font-size:11px}.water-point-detail dd{margin:0;color:#e7eefc;font-size:13px;font-weight:700}.water-empty{display:grid;place-items:center;min-height:230px;border:1px dashed #42516c;border-radius:14px;color:#a9b8cf;text-align:center}.water-error{display:block;min-height:0;padding:24px;border-style:solid;border-color:#8b4653;color:#ffd4d9;background:#4a1825;text-align:left}.water-error p{margin:7px 0 0;color:#f0b8c1;font-size:13px}.water-setup-form{display:grid;gap:14px;max-width:660px;margin-top:20px;padding:18px;border:1px solid #a15765;border-radius:11px;background:#301725}.water-setup-form h2{font-size:16px}.water-setup-form p{margin:-6px 0 0}.water-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.water-input-grid label{color:#f9dfe4}.water-input-grid input{border-color:#81505c;background:#24131e}.water-setup-form .primary{justify-self:start}.water-setup-error{padding:9px;border-radius:7px;background:#721d32;color:#ffe0e5!important}.water-tank-selector{padding:3px;border:1px solid #40506b;border-radius:10px;background:#121e34}.water-tank-selector button{border-color:transparent}.water-tank-selector button.active{box-shadow:0 0 0 1px #47cba5}.water-summary-grid .water-level-card strong{color:#79e6c1;font-size:24px}.media-with-ai{display:grid;justify-items:start;gap:5px}.ai-media-action{border:1px solid #6676a2;border-radius:7px;padding:5px 8px;color:#ddd8ff;background:#283657;font-size:11px;font-weight:700}.ai-media-action:hover{background:#35466e}.ai-media-action:disabled,.call-actions button:disabled{opacity:.62;cursor:wait}.ai-modal-backdrop{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#020617b5}.ai-modal{width:min(620px,100%);max-height:min(720px,calc(100dvh - 40px));overflow:auto;border:1px solid #566789;border-radius:16px;background:#18233b;box-shadow:0 24px 70px #000b}.ai-modal header{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:18px 20px 14px;border-bottom:1px solid #33415f}.ai-modal header span{display:block;margin-bottom:3px;color:#b9a9ff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ai-modal h2{margin:0;color:#f6f7ff;font-size:18px}.ai-modal header button{width:30px;height:30px;border:0;border-radius:8px;color:#d1d9ea;background:#2d3a59;font-size:22px;line-height:1}.ai-result-meta{margin:15px 20px 0;color:#9eafcc;font-size:12px}.ai-result-text{margin:14px 20px 21px;color:#edf2ff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55}@keyframes pulse{50%{transform:scale(1.2)}}@keyframes recordPulse{50%{box-shadow:0 0 0 7px #df40572a;transform:scale(.95)}}@media (max-width: 720px){.auth-shell{align-items:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))}.auth-card{width:calc(100vw - 32px);min-width:0;padding:28px 21px;border-radius:19px}.auth-card h1{font-size:25px}.app-shell,.app-shell.has-chat{display:block;position:relative}.sidebar,.chat-panel{position:absolute;top:0;right:0;bottom:0;left:0;width:100%}.sidebar{border-right:0;padding-top:env(safe-area-inset-top)}.chat-panel,.app-shell.has-chat .sidebar{display:none}.app-shell.has-chat .chat-panel{display:flex}.sidebar-profile{height:76px;padding:13px 17px}.sidebar-profile .avatar{width:42px;height:42px}.side-heading{padding:20px 18px 8px}.side-heading button{width:36px;height:28px}.conversation{min-height:62px;padding:10px 18px}.conversation .avatar{width:43px;height:43px}.conversation strong{font-size:15px}.chat-header{min-height:68px;gap:7px;padding:max(9px,env(safe-area-inset-top)) 10px 9px}.mobile-back{display:grid;flex:0 0 32px;width:32px;height:40px;place-items:center;padding:0}.chat-header>.avatar{display:none}.chat-title{flex:1 1 auto}.chat-header h2{font-size:15px}.call-actions{flex:0 0 auto;gap:4px}.call-actions button{width:35px;height:35px;padding:0}.messages{padding:13px 10px;gap:7px;overscroll-behavior:contain}.message{max-width:90%;padding:9px 11px 6px}.message-image,.message-video{max-height:45vh}.voice-note{width:min(258px,calc(100vw - 92px));min-width:195px;gap:8px}.voice-play{flex-basis:37px;width:37px;height:37px}.voice-waveform{height:30px;gap:1.5px}.voice-waveform i{min-width:1.5px}.composer{gap:4px;padding:9px 8px max(9px,env(safe-area-inset-bottom))}.composer>button,.file-picker{width:32px;height:38px}.composer button.voice-record{width:40px;height:40px}.composer input{height:42px;padding:10px 13px}.composer button.send{width:40px;height:40px}.toast{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));max-width:none}.incoming-call{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));min-width:0}.call-overlay{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 16px);overflow-y:auto}.call-videos{grid-template-columns:1fr;max-height:65dvh;overflow-y:auto}.call-controls{justify-content:stretch}.call-controls button{flex:1;padding:10px 7px}.water-dashboard-header{gap:9px;padding:max(14px,env(safe-area-inset-top)) 15px 14px}.water-dashboard-header .mobile-back{display:grid}.water-dashboard-header h1{font-size:19px}.water-dashboard-header span{font-size:11px}.water-refresh{padding:8px 9px;font-size:12px}.water-dashboard-content{padding:17px 12px max(25px,env(safe-area-inset-bottom))}.water-toolbar{align-items:start;flex-direction:column;margin-bottom:15px}.water-toolbar button{padding:7px 9px}.water-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.water-summary-grid article{min-height:117px;padding:13px}.water-summary-grid strong{font-size:16px}.water-summary-grid .water-refill-card strong{font-size:12px}.water-chart-card{margin-top:13px;padding:14px}.water-chart-card>header{flex-direction:column;gap:11px;margin-bottom:14px}.water-legend{justify-content:flex-start}.water-chart-wrap{min-height:210px;height:34vh}.water-point-detail{align-items:start;flex-direction:column;gap:13px}.water-point-detail dl{width:100%;justify-content:space-between;gap:8px}.water-point-detail dd{font-size:12px}.water-input-grid{grid-template-columns:1fr}.water-setup-form{padding:15px}.water-setup-form .primary{width:100%}}@media (max-width: 360px){.call-actions button{width:32px;height:32px;font-size:15px}.chat-header{padding-left:6px;padding-right:6px}.message{max-width:94%}}
