:root{--bg: #f4f6f5;--panel: #ffffff;--panel-soft: #f7f9f8;--text: #1b2926;--muted: #616e69;--line: #dfe6e3;--primary: #0f766e;--primary-strong: #115e59;--blue: #3b82f6;--success: #17826b;--warning: #f59e0b;--danger: #b91c1c;--shadow: 0 2px 6px rgba(27, 41, 38, .025), 0 8px 24px rgba(27, 41, 38, .035);--radius-sm: 8px;--radius-md: 10px;--radius-lg: 14px;--accent-soft: #eaf5f1;--line-strong: #b9cbc3;--motion-duration: .16s;--motion-ease: cubic-bezier(.2, .8, .2, 1);color:var(--text);background:var(--bg);font-family: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:var(--bg)}.app-brand-copy strong{font-size:15px;letter-spacing:-.01em}.language-toggle{justify-self:end;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--muted);background:var(--panel);font-size:12px;font-weight:650;transition:border-color .16s ease,color .16s ease,background .16s ease}.language-toggle:hover,.language-toggle:focus-visible{color:var(--text);border-color:var(--line-strong);background:var(--panel)}.memory-page{min-width:0}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 auto 18px}.page-heading>div{display:flex;align-items:center;gap:11px}.page-heading-icon{display:grid;place-items:center;width:38px;height:38px;color:var(--primary);border:1px solid var(--accent-line);border-radius:var(--radius-md);background:var(--accent-soft)}.page-heading p{margin:0 0 3px;color:var(--muted);font-size:12px;font-weight:700}.page-heading h1{margin:0;font-size:26px;letter-spacing:-.03em}.page-heading-context{color:var(--muted);font-size:12px}.memory-current-session .current-memory-action{padding-top:14px}@media(max-width:900px){.app-shell{padding-inline:16px}.app-topbar{grid-template-columns:1fr auto}.app-primary-nav{grid-row:2;grid-column:1 / -1;justify-content:stretch;padding-bottom:8px}.app-primary-nav a{flex:1;justify-content:center}.app-topbar{padding-top:7px}.memory-page-layout{grid-template-columns:1fr}.memory-current-session{order:-1}}@media(max-width:560px){.app-shell{padding-inline:12px}.app-topbar{min-height:112px;gap:6px}.app-brand-copy small{display:none}.page-heading{align-items:start;flex-direction:column}.page-heading h1{font-size:23px}.page-heading-context{padding-left:49px}}button,input{font:inherit;letter-spacing:0}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}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 var(--line);border-radius:999px;background:var(--panel-glass);box-shadow:var(--shadow-sm);-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:650;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:650;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:650;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:650;line-height:1;white-space:nowrap}.status-pill{color:var(--text-secondary);border:1px solid var(--line);background:var(--panel-glass);box-shadow:var(--shadow-sm)}.status-running,.status-live{color:var(--success);border-color:var(--success-line);background:var(--success-soft)}.status-preview_fallback{color:var(--warning);border-color:var(--warning-line);background:var(--warning-soft)}.status-starting,.status-publishing{color:var(--info);border-color:var(--info-line);background:var(--info-soft)}.status-paused{color:var(--warning);border-color:var(--warning-line);background:var(--warning-soft)}.status-error,.status-failed{color:var(--danger);border-color:var(--danger-line);background:var(--danger-soft)}.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:var(--shadow-media)}.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,var(--panel-soft),rgba(238,247,248,.92))}.hero-empty-mark{display:grid;place-items:center;width:76px;height:76px;margin-bottom:18px;border:1px solid var(--accent-line);border-radius:22px;color:var(--primary);background:var(--accent-soft);box-shadow:var(--shadow-icon)}.hero-empty h1{max-width:300px;margin:0;color:var(--text);font-size:clamp(26px,8vw,34px);font-weight:650;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:650;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:650;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:var(--danger);font-size:13px;line-height:1.4;background:var(--danger-soft)}.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:650;background:linear-gradient(135deg,var(--primary),var(--blue));box-shadow:var(--shadow-sm)}.main-action.stop-action{background:linear-gradient(135deg,var(--danger),#f97316);box-shadow:var(--shadow-sm)}.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:var(--text-secondary);font-size:13px;font-weight:650;line-height:1;text-decoration:none;background:var(--panel);border:1px solid var(--line)}.icon-button.secondary{background:var(--panel-glass)}.icon-button.text-button{min-height:34px;padding:0 10px;color:var(--muted);background:var(--panel-soft)}.danger-text{color:var(--danger)}.ask-switch{color:var(--primary)}.surface{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:var(--shadow-sm)}.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:650;line-height:1.1}.card-header h2{margin:0;color:var(--text);font-size:18px;font-weight:650;line-height:1.25}.query-pill{color:var(--muted);border:1px solid var(--line);background:var(--panel-soft)}.query-pill.active{color:var(--primary);border-color:var(--accent-line);background:var(--accent-soft)}.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:var(--muted)}.send-button{flex:0 0 auto;min-height:42px;padding:0 14px;border-radius:14px;color:#fff;font-size:14px;font-weight:650;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:var(--text-secondary);font-size:13px;font-weight:650;line-height:1.15;white-space:nowrap;background:var(--panel-inset);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:var(--primary);font-size:11px;font-weight:650;background:var(--accent-soft)}.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:650;background:var(--panel-inset)}.evidence-section{margin:18px 0}.current-memory-action{display:grid;gap:8px;margin:0 0 14px}.current-memory-edit-button{justify-self:start;color:var(--primary);border-color:var(--accent-line);background:var(--accent-soft)}.current-memory-notice,.current-memory-warning{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:8px;color:var(--success);font-size:13px;line-height:1.4;background:var(--success-soft);border:1px solid var(--success-line)}.current-memory-notice .icon-button,.current-memory-warning .icon-button{min-height:32px;margin-left:auto}.current-memory-warning{color:var(--warning);background:var(--warning-soft);border-color:var(--warning-line)}.current-memory-error{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.current-memory-error small{color:var(--muted);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 var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow-dialog)}.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:var(--panel-glass)}.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:650}.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:var(--panel-soft)}.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:650;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:var(--panel)}.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:650}.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:var(--panel-soft)}.current-memory-record.is-readonly{background:var(--panel-inset)}.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:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap}.current-memory-record textarea{width:100%;min-height:96px;padding:10px;resize:vertical;border:1px solid var(--line-strong);border-radius:7px;outline:0;color:var(--text);font:inherit;line-height:1.5;background:var(--panel)}.current-memory-record textarea:focus{border-color:var(--primary);box-shadow:var(--focus-shadow)}.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:var(--danger);font-size:12px;line-height:1.4}.current-memory-readonly-reason{color:var(--warning)}.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:650}.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:var(--panel);box-shadow:var(--shadow-sm);scroll-snap-align:start}.evidence-thumb-wrap{width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:8px;background:var(--panel-inset)}.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:var(--muted);font-size:11px;font-weight:650}.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 var(--line-strong);border-radius:8px;color:var(--muted);font-size:14px;background:var(--panel-glass)}.advanced-tools{margin-top:10px}.advanced-toggle{width:100%;min-height:44px;padding:0 12px;border-radius:8px;color:var(--text-secondary);font-size:14px;font-weight:650;background:var(--panel-glass);border:1px solid var(--line)}.advanced-toggle span{display:inline-flex;align-items:center;gap:8px}.advanced-panel{margin-top:10px;box-shadow:var(--shadow-sm)}.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:650}.memory-panel-heading strong{margin-top:3px;overflow-wrap:anywhere;color:var(--text);font-size:17px;font-weight:650}.memory-panel-heading small{margin-top:4px;color:var(--muted);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:650;text-overflow:ellipsis;white-space:nowrap}.memory-overview-item strong{margin-top:4px;color:var(--text);font-size:18px;font-weight:650}.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:650;line-height:1.2}.memory-status-badge,.memory-badge.is-muted{color:var(--text-secondary);background:var(--panel-inset)}.memory-status-badge.is-ready,.memory-badge{color:var(--primary);background:var(--accent-soft)}.memory-status-badge.is-warning{color:var(--warning);background:var(--warning-soft)}.memory-notice{margin-top:10px;padding:9px 10px;border:1px solid var(--info-line);border-radius:8px;color:var(--info);font-size:12px;line-height:1.45;background:var(--info-soft)}.memory-notice.is-warning{border-color:var(--warning-line);color:var(--warning);background:var(--warning-soft)}.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:var(--panel-soft)}.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:650}.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:var(--panel)}.memory-card-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}.memory-card-badges{min-width:0}.memory-confidence{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:650}.memory-export-button{min-height:32px;padding:0 9px;font-size:11px}.memory-export-spinner{animation:spin .9s linear infinite}.memory-export-notice{margin:8px 17px 0;padding:9px 11px;border:1px solid var(--info-line);border-radius:8px;color:var(--info);font-size:12px;line-height:1.4;background:var(--info-soft)}.memory-export-notice.is-success{border-color:var(--success-line);color:var(--success);background:var(--success-soft)}.memory-export-notice.is-error{border-color:var(--danger-line);color:var(--danger);background:var(--danger-soft)}.memory-export-error-overlay{position:fixed;z-index:1020;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#0f172a7a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.memory-export-error-dialog{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;width:min(460px,calc(100vw - 32px));padding:18px;border:1px solid var(--danger-line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow-dialog)}.memory-export-error-dialog strong{color:var(--danger);font-size:16px}.memory-export-error-dialog p{margin:7px 0 0;color:var(--text-secondary);font-size:13px;line-height:1.5}.memory-export-error-dialog .icon-button{flex:0 0 auto}.memory-time{margin-top:8px;color:var(--muted);font-size:11px;font-weight:650}.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:650}.memory-param-value{min-width:0;overflow-wrap:anywhere;color:var(--text-secondary);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:var(--primary);font-size:11px;font-weight:650}.memory-value-details[open] summary{margin-bottom:7px}.memory-truncation-note{margin-bottom:6px;color:var(--warning);font-size:10px;font-weight:650}.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 var(--line-strong);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-import-toggle,.memory-import-panel{margin-top:8px}.memory-import-help,.memory-ask-help{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.memory-import-file-row,.memory-import-actions,.memory-ask-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.memory-import-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.memory-import-file-meta,.memory-session-id{min-width:0;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.memory-import-title-field{display:grid;gap:5px;margin-top:12px;color:var(--muted);font-size:11px;font-weight:650}.memory-import-title-field input{width:min(440px,100%);min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:7px;color:var(--text);background:var(--panel)}.memory-import-progress{margin-top:14px;padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft)}.memory-import-progress-heading{display:flex;justify-content:space-between;gap:10px;color:var(--text);font-size:12px}.memory-import-progress-heading span{min-width:0;color:var(--muted);overflow-wrap:anywhere}.memory-import-progress-track{height:7px;margin-top:9px;overflow:hidden;border-radius:99px;background:var(--panel-inset)}.memory-import-progress-track>span{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:none}.memory-import-progress-track.is-indeterminate>span{width:40%;animation:memory-import-progress 1.2s ease-in-out infinite}.memory-import-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:8px;color:var(--muted);font-size:10px}.memory-status-badge.is-imported{color:var(--primary);background:var(--accent-soft)}.memory-ask-panel{display:grid;gap:12px}.memory-ask-status{justify-content:space-between;margin-top:0;color:var(--muted);font-size:12px;font-weight:650}@keyframes memory-import-progress{0%{transform:translate(-120%)}to{transform:translate(280%)}}.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:650}.memory-catalog-heading strong,.memory-dialog-header h2{margin:3px 0 0;overflow-wrap:anywhere;color:var(--text);font-size:17px;font-weight:650}.memory-catalog-heading small{margin-top:4px;color:var(--muted);font-size:11px;font-weight:650}.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:var(--panel);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.memory-session-card:hover{border-color:var(--accent-line);box-shadow:var(--shadow-hover);transform:translateY(-1px)}.memory-session-card:focus-visible{outline:3px solid var(--accent-line);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:650}.memory-session-card-heading small{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:650}.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:650}.memory-session-versions strong{margin-top:3px;color:var(--text-secondary);font-size:11px;font-weight:650}.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:650;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:650;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:var(--text-secondary)}.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:650;background:var(--panel)}.memory-catalog-page-input:focus-visible{outline:3px solid var(--accent-line);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:var(--danger);font-size:11px;font-weight:650;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:650}.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 var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow-dialog)}.memory-dialog:focus{outline:none}.memory-dialog-header{padding:15px 17px;border-bottom:1px solid var(--line);background:var(--panel-glass)}.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-session-id{display:block;margin-top:3px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px;overflow-wrap:anywhere}.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:var(--text-secondary);font-size:10px;font-weight:650;background:var(--panel-inset)}.memory-dialog-tabs{display:flex;align-items:center;gap:4px;padding:7px 17px;border-bottom:1px solid var(--line);background:var(--panel)}.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:650;background:transparent}.memory-dialog-tabs button.active,.memory-graph-mobile-tabs button.active{color:var(--primary);background:var(--accent-soft)}.memory-dialog-tabs button:focus-visible,.memory-graph-mobile-tabs button:focus-visible{outline:3px solid var(--accent-line);outline-offset:1px}.memory-dialog-body{min-width:0;min-height:0;padding:17px;overflow:auto;overscroll-behavior:contain;background:var(--panel-soft)}.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:var(--panel)}.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:650}.memory-graph-meta>div:first-child>strong{margin-top:3px;overflow-wrap:anywhere;font-size:14px;font-weight:650}.memory-graph-meta>div:first-child>small{margin-top:3px;color:var(--muted);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:var(--success)}.memory-graph-sync-status>span{width:8px;height:8px;border-radius:50%;background:#10b981}.memory-graph-sync-status strong{font-size:11px;font-weight:650}.memory-graph-sync-status small{grid-column:2;color:var(--muted);font-size:9px}.memory-graph-sync-status.is-waiting{color:var(--warning)}.memory-graph-sync-status.is-waiting>span{background:#f59e0b;animation:livePulse 1.5s ease-in-out infinite}.memory-graph-sync-status.is-error{color:var(--danger)}.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 var(--info-line);border-radius:8px;color:var(--info);font-size:11px;font-weight:650;line-height:1.45;background:var(--info-soft)}.memory-graph-banner span{min-width:0;flex:1}.memory-graph-banner.is-warning{border-color:var(--warning-line);color:var(--warning);background:var(--warning-soft)}.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:var(--panel)}.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:650;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:var(--muted);background:var(--panel)}.memory-graph-input-shell:focus-within{border-color:var(--primary);box-shadow:var(--focus-shadow)}.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:var(--text-secondary);font-size:9px;font-weight:650}.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:var(--text-secondary);cursor:pointer;font-size:11px;font-weight:650;list-style:none;background:var(--panel)}.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:var(--panel);box-shadow:var(--shadow-sm)}.memory-graph-relation-menu label{display:flex;align-items:center;gap:7px;padding:5px 6px;border-radius:6px;color:var(--text-secondary);font-size:10px;font-weight:650}.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:650;background:var(--panel)}.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:var(--text-secondary);font-size:9px;font-weight:650;background:var(--panel-inset)}.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:var(--panel);box-shadow:var(--shadow-sm)}.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,var(--panel),var(--panel-soft))}.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:650}.memory-graph-pane-heading strong:before{position:absolute;top:50%;left:0;width:6px;height:6px;border-radius:999px;background:#2563eb;box-shadow:var(--shadow-sm);content:"";transform:translateY(-50%)}.memory-graph-pane.semantic .memory-graph-pane-heading strong:before{background:#14b8a6;box-shadow:var(--shadow-sm)}.memory-graph-pane-heading span,.memory-graph-pane-heading small{margin-top:3px;color:var(--muted);font-size:9px;font-weight:650}.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:var(--panel-soft);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 var(--line);border-radius:9px;color:var(--text-secondary);background:var(--panel-glass);box-shadow:var(--shadow-sm);-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:650;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:var(--muted);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 var(--line)}.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:var(--muted);font-size:7px;font-weight:650;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:var(--text-secondary);font-size:8px;font-weight:650;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 var(--line)}.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 var(--line);border-radius:9px;background:var(--panel-glass);box-shadow:var(--shadow-sm);-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:var(--text-secondary);background:var(--panel-inset)}.memory-graph-zoom-controls button:hover:not(:disabled){border-color:var(--accent-line);color:var(--primary);background:var(--success-soft)}.memory-graph-zoom-controls button:focus-visible,.memory-graph-zoom-controls input:focus-visible{outline:3px solid var(--accent-line);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:var(--text-secondary);font-size:9px;font-weight:650;text-align:center}.memory-graph-zoom-controls .memory-graph-zoom-fit{gap:4px;padding:0 8px;color:var(--primary);background:var(--accent-soft)}.memory-graph-zoom-fit span{font-size:9px;font-weight:650}.memory-graph-details{min-width:0;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.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:650;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:var(--text-secondary);font-size:13px;font-weight:650}.memory-graph-request-state{min-height:420px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.memory-graph-request-state.is-error svg{color:var(--danger)}.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:650}.memory-graph-detail-title span{margin-top:4px;color:var(--muted);font-size:10px;font-weight:650}.memory-graph-fact-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--text-secondary)}.memory-graph-fact-title strong{overflow-wrap:anywhere;font-size:14px;font-weight:650}.memory-graph-fact-title span{padding:4px 7px;border-radius:999px;color:var(--primary);font-size:10px;font-weight:650;background:var(--accent-soft)}.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:650}.memory-graph-detail-grid strong{margin-top:3px;overflow-wrap:anywhere;color:var(--text-secondary);font-size:11px;font-weight:650}.memory-graph-detail-section{min-width:0}.memory-graph-detail-section h4{margin:0 0 6px;color:var(--text-secondary);font-size:10px;font-weight:650;text-transform:uppercase}.memory-graph-detail-section p,.memory-graph-detail-section ul{margin:0;overflow-wrap:anywhere;color:var(--text-secondary);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:var(--primary)}.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:var(--panel)}.memory-graph-supporting-events button:hover,.memory-graph-supporting-events button:focus-visible{border-color:var(--accent-line);outline:none;box-shadow:var(--focus-shadow)}.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:650}.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:var(--primary);font-size:10px;font-weight:650}.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:650;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:650}.advanced-section-heading strong{margin-top:4px;color:var(--text);font-size:16px;font-weight:650}.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:var(--panel-inset)}.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:650;line-height:1.25;background:transparent}.input-mode-switcher button.active{color:var(--primary);background:var(--panel);box-shadow:var(--shadow-sm)}.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 var(--accent-line);border-radius:8px;color:var(--primary);font-size:13px;font-weight:650;background:var(--accent-soft);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:650;background:var(--panel-inset)}.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:var(--primary)}.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:var(--panel)}.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:var(--panel-inset)}.photo-stream-audio-thumb{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;color:var(--accent, #5d8cff);background:var(--accent-soft);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:650}.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:650}.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:650;line-height:1.2;text-align:left;background:var(--panel)}.demo-clip-switcher button.active{color:var(--primary);border-color:var(--accent-line);background:var(--accent-soft)}.demo-clip-switcher small{min-width:0;overflow:hidden;color:inherit;font-size:10px;font-weight:650;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:650}.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:650;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:var(--panel)}.stat-chip strong{color:var(--text);font-size:17px;font-weight:650;line-height:1.15}.stat-chip.ready{border-color:var(--success-line);background:var(--success-soft)}.stat-chip.warn{border-color:var(--warning-line);background:var(--warning-soft)}.stat-chip.bad{border-color:var(--danger-line);background:var(--danger-soft)}.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:var(--text-secondary);font-size:11px;line-height:1.45;background:var(--panel-soft)}.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:var(--panel)}.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:0}.ask-panel{max-height:none;overflow:visible}.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%{opacity:1;transform:scale(1)}55%{opacity:.55;transform:scale(1.08)}to{opacity:1;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%{transform:translate(0)}to{transform:translate(410%)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.memory-page .standalone-catalog{max-height:none;overflow:visible;overscroll-behavior:auto}.memory-dialog,.current-memory-dialog{display:block;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.memory-dialog-body,.current-memory-dialog-body{overflow:visible}.memory-graph-surface,.memory-graph-surface canvas{touch-action:pan-y!important}.app-shell{width:min(100%,1480px);margin:0 auto;padding:0 24px 34px}.app-topbar{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:72px;border-bottom:1px solid var(--line);background:var(--topbar-bg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.app-brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}.app-brand-mark{display:grid;place-items:center;width:34px;height:34px;color:#fff;border-radius:var(--radius-sm);background:var(--primary)}.app-brand-copy{display:grid;gap:2px}.app-brand-copy strong{font-size:15px}.app-brand-copy small{color:var(--muted);font-size:11px;font-weight:600}.app-primary-nav{display:flex;align-items:center;gap:4px}.app-primary-nav a{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 13px;border-radius:var(--radius-sm);color:var(--muted);font-size:13px;font-weight:650;text-decoration:none;transition:color .16s ease,background .16s ease}.app-primary-nav a:hover,.app-primary-nav a:focus-visible{color:var(--text);background:var(--panel-hover)}.app-primary-nav a.active{color:var(--primary-strong);background:var(--accent-soft)}.language-toggle{justify-self:end;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--muted);background:var(--panel);font-size:12px;font-weight:650}.app-page{min-width:0;padding-top:20px}.memory-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.memory-tools.is-standalone{display:block}.memory-tools.is-standalone>.memory-import-toggle{margin-bottom:12px}.standalone-catalog{max-height:none}.memory-current-session{min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--panel);box-shadow:var(--shadow-sm)}.memory-current-session-heading{display:flex;align-items:center;gap:8px;padding-bottom:12px;color:var(--text);font-size:13px;font-weight:650;border-bottom:1px solid var(--line)}.memory-current-session .current-memory-edit-button{width:100%;justify-content:center}@media(max-width:900px){.app-shell{padding-inline:16px}.app-topbar{grid-template-columns:1fr auto;min-height:112px;padding-top:7px}.app-primary-nav{grid-row:2;grid-column:1 / -1;width:100%}.app-primary-nav a{flex:1;justify-content:center}.memory-page-layout{grid-template-columns:1fr}.memory-current-session{order:-1}}@media(max-width:560px){.app-shell{padding-inline:12px}.app-brand-copy small{display:none}.page-heading{align-items:start;flex-direction:column}.page-heading-context{padding-left:49px}}.app-shell{padding-inline:28px}.app-topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:68px;border-color:var(--line);background:var(--topbar-bg)}.app-brand-mark{width:36px;height:36px;border-radius:11px;box-shadow:var(--shadow-icon)}.app-brand-copy strong{letter-spacing:-.025em}.app-primary-nav a{position:relative;min-height:40px;border-radius:10px;font-weight:650}.app-primary-nav a.active{background:var(--accent-soft)}.app-primary-nav a.active:after{position:absolute;right:13px;bottom:3px;left:13px;height:2px;border-radius:2px;background:var(--primary);content:""}.language-toggle{min-height:38px;border-radius:10px;font-weight:650}.app-page{padding-top:26px}.product-layout{width:min(100%,1320px);grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);gap:28px}.top-header,.ask-header{min-height:56px;margin-bottom:18px}.brand{margin:0;font-size:29px;font-weight:680;letter-spacing:-.04em}.subtitle,.ask-header p{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.4}.ask-header>div{text-align:left}.ask-header h2{margin:0;color:var(--text);font-size:23px;font-weight:680;letter-spacing:-.035em;line-height:1.18;text-align:left}.ask-header .back-button{width:auto;min-height:38px;padding-inline:11px;border-radius:10px}.status-pill,.query-pill,.glass-pill,.signal-chip{font-weight:650}.status-pill{min-height:32px;border-color:var(--line);box-shadow:none}.video-hero{min-height:390px;border:1px solid var(--line);border-radius:17px;background:var(--panel-inset);box-shadow:var(--shadow-media)}.hero-empty{background:radial-gradient(ellipse at 50% 30%,var(--panel) 0%,var(--panel-soft) 72%)}.hero-empty-mark{width:64px;height:64px;margin-bottom:15px;border-color:var(--accent-line);border-radius:18px;background:var(--accent-soft);box-shadow:var(--shadow-icon)}.hero-empty h2{max-width:340px;margin:0;color:var(--text);font-size:clamp(24px,3vw,31px);font-weight:680;letter-spacing:-.035em;line-height:1.15}.hero-empty p{max-width:44ch;margin-top:9px;font-size:14px;line-height:1.55}.main-action,.send-button{border-radius:11px;font-weight:680;transition:transform var(--motion-duration) var(--motion-ease),background-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease,border-color var(--motion-duration) ease}.main-action{min-height:52px;background:var(--primary);box-shadow:var(--shadow-sm)}.main-action:hover:not(:disabled){background:var(--primary-strong);box-shadow:var(--shadow-hover);transform:translateY(-1px)}.main-action.stop-action{background:#b91c1c;box-shadow:var(--shadow-sm)}.main-action.stop-action:hover:not(:disabled){background:#991b1b}.icon-button,.tools-anchor,.advanced-toggle{min-height:40px;border-radius:10px;color:var(--text-secondary);font-weight:620;box-shadow:none;transition:transform var(--motion-duration) var(--motion-ease),color var(--motion-duration) ease,background-color var(--motion-duration) ease,border-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease}.icon-button:hover:not(:disabled),.tools-anchor:hover,.advanced-toggle:hover{border-color:var(--line-strong);color:var(--text);background:var(--panel);box-shadow:var(--shadow-hover);transform:translateY(-1px)}.secondary-controls .icon-button{min-width:0;padding-inline:10px;white-space:nowrap}.surface,.memory-current-session,.memory-card,.memory-session-card,.current-memory-edit-section,.current-memory-readonly-section,.current-memory-record,.memory-graph-toolbar,.memory-graph-keyframe,.evidence-card{border-radius:var(--radius-lg)}.surface,.memory-current-session{border-color:var(--line);box-shadow:var(--shadow-sm)}.composer-card,.answer-card{padding:17px}.composer-label{display:block;margin:0 0 8px 2px;color:var(--text-secondary);font-size:12px;font-weight:650}.ask-composer{min-height:54px;border-radius:12px;background:var(--panel-soft);transition:border-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease,background-color var(--motion-duration) ease}.ask-composer:focus-within{border-color:var(--accent-line);background:var(--panel);box-shadow:var(--focus-shadow)}.ask-composer input{height:40px;font-size:14px}.ask-composer input::placeholder{color:var(--muted);opacity:1}.send-button{min-height:40px;border-radius:9px;color:#fff;background:var(--primary)}.send-button:hover:not(:disabled){background:var(--primary-strong)}.quick-chip{min-height:34px;border-radius:9px;color:var(--text-secondary);font-weight:580;background:var(--panel-soft);transition:transform var(--motion-duration) var(--motion-ease),color var(--motion-duration) ease,background-color var(--motion-duration) ease,border-color var(--motion-duration) ease}.quick-chip:hover:not(:disabled){border-color:var(--accent-line);color:var(--primary-strong);background:var(--accent-soft);transform:translateY(-1px)}.first-frame-hint{padding:8px 10px;border:1px solid var(--accent-line);border-radius:9px;color:var(--text-secondary);background:var(--accent-soft)}.card-header h2,.evidence-section h2{font-size:17px;font-weight:670;letter-spacing:-.02em}.section-description{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:450;line-height:1.45}.answer-body{min-height:104px;margin-top:17px}.answer-body .answer-copy{color:var(--text);font-size:15px;line-height:1.72}.query-pill{min-height:30px;padding-inline:10px;border-radius:9px;font-size:11px}.answer-empty-text{margin:0}.answer-idle{display:flex;align-items:center;gap:12px;min-height:78px;padding:14px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--panel-soft)}.empty-state-icon{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border:1px solid var(--accent-line);border-radius:11px;color:var(--primary);background:var(--accent-soft)}.answer-loading{display:grid;gap:12px;padding:4px 0}.answer-skeleton{display:grid;gap:8px}.answer-skeleton i{display:block;width:100%;height:9px;border-radius:5px;background:var(--panel-inset);animation:skeleton-pulse 1.8s ease-in-out infinite}.answer-skeleton i:nth-child(2){width:88%}.answer-skeleton i:nth-child(3){width:62%}.answer-loading .answer-empty{font-size:12px}.answer-meta span{min-height:27px;border-radius:8px;color:var(--text-secondary);font-size:11px;font-weight:560;background:var(--panel-inset)}.provisional-label{color:var(--primary);font-weight:650;background:var(--accent-soft)}.evidence-section{margin-block:20px}.evidence-section .card-header{align-items:center}.evidence-section h2{max-width:none}.evidence-card{min-height:220px;padding:8px;box-shadow:var(--shadow-sm);animation:evidence-enter .26s var(--motion-ease) both;animation-delay:var(--entry-delay, 0ms)}.evidence-thumb-wrap{border-radius:10px;background:var(--panel-inset)}.evidence-thumb{transition:transform .22s var(--motion-ease)}.evidence-card:hover .evidence-thumb{transform:scale(1.035)}.evidence-meta{color:var(--muted)}.empty-evidence{display:flex;min-height:74px;align-items:center;justify-content:center;gap:9px;border-color:var(--line-strong);border-radius:11px;color:var(--muted);background:var(--panel-soft)}.advanced-toggle{justify-content:space-between;min-height:44px;padding-inline:14px;font-size:13px;background:var(--panel)}.advanced-panel{box-shadow:var(--shadow-sm)}.input-mode-switcher{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));border-radius:11px;background:var(--panel-soft)}.input-mode-switcher button{border-radius:8px;font-weight:620;transition:color var(--motion-duration) ease,background-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease}.input-mode-switcher button.active{color:var(--primary-strong);box-shadow:var(--shadow-sm)}.mode-description{color:var(--muted);line-height:1.6}.demo-upload-control,.demo-clip-switcher button.active{border-color:var(--accent-line);border-radius:10px;color:var(--primary-strong);background:var(--accent-soft)}.memory-page-layout{gap:24px;align-items:start}.page-heading{margin-bottom:22px}.page-heading-icon{border-color:var(--accent-line);border-radius:12px;background:var(--accent-soft)}.page-heading h1{font-size:27px;font-weight:680;letter-spacing:-.04em}.page-heading-context{overflow-wrap:anywhere;font-size:11px}.memory-current-session{padding:16px}.memory-current-session-heading{font-weight:650}.memory-panel-heading strong,.memory-catalog-heading h2{font-weight:680;letter-spacing:-.025em}.memory-session-list{gap:9px}.memory-session-card{padding:15px;box-shadow:var(--shadow-sm);transition:border-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease,transform var(--motion-duration) var(--motion-ease),background-color var(--motion-duration) ease}.memory-session-card:hover{border-color:var(--accent-line);background:var(--panel);box-shadow:var(--shadow-hover);transform:translateY(-2px)}.memory-session-card-heading strong{font-weight:670}.memory-session-versions>span{border-radius:9px;background:var(--panel-soft)}.memory-session-versions small{color:var(--muted);font-weight:600}.memory-session-versions strong{color:var(--text-secondary);font-weight:650}.memory-status-badge{border-radius:7px;font-weight:600}.memory-dialog,.current-memory-dialog{scroll-padding-block:16px;border-color:var(--line);border-radius:16px;box-shadow:var(--shadow-dialog)}.memory-dialog-tabs{gap:5px;background:var(--panel)}.memory-dialog-tabs button,.memory-graph-mobile-tabs button{border-radius:9px;font-weight:620;transition:color var(--motion-duration) ease,background-color var(--motion-duration) ease}.memory-dialog-tabs button.active,.memory-graph-mobile-tabs button.active{color:var(--primary-strong);background:var(--accent-soft)}.memory-card,.current-memory-edit-section,.current-memory-readonly-section{border-color:var(--line);background:var(--panel)}.memory-card{transition:border-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease}.memory-card:hover{border-color:var(--accent-line);box-shadow:var(--shadow-hover)}.memory-content,.memory-param-value{color:var(--text)}.memory-dialog-tabs button,.memory-graph-mobile-tabs button,.memory-graph-relations summary,.memory-graph-supporting-events button,.demo-clip-switcher button{transition:color var(--motion-duration) ease,background-color var(--motion-duration) ease,border-color var(--motion-duration) ease,box-shadow var(--motion-duration) ease,transform var(--motion-duration) var(--motion-ease)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--focus);outline-offset:3px}.app-primary-nav a:focus-visible,.memory-session-card:focus-visible,.memory-dialog-tabs button:focus-visible,.memory-graph-mobile-tabs button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.memory-graph-input-shell:focus-within{border-color:var(--accent-line);box-shadow:var(--focus-shadow)}.memory-graph-relations summary:hover,.memory-graph-supporting-events button:hover,.demo-clip-switcher button:hover{border-color:var(--accent-line);box-shadow:var(--shadow-hover)}.inline-error,.live-error{border:1px solid var(--danger-line);border-radius:10px;color:var(--danger);background:var(--danger-soft)}.memory-catalog-page-error{color:var(--danger)}.memory-session-card:nth-child(1){animation-delay:0ms}.memory-session-card:nth-child(2){animation-delay:25ms}.memory-session-card:nth-child(3){animation-delay:50ms}.memory-session-card:nth-child(4){animation-delay:75ms}.collect-page:not([hidden]),.memory-page:not([hidden]){animation:workspace-enter .21s var(--motion-ease) both}.answer-copy{animation:answer-enter .26s var(--motion-ease) both}.memory-session-card{animation:card-enter .23s var(--motion-ease) backwards}@keyframes workspace-enter{0%{opacity:0}to{opacity:1}}@keyframes answer-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes card-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes evidence-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(min-width:860px){.product-layout{gap:30px;align-items:start}.live-view,.ask-panel{min-height:0}.ask-panel{max-height:none;overflow:visible;padding-right:0}.video-hero{height:min(61dvh,640px);min-height:390px}.top-header,.ask-header{margin-bottom:18px}.brand{font-size:29px}.ask-header h2{font-size:23px}.surface{padding:16px}.composer-card,.answer-card{padding:17px;margin-bottom:14px}.ask-header .back-button{visibility:hidden}}@media(min-width:860px)and (max-width:1100px){.secondary-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.app-shell{padding-inline:18px}.app-topbar{min-height:112px}.app-primary-nav a.active:after{right:25%;left:25%}.app-page{padding-top:20px}.memory-page-layout{gap:16px}.memory-current-session{order:-1}}@media(max-width:859px){.mobile-tabs{top:calc(116px + env(safe-area-inset-top));border-radius:12px}.mobile-tabs button{border-radius:9px;font-weight:620}.product-layout{width:min(100%,740px)}.panel-slot.active{animation:workspace-enter .18s var(--motion-ease) both}}@media(max-width:560px){.app-shell{padding-inline:12px}.app-topbar{min-height:104px;grid-template-columns:minmax(0,1fr) auto}.app-primary-nav{gap:6px}.app-primary-nav a{min-height:36px;padding-inline:8px;font-size:12px}.app-page{padding-top:16px}.mobile-tabs{top:calc(108px + env(safe-area-inset-top))}.top-header,.ask-header{gap:9px}.secondary-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{font-size:24px}.ask-header h2{font-size:20px}.ask-header p,.subtitle{font-size:12px}.video-hero{min-height:290px;border-radius:14px}.hero-empty{padding:20px}.hero-empty-mark{width:54px;height:54px;margin-bottom:12px;border-radius:15px}.hero-empty h2{font-size:24px}.hero-empty p{font-size:13px}.status-pill{min-height:29px;padding-inline:9px;font-size:11px}.surface,.memory-current-session{padding:13px;border-radius:13px}.composer-card,.answer-card{padding:14px}.memory-dialog,.current-memory-dialog{border-radius:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition-duration:.01ms!important}}:root{color-scheme:light;--font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;--font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "PingFang SC", sans-serif;--font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--bg: #f5f5f7;--panel: #ffffff;--panel-soft: #f8f9fb;--panel-inset: #eef0f4;--panel-hover: #f0f2f5;--panel-glass: rgb(255 255 255 / 94%);--topbar-bg: rgb(245 245 247 / 94%);--text: #1d1d1f;--text-secondary: #45464f;--muted: #666872;--line: #dfe1e8;--line-strong: #b8bdc9;--primary: #0b716c;--primary-strong: #0a655f;--accent-soft: #eaf5f3;--accent-line: #a4cfc5;--button-primary: #0f766e;--button-primary-hover: #0b635d;--on-primary: #ffffff;--success: #126748;--success-soft: #edf8f1;--success-line: #a7d5bb;--warning: #855014;--warning-soft: #fff6e7;--warning-line: #e6c58d;--danger: #a32730;--danger-soft: #fff0f1;--danger-line: #e6adb2;--danger-button: #b82c35;--danger-button-hover: #a2212b;--info: #245a96;--info-soft: #edf4ff;--info-line: #abc8ee;--focus: #087e78;--focus-shadow: 0 0 0 3px rgb(15 118 110 / 15%);--grid-line: rgb(81 90 120 / 6%);--grid-glow: rgb(15 118 110 / 5%);--shadow-sm: 0 1px 3px rgb(23 28 47 / 3%), 0 4px 12px rgb(23 28 47 / 4%);--shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 2px 4px rgb(23 28 47 / 3%), 0 16px 40px -16px rgb(23 28 47 / 13%);--shadow-hover: inset 0 1px 0 rgb(255 255 255 / 90%), 0 3px 7px rgb(23 28 47 / 4%), 0 14px 32px -12px rgb(23 28 47 / 15%);--shadow-media: inset 0 1px 0 rgb(255 255 255 / 75%), 0 4px 8px rgb(23 28 47 / 3%), 0 22px 55px -20px rgb(23 28 47 / 18%);--shadow-icon: inset 0 1px 0 rgb(255 255 255 / 65%), 0 2px 5px rgb(23 28 47 / 3%), 0 12px 24px -8px rgb(15 118 110 / 15%);--shadow-dialog: 0 8px 24px rgb(12 17 30 / 10%), 0 32px 100px -24px rgb(12 17 30 / 30%);--radius-sm: 10px;--radius-md: 12px;--radius-lg: 18px;--topbar-height: 72px;font-family:var(--font-ui);font-size:16px;font-optical-sizing:auto}:root[data-theme=dark]{color-scheme:dark;--bg: #0e1015;--panel: #191c24;--panel-soft: #1e222c;--panel-inset: #272c38;--panel-hover: #2a303d;--panel-glass: rgb(25 28 36 / 95%);--topbar-bg: rgb(14 16 21 / 95%);--text: #f2f3f7;--text-secondary: #d0d4df;--muted: #a0a8ba;--line: #343b4b;--line-strong: #59657a;--primary: #74dcc9;--primary-strong: #94eadc;--accent-soft: #17342f;--accent-line: #367d6f;--button-primary: #0f766e;--button-primary-hover: #0c665f;--success: #8bdcb2;--success-soft: #19382a;--success-line: #39745a;--warning: #f3c983;--warning-soft: #3b2d1a;--warning-line: #816336;--danger: #ffa9b0;--danger-soft: #3d222b;--danger-line: #8e4555;--info: #9dc9ff;--info-soft: #1e304b;--info-line: #476a9d;--focus: #74dcc9;--focus-shadow: 0 0 0 3px rgb(116 220 201 / 18%);--grid-line: rgb(155 174 209 / 7%);--grid-glow: rgb(116 220 201 / 5%);--shadow-sm: inset 0 1px 0 rgb(255 255 255 / 3%), 0 3px 10px rgb(0 0 0 / 16%);--shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 2px 8px rgb(0 0 0 / 16%), 0 18px 40px -14px rgb(0 0 0 / 35%);--shadow-hover: inset 0 1px 0 rgb(255 255 255 / 6%), 0 4px 12px rgb(0 0 0 / 20%), 0 20px 40px -16px rgb(0 0 0 / 45%);--shadow-media: inset 0 1px 0 rgb(255 255 255 / 4%), 0 5px 16px rgb(0 0 0 / 20%), 0 24px 60px -16px rgb(0 0 0 / 50%);--shadow-icon: inset 0 1px 0 rgb(255 255 255 / 9%), 0 3px 8px rgb(0 0 0 / 15%), 0 12px 24px -8px rgb(0 0 0 / 25%);--shadow-dialog: 0 10px 30px rgb(0 0 0 / 30%), 0 40px 100px -20px rgb(0 0 0 / 70%)}body{color:var(--text);background:var(--bg)}button,input,textarea,select{font-family:var(--font-ui)}button{font-weight:550}code,pre,.diagnostic-id-list strong,.memory-session-id,.memory-dialog-session-id{font-family:var(--font-mono)}.brand,.ask-header h2,.page-heading h1,.card-header h2,.hero-empty h2,.memory-dialog-header h2,.current-memory-dialog-header h2{font-family:var(--font-display);font-weight:600;letter-spacing:-.035em;text-wrap:balance}.app-brand-copy strong{font-size:16px;font-weight:650;letter-spacing:-.03em}.app-brand-copy small{font-weight:450}.app-topbar{min-height:calc(var(--topbar-height) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);background:var(--topbar-bg)}.app-toolbar{display:flex;justify-self:end;align-items:center;gap:8px}.theme-toggle,.language-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:12px;color:var(--text-secondary);background:var(--panel);box-shadow:var(--shadow-sm);font-weight:550;cursor:pointer;transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .18s ease,transform .16s var(--motion-ease)}.theme-toggle{width:44px;flex:0 0 44px;padding:0}.theme-toggle:hover,.language-toggle:hover{color:var(--primary);border-color:var(--accent-line);background:var(--panel-hover);box-shadow:var(--shadow-hover)}.theme-toggle:active,.language-toggle:active{transform:scale(.96)}.theme-toggle svg{animation:theme-icon-enter .18s var(--motion-ease) both}.app-primary-nav a{font-weight:550;min-height:44px}.app-primary-nav a.active{color:var(--primary-strong)}.app-brand-mark{color:var(--on-primary);background:var(--button-primary);border-radius:12px;box-shadow:var(--shadow-icon)}.brand{font-size:30px}.subtitle,.ask-header p{margin-top:6px;font-weight:400}.surface,.memory-current-session{box-shadow:var(--shadow);border-radius:var(--radius-lg)}.video-hero{border-radius:22px;box-shadow:var(--shadow-media)}.hero-empty{background:radial-gradient(ellipse at 50% 28%,var(--panel) 0%,var(--panel-soft) 75%)}.hero-empty-mark{width:68px;height:68px;border-radius:20px;color:var(--primary);border-color:var(--accent-line);background:var(--accent-soft);box-shadow:var(--shadow-icon)}.hero-empty-mark svg{filter:drop-shadow(0 2px 2px rgb(15 118 110 / 10%))}.hero-empty h2{font-weight:600;font-size:clamp(25px,2.7vw,33px)}.hero-empty p{font-size:14px;font-weight:400}.main-action,.send-button,.current-memory-confirm{color:var(--on-primary);background:var(--button-primary);font-weight:600;box-shadow:var(--shadow-sm)}.main-action:hover:not(:disabled),.send-button:hover:not(:disabled),.current-memory-confirm:hover:not(:disabled){background:var(--button-primary-hover)}.main-action.stop-action{background:var(--danger-button)}.main-action.stop-action:hover:not(:disabled){background:var(--danger-button-hover)}.main-action{border-radius:14px;min-height:54px}.mobile-tabs button.active{color:var(--on-primary);background:var(--button-primary)}.icon-button,.advanced-toggle,.tools-anchor,.quick-chip{font-weight:550}.icon-button.danger-text{color:var(--danger)}.icon-button.ask-switch,.icon-button.current-memory-edit-button{color:var(--primary)}.input-mode-switcher button,.memory-dialog-tabs button{font-weight:550}.input-mode-switcher button.active{color:var(--primary);background:var(--panel)}.ask-composer{min-height:58px;border-radius:14px}.ask-composer input{height:44px;font-size:16px}.send-button{min-height:44px;border-radius:11px}.composer-label{font-size:13px;font-weight:550}.section-description{font-size:13px;font-weight:400}.answer-body .answer-copy{font-size:16px;line-height:1.7}.answer-idle{border-radius:14px}.answer-meta span,.evidence-meta{font-variant-numeric:tabular-nums;font-weight:450}.evidence-card{border-radius:16px;box-shadow:var(--shadow-sm)}.evidence-copy p,.memory-content{font-weight:400;line-height:1.6}.memory-session-card{border-radius:16px;box-shadow:var(--shadow-sm)}.memory-session-card:hover{box-shadow:var(--shadow-hover)}.memory-session-card-heading strong{font-family:var(--font-display);font-size:15px;font-weight:600;letter-spacing:-.02em}.memory-session-card-heading small{font-size:11px;font-weight:450}.memory-session-versions strong{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}.memory-session-versions small{font-size:11px;font-weight:500}.memory-status-badge,.memory-badge,.memory-status-row{font-weight:500}.memory-graph-pane{border-radius:18px;box-shadow:var(--shadow)}.memory-graph-pane-heading{background:var(--panel-soft)}.memory-graph-canvas{background-color:var(--panel-soft);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px),radial-gradient(circle at 18% 10%,var(--grid-glow),transparent 45%)}.memory-graph-pane.semantic .memory-graph-canvas{background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px),radial-gradient(circle at 82% 10%,var(--grid-glow),transparent 45%)}.memory-graph-legend,.memory-graph-zoom-controls{background:var(--panel-glass);border-color:var(--line-strong);box-shadow:var(--shadow-sm)}.memory-dialog,.current-memory-dialog{border-radius:22px;box-shadow:var(--shadow-dialog)}.memory-dialog-header,.current-memory-dialog-header{background:var(--panel)}.memory-section-toggle strong,.current-memory-section-heading h3{font-weight:600}.memory-graph-toolbar label>span:first-child,.memory-graph-range-control>span:first-child{text-transform:none;font-size:11px;font-weight:500}.photo-stream-audio-thumb{color:var(--primary);background:var(--accent-soft)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--focus)}::selection{color:var(--text);background:var(--accent-line)}@keyframes theme-icon-enter{0%{opacity:0;transform:rotate(-20deg) scale(.85)}to{opacity:1;transform:rotate(0) scale(1)}}@media(max-width:900px){:root{--topbar-height: 112px}.app-topbar{gap:8px;padding-block:calc(8px + env(safe-area-inset-top)) 8px}.app-primary-nav{padding-bottom:0}}@media(max-width:859px){.mobile-tabs{top:calc(var(--topbar-height) + env(safe-area-inset-top) + 8px)}}@media(max-width:560px){.app-topbar{gap:8px}.app-brand-copy strong{font-size:15px}.brand{font-size:25px}.ask-header h2{font-size:21px}.video-hero{border-radius:18px}.hero-empty-mark{width:60px;height:60px;border-radius:18px}.hero-empty h2{font-size:26px}.surface,.memory-current-session{border-radius:16px}.memory-dialog,.current-memory-dialog{border-radius:18px}.app-primary-nav a{min-height:44px}.current-memory-record textarea,.memory-import-title-field input,.memory-graph-input-shell input,.memory-catalog-page-input{font-size:16px}}@media(prefers-reduced-motion:reduce){.theme-toggle svg{animation:none}.theme-toggle,.language-toggle{transition:none}}
