/* Focused motion and layout updates. No animations that block input or move text while reading. */
:where(button,a,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent,#7569ef);outline-offset:3px}
:where(button,summary){touch-action:manipulation}
.legal-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 9px;padding:8px 12px;line-height:1.5;text-align:center}
.legal-links span{font-weight:800;color:var(--fg2);user-select:none}.legal-links a{font-size:11px;text-decoration:none;border-radius:6px;padding:3px 0}.legal-links a:hover{text-decoration:underline;text-underline-offset:3px}
.guide-about-link{display:inline-flex;align-items:center;margin-top:20px;padding:11px 16px;border-radius:14px;border:1px solid var(--border);color:var(--accent);text-decoration:none;background:color-mix(in srgb,var(--accent) 5%,transparent)}
#smartPCDialog{background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 10%,transparent),transparent 65%),var(--bg2);text-align:left}
#smartPCDialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px}#smartPCDialog>p{color:var(--fg2);font-size:14px;line-height:1.6}#smartPCDialog>ul{list-style:none;padding:0;display:grid;gap:12px;margin:22px 0}#smartPCDialog>ul li{position:relative;padding-left:26px;font-size:14px;line-height:1.5}#smartPCDialog>ul li::before{content:'✓';position:absolute;left:0;color:var(--accent);font-weight:700}#smartPCDialog>.primary{width:100%;min-height:46px;border-radius:14px;background:var(--accent);box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 22%,transparent);color:var(--bg);font-weight:600}#smartPCDialog>.primary:disabled{opacity:.55;box-shadow:none;cursor:not-allowed}
.tb-actions #smartPCButton{width:34px;height:34px;min-width:34px;padding:6px;justify-content:center}.tb-actions #smartPCButton svg{width:22px;height:22px}.tb-actions #smartPCButton span{display:none}
.api-key-details{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;border:none!important;background:none!important;padding:0!important;white-space:normal!important;min-width:0}
.credential-label{font-family:inherit;font-weight:500;font-size:12px;line-height:1.4;color:var(--fg2);margin-top:5px}.credential-value{display:block;min-width:0;max-width:100%;padding:11px 12px;background:var(--bg);border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere;word-break:break-word;font-family:inherit;font-size:13px;line-height:1.5;user-select:all}.credential-divider{height:1px}
.api-key-card{align-items:stretch}.api-key-card>button{border-radius:12px;white-space:normal;line-height:1.4}.mcp-connection-card{display:flex;min-width:0;max-width:100%;border:1px solid var(--border);border-radius:14px;padding:14px;background:var(--bg2);margin:12px 0}.mcp-connection-card summary{cursor:pointer;font-size:14px;font-weight:500}.mcp-connection-card code{display:block;font:12px/1.65 monospace;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;margin-top:12px;padding:10px;background:var(--bg);border-radius:10px;user-select:all}.mcp-connection-card button{margin-top:12px;width:100%;white-space:normal}
.response-recovery{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 10px;max-width:min(100%,460px);width:fit-content;min-height:0;padding:8px 10px;border-radius:12px;margin:10px 0;font-size:12px;line-height:1.4;box-sizing:border-box}.response-recovery>span{flex:0 1 auto!important;min-width:0;max-width:100%;overflow-wrap:anywhere}.response-recovery button{flex:0 0 auto;min-height:34px;padding:6px 10px;font-size:12px;border-radius:9px;line-height:1.3}
.notification-popover{overscroll-behavior:contain;scrollbar-width:thin}.notification-row{min-width:0}.notice-copy{min-width:0}.notice-full{white-space:pre-line;overflow-wrap:anywhere;font-size:12px;line-height:1.5}.notice-expand{position:sticky;bottom:0;background:var(--bg2);min-height:42px;width:100%;z-index:1}.notification-row[aria-expanded=true] .notice-chevron{transform:rotate(180deg)}#noticeSort-important svg{width:20px;height:20px;flex:0 0 20px;stroke-linecap:round}
#voiceModeStage #voiceModeOrb{--orb-a:color-mix(in srgb,var(--accent) 22%,white);--orb-b:var(--accent);--orb-c:color-mix(in srgb,var(--accent) 65%,black)}
#liveCamera[hidden]{display:none!important}#liveCamera{position:fixed;inset:0;z-index:1;background:#080b12;color:white;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px)}
#liveCameraVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:-2;background:#080b12}#liveCamera::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#0006,transparent 25%,transparent 60%,#0009);z-index:-1}.live-camera-top{position:absolute;top:calc(env(safe-area-inset-top) + 16px);left:16px;right:16px;display:flex;justify-content:space-between;gap:16px;align-items:center}#liveCamera button:not(#voiceModeOrb),#liveCamera select{color:white;background:#162035a6;border:1px solid #ffffff45;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;backdrop-filter:blur(12px)}#liveCamera button:disabled{opacity:.35}#liveCamera svg{width:23px;height:23px}#liveCamera select{width:auto;min-width:90px;border-radius:16px;padding:0 12px;font-family:inherit;font-size:14px}#liveCamera select option{background:#172030}#liveCameraTorch[aria-pressed=true]{background:#ffffffda;color:#121827}#liveCameraStatus{margin:auto 8px 14px;text-align:center;max-width:420px;font-size:14px;line-height:1.5;text-shadow:0 1px 6px black}.live-camera-bottom{display:flex;align-items:center;justify-content:center;gap:26px;min-height:96px}#liveCameraOrbSlot{display:grid;place-items:center;width:96px;height:96px}#liveCamera #voiceModeOrb{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;margin:0}#liveCameraNote{text-align:center;font-size:11px;line-height:1.5;color:#e1e5f2;max-width:450px;margin:10px 0 0}#liveCameraOpen svg{width:20px;height:20px;flex:none}
@media(max-width:540px){.api-key-card{padding:13px;gap:8px}.api-key-card>button{flex:1 1 100%}.mcp-connection-card{padding:12px}.response-recovery{max-width:100%;font-size:12px}.notification-row{grid-template-columns:18px minmax(0,1fr) 65px 14px;gap:6px;padding:10px 8px}.notice-time{font-size:10px}#smartPCDialog{padding:20px}.legal-links{gap:4px 7px}.legal-links a{font-size:10px}}
@media(prefers-reduced-motion:no-preference){html:not([data-motion=reduced]) :is(button,a,input,select,textarea,summary){transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .2s ease,opacity .18s ease}html:not([data-motion=reduced]) :is(.product-dialog[open],.api-key-card,.mcp-connection-card,#liveCamera:not([hidden]),.guide-about-link){animation:pongy-panel-in .24s cubic-bezier(.2,.8,.2,1)}html:not([data-motion=reduced]) :is(.notice-chevron,.credential-value){transition:transform .2s ease,border-color .2s ease}@keyframes pongy-panel-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}
html[data-motion=reduced] #liveCamera *,html[data-motion=reduced] .product-dialog *,html[data-motion=reduced] .api-key-card *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#liveCamera *,#voiceModeOrb,.voice-mode-orb *{animation:none!important;transition:none!important}}
.connection-apply{display:block;width:100%;padding:12px 14px;text-align:center;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--fg);font-weight:500;margin:16px 0 8px}.connection-apply[aria-checked=true]{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--bg))}
.mcp-connection-card [hidden]{display:none!important}
/* Native details creates an internal content box: flex would squeeze it beside summary. */
.mcp-connection-card{display:block;width:100%;box-sizing:border-box}.mcp-connection-card summary{display:list-item;line-height:1.5;padding:2px 0 10px}.mcp-connection-card .credential-label{display:block}.mcp-connection-card input.credential-value{display:block;width:100%;box-sizing:border-box;margin:6px 0 12px;min-width:0;max-width:100%;font-size:13px}
#voiceModeStage[data-state] #voiceModeOrb{--orb-a:color-mix(in srgb,var(--accent) 22%,white);--orb-b:var(--accent);--orb-c:color-mix(in srgb,var(--accent) 65%,black)}
.voice-mode-dot{background:radial-gradient(circle at 28% 20%,color-mix(in srgb,var(--accent) 22%,white),var(--accent) 48%,color-mix(in srgb,var(--accent) 65%,black) 82%)}

/* Composer button layout must never override semantic visibility. */
#liveCameraOpen[hidden]{display:none!important}
