@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0}:root{--color-primary: #2563eb;--color-primary-hover: #1d4ed8;--color-primary-light: #eff6ff;--color-primary-mid: #bfdbfe;--color-bg: #eef2f7;--color-surface: #ffffff;--color-surface-2: #f8fafc;--color-border: #e2e8f0;--color-border-strong: #cbd5e1;--color-text-primary: #0f172a;--color-text-secondary: #64748b;--color-text-muted: #94a3b8;--color-success: #16a34a;--color-warning: #d97706;--color-error: #dc2626;--color-warning-bg: #fef3c7;--color-temp: #ef4444;--color-humidity: #3b82f6;--color-bright: #f59e0b;--color-pressure: #8b5cf6;--color-solar: #f97316;--color-battery: #22c55e;--color-output: #06b6d4;--color-camera: #6366f1;--font-family: "Inter", system-ui, sans-serif;--font-size-display: 2rem;--font-size-h1: 1.5rem;--font-size-h2: 1.125rem;--font-size-h3: .9375rem;--font-size-label: .6875rem;--font-size-value: 1.375rem;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-heading: 600;--font-weight-bold: 700;--font-weight-black: 800;--space-xs: 4px;--space-s: 8px;--space-m: 16px;--space-l: 24px;--space-xl: 32px;--shadow-xs: 0 1px 2px rgba(15,23,42,.06);--shadow-card: 0 1px 3px rgba(15,23,42,.08), 0 4px 12px rgba(15,23,42,.06);--shadow-md: 0 4px 16px rgba(15,23,42,.1), 0 1px 4px rgba(15,23,42,.06);--shadow-lg: 0 8px 32px rgba(15,23,42,.14), 0 2px 8px rgba(15,23,42,.08);--shadow-xl: 0 20px 60px rgba(15,23,42,.2), 0 4px 16px rgba(15,23,42,.1);--radius-s: 6px;--radius-m: 12px;--radius-l: 16px;--radius-xl: 20px;--gradient-bg: linear-gradient(160deg, #eef2f7 0%, #e8edf5 100%);--gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);--gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);--gradient-active: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);--bp-mobile: 767;--bp-desktop: 1024}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[data-theme=dark]{--color-primary: #3b82f6;--color-primary-hover: #2563eb;--color-primary-light: #1e3a5f;--color-primary-mid: #1d4ed8;--color-bg: #0f172a;--color-surface: #1e293b;--color-surface-2: #162032;--color-border: #334155;--color-border-strong: #475569;--color-text-primary: #f1f5f9;--color-text-secondary: #94a3b8;--color-text-muted: #64748b;--color-success: #22c55e;--color-warning: #f59e0b;--color-error: #f87171;--color-warning-bg: #451a03;--shadow-xs: 0 1px 2px rgba(0,0,0,.3);--shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);--shadow-md: 0 4px 16px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);--shadow-lg: 0 8px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35);--shadow-xl: 0 20px 60px rgba(0,0,0,.65), 0 4px 16px rgba(0,0,0,.4);--gradient-bg: linear-gradient(160deg, #0f172a 0%, #0d1b2e 100%);--gradient-card: linear-gradient(145deg, #1e293b 0%, #162032 100%);--gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);--gradient-active: linear-gradient(145deg, #1e3a5f 0%, #1e3a6e 100%)}.appshell{display:flex;flex-direction:column;min-height:100vh;background-color:var(--color-bg);font-family:var(--font-family)}.appshell__topbar{display:flex;align-items:center;gap:var(--space-m);height:72px;padding:0 var(--space-l);background:linear-gradient(135deg,#0f172a,#1e3a5f);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 2px 12px #0f172a40;position:sticky;top:0;z-index:100}.appshell__title{font-size:1.5rem;font-weight:var(--font-weight-black, 800);color:#fff;letter-spacing:-.02em;flex-shrink:0}.appshell__quote{margin:0;padding:0 0 0 var(--space-m);border-left:2px solid rgba(255,255,255,.25);font-size:.9rem;font-style:italic;color:#fff9;font-weight:var(--font-weight-normal, 400);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;display:flex;align-items:center;gap:var(--space-s)}.appshell__quote-author{font-style:normal;font-weight:var(--font-weight-medium, 500);color:#ffffff73;font-size:.82rem;flex-shrink:0}.appshell__notifications{position:sticky;top:72px;z-index:90}.appshell__content{flex:1;min-width:0}.appshell__theme-toggle{flex-shrink:0;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.1rem;line-height:1;transition:background .15s,transform .15s}.appshell__theme-toggle:hover{background:#fff3;transform:scale(1.1)}.chat-fab{position:fixed;bottom:24px;right:24px;z-index:200;width:56px;height:56px;border-radius:50%;border:none;background:var(--gradient-primary);color:#fff;font-size:1.5rem;cursor:pointer;box-shadow:var(--shadow-lg);display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s}.chat-fab:hover{transform:scale(1.08);box-shadow:var(--shadow-xl)}.chat-fab--active{background:var(--color-surface);color:var(--color-text-primary);box-shadow:var(--shadow-md)}.chat-fab__icon{line-height:1;font-size:1.4rem}.chat-fab__badge{position:absolute;top:6px;right:6px;width:12px;height:12px;border-radius:50%;background:var(--color-error);border:2px solid var(--color-bg)}.chat-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:249}.chat-panel{position:fixed;bottom:90px;right:24px;z-index:250;width:380px;height:520px;max-height:calc(100vh - 120px);max-width:calc(100vw - 48px);display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-xl);transform:scale(.9) translateY(20px);opacity:0;pointer-events:none;transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .25s ease;overflow:hidden;font-family:var(--font-family);color:var(--color-text-primary)}.chat-panel--open{transform:scale(1) translateY(0);opacity:1;pointer-events:auto}.chat-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--space-m);padding:var(--space-m) var(--space-l);background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;flex-shrink:0}.chat-panel__header-left{display:flex;align-items:center;gap:var(--space-s)}.chat-panel__icon{font-size:1.6rem}.chat-panel__title{margin:0;font-size:1rem;font-weight:var(--font-weight-bold);line-height:1.2}.chat-panel__subtitle{font-size:.7rem;opacity:.6;letter-spacing:.02em}.chat-panel__header-actions{display:flex;gap:var(--space-xs)}.chat-panel__btn-icon{background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:var(--radius-s);color:#fff;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.85rem;transition:background .15s}.chat-panel__btn-icon:hover{background:#fff3}.chat-panel__messages{flex:1;overflow-y:auto;padding:var(--space-m);display:flex;flex-direction:column;gap:var(--space-s)}.chat-panel__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--space-xl) var(--space-m);flex:1}.chat-panel__empty-icon{font-size:2.5rem;margin-bottom:var(--space-m)}.chat-panel__empty-text{color:var(--color-text-secondary);font-size:.9rem;line-height:1.5;max-width:280px;margin:0 0 var(--space-l)}.chat-panel__suggestions{display:flex;flex-wrap:wrap;gap:var(--space-s);justify-content:center}.chat-panel__suggestion{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:20px;padding:6px 14px;font-size:.8rem;color:var(--color-text-primary);cursor:pointer;transition:background .15s,border-color .15s;font-family:var(--font-family)}.chat-panel__suggestion:hover{background:var(--color-primary-light);border-color:var(--color-primary);color:var(--color-primary)}.chat-bubble{display:flex;gap:var(--space-s);max-width:85%;animation:chatSlideUp .2s ease}@keyframes chatSlideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.chat-bubble--user{align-self:flex-end;flex-direction:row-reverse}.chat-bubble--assistant{align-self:flex-start}.chat-bubble__avatar{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--color-primary-light);display:flex;align-items:center;justify-content:center;font-size:.9rem;margin-top:2px}.chat-bubble__body{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-m);padding:var(--space-s) var(--space-m)}.chat-bubble--user .chat-bubble__body{background:var(--gradient-primary);border-color:transparent;color:#fff}.chat-bubble--error .chat-bubble__body{background:#fef2f2;border-color:var(--color-error);color:var(--color-error)}[data-theme=dark] .chat-bubble--error .chat-bubble__body{background:#dc262626}.chat-bubble__text{margin:0;font-size:.875rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.chat-bubble__code{background:#0000000f;border-radius:3px;padding:1px 4px;font-family:SF Mono,Fira Code,monospace;font-size:.8rem}[data-theme=dark] .chat-bubble__code{background:#ffffff1a}.chat-bubble__time{display:block;font-size:.65rem;opacity:.5;margin-top:4px;text-align:right}.chat-bubble--user .chat-bubble__time{color:#ffffffb3}.chat-bubble__cursor{display:inline-block;width:6px;height:14px;background:var(--color-primary);margin-left:2px;vertical-align:text-bottom;animation:chatBlink .8s step-end infinite}@keyframes chatBlink{50%{opacity:0}}.chat-panel__input-bar{display:flex;align-items:flex-end;gap:var(--space-s);padding:var(--space-m);border-top:1px solid var(--color-border);background:var(--color-surface);flex-shrink:0}.chat-panel__input{flex:1;resize:none;border:1px solid var(--color-border);border-radius:var(--radius-m);padding:10px 14px;font-size:.875rem;font-family:var(--font-family);background:var(--color-surface-2);color:var(--color-text-primary);line-height:1.4;max-height:120px;overflow-y:auto;transition:border-color .15s}.chat-panel__input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #2563eb26}.chat-panel__input::placeholder{color:var(--color-text-muted)}.chat-panel__send{flex-shrink:0;width:40px;height:40px;border-radius:50%;border:none;background:var(--gradient-primary);color:#fff;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}.chat-panel__send:hover:not(:disabled){transform:scale(1.05)}.chat-panel__send:disabled{opacity:.4;cursor:not-allowed}.chat-panel__spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:chatSpin .6s linear infinite}@keyframes chatSpin{to{transform:rotate(360deg)}}@media (max-width: 480px){.chat-panel{width:calc(100vw - 32px);right:16px;bottom:80px;height:460px}.chat-fab{bottom:16px;right:16px;width:48px;height:48px}}
