:root{--bg: #f6f8fb;--panel: #ffffff;--panel-soft: #f8fafc;--text: #0f172a;--muted: #64748b;--line: #e2e8f0;--primary: #14b8a6;--primary-strong: #0f9f91;--blue: #3b82f6;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--shadow: 0 16px 42px rgba(15, 23, 42, .08);color:var(--text);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{overflow-x:hidden;background:linear-gradient(180deg,#f7fafc,#eef7f8 44%,#f6f8fb)}button,input{font:inherit;letter-spacing:0}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,a{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100dvh;padding:calc(10px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));color:var(--text)}.mobile-tabs{position:sticky;top:calc(8px + env(safe-area-inset-top));z-index:20;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:min(100%,420px);min-height:42px;margin:0 auto 12px;padding:4px;border:1px solid rgba(226,232,240,.96);border-radius:999px;background:#ffffffeb;box-shadow:0 10px 26px #0f172a0f;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-tabs button{min-width:0;min-height:34px;padding:0 12px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:800;line-height:1;background:transparent;transition:transform .16s ease,background .16s ease,color .16s ease}.mobile-tabs button.active{color:#fff;background:var(--primary)}.product-layout{width:min(100%,1180px);margin:0 auto}.panel-slot{display:none}.panel-slot.active{display:block}.live-view,.ask-panel{min-width:0}.top-header,.ask-header,.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.top-header,.ask-header{align-items:center;margin-bottom:14px}.brand{color:var(--text);font-size:clamp(28px,9vw,40px);font-weight:900;line-height:1.02}.subtitle,.ask-header p{margin:4px 0 0;color:var(--muted);font-size:14px;font-weight:650;line-height:1.35}.ask-header h1{margin:0;color:var(--text);font-size:25px;font-weight:900;line-height:1.12;text-align:center}.status-pill,.query-pill,.glass-pill,.signal-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:850;line-height:1;white-space:nowrap}.status-pill{color:#334155;border:1px solid rgba(226,232,240,.92);background:#ffffffe0;box-shadow:0 8px 22px #0f172a0f}.status-running,.status-live{color:#047857;border-color:#10b98142;background:#ecfdf5}.status-preview_fallback{color:#b45309;border-color:#f59e0b4d;background:#fffbeb}.status-starting,.status-publishing{color:#1d4ed8;border-color:#3b82f642;background:#eff6ff}.status-paused{color:#b45309;border-color:#f59e0b4d;background:#fffbeb}.status-error,.status-failed{color:#b91c1c;border-color:#ef444447;background:#fef2f2}.live-dot{width:8px;height:8px;flex:0 0 auto;border-radius:999px;background:#94a3b8}.status-running .live-dot,.status-live .live-dot,.status-preview_fallback .live-dot,.query-pill.active .live-dot,.glass-pill .live-dot.pulse{background:var(--success)}.pulse{animation:livePulse 1.5s ease-in-out infinite}.video-hero{position:relative;overflow:hidden;width:100%;height:min(62dvh,640px);min-height:430px;border-radius:24px;background:linear-gradient(180deg,#0f172a0a,#14b8a614),#eaf1f5;box-shadow:0 20px 52px #0f172a21}.video-hero.demo-test-idle{background:#111827}.live-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;background:#111827}.live-video.demo-video{object-fit:contain}.demo-video-hidden{opacity:0}.rokid-preview-image{display:block}.rokid-preview-overlay{z-index:1;background:#111827}.rokid-live-video{z-index:0}.hero-overlay{z-index:3}.rokid-preview-pending{background:linear-gradient(135deg,#0f172aeb,#14b8a647),#111827}.rokid-rtmp-blackout{background:#000}.capture-canvas{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hero-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center;background:linear-gradient(180deg,#f8fafcbd,#eef7f8eb)}.hero-empty-mark{display:grid;place-items:center;width:76px;height:76px;margin-bottom:18px;border:1px solid rgba(20,184,166,.2);border-radius:22px;color:#0f766e;background:#ccfbf1;box-shadow:0 14px 30px #14b8a629}.hero-empty h1{max-width:300px;margin:0;color:var(--text);font-size:clamp(26px,8vw,34px);font-weight:900;line-height:1.15}.hero-empty p{margin:10px 0 0;color:var(--muted);font-size:15px;line-height:1.45}.hero-fallback-note{position:absolute;left:14px;right:14px;bottom:64px;z-index:2;padding:10px 12px;border:1px solid rgba(255,255,255,.24);border-radius:8px;color:#fff;font-size:13px;font-weight:800;line-height:1.35;background:#0f172a94;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.demo-clock-overlay{position:absolute;right:14px;bottom:14px;z-index:4;display:inline-flex;align-items:center;justify-content:center;min-height:34px;max-width:calc(100% - 28px);padding:0 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;font-size:13px;font-weight:900;line-height:1;white-space:nowrap;background:#0f172a9e;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hero-overlay{position:absolute;top:14px;right:14px;bottom:14px;left:14px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.hero-overlay-top,.hero-overlay-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.glass-pill,.signal-chip{color:#fff;border:1px solid rgba(255,255,255,.22);background:#0f172a85;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.signal-chip{min-width:0;max-width:50%}.signal-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis}.live-error,.inline-error{margin-top:12px;padding:12px 14px;border-radius:8px;color:#b91c1c;font-size:13px;line-height:1.4;background:#fef2f2}.primary-control{margin-top:16px}.main-action,.send-button,.icon-button,.advanced-toggle,.tools-anchor{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,opacity .15s ease}.main-action:active,.send-button:active,.icon-button:active,.advanced-toggle:active,.quick-chip:active,.tools-anchor:active{transform:scale(.98)}.main-action{width:100%;min-height:58px;padding:0 18px;border-radius:18px;color:#fff;font-size:17px;font-weight:900;background:linear-gradient(135deg,var(--primary),var(--blue));box-shadow:0 16px 34px #14b8a63d}.main-action.stop-action{background:linear-gradient(135deg,var(--danger),#f97316);box-shadow:0 16px 34px #ef444433}.button-spinner{width:17px;height:17px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .9s linear infinite}.secondary-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.icon-button,.tools-anchor{min-height:42px;padding:0 12px;border-radius:999px;color:#334155;font-size:13px;font-weight:850;line-height:1;text-decoration:none;background:#fff;border:1px solid var(--line)}.icon-button.secondary{background:#ffffffdb}.icon-button.text-button{min-height:34px;padding:0 10px;color:var(--muted);background:#f8fafc}.danger-text{color:#b91c1c}.ask-switch{color:#0f766e}.surface{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow)}.composer-card,.answer-card,.advanced-panel{margin-bottom:14px}.answer-card{overflow:hidden}.ask-header{min-height:42px}.ask-header>div{min-width:0;flex:1}.back-button,.tools-anchor{width:74px;flex:0 0 auto}.tools-anchor{width:42px;padding:0}.eyebrow{margin:0 0 5px;color:var(--primary-strong);font-size:12px;font-weight:900;line-height:1.1}.card-header h2{margin:0;color:var(--text);font-size:18px;font-weight:900;line-height:1.25}.query-pill{color:var(--muted);border:1px solid var(--line);background:var(--panel-soft)}.query-pill.active{color:#0f766e;border-color:#14b8a647;background:#ccfbf1}.ask-composer{display:flex;align-items:center;gap:8px;min-height:54px;padding:6px;border:1px solid var(--line);border-radius:18px;background:var(--panel-soft)}.ask-composer input{width:100%;min-width:0;height:42px;padding:0 10px;border:0;outline:0;color:var(--text);font-size:15px;background:transparent}.ask-composer input::placeholder{color:#94a3b8}.send-button{flex:0 0 auto;min-height:42px;padding:0 14px;border-radius:14px;color:#fff;font-size:14px;font-weight:900;background:var(--primary)}.quick-row{display:flex;gap:8px;margin-top:12px;padding-bottom:3px;overflow-x:auto;scrollbar-width:none}.quick-row::-webkit-scrollbar{display:none}.quick-chip{flex:0 0 auto;min-height:36px;max-width:220px;padding:0 14px;border-radius:999px;color:#334155;font-size:13px;font-weight:850;line-height:1.15;white-space:nowrap;background:#f1f5f9;border:1px solid var(--line);transition:transform .15s ease,background .15s ease}.first-frame-hint{margin:11px 2px 0;color:var(--muted);font-size:13px;line-height:1.45}.answer-body{min-width:0;min-height:112px;max-width:100%;margin-top:14px;overflow:hidden}.answer-body p{max-width:100%;margin:0;overflow-wrap:anywhere;color:var(--text);font-size:16px;line-height:1.66;white-space:pre-wrap;word-break:break-word}.provisional-label{display:inline-flex;align-items:center;gap:8px;min-height:26px;margin-bottom:9px;padding:0 9px;border-radius:999px;color:#0f766e;font-size:11px;font-weight:900;background:#ccfbf1}.answer-empty,.answer-empty-text{display:flex;align-items:center;gap:10px;color:var(--muted)!important}.typing-dots{display:inline-flex;gap:4px}.typing-dots i{width:6px;height:6px;border-radius:999px;background:var(--primary);animation:typingDot 1.2s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.16s}.typing-dots i:nth-child(3){animation-delay:.32s}.answer-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.answer-meta span{display:inline-flex;align-items:center;gap:5px;min-height:30px;max-width:100%;padding:0 10px;border-radius:999px;color:var(--muted);font-size:12px;font-weight:800;background:#f1f5f9}.evidence-section{margin:18px 0}.current-memory-action{display:grid;gap:8px;margin:0 0 14px}.current-memory-edit-button{justify-self:start;color:#0f766e;border-color:#14b8a647;background:#f0fdfa}.current-memory-notice,.current-memory-warning{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:8px;color:#166534;font-size:13px;line-height:1.4;background:#f0fdf4;border:1px solid #bbf7d0}.current-memory-notice .icon-button,.current-memory-warning .icon-button{min-height:32px;margin-left:auto}.current-memory-warning{color:#92400e;background:#fffbeb;border-color:#fde68a}.current-memory-error{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.current-memory-error small{color:#64748b;font-size:11px}.current-memory-dialog-overlay{z-index:1100}.current-memory-dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(920px,calc(100vw - 40px));max-height:min(92dvh,960px);min-height:min(520px,calc(100dvh - 40px));overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:12px;background:#fff;box-shadow:0 30px 90px #0f172a47}.current-memory-dialog-header,.current-memory-dialog-footer{display:flex;align-items:center;gap:10px;padding:15px 17px;border-bottom:1px solid var(--line);background:#fffffff5}.current-memory-dialog-header>div{min-width:0;flex:1}.current-memory-dialog-header span,.current-memory-dialog-header h2,.current-memory-dialog-header small{display:block}.current-memory-dialog-header span{color:var(--primary-strong);font-size:12px;font-weight:900}.current-memory-dialog-header h2{margin:4px 0;overflow-wrap:anywhere;color:var(--text);font-size:19px;line-height:1.25}.current-memory-dialog-header small{color:var(--muted);font-size:12px}.current-memory-dialog-body{min-width:0;min-height:0;padding:17px;overflow:auto;background:#f8fafcd1}.current-memory-dialog-footer{justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0}.current-memory-dialog-footer>span{flex:1}.current-memory-confirm{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border-radius:8px;color:#fff;font-size:13px;font-weight:900;background:var(--primary)}.current-memory-edit-section,.current-memory-readonly-section{display:grid;gap:12px;margin-bottom:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.current-memory-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.current-memory-section-heading span,.current-memory-section-heading h3,.current-memory-readonly-section h3{display:block}.current-memory-section-heading span{color:var(--primary-strong);font-size:11px;font-weight:900}.current-memory-section-heading h3,.current-memory-readonly-section h3{margin:3px 0 0;color:var(--text);font-size:16px}.current-memory-section-heading small{color:var(--muted);font-size:11px;text-align:right}.current-memory-record-list{display:grid;gap:10px}.current-memory-record{display:grid;gap:8px;padding:11px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.current-memory-record.is-readonly{background:#f1f5f9}.current-memory-record-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.current-memory-record-meta code{min-width:0;overflow:hidden;color:#475569;text-overflow:ellipsis;white-space:nowrap}.current-memory-record textarea{width:100%;min-height:96px;padding:10px;resize:vertical;border:1px solid #cbd5e1;border-radius:7px;outline:0;color:var(--text);font:inherit;line-height:1.5;background:#fff}.current-memory-record textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #14b8a629}.current-memory-record p{margin:0;color:var(--text);font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.current-memory-field-error,.current-memory-readonly-reason{color:#b91c1c;font-size:12px;line-height:1.4}.current-memory-readonly-reason{color:#92400e}.current-memory-readonly-section details{border-top:1px solid var(--line)}.current-memory-readonly-section summary{display:flex;justify-content:space-between;gap:10px;padding:11px 2px;color:var(--text);cursor:pointer;font-size:13px;font-weight:850}.current-memory-readonly-section summary span{color:var(--muted);font-weight:700}.current-memory-readonly-section .memory-list{display:grid;gap:8px;padding-bottom:8px}.evidence-section .card-header{margin-bottom:12px}.evidence-section .card-header>div{min-width:0}.evidence-section h2{max-width:260px}.evidence-strip{display:flex;gap:10px;padding:2px 2px 8px;overflow-x:auto;scroll-snap-type:x proximity}.evidence-card{flex:0 0 178px;width:178px;min-height:238px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 10px 24px #0f172a0f;scroll-snap-align:start}.evidence-thumb-wrap{width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:8px;background:#e2e8f0}.evidence-thumb{width:100%;height:100%;object-fit:cover;display:block}.evidence-placeholder{display:grid;place-items:center;gap:7px;width:100%;height:100%;padding:12px;color:var(--muted);font-size:12px;text-align:center}.evidence-copy{padding:10px 2px 0}.evidence-copy p{display:-webkit-box;min-height:38px;margin:0;overflow:hidden;color:var(--text);font-size:13px;font-weight:650;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.evidence-meta{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#94a3b8;font-size:11px;font-weight:750}.evidence-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-evidence{min-height:82px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:8px;color:var(--muted);font-size:14px;background:#ffffff8a}.advanced-tools{margin-top:10px}.advanced-toggle{width:100%;min-height:44px;padding:0 12px;border-radius:8px;color:#334155;font-size:14px;font-weight:900;background:#ffffffdb;border:1px solid var(--line)}.advanced-toggle span{display:inline-flex;align-items:center;gap:8px}.advanced-panel{margin-top:10px;box-shadow:0 10px 28px #0f172a0d}.memory-tools{margin-bottom:14px}.memory-panel{max-height:min(76dvh,920px);overflow:auto;overscroll-behavior:contain}.memory-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.memory-panel-heading>div{min-width:0}.memory-panel-heading span,.memory-panel-heading strong,.memory-panel-heading small{display:block}.memory-panel-heading span{color:var(--muted);font-size:11px;font-weight:800}.memory-panel-heading strong{margin-top:3px;overflow-wrap:anywhere;color:var(--text);font-size:17px;font-weight:900}.memory-panel-heading small{margin-top:4px;color:#94a3b8;font-size:11px}.memory-refresh{flex:0 0 auto}.memory-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.memory-overview-item{min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft)}.memory-overview-item span,.memory-overview-item strong{display:block}.memory-overview-item span{overflow:hidden;color:var(--muted);font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.memory-overview-item strong{margin-top:4px;color:var(--text);font-size:18px;font-weight:900}.memory-status-row,.memory-card-badges{display:flex;flex-wrap:wrap;gap:6px}.memory-status-row{margin-top:12px}.memory-status-badge,.memory-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:850;line-height:1.2}.memory-status-badge,.memory-badge.is-muted{color:#475569;background:#e2e8f0}.memory-status-badge.is-ready,.memory-badge{color:#0f766e;background:#ccfbf1}.memory-status-badge.is-warning{color:#92400e;background:#fef3c7}.memory-notice{margin-top:10px;padding:9px 10px;border:1px solid #bae6fd;border-radius:8px;color:#075985;font-size:12px;line-height:1.45;background:#f0f9ff}.memory-notice.is-warning{border-color:#fde68a;color:#92400e;background:#fffbeb}.memory-section{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.memory-section.is-compact{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafcb8}.memory-section-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;gap:12px;padding:0;color:var(--text);text-align:left;background:transparent}.memory-section-toggle>span{min-width:0}.memory-section-toggle strong,.memory-section-toggle small{display:block}.memory-section-toggle strong{overflow-wrap:anywhere;font-size:14px;font-weight:900}.memory-section-toggle small{margin-top:3px;color:var(--muted);font-size:11px;font-weight:700}.memory-section-content{margin-top:8px}.memory-list{display:grid;gap:10px}.memory-card{min-width:0;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff}.memory-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.memory-card-badges{min-width:0}.memory-confidence{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:800}.memory-time{margin-top:8px;color:#64748b;font-size:11px;font-weight:750}.memory-content{margin:10px 0 0;overflow-wrap:anywhere;color:var(--text);font-size:13px;font-weight:650;line-height:1.55;white-space:pre-wrap}.memory-param-list{display:grid;gap:6px}.memory-param-list.is-root{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.memory-param-list.is-nested{min-width:0}.memory-param-row{display:grid;grid-template-columns:minmax(100px,.34fr) minmax(0,1fr);gap:10px;min-width:0;padding:7px 9px;border-radius:7px;background:var(--panel-soft)}.memory-param-key{overflow-wrap:anywhere;color:var(--muted);font-size:10px;font-weight:850}.memory-param-value{min-width:0;overflow-wrap:anywhere;color:#334155;font-size:11px;line-height:1.5;white-space:pre-wrap}.memory-array{display:grid;gap:5px;min-width:0;margin:0;padding-left:18px}.memory-array li,.memory-value-details{min-width:0}.memory-value-details summary{width:fit-content;cursor:pointer;color:#0f766e;font-size:11px;font-weight:850}.memory-value-details[open] summary{margin-bottom:7px}.memory-truncation-note{margin-bottom:6px;color:#92400e;font-size:10px;font-weight:800}.memory-empty,.memory-loading{min-height:88px;display:flex;align-items:center;justify-content:center;gap:9px;padding:14px;color:var(--muted);font-size:13px;line-height:1.45;text-align:center}.memory-empty.is-compact{min-height:58px;padding:8px}.memory-spinner{width:17px;height:17px;flex:0 0 auto;border:2px solid #cbd5e1;border-top-color:var(--primary);border-radius:50%;animation:spin .9s linear infinite}.memory-spin{animation:spin .9s linear infinite}.memory-error{display:flex;align-items:center;justify-content:space-between;gap:10px}.memory-error span{min-width:0}.memory-catalog{position:relative}.memory-catalog-heading,.memory-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.memory-catalog-heading>div,.memory-dialog-header>div{min-width:0}.memory-catalog-heading span,.memory-catalog-heading strong,.memory-catalog-heading small,.memory-dialog-header span,.memory-dialog-header h2{display:block}.memory-catalog-heading span,.memory-dialog-header>div>span{color:var(--muted);font-size:11px;font-weight:800}.memory-catalog-heading strong,.memory-dialog-header h2{margin:3px 0 0;overflow-wrap:anywhere;color:var(--text);font-size:17px;font-weight:900}.memory-catalog-heading small{margin-top:4px;color:#64748b;font-size:11px;font-weight:750}.memory-session-list{display:grid;gap:10px;margin-top:14px}.memory-session-card{display:block;width:100%;min-width:0;padding:13px;border:1px solid var(--line);border-radius:8px;color:var(--text);text-align:left;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.memory-session-card:hover{border-color:#14b8a66b;box-shadow:0 9px 24px #0f172a12;transform:translateY(-1px)}.memory-session-card:focus-visible{outline:3px solid rgba(20,184,166,.24);outline-offset:2px;border-color:var(--primary)}.memory-session-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.memory-session-card-heading strong{min-width:0;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;font-weight:900}.memory-session-card-heading small{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:750}.memory-session-versions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:11px}.memory-session-versions>span{min-width:0;padding:8px;border-radius:7px;background:var(--panel-soft)}.memory-session-versions small,.memory-session-versions strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.memory-session-versions small{color:var(--muted);font-size:9px;font-weight:800}.memory-session-versions strong{margin-top:3px;color:#334155;font-size:11px;font-weight:900}.memory-local-sentinel{display:grid;justify-items:center;gap:8px;padding:14px 0 2px}.memory-local-count{color:var(--muted);font-size:10px;font-weight:750;text-align:center}.memory-local-count{margin-top:9px}.memory-catalog-pagination{display:grid;justify-items:center;gap:10px;margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}.memory-catalog-page-summary,.memory-catalog-page-status{color:var(--muted);font-size:11px;font-weight:800;line-height:1.4;text-align:center}.memory-catalog-page-actions,.memory-catalog-page-jump{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%}.memory-catalog-page-actions{flex-wrap:wrap}.memory-catalog-page-status{min-width:112px;color:#334155}.memory-catalog-page-jump{flex-wrap:nowrap}.memory-catalog-page-input{width:74px;min-width:0;height:36px;padding:0 9px;border:1px solid var(--line);border-radius:8px;color:var(--text);font:inherit;font-size:12px;font-weight:800;background:#fff}.memory-catalog-page-input:focus-visible{outline:3px solid rgba(20,184,166,.24);outline-offset:2px;border-color:var(--primary)}.memory-catalog-page-input:disabled{color:var(--muted);background:var(--panel-soft);cursor:not-allowed}.memory-catalog-page-error{max-width:100%;color:#b91c1c;font-size:11px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;text-align:center}.memory-catalog-page-loading{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px;font-weight:800}.memory-spinner.is-small{width:13px;height:13px}.memory-dialog-overlay{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#0f172a94;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.memory-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(1540px,calc(100vw - 40px));max-height:min(92dvh,1040px);min-height:min(560px,calc(100dvh - 40px));overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:12px;background:#fff;box-shadow:0 30px 90px #0f172a47}.memory-dialog:focus{outline:none}.memory-dialog-header{padding:15px 17px;border-bottom:1px solid var(--line);background:#fffffff5}.memory-dialog-header .icon-button{flex:0 0 auto}.memory-dialog-title-block{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}.memory-dialog-version-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.memory-dialog-version-chips span{min-height:25px;padding:5px 9px;border-radius:999px;color:#475569;font-size:10px;font-weight:850;background:#f1f5f9}.memory-dialog-tabs{display:flex;align-items:center;gap:4px;padding:7px 17px;border-bottom:1px solid var(--line);background:#fff}.memory-dialog-tabs button,.memory-graph-mobile-tabs button{min-height:34px;padding:0 14px;border-radius:7px;color:var(--muted);font-size:12px;font-weight:850;background:transparent}.memory-dialog-tabs button.active,.memory-graph-mobile-tabs button.active{color:#0f766e;background:#ccfbf1}.memory-dialog-tabs button:focus-visible,.memory-graph-mobile-tabs button:focus-visible{outline:3px solid rgba(20,184,166,.24);outline-offset:1px}.memory-dialog-body{min-width:0;min-height:0;padding:17px;overflow:auto;overscroll-behavior:contain;background:#f8fafcd1}.memory-dialog-body>.memory-loading{min-height:260px}.memory-dialog-body>.memory-error{margin-bottom:12px}.memory-dialog-body.is-graph{padding:14px}.memory-graph-view{display:grid;gap:12px;min-width:0}.memory-graph-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}.memory-graph-meta>div:first-child,.memory-graph-meta span,.memory-graph-meta strong,.memory-graph-meta small{min-width:0}.memory-graph-meta>div:first-child>span,.memory-graph-meta>div:first-child>strong,.memory-graph-meta>div:first-child>small{display:block}.memory-graph-meta>div:first-child>span{color:var(--muted);font-size:10px;font-weight:800}.memory-graph-meta>div:first-child>strong{margin-top:3px;overflow-wrap:anywhere;font-size:14px;font-weight:900}.memory-graph-meta>div:first-child>small{margin-top:3px;color:#64748b;font-size:10px;font-weight:700}.memory-graph-sync-status{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 6px;flex:0 0 auto;color:#047857}.memory-graph-sync-status>span{width:8px;height:8px;border-radius:50%;background:#10b981}.memory-graph-sync-status strong{font-size:11px;font-weight:900}.memory-graph-sync-status small{grid-column:2;color:var(--muted);font-size:9px}.memory-graph-sync-status.is-waiting{color:#b45309}.memory-graph-sync-status.is-waiting>span{background:#f59e0b;animation:livePulse 1.5s ease-in-out infinite}.memory-graph-sync-status.is-error{color:#b91c1c}.memory-graph-sync-status.is-error>span{background:#ef4444}.memory-graph-banner{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #bae6fd;border-radius:8px;color:#075985;font-size:11px;font-weight:750;line-height:1.45;background:#f0f9ff}.memory-graph-banner span{min-width:0;flex:1}.memory-graph-banner.is-warning{border-color:#fde68a;color:#92400e;background:#fffbeb}.memory-graph-toolbar{position:relative;z-index:6;display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(260px,1.6fr) auto repeat(3,minmax(112px,.55fr)) auto;align-items:end;gap:9px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff}.memory-graph-toolbar label>span:first-child,.memory-graph-range-control>span:first-child{display:block;margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase}.memory-graph-input-shell{display:flex;align-items:center;gap:7px;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:#64748b;background:#fff}.memory-graph-input-shell:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #14b8a629}.memory-graph-input-shell input{width:100%;min-width:0;border:0;outline:0;color:var(--text);font-size:11px;background:transparent}.memory-graph-range-control{min-width:0}.memory-graph-range-labels{display:flex;justify-content:space-between;gap:8px;color:#475569;font-size:9px;font-weight:750}.memory-graph-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:5px}.memory-graph-range-inputs input{width:100%;accent-color:var(--primary)}.memory-graph-relations{position:relative}.memory-graph-relations summary{display:flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:8px;color:#334155;cursor:pointer;font-size:11px;font-weight:850;list-style:none;background:#fff}.memory-graph-relations summary::-webkit-details-marker{display:none}.memory-graph-relation-menu{position:absolute;z-index:30;top:calc(100% + 5px);left:0;display:grid;gap:5px;width:min(260px,78vw);max-height:240px;padding:9px;overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:var(--shadow)}.memory-graph-relation-menu label{display:flex;align-items:center;gap:7px;padding:5px 6px;border-radius:6px;color:#334155;font-size:10px;font-weight:750}.memory-graph-relation-menu label:hover{background:var(--panel-soft)}.memory-graph-menu-empty{color:var(--muted);font-size:10px}.memory-graph-number-filter input{width:100%;min-height:36px;padding:0 9px;border:1px solid var(--line);border-radius:8px;color:var(--text);font-size:11px;font-weight:800;background:#fff}.memory-graph-reset{min-height:36px}.memory-graph-summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.memory-graph-summary span{padding:5px 8px;border-radius:999px;color:#475569;font-size:9px;font-weight:850;background:#e2e8f0}.memory-graph-mobile-tabs{display:none}.memory-graph-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}.memory-graph-pane{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px #0f172a12}.memory-graph-pane-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:54px;padding:10px 12px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fafc)}.memory-graph-pane-heading strong,.memory-graph-pane-heading span{display:block}.memory-graph-pane-heading strong{position:relative;padding-left:13px;font-size:12px;font-weight:900}.memory-graph-pane-heading strong:before{position:absolute;top:50%;left:0;width:6px;height:6px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 4px #2563eb1a;content:"";transform:translateY(-50%)}.memory-graph-pane.semantic .memory-graph-pane-heading strong:before{background:#14b8a6;box-shadow:0 0 0 4px #14b8a61c}.memory-graph-pane-heading span,.memory-graph-pane-heading small{margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}.memory-graph-pane-heading small{flex:0 0 auto}.memory-graph-canvas{position:relative;width:100%;height:clamp(390px,51dvh,610px);min-height:390px;overflow:hidden;background-color:#f8fbff;background-image:linear-gradient(rgba(148,163,184,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.09) 1px,transparent 1px),radial-gradient(circle at 18% 10%,rgba(59,130,246,.08),transparent 38%);background-position:-1px -1px,-1px -1px,0 0;background-size:28px 28px,28px 28px,100% 100%}.memory-graph-pane.semantic .memory-graph-canvas{background-image:linear-gradient(rgba(148,163,184,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.09) 1px,transparent 1px),radial-gradient(circle at 82% 10%,rgba(20,184,166,.08),transparent 38%)}.memory-graph-canvas-empty{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;color:var(--muted);font-size:11px;text-align:center;pointer-events:none}.memory-graph-legend{position:absolute;z-index:6;top:10px;left:10px;width:min(250px,calc(100% - 20px));overflow:hidden;border:1px solid rgba(203,213,225,.92);border-radius:9px;color:#334155;background:#ffffffeb;box-shadow:0 9px 24px #0f172a1c;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.memory-graph-legend summary{position:relative;padding:7px 27px 7px 10px;cursor:pointer;font-size:9px;font-weight:900;letter-spacing:.05em;list-style:none;text-transform:uppercase}.memory-graph-legend summary::-webkit-details-marker{display:none}.memory-graph-legend summary:after{position:absolute;top:50%;right:10px;color:#64748b;content:"+";font-size:14px;line-height:1;transform:translateY(-50%)}.memory-graph-legend[open] summary:after{content:"−"}.memory-graph-legend-content{display:grid;gap:8px;padding:0 10px 10px;border-top:1px solid rgba(226,232,240,.8)}.memory-graph-legend-group{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding-top:8px}.memory-graph-legend-group+.memory-graph-legend-group{padding-top:0}.memory-graph-legend-caption{margin-bottom:-4px;color:#64748b;font-size:7px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.memory-graph-legend-group.is-relations{padding-top:0}.memory-graph-legend-item,.memory-graph-legend-notes span{display:inline-flex;align-items:center;gap:5px;color:#475569;font-size:8px;font-weight:800;white-space:nowrap}.memory-graph-legend-swatch{display:inline-block;flex:0 0 auto;width:17px;height:3px;border-radius:999px;background:#64748b}.memory-graph-legend-swatch.node-event{width:18px;height:11px;border:1.5px solid #0f766e;border-radius:4px;background:#5eead4;box-shadow:0 2px 4px #0f766e33}.memory-graph-legend-swatch.node-entity{width:12px;height:12px;border:1.5px solid #7c3aed;border-radius:50%;background:#c4b5fd}.memory-graph-node-palette{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}.memory-graph-node-color{width:100%;height:11px;border:1px solid var(--node-border);border-radius:3px;background:var(--node-fill)}.memory-graph-legend-swatch[class*=relation-]{width:17px;height:0;border-radius:0;background:transparent}.memory-graph-legend-swatch.relation-spatial{border-top:3px solid #14b8a6}.memory-graph-legend-swatch.relation-action{border-top:3px solid #8b5cf6}.memory-graph-legend-swatch.relation-state{border-top:3px solid #f59e0b}.memory-graph-legend-swatch.relation-dialogue{border-top:3px solid #ec4899}.memory-graph-legend-swatch.relation-other{border-top:3px solid #64748b}.memory-graph-legend-notes{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding-top:7px;border-top:1px solid #e2e8f0}.memory-graph-line-sample{position:relative;display:inline-block;width:22px;height:0;border-top:2px solid #64748b}.memory-graph-line-sample:after{position:absolute;top:-4px;right:-1px;border-width:3px 0 3px 5px;border-style:solid;border-color:transparent transparent transparent currentcolor;color:#64748b;content:""}.memory-graph-line-sample.is-before{border-color:#2563eb;color:#2563eb}.memory-graph-line-sample.is-mention,.memory-graph-line-sample.is-habit{border-top-style:dashed}.memory-graph-line-sample.is-support{border-top-width:5px}.memory-graph-zoom-controls{position:absolute;z-index:5;right:10px;bottom:10px;display:flex;align-items:center;gap:5px;min-height:36px;padding:5px;border:1px solid rgba(203,213,225,.9);border-radius:9px;background:#ffffffe6;box-shadow:0 8px 22px #0f172a24;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.memory-graph-zoom-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 6px;border:1px solid transparent;border-radius:6px;color:#334155;background:#f1f5f9}.memory-graph-zoom-controls button:hover:not(:disabled){border-color:#14b8a666;color:#0f766e;background:#ecfdf5}.memory-graph-zoom-controls button:focus-visible,.memory-graph-zoom-controls input:focus-visible{outline:3px solid rgba(20,184,166,.25);outline-offset:1px}.memory-graph-zoom-controls button:disabled,.memory-graph-zoom-controls input:disabled{cursor:not-allowed;opacity:.42}.memory-graph-zoom-controls input{width:clamp(82px,9vw,132px);accent-color:var(--primary);cursor:pointer}.memory-graph-zoom-controls output{min-width:38px;color:#475569;font-size:9px;font-weight:850;text-align:center}.memory-graph-zoom-controls .memory-graph-zoom-fit{gap:4px;padding:0 8px;color:#0f766e;background:#ccfbf1}.memory-graph-zoom-fit span{font-size:9px;font-weight:900}.memory-graph-details{min-width:0;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff}.memory-graph-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}.memory-graph-detail-heading>span{color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase}.memory-graph-details-empty,.memory-graph-request-state{min-height:120px;display:grid;place-content:center;justify-items:center;gap:7px;padding:20px;color:var(--muted);font-size:11px;text-align:center}.memory-graph-details-empty strong,.memory-graph-request-state strong{color:#334155;font-size:13px;font-weight:900}.memory-graph-request-state{min-height:420px;border:1px solid var(--line);border-radius:10px;background:#fff}.memory-graph-request-state.is-error svg{color:#ef4444}.memory-graph-request-state small{max-width:100%;overflow-wrap:anywhere;font-size:9px}.memory-graph-detail-content{display:grid;gap:12px;padding-top:12px}.memory-graph-detail-title strong,.memory-graph-detail-title span{display:block}.memory-graph-detail-title strong{overflow-wrap:anywhere;font-size:15px;font-weight:900}.memory-graph-detail-title span{margin-top:4px;color:var(--muted);font-size:10px;font-weight:750}.memory-graph-fact-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#334155}.memory-graph-fact-title strong{overflow-wrap:anywhere;font-size:14px;font-weight:900}.memory-graph-fact-title span{padding:4px 7px;border-radius:999px;color:#0f766e;font-size:10px;font-weight:850;background:#ccfbf1}.memory-graph-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}.memory-graph-detail-grid>div{min-width:0;padding:9px;border-radius:8px;background:var(--panel-soft)}.memory-graph-detail-grid span,.memory-graph-detail-grid strong{display:block}.memory-graph-detail-grid span{color:var(--muted);font-size:9px;font-weight:800}.memory-graph-detail-grid strong{margin-top:3px;overflow-wrap:anywhere;color:#334155;font-size:11px;font-weight:900}.memory-graph-detail-section{min-width:0}.memory-graph-detail-section h4{margin:0 0 6px;color:#475569;font-size:10px;font-weight:900;text-transform:uppercase}.memory-graph-detail-section p,.memory-graph-detail-section ul{margin:0;overflow-wrap:anywhere;color:#334155;font-size:11px;line-height:1.55;white-space:pre-wrap}.memory-graph-detail-section ul{display:grid;gap:4px;padding-left:18px}.memory-graph-triples{list-style:none;padding:0!important}.memory-graph-triples li{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 9px;border-radius:7px;background:var(--panel-soft)}.memory-graph-triples strong{color:#0f766e}.memory-graph-triples small{color:var(--muted)}.memory-graph-supporting-events{display:grid;gap:7px}.memory-graph-supporting-events button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--text);text-align:left;background:#fff}.memory-graph-supporting-events button:hover,.memory-graph-supporting-events button:focus-visible{border-color:#14b8a680;outline:none;box-shadow:0 0 0 3px #14b8a61f}.memory-graph-supporting-events button>span:first-child{min-width:0}.memory-graph-supporting-events strong,.memory-graph-supporting-events small,.memory-graph-supporting-events em{display:block;overflow-wrap:anywhere}.memory-graph-supporting-events strong{font-size:11px;font-weight:900}.memory-graph-supporting-events small,.memory-graph-supporting-events em{margin-top:2px;color:var(--muted);font-size:9px;font-style:normal;line-height:1.4}.memory-graph-supporting-events button>span:last-child{flex:0 0 auto;color:#0f766e;font-size:10px;font-weight:900}.memory-graph-detail-empty{color:var(--muted);font-size:10px}.memory-graph-keyframes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.memory-graph-keyframe{position:relative;overflow:hidden;min-height:105px;padding:0;border:1px solid var(--line);border-radius:8px;color:#fff;background:#0f172a}.memory-graph-keyframe img{display:block;width:100%;height:118px;object-fit:cover}.memory-graph-keyframe small{position:absolute;right:5px;bottom:5px;padding:3px 5px;border-radius:5px;color:#fff;font-size:8px;font-weight:800;background:#0f172ab8}.memory-graph-keyframe-placeholder{display:grid;place-content:center;justify-items:center;gap:5px;min-height:105px;color:#cbd5e1;font-size:9px}.memory-graph-image-overlay{position:fixed;z-index:1100;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#0f172ad1}.memory-graph-image-preview{display:grid;justify-items:end;gap:8px;max-width:min(1100px,94vw);max-height:92dvh}.memory-graph-image-preview img{display:block;max-width:100%;max-height:calc(92dvh - 50px);border-radius:10px;object-fit:contain;box-shadow:0 24px 80px #0006}.advanced-section{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.advanced-section-heading span,.advanced-section-heading strong{display:block}.advanced-section-heading span{color:var(--muted);font-size:11px;font-weight:800}.advanced-section-heading strong{margin-top:4px;color:var(--text);font-size:16px;font-weight:900}.input-mode-switcher{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:6px;margin-top:12px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f1f5f9}.input-mode-switcher button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:7px 8px;border-radius:6px;color:var(--muted);font-size:11px;font-weight:900;line-height:1.25;background:transparent}.input-mode-switcher button.active{color:#0f766e;background:#fff;box-shadow:0 5px 16px #0f172a14}.answer-mode-switcher{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-upload-control{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:12px;border:1px solid rgba(20,184,166,.28);border-radius:8px;color:#0f766e;font-size:13px;font-weight:900;background:#ccfbf1;cursor:pointer}.demo-upload-control input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.demo-upload-control:has(input:disabled){opacity:.58;cursor:not-allowed}.demo-session-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.demo-session-summary span{display:inline-flex;align-items:center;min-height:26px;padding:0 8px;border-radius:999px;color:var(--muted);font-size:11px;font-weight:850;background:#f1f5f9}.demo-test-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.demo-test-upload-grid .demo-upload-control span{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.demo-test-upload-button{width:100%;margin-top:10px;color:#0f766e}.photo-stream-preview{display:grid;place-items:center;align-content:center;gap:10px;color:#ccfbf1;background:#0f172a}.photo-stream-preview strong{font-size:18px}.photo-stream-preview span{color:#99f6e4;font-size:13px}.photo-stream-queue{display:grid;gap:7px;max-height:260px;margin-top:10px;overflow:auto}.photo-stream-item{display:flex;align-items:center;gap:9px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.photo-stream-item.uploaded{opacity:.62}.photo-stream-item img{width:42px;height:42px;flex:0 0 auto;border-radius:5px;object-fit:cover;background:#e2e8f0}.photo-stream-audio-thumb{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;color:var(--accent, #5d8cff);background:#5d8cff1f;border-radius:5px}.photo-stream-item-meta{display:grid;gap:3px;min-width:0;flex:1}.photo-stream-item-meta strong,.photo-stream-item-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-stream-item-meta strong{color:var(--text);font-size:12px}.photo-stream-item-meta small{color:var(--muted);font-size:11px}.photo-stream-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;color:var(--muted);font-size:11px;font-weight:800}.photo-stream-no-wait-toggle{display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:2px;align-items:center;margin-top:10px;color:var(--text);font-size:12px;font-weight:800}.photo-stream-no-wait-toggle input{width:16px;height:16px;grid-row:span 2;accent-color:#0f766e}.photo-stream-no-wait-toggle small{color:var(--muted);font-size:11px;font-weight:600}.photo-stream-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.photo-stream-actions button{min-width:0}@media(max-width:560px){.photo-stream-actions{grid-template-columns:1fr}}.demo-clip-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.demo-clip-switcher button{display:grid;gap:4px;min-width:0;min-height:54px;padding:8px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:12px;font-weight:900;line-height:1.2;text-align:left;background:#fff}.demo-clip-switcher button.active{color:#0f766e;border-color:#14b8a657;background:#ccfbf1}.demo-clip-switcher small{min-width:0;overflow:hidden;color:inherit;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap;opacity:.8}.demo-test-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.demo-test-actions .icon-button{width:100%;min-height:40px}.mode-description{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.tools-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.diagnostic-id-list{display:grid;gap:8px;margin-top:14px}.diagnostic-id-list div{min-width:0;padding:10px 12px;border-radius:8px;background:var(--panel-soft)}.diagnostic-id-list span,.stat-chip span{display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:800}.diagnostic-id-list strong{display:block;overflow-wrap:anywhere;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:800;line-height:1.35}.advanced-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.stat-chip{min-width:0;min-height:66px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.stat-chip strong{color:var(--text);font-size:17px;font-weight:900;line-height:1.15}.stat-chip.ready{border-color:#bbf7d0;background:#f0fdf4}.stat-chip.warn{border-color:#fde68a;background:#fffbeb}.stat-chip.bad{border-color:#fecaca;background:#fef2f2}.raw-tools{margin-top:14px}.raw-box{max-height:260px;margin:10px 0 0;padding:12px;overflow:auto;border:1px solid var(--line);border-radius:8px;color:#334155;font-size:11px;line-height:1.45;background:#f8fafc}.fade-in{animation:fadeIn .22s ease-out both}.shimmer{position:relative;overflow:hidden}.shimmer:before{content:"";position:absolute;inset:0 auto 0 -44%;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);animation:shimmerMove 1.6s ease-in-out infinite}@media(max-height:720px){.video-hero{height:50dvh;min-height:320px}.main-action{min-height:50px}}@media(max-width:1240px){.memory-graph-toolbar{grid-template-columns:minmax(180px,1fr) minmax(250px,1.4fr) auto repeat(3,minmax(105px,.55fr))}.memory-graph-reset{grid-column:-2 / -1}}@media(max-width:859px){.memory-dialog-title-block{display:grid;gap:8px}.memory-graph-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-graph-search,.memory-graph-range-control{grid-column:1 / -1}.memory-graph-reset{grid-column:auto}.memory-graph-mobile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:9px;background:#fff}.memory-graph-board{display:block}.memory-graph-pane{display:none}.memory-graph-pane.is-mobile-active{display:block}.memory-graph-canvas{height:min(56dvh,560px)}.memory-graph-legend{width:min(230px,calc(100% - 20px))}}@media(max-width:520px){.memory-panel-heading,.memory-catalog-heading,.memory-card-header,.memory-error{align-items:stretch;flex-direction:column}.memory-refresh{align-self:flex-start}.memory-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-param-row{grid-template-columns:1fr;gap:4px}.memory-session-card-heading{display:grid;gap:4px}.memory-session-card-heading small{flex:initial}.memory-session-versions{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-catalog-pagination{justify-items:stretch}.memory-catalog-page-actions,.memory-catalog-page-jump{width:100%}.memory-catalog-page-actions .icon-button,.memory-catalog-page-jump .icon-button{flex:1 1 auto}.memory-catalog-page-status{flex:1 0 100%;order:-1}.memory-dialog-overlay{padding:6px}.memory-dialog{width:calc(100vw - 12px);min-height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:10px}.memory-dialog-header{padding:12px}.memory-dialog-version-chips{gap:4px}.memory-dialog-version-chips span{padding:4px 7px;font-size:9px}.memory-dialog-tabs{padding:6px 12px}.memory-dialog-header .icon-button span{display:none}.memory-dialog-body{padding:12px}.memory-dialog-body.is-graph{padding:8px}.memory-graph-meta,.memory-graph-banner,.memory-graph-detail-heading{align-items:stretch;flex-direction:column}.memory-graph-sync-status{align-self:flex-start}.memory-graph-toolbar{grid-template-columns:1fr}.memory-graph-search,.memory-graph-range-control{grid-column:auto}.memory-graph-range-inputs{grid-template-columns:1fr}.memory-graph-canvas{height:52dvh;min-height:340px}.memory-graph-legend{top:7px;left:7px;width:min(215px,calc(100% - 14px))}.memory-graph-legend summary{padding-block:6px}.memory-graph-legend-content{gap:6px;padding:0 8px 8px}.memory-graph-legend-group{gap:6px 8px}.memory-graph-zoom-controls{right:7px;bottom:7px;gap:3px;max-width:calc(100% - 14px)}.memory-graph-zoom-controls input{width:min(22vw,88px)}.memory-graph-zoom-controls output{min-width:34px}.memory-graph-keyframes{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.memory-panel .fade-in,.memory-dialog-overlay,.memory-dialog .fade-in,.memory-spinner,.memory-spin,.memory-session-card,.memory-graph-sync-status.is-waiting>span{animation:none;transition:none}}@media(max-width:520px){.current-memory-edit-button{width:100%}.current-memory-dialog{width:calc(100vw - 12px);min-height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:10px}.current-memory-dialog-header,.current-memory-dialog-body{padding:12px}.current-memory-dialog-footer{flex-wrap:wrap;padding:12px}.current-memory-dialog-footer>span{display:none}.current-memory-dialog-footer .icon-button,.current-memory-confirm{flex:1 1 calc(50% - 8px)}.current-memory-section-heading{display:grid}.current-memory-section-heading small{text-align:left}}@media(min-width:860px){.app-shell{padding:18px 22px}.mobile-tabs{display:none}.product-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:18px;align-items:start}.panel-slot,.panel-slot.active{display:block}.live-view,.ask-panel{min-height:calc(100dvh - 36px)}.ask-panel{max-height:calc(100dvh - 36px);overflow:auto;padding-right:4px}.video-hero{height:calc(100dvh - 286px);min-height:500px}.top-header,.ask-header{margin-bottom:10px}.brand{font-size:36px}.ask-header h1{font-size:23px}.surface{padding:14px}.composer-card,.answer-card,.advanced-panel{margin-bottom:10px}.ask-composer{min-height:50px}.ask-composer input{height:38px}.send-button{min-height:38px}.quick-row{margin-top:9px}.quick-chip{min-height:32px;padding:0 12px}.answer-body{min-height:82px;margin-top:10px}.answer-body p{font-size:15px;line-height:1.52}.answer-meta{margin-top:10px}.evidence-section{margin:12px 0}.evidence-section .card-header{margin-bottom:8px}.evidence-section h2{max-width:240px;font-size:17px;line-height:1.18}.evidence-card{flex-basis:168px;width:168px;min-height:206px;padding:7px}.evidence-copy{padding-top:8px}.evidence-copy p{min-height:34px;font-size:12px;line-height:1.35}.primary-control{margin-top:12px}.main-action{min-height:52px;border-radius:16px}.secondary-controls{gap:8px;margin-top:8px}.secondary-controls{grid-template-columns:repeat(4,minmax(0,138px));justify-content:center}.ask-header .back-button{visibility:hidden}}@keyframes livePulse{0%{box-shadow:0 0 #10b98161;transform:scale(1)}55%{box-shadow:0 0 0 11px #10b98100;transform:scale(1.08)}to{box-shadow:0 0 #10b98100;transform:scale(1)}}@keyframes typingDot{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmerMove{0%{left:-44%}to{left:120%}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
