/* Apple101: screen-only visual layer; policy and print semantics stay unchanged. */
@media screen{
:root,html.embed{color-scheme:light!important;--sea:#0071e3;--ink:#1d1d1f;--paper:#f5f5f7;--line:#d2d2d7;--blue:#0071e3;--ai-surface:#fff;--ai-sheet:#fff;--ai-input:#f5f5f7;--ai-ink:#1d1d1f;--ai-muted:#6e6e73;--ai-link:#0071e3;--ai-button:#0071e3;--ai-border:#d2d2d7;background:#f5f5f7!important;color:#1d1d1f!important}
*{box-sizing:border-box}body{background:#f5f5f7!important;color:#1d1d1f!important;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif!important;max-width:100%;margin:0} main,section,aside,article,div{min-width:0}p,li,pre,a,h1,h2,h3{overflow-wrap:anywhere}a{color:#0066cc}button{min-height:44px;border-radius:10px}button,input,select,textarea{font-size:16px}input,textarea,select{max-width:100%} :focus-visible{outline:3px solid #0071e3!important;outline-offset:3px}
body>header{display:grid!important;grid-template-columns:1fr auto!important;gap:6px 20px!important;padding:10px max(16px,env(safe-area-inset-left)) 8px!important;background:#fff!important;color:#1d1d1f!important;border:0!important;border-bottom:1px solid #d2d2d7!important;position:relative!important;width:100%;max-width:none!important;flex:none}
body>header h1{font-size:21px!important;line-height:1.3;color:#1d1d1f!important;letter-spacing:-.04em;margin:0!important}body>header .skyline-slot{display:block!important;position:static!important;height:34px!important;width:170px!important;overflow:hidden}body>header .header-skyline{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;opacity:.65!important;filter:none!important;position:static!important}
body>header .header-right{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:2px!important;position:relative!important;padding:0!important}
body>header nav{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;grid-column:2;grid-row:1;width:100%!important;min-width:0!important;max-width:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;white-space:nowrap;align-items:center!important;overscroll-behavior-x:contain;padding:2px!important;scroll-padding:8px}
body>header nav a{display:inline-flex!important;flex:none!important;align-items:center;min-height:44px;padding:8px 13px!important;color:#515154!important;background:transparent!important;border:0!important;border-radius:24px!important;text-decoration:none;font-size:14px!important;white-space:nowrap}
body>header nav a[aria-current=page]{background:#edf5ff!important;color:#0066cc!important;font-weight:600}body>header .seal{display:none!important}.nav-scroll-prev,.nav-scroll-next{position:static!important;grid-row:1!important;min-width:30px!important;width:30px!important;padding:0!important;margin:0!important;background:#fff!important;color:#515154!important;border:0!important;min-height:44px!important;box-shadow:none!important}.nav-scroll-prev{grid-column:1}.nav-scroll-next{grid-column:3}
footer{background:#f5f5f7!important;color:#6e6e73!important;border-color:#d2d2d7!important} .assistant-main{max-width:1280px!important;padding-inline:16px!important}.workspace-title{font-size:22px!important;color:#1d1d1f!important}.guide-section,.consult-workspace,.guide-head,.guide-crumb,#catalog,.catalog-group,.catalog-group h3,.catalog-group ul,.catalog-group li,#guide-panel,#guide-frames,.guide-frame{background:#fff!important;color:#1d1d1f!important;border-color:#d2d2d7!important;box-shadow:none!important}.catalog-group button,.crumb-swap{background:#f5f5f7!important;color:#1d1d1f!important;border-color:#d2d2d7!important}.catalog-group button:hover{background:#edf5ff!important;color:#0066cc!important}.count{color:#6e6e73!important}
html.embed body,html.embed main,html.embed section,html.embed #fields,html.embed #answer,html.embed details,html.embed fieldset{background:#fff!important;color:#1d1d1f!important;border-color:#d2d2d7!important;box-shadow:none!important}html.embed h1,html.embed h2,html.embed h3,html.embed summary,html.embed legend,html.embed p,html.embed label,html.embed li,html.embed span,html.embed small,html.embed #progress,html.embed .tag,html.embed .rowtext{background:transparent!important;color:#1d1d1f!important}html.embed select,html.embed input,html.embed textarea,html.embed option{background:#f5f5f7!important;color:#1d1d1f!important;border-color:#b9b9bf!important;color-scheme:light!important}html.embed button{background:#0071e3!important;color:white!important;border-color:#0071e3!important}html.embed button.secondary{background:#f5f5f7!important;color:#0066cc!important}html.embed a{background:transparent!important;color:#0066cc!important}html.embed .meta,html.embed .note,html.embed .help{color:#6e6e73!important}
body.standalone-ai .assistant-main{max-width:1020px!important;overflow:hidden;flex:1;min-height:0}body.standalone-ai .ai-panel,body.standalone-ai .consult-sheet{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:hidden!important}body.standalone-ai .messages{min-height:0!important;flex:1 1 auto;overflow:auto!important;max-height:none!important;padding:12px 0!important;background:transparent!important;border:0!important;font-size:18px;line-height:1.75}body.standalone-ai .message{background:#fff!important;color:#1d1d1f!important;border:0!important;border-radius:16px;padding:16px!important;overflow-wrap:anywhere}body.standalone-ai .message p{white-space:pre-wrap;color:#1d1d1f!important;font-size:18px!important}body.standalone-ai #consult-form{flex:none;background:#fff!important;padding:12px;border:1px solid #d2d2d7;border-radius:18px}body.standalone-ai #question{display:block;width:100%;min-height:100px!important;height:100px!important;padding:12px!important;font-size:18px!important;color:#1d1d1f!important;background:#f5f5f7!important;border:1px solid #d2d2d7!important;border-radius:10px;resize:vertical;max-height:180px}body.standalone-ai .consult-sheet>p{font-size:12px!important;color:#6e6e73!important;margin:5px 0!important}body.standalone-ai #consult-status{font-size:13px!important;color:#6e6e73!important;margin:6px 0 0!important}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.composer-actions span{font-size:12px!important;color:#6e6e73!important}#send{background:#0071e3!important;color:white!important;border:0!important;margin:5px 0!important}
body.standalone-ai.composing{height:var(--vvh,100dvh)!important}body.standalone-ai.composing header .skyline-slot,body.standalone-ai.composing header h1,body.standalone-ai.composing footer,body.standalone-ai.composing .workspace-title,body.standalone-ai.composing .consult-sheet>p:not(#session-status){display:none!important}body.standalone-ai.composing #session-status{display:none!important}body.standalone-ai.composing>header{display:block!important;padding-block:2px!important}body.standalone-ai.composing .assistant-main{padding-block:4px!important}
.home{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.film-stage{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#f5f5f7}.film{position:relative;aspect-ratio:16/9;width:min(100%,calc((100dvh - 124px)*16/9));max-height:100%;overflow:hidden;border-radius:18px;background:#e8e8ed}.film video{display:block;width:100%;height:100%;object-fit:contain;background:#e8e8ed}.film-controls{position:absolute;bottom:12px;left:12px;right:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.film-controls button{margin:0;background:#fffdf5eF;color:#1d1d1f;border:1px solid #ddd;padding:8px 14px;box-shadow:0 1px 8px #0002}.film-controls span{background:#fffef5ee;color:#1d1d1f;font-size:12px;border-radius:5px;padding:3px}.film-controls span:empty{display:none}
@media(max-width:600px){body>header h1{font-size:18px!important}body>header .skyline-slot{width:120px!important;height:28px!important}body>header{padding-top:max(6px,env(safe-area-inset-top))!important;gap:4px!important}.assistant-main{padding-inline:10px!important}.film-stage{padding:8px 8px max(8px,env(safe-area-inset-bottom))}.film{aspect-ratio:9/16;width:min(100%,calc((100dvh - 116px)*9/16));border-radius:12px}body.standalone-ai .message p{font-size:17px!important}body.standalone-ai #consult-form{padding:10px}body.standalone-ai .consult-sheet>p:last-child{display:none!important}}
@media(max-height:500px){body>header .skyline-slot,body>header h1{display:none!important}body>header{display:block!important;padding-block:2px!important}.workspace-title{font-size:17px!important;margin-block:2px!important}.film{width:min(100%,calc((100dvh - 74px)*16/9));aspect-ratio:16/9}body.standalone-ai #question{min-height:64px!important;height:64px!important}body.standalone-ai .consult-sheet>p{display:none!important}.film-controls{bottom:6px;left:6px}}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

@media screen{html.embed .wizard-actions,html.embed #result-actions,html.embed nav,html.embed .actions{background:#fff!important;color:#1d1d1f!important;border-color:#d2d2d7!important;box-shadow:none!important}html.embed #status{color:#6e6e73!important}}

.preview-notice{padding:8px 16px;background:#fff5d8;color:#483d23;font:13px/1.5 system-ui;position:relative;z-index:2}
