/* Crisp browser-local recreation of build59 controls with prepared examples.
   The same app surface expands from its inline preview into a viewport dialog. */
[hidden] { display:none !important; }
.site-header .brand { min-height:44px; display:flex; align-items:center; }
.hero-stage { max-width:1104px; margin:32px auto 0; padding:0 32px; display:grid; grid-template-columns:minmax(0,1fr) 400px; align-items:center; gap:72px; }
.hero-stage .intro { margin:0; padding:0; text-align:left; max-width:none; }
.hero-stage h1 { font-size:clamp(36px,4.1vw,54px); line-height:1.15; letter-spacing:-.045em; }
.hero-stage .subtitle { font-size:17px; margin:24px 0; text-wrap:pretty; }
.hero-stage .hero-actions { justify-content:flex-start; gap:12px 22px; }
.hero-footnote { font-size:12px; color:var(--muted); margin:16px 0 0; }
.hero-stage .demo { width:100%; max-width:400px; padding:0; margin:0; min-width:0; scroll-margin-top:20px; }
#interactive-demo { min-height:500px; }
.scenario-switch { display:grid; grid-template-columns:1fr 1fr; gap:4px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.scenario-switch button { min-height:48px; padding:8px 4px; font-size:14px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; line-height:1.35; }
.scenario-switch button[aria-pressed="true"] { color:var(--fg); border-color:var(--fg); }
.story-context { min-height:76px; margin-bottom:12px; }
#story-source { font-size:12px; color:var(--muted); margin:0 0 4px; }
#story-question { font-size:15px; line-height:1.45; margin:0; }
.app-entry { position:relative; display:block; width:100%; padding:0; border-radius:14px; border:1px solid var(--line); background:var(--bg); color:var(--fg); text-align:left; box-shadow:0 16px 50px #0002; cursor:zoom-in; transition:transform .2s,box-shadow .2s; }
.app-entry:hover { transform:translateY(-3px); box-shadow:0 22px 60px #0003; }
.app-entry:focus-visible { outline:3px solid var(--focus); outline-offset:5px; }
.entry-app { display:flex; flex-direction:column; min-height:370px; overflow:hidden; border-radius:14px; }
.preview-toolbar { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line); font-size:13px; gap:12px; }
.window-dots { color:var(--muted); letter-spacing:2px; font-size:10px; }
.preview-model { padding:12px 16px; color:var(--muted); font-size:12px; }
.preview-question { display:block; margin:16px 16px 24px 48px; padding:12px; background:var(--soft); border-radius:12px; font-size:14px; line-height:1.5; }
.preview-answer { display:block; padding:0 20px 24px; flex:1; }
.preview-answer p { font-size:15px; line-height:1.6; margin:10px 0 0; }
.preview-composer { display:flex; justify-content:space-between; padding:16px; border-top:1px solid var(--line); font-size:14px; font-weight:600; }
.expand-mark { flex-shrink:0; display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); background:var(--bg); border-radius:50%; }
.expand-mark svg, .icon-control svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; }
.answer-caption { display:block; color:var(--muted); font-size:13px; margin-bottom:8px; }
.answer-number { display:block; font-size:clamp(32px,6vw,44px); font-weight:650; line-height:1.2; letter-spacing:-.04em; }
.answer-title { display:block; font-size:22px; line-height:1.35; }
.demo .demo-note { font-size:12px; margin:12px 0 0; color:var(--muted); }
.trial-dialog { --bg:#fff; --fg:#202124; --muted:#5f6368; --line:#dedfe2; --soft:#f2f3f5; --focus:#1762c4; position:fixed; inset:0; margin:0; padding:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; color:var(--fg); background:var(--soft); overflow:hidden; }
.trial-dialog[data-theme="dark"] { --bg:#1e1f21; --fg:#f3f4f5; --muted:#b5b8bd; --line:#44464b; --soft:#141517; --focus:#82b5ff; color-scheme:dark; }
.trial-dialog::backdrop { background:var(--soft); }
.trial-dialog { inset:auto; top:var(--trial-top,0px); left:var(--trial-left,0px); width:var(--trial-width,100%); height:var(--trial-height,100dvh); }
.trial-workspace { position:relative; width:100%; height:100%; overflow:hidden; }
.trial-workspace:fullscreen { background:var(--soft); color:var(--fg); }
.trial-canvas { position:absolute; inset:0; width:100%; height:100%; display:flex; flex-direction:column; container:trial / size; overflow:hidden; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.trial-heading { flex-shrink:0; background:var(--soft); border-bottom:1px solid var(--line); }
.browser-tab-strip { height:34px; display:flex; align-items:center; gap:20px; padding:0 14px; background:color-mix(in srgb,var(--fg) 5%,var(--soft)); }
.browser-dots { display:flex; gap:7px; }
.browser-dots i { display:block; width:10px; height:10px; border-radius:50%; background:#ff6058; border:1px solid #0002; }
.browser-dots i:nth-child(2) { background:#febc2e; }
.browser-dots i:nth-child(3) { background:#28c840; }
.browser-tab { display:flex; align-items:center; gap:10px; height:30px; margin-top:4px; padding:0 12px; width:230px; border-radius:10px 10px 0 0; background:var(--soft); }
.browser-tab strong { flex:1; font-size:12px; font-weight:450; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.browser-favicon { background:#2463db; color:white; border-radius:4px; font-size:10px; width:16px; height:16px; text-align:center; }
.browser-new-tab { font-size:20px; }
.browser-address-row { display:flex; align-items:center; gap:10px; padding:0 10px; min-height:44px; }
.browser-navigation { color:var(--muted); font-size:22px; white-space:nowrap; }
.browser-address { display:flex; align-items:center; gap:10px; min-width:90px; flex:1; height:30px; padding:0 12px; background:var(--bg); border-radius:20px; color:var(--fg); font-size:12px; }
.browser-address span:first-of-type { flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.browser-address svg { width:16px; height:16px; flex-shrink:0; fill:var(--bg); stroke:var(--muted); stroke-width:1.4; }
.trial-disclosure { font-size:12px; color:var(--muted); max-width:32%; }
.trial-dialog button { min-width:44px; min-height:44px; padding:10px 12px; font:inherit; font-size:14px; line-height:1.35; color:var(--fg); border-radius:8px; cursor:pointer; }
.trial-dialog button:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
.trial-dialog button:hover { background:var(--soft); }
.trial-close { flex-shrink:0; font-size:28px !important; }
.trial-heading .trial-close { width:44px; height:44px; padding:0; line-height:1; }
.trial-grid { --trial-app-width:clamp(320px,46cqw,440px); flex:1; min-height:0; position:relative; width:100%; }
.trial-context { position:absolute; inset:0; min-width:0; overflow:auto; overscroll-behavior:contain; background:var(--bg); }
.practice-site-header { display:flex; gap:20px; align-items:center; justify-content:space-between; padding:14px 28px; border-bottom:1px solid var(--line); font-size:14px; }
.practice-site-header strong { font-size:18px; white-space:nowrap; }
.practice-site-header strong span { font-weight:400; color:var(--muted); }
.practice-course { color:var(--muted); }
.practice-page { width:min(900px,calc(100% - 56px)); margin:28px auto 40px; }
.practice-breadcrumb { display:flex; align-items:center; gap:16px; justify-content:space-between; color:var(--muted); font-size:14px; margin-bottom:18px; }
.trial-source { font-size:14px; color:var(--muted); margin:0; }
.practice-progress { white-space:nowrap; font-variant-numeric:tabular-nums; }
.trial-question { max-width:720px; font-size:26px; line-height:1.4; font-weight:650; letter-spacing:-.025em; margin:0 0 18px; text-wrap:pretty; }
.practice-problem { max-width:760px; font-size:16px; line-height:1.65; }
.practice-intro { margin:0 0 20px; }
.practice-table { width:100%; border-collapse:collapse; font-size:15px; font-variant-numeric:tabular-nums; }
.practice-table th, .practice-table td { border-bottom:1px solid var(--line); padding:10px 14px; text-align:right; white-space:nowrap; }
.practice-table th:first-child { text-align:left; }
.practice-table thead { background:var(--soft); }
.practice-table th { font-weight:550; }
.practice-rules { margin:24px 0; padding:16px 20px; border:1px solid var(--line); border-radius:8px; }
.practice-rules h3 { font-size:16px; margin:0 0 8px; }
.practice-rules ol { padding-left:22px; margin:0; }
.practice-rules li + li { margin-top:8px; }
.practice-prompt { font-weight:550; }
.practice-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; border:0; margin:0; padding:0; }
.practice-options label { display:flex; align-items:center; gap:12px; min-height:48px; padding:10px 14px; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.practice-options label:has(:checked) { border-color:var(--focus); background:color-mix(in srgb,var(--focus) 8%,var(--bg)); }
.practice-options input { width:18px; height:18px; margin:0; accent-color:var(--focus); }
.practice-options label > span { color:var(--muted); }
.practice-selection { min-height:24px; font-size:14px; color:var(--muted); }
.practice-note { font-size:12px; color:var(--muted); border-top:1px solid var(--line); padding-top:14px; }
.trial-resume { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:20px; font-size:16px; line-height:1.7; }
.trial-app { position:absolute; right:16px; top:16px; width:var(--trial-app-width); height:min(560px,calc(100% - 32px)); min-height:0; overflow:hidden; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; background:var(--bg); box-shadow:0 20px 60px #0003; }
.app-toolbar { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:4px; flex-shrink:0; cursor:grab; touch-action:none; }
.app-toolbar:active { cursor:grabbing; }
.app-toolbar:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
.window-grip { flex:1; min-width:16px; color:var(--muted); text-align:center; user-select:none; }
.app-modes { display:flex; gap:2px; }
.app-modes button { font-weight:600; color:var(--muted); }
.app-modes button[aria-pressed="true"] { background:var(--soft); color:var(--fg); }
.icon-control { display:grid; place-items:center; }
.app-meta { display:flex; align-items:center; justify-content:space-between; padding:0 12px; font-size:12px; color:var(--muted); flex-shrink:0; }
.app-tools { display:flex; align-items:center; flex-shrink:0; }
.preview-primary { margin-left:auto; }
.app-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 20px 12px; }
.app-question { margin:12px 0 28px 28px; padding:12px; border-radius:12px; background:var(--soft); font-size:14px; line-height:1.5; }
.app-answer p, .answer-detail { font-size:16px; line-height:1.7; }
.app-answer .answer-explain, .app-answer .answer-copy { display:block; padding-left:0; color:var(--muted); text-align:left; margin-top:12px; text-decoration:underline; text-underline-offset:4px; }
.answer-detail { border-left:2px solid var(--line); padding-left:14px; margin:8px 0; }
.app-status { font-size:14px; color:var(--muted); line-height:1.5; margin:12px 0; }
.app-composer { margin:0; width:100%; max-width:none; flex-direction:row; flex-shrink:0; padding:6px 10px; border-top:1px solid var(--line); display:flex; gap:8px; justify-content:space-between; }
.app-composer .app-ask { margin-left:auto; background:var(--fg); color:var(--bg); font-weight:600; }
.app-composer .app-stop { width:100%; border:1px solid var(--line); }
.trial-settings h3 { font-size:20px; }
.trial-settings h4 { font-size:16px; }
.trial-settings label { display:flex; align-items:center; gap:10px; min-height:44px; font-size:16px; line-height:1.5; }
.trial-settings input { width:24px; height:24px; flex-shrink:0; }
.trial-settings p { font-size:16px; line-height:1.7; }
@container trial (max-width:600px) and (orientation:portrait) {
 .browser-address-row { gap:4px; padding-inline:6px; }
 .browser-navigation { display:none; }
 .trial-disclosure { font-size:12px; }
 .trial-grid { --trial-app-width:calc(100% - 16px); }
 .practice-page { width:calc(100% - 32px); margin-top:16px; }
 .practice-site-header { padding:12px 16px; }
 .trial-source { font-size:12px; margin-bottom:8px; }
 .trial-question { font-size:20px; margin-bottom:8px; }
 .trial-resume { font-size:14px; padding:10px; margin:8px 0; }
 .practice-table th, .practice-table td { padding:8px 6px; }
 .practice-options { grid-template-columns:1fr; }
 .trial-app { top:auto; bottom:8px; right:8px; height:clamp(260px,48cqh,400px); }
}
@container trial (max-height:500px) and (orientation:landscape) {
 .trial-grid { --trial-app-width:clamp(350px,46cqw,440px); }
 .trial-app { right:12px; top:8px; height:calc(100% - 16px); }
 .browser-tab-strip { height:28px; }
 .browser-tab { height:25px; margin-top:3px; }
 .practice-page { margin-top:20px; }
 .trial-question { font-size:22px; margin-bottom:16px; }
 .trial-resume { font-size:14px; padding:12px; }
 .app-meta { display:none; }
 .app-question { display:none; }
 .app-question { margin-top:8px; margin-bottom:16px; }
}
.next-step { max-width:800px; margin:80px auto 0; padding:28px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; gap:24px; align-items:center; justify-content:space-between; }
.next-step h2 { font-size:26px; line-height:1.3; margin:0 0 8px; letter-spacing:-.03em; }
.next-step p:not(.eyebrow) { color:var(--muted); font-size:14px; margin:0; }
.next-step .eyebrow { margin-bottom:8px; }
.next-step button { flex-shrink:0; }
#continue-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:14px; padding:24px; color:var(--fg); background:var(--bg); box-shadow:0 24px 70px #0005; }
#continue-dialog::backdrop { background:#0008; }
.dialog-heading { display:flex; gap:8px; align-items:center; justify-content:space-between; }
.dialog-heading h2 { margin:0; font-size:22px; line-height:1.3; }
#continue-close { min-width:44px; min-height:44px; flex-shrink:0; font-size:26px; }
#continue-help { color:var(--muted); font-size:14px; }
#continue-dialog label { display:block; font-size:12px; margin:24px 0 8px; }
#continue-url { width:100%; min-height:44px; padding:10px; font-size:14px; color:var(--fg); background:var(--soft); border:1px solid var(--line); border-radius:6px; }
.continue-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.secondary { min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:8px; font-size:14px; font-weight:600; }
#continue-status { font-size:13px; min-height:42px; margin-bottom:0; }
@media(min-width:861px) { .hero-stage .eyebrow { margin-top:-48px; } }
@media(max-width:1000px) { .hero-stage { gap:32px; } .next-step { margin-inline:32px; } }
@media(max-width:860px) {
 .hero-stage { display:block; max-width:600px; margin-top:12px; padding:0 24px; }
 .hero-stage .intro { text-align:center; }
 .hero-stage h1 { font-size:38px; }
 .hero-stage .hero-actions { justify-content:center; }
 .hero-stage .demo { margin:28px auto 0; }
 .hero-stage .subtitle { margin:16px 0 20px; font-size:16px; }
 .hero-stage .hero-footnote { font-size:11px; margin-top:12px; }
 #interactive-demo { min-height:500px; }
 .story-context { min-height:76px; }
 .next-step { margin-top:48px; }
}
@media(max-width:540px) {
 .site-header { padding:12px 16px; gap:8px; }
 .brand { font-size:20px; } .brand span { margin-left:6px; font-size:11px; }
 .preferences { gap:0; } .preferences select { font-size:12px; padding:4px; max-width:90px; }
 .hero-stage { padding:0 16px; margin-top:16px; }
 .hero-stage h1 { font-size:34px; }
 .hero-stage .subtitle { font-size:15px; margin:14px 0 16px; line-height:1.6; }
 .hero-stage .eyebrow { margin-bottom:10px; font-size:11px; }
 .hero-stage .hero-actions { gap:8px 14px; }
 .hero-stage .primary, .hero-stage .text-link { font-size:13px; padding-inline:12px; }
 .hero-stage .demo { margin-top:20px; }
 .scenario-switch { margin-bottom:12px; }
 #interactive-demo { min-height:490px; }
 .story-context { min-height:74px; }
 #story-question { font-size:14px; }
 .next-step { margin:40px 16px 0; display:block; padding:24px 0; }
 .next-step button { margin-top:20px; }
 .walkthrough-controls { gap:4px; }
 .story-steps button, #story-play { padding-inline:6px; font-size:11px; }
 #continue-dialog { padding:16px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }

.answer-cues { margin:14px 0 0; padding-left:20px; font-size:16px; line-height:1.65; }
.answer-cues li + li { margin-top:8px; }
.trial-context:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; border-radius:8px; }
@container trial (max-height:500px) and (orientation:landscape) { .answer-cues { font-size:15px; line-height:1.5; } .answer-cues li + li { margin-top:6px; } }
/* Native build59: latest answer card above a two-row composer. */
.entry-app { background:color-mix(in srgb,var(--fg) 9%,var(--bg)); }
.preview-toolbar { border:0; padding:8px; gap:8px; }
.preview-model { margin:8px 8px 0; padding:8px 10px; background:var(--bg); border-radius:10px 10px 0 0; font-size:11px; }
.preview-answer { flex:0; margin:0 8px; padding:8px 12px 16px; background:var(--bg); border-radius:0 0 10px 10px; }
.preview-answer .answer-number { font-size:26px; }
.preview-input { margin: auto 8px 0; padding:14px 10px 4px; border-radius:10px 10px 0 0; background:var(--bg); font-size:12px; color:var(--muted); }
.preview-composer { margin:0 8px 8px; padding:8px; gap:6px; background:var(--bg); border:0; border-radius:0 0 10px 10px; font-size:11px; align-items:center; }
.trial-app { background:var(--native-window); }
.app-toolbar { border:0; gap:2px; }
.trial-dialog .app-modes button { padding:6px 8px; font-size:12px; }
.trial-dialog .app-tools button { padding:6px; }
.trial-reset { font-size:11px !important; }
.app-meta { padding:0 18px; font-size:10px; }
.app-content { padding:8px; }
.app-answer:not(:empty) { padding:12px; border:1px solid var(--line); background:var(--bg); border-radius:10px; }
.app-answer .answer-caption { font-size:11px; }
.app-answer .answer-number { font-size:26px; padding:10px; border-radius:8px; background:var(--soft); }
.app-answer .answer-title { font-size:18px; }
.app-answer .answer-explain, .app-answer .answer-copy { display:inline-block; font-size:12px; margin:0; text-decoration:none; padding:4px 8px; }
.app-answer .answer-detail { font-size:14px; }
.app-composer { width:calc(100% - 16px); margin:0 8px 8px; padding:8px; display:flex; flex-direction:column; gap:4px; border:1px solid var(--line); background:var(--bg); border-radius:10px; }
.composer-input { display:flex; align-items:center; gap:6px; }
.app-input { width:100%; min-width:0; border:0; color:var(--fg); background:transparent; font:inherit; font-size:16px; min-height:44px; }
.app-input::placeholder { color:var(--muted); opacity:1; }
.composer-controls { display:flex; flex-wrap:nowrap; align-items:center; gap:2px; min-width:0; }
.trial-dialog .composer-controls button { font-size:11px; padding:6px; }
.app-provider { min-height:44px; width:76px; min-width:62px; max-width:104px; flex-shrink:1; font:inherit; font-size:11px; border:0; border-radius:6px; background:var(--bg); color:var(--fg); }
.app-depth { background:var(--soft); }
.app-composer .app-ask { margin-left:auto; color:var(--fg); background:var(--soft); font-weight:500; }
.app-composer .app-stop { width:auto; margin-left:auto; }
.app-send { background:var(--soft); }
.trial-dialog button:disabled { opacity:.45; cursor:default; }
.capture-tray { display:flex; flex-wrap:nowrap; gap:4px; max-height:48px; overflow-x:auto; overflow-y:hidden; }
.capture-tray > span { flex-shrink:0; white-space:nowrap; font-size:11px; border:1px solid var(--line); border-radius:6px; padding-left:6px; }
.trial-dialog .capture-tray button { min-width:32px; min-height:32px; padding:0; }
.listen-status { font-size:12px; line-height:1.4; color:var(--muted); max-height:72px; overflow:auto; margin:2px 0 6px; }
.trial-settings { background:var(--bg); border-radius:10px; padding:12px; }
@container trial (max-width:370px) { .app-toolbar { flex-wrap:wrap; } .app-tools { margin-left:auto; } }
@container trial (max-height:500px) and (orientation:landscape) { .app-composer { padding:4px; } .app-content { min-height:0; } }
@container trial (max-height:300px) and (orientation:landscape) {
 .browser-tab-strip { display:none; }
 .app-toolbar { padding:0; }
 /* Keep compact spacing stronger than the later native surface styles. */
 .trial-dialog .trial-app .app-tools button { padding:6px; }
 .trial-app .app-content { padding:0; }
 .trial-app .app-composer { width:calc(100% - 8px); margin:0 4px 4px; padding:2px; gap:2px; }
}
.trial-app.peeking { opacity:0; pointer-events:none; }
.trial-app.peeking .app-peek { pointer-events:auto; }
.preview-modes { display:flex; background:var(--line); border-radius:6px; padding:2px; font-size:11px; }
.preview-modes > span { padding:4px 8px; border-radius:4px; }
.preview-modes .selected { background:var(--bg); }
.preview-shield { color:#26a857; }
.trial-heading .trial-reset { color:var(--muted); }

.app-content:focus-visible, .listen-status:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; border-radius:8px; }

/* Mobile uses the real browser chrome, leaving the practice document the full area. */
@media (pointer:coarse) {
 .browser-tab-strip, .browser-address, .browser-navigation { display:none; }
 .browser-address-row { min-height:44px; gap:0; padding:0 4px; }
 .trial-disclosure { flex:1; max-width:none; padding:0 8px; font-size:11px; }
 .practice-site-header { padding:8px 16px; }
 .practice-course { font-size:12px; }
}
.fullscreen-help { position:absolute; z-index:5; top:48px; left:8px; right:8px; margin:0 auto; max-width:520px; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--fg); font-size:14px; line-height:1.6; box-shadow:0 8px 30px #0003; max-height:calc(100% - 56px); overflow:auto; }
.trial-app.minimized { height:54px !important; }
.trial-app.minimized .app-content, .trial-app.minimized .app-composer, .trial-app.minimized .app-meta { display:none; }
.trial-app.minimized .app-toolbar { display:flex; }
@container trial (max-width:370px) { .app-toolbar { flex-wrap:nowrap; } .window-grip { min-width:8px; } .trial-dialog .app-modes button { padding-inline:4px; } }
@container trial (max-width:600px) and (orientation:portrait) {
 .practice-site-header { gap:8px; }
 .practice-site-header strong { font-size:16px; }
 .practice-breadcrumb { margin-bottom:10px; gap:8px; }
 .practice-intro { font-size:14px; }
 .practice-table { font-size:12px; }
 .practice-table th, .practice-table td { padding:8px 4px; }
 .app-meta { display:none; }
}
/* The keyboard changes the visible area, never the document's orientation. */
.trial-dialog[data-keyboard="true"] .trial-app { top:8px; bottom:auto; right:8px; width:min(760px,calc(100% - 16px)); height:calc(100% - 16px); }
@container trial (max-height:240px) and (min-width:600px) {
 .trial-dialog[data-keyboard="true"] .app-toolbar, .trial-dialog[data-keyboard="true"] .app-meta { display:none; }
 .trial-dialog[data-keyboard="true"] .app-composer { display:grid; grid-template-columns:minmax(120px,1fr) auto; align-items:center; gap:2px; }
 .trial-dialog[data-keyboard="true"] .capture-tray { grid-column:1 / -1; }
 .trial-dialog[data-keyboard="true"] .composer-controls { grid-column:2; }
 .trial-dialog[data-keyboard="true"] .app-content { padding:0 4px; }
}

/* Empty overlay space stays transparent. Reading and input surfaces are opaque
   so the practice document cannot bleed through their text. */
.trial-dialog, .app-entry {
 --native-window:rgb(236 236 236 / .12);
 --native-toolbar:rgb(236 236 236 / .86);
 --native-card:rgb(255 255 255);
 --native-composer:rgb(255 255 255);
 --native-result:#f2f2f2;
 --native-border:rgb(80 80 80 / .28);
}
.trial-dialog[data-theme="dark"], .app-entry[data-theme="dark"] {
 --native-window:rgb(50 50 50 / .12);
 --native-toolbar:rgb(50 50 50 / .86);
 --native-card:rgb(30 30 30);
 --native-composer:rgb(30 30 30);
 --native-result:#2a2a2a;
 --native-border:rgb(180 180 180 / .35);
}
.trial-app { border-radius:12px; border-color:var(--native-border); box-shadow:0 8px 24px #0002; container:native-app / inline-size; }
.app-toolbar { min-height:42px; padding:0 6px; background:var(--native-toolbar); border-bottom:.5px solid var(--native-border); gap:4px; }
.app-brand { display:flex; align-items:center; gap:6px; }
.app-brand strong { display:none; font-size:14px; font-weight:600; }
.native-shield { display:inline-flex; color:#27ad57; }
.native-shield svg { width:11px; height:13px; fill:currentColor; stroke:var(--bg); stroke-width:.5; }
.app-tools { gap:0; }
.app-modes { gap:0; position:relative; isolation:isolate; }
.app-modes::before { content:""; position:absolute; inset:9px 0; border:1px solid var(--native-border); border-radius:6px; background:rgb(128 128 128 / .12); z-index:-1; }
.trial-dialog .app-modes button { position:relative; background:transparent; padding:4px 8px; font-size:12px; }
.app-modes button[aria-pressed="true"]::before { content:""; position:absolute; inset:10px 1px; border-radius:5px; background:rgb(128 128 128 / .35); z-index:-1; }
.app-modes button[aria-pressed="true"] { background:transparent; }
.trial-dialog .app-tools button { padding:10px; color:var(--muted); }
.app-tools .icon-control svg { width:16px; height:16px; }
.app-minimize { font-size:23px !important; font-weight:300; }
.app-content { padding:8px; }
.trial-conversation { background:transparent; }
.app-answer:not(:empty) { padding:8px; border-color:var(--native-border); background:var(--native-card); max-width:440px; }
.answer-meta { display:flex; gap:5px; align-items:center; color:var(--muted); font-size:9px; line-height:1.4; }
.answer-meta b, .preview-model b { font-size:10px; font-weight:600; color:var(--focus); }
.answer-actions { display:flex; align-items:center; justify-content:space-between; }
.app-answer .answer-explain { font-size:11px; padding:4px 0; }
.app-answer .answer-copy { margin-left:auto; padding:8px; }
.app-answer .answer-copy svg { width:16px; height:16px; }
.answer-result { display:block; padding:8px 10px; border-radius:7px; background:var(--native-result); }
.app-answer .answer-caption { font-size:10px; margin-bottom:4px; }
.app-answer .answer-number { font-size:22px; padding:0; background:transparent; letter-spacing:-.025em; }
.app-answer .answer-detail { margin-bottom:0; }
.app-composer { max-width:440px; width:calc(100% - 16px); align-self:flex-start; border-color:var(--native-border); background:var(--native-composer); padding:8px 10px; }
.app-provider { background:transparent; }
.app-depth, .app-send, .app-composer .app-ask { background:rgb(128 128 128 / .12); }
.app-depth::before { content:"✣ "; }
.trial-dialog[data-scene="test"] .app-ask::before { content:"⛶ "; }
.app-add { background:rgb(128 128 128 / .12); border-radius:5px; }
.app-input { background:transparent; }
.app-entry { min-height:456px; overflow:hidden; background:var(--bg); }
.entry-underlay { display:flex; flex-direction:column; gap:22px; padding:26px 20px; font-size:13px; line-height:1.6; color:var(--muted); }
.entry-underlay > strong { font-size:18px; color:var(--fg); }
.preview-table { display:flex; flex-direction:column; }
.preview-table > span { padding:10px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; }
.entry-app { position:absolute; inset:8px; min-height:0; background:var(--native-window); border:1px solid var(--native-border); border-radius:12px; }
.preview-toolbar { height:42px; padding:0 8px; flex-shrink:0; background:var(--native-toolbar); border-bottom:.5px solid var(--native-border); gap:6px; }
.preview-toolbar > .native-shield { margin-right:auto; }
.preview-modes { background:rgb(128 128 128 / .18); border:1px solid var(--native-border); padding:0; }
.preview-modes .selected { background:rgb(128 128 128 / .35); }
.preview-modes > span { min-width:64px; padding:4px 6px; text-align:center; }
.preview-tools { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:18px; }
.preview-tools svg, .preview-answer-actions svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.3; }
.preview-toolbar .expand-mark { width:24px; height:24px; border:0; border-radius:4px; background:transparent; }
.preview-toolbar .expand-mark svg { width:14px; height:14px; }
.preview-answer { display:block; flex:0; margin:8px; padding:8px; border:1px solid var(--native-border); border-radius:10px; background:var(--native-card); }
.preview-model { display:block; background:none; margin:0; padding:0; font-size:9px; }
.preview-answer-actions { display:flex; justify-content:space-between; padding:10px 0; color:var(--muted); font-size:11px; }
.preview-answer .answer-caption { font-size:10px; margin-bottom:4px; }
.preview-answer .answer-number { font-size:22px; }
.preview-answer .answer-title { font-size:15px; }
.preview-answer .answer-cues { font-size:12px; line-height:1.45; margin:8px 0 0; }
.preview-answer .answer-cues li + li { margin-top:4px; }
.preview-composer { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin:auto 8px 8px; padding:10px; border:1px solid var(--native-border); border-radius:10px; background:var(--native-composer); }
.preview-input { display:block; margin:0; padding:0; background:none; font-size:13px; }
.preview-controls { display:flex; align-items:center; gap:12px; font-size:11px; }
.preview-composer { flex-shrink:0; }
.preview-input { font-size:12px; line-height:1.4; }
.preview-controls { flex-wrap:wrap; gap:6px; font-size:10px; }
.preview-depth, .preview-primary { padding:6px; border-radius:5px; background:rgb(128 128 128 / .12); }
@container native-app (min-width:440px) { .app-brand strong { display:inline; } }
@container native-app (min-width:340px) { .trial-dialog .app-modes button { min-width:72px; } }
@media (pointer:fine) {
 .trial-dialog .app-toolbar button { min-width:26px; min-height:26px; }
 .trial-dialog .app-tools button { padding:5px; }
 .trial-dialog .app-tools .app-minimize { font-size:20px !important; line-height:1; padding:3px; }
 .app-modes::before { inset:0; }
 .app-modes button[aria-pressed="true"]::before { inset:1px; }
 .trial-dialog .app-composer button, .app-provider, .app-input { min-height:26px; }
 .app-input { font-size:13px; }
 .trial-dialog .app-add { min-width:26px; }
 .app-composer { gap:6px; }
}
@media (prefers-reduced-transparency:reduce) {
 .trial-dialog[data-theme], .app-entry[data-theme] { --native-window:var(--bg); --native-toolbar:var(--bg); --native-card:var(--bg); --native-composer:var(--bg); --native-result:var(--bg); }
}
