/* Shared assistant roles; loaded last, limited to the opted-in view. */
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-nav{display:grid;grid-template-columns:44px 1fr auto;align-items:center;margin:0 0 16px;gap:8px}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-nav h2{font-size:21px!important;font-weight:600!important;text-align:center;margin:0}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-nav-right{display:flex;gap:4px}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-nav button,.assistant-embedded-title button,.assistant-hub-nav button{min-height:44px;border:0;background:transparent;font-size:14px;font-weight:600;color:var(--ink)}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] .app-header{display:none!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] .app-shell{display:block!important;height:auto!important;min-height:100dvh;overflow:visible!important;padding-bottom:0!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] #appView{display:block!important;overflow:visible!important;min-height:100dvh;padding-top:20px;padding-bottom:0!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-workspace{display:block!important;height:auto!important;min-height:calc(100dvh - 40px);max-height:none!important;padding-bottom:calc(var(--assistant-compose-height,64px) + 104px + env(safe-area-inset-bottom));gap:0!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-context{background:#fff;border:0;border-radius:28px;padding:0;margin:12px 0 20px;overflow:hidden;flex:none}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-context summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:16px 20px;cursor:pointer;list-style:none;color:var(--ink)}
.assistant-context summary::-webkit-details-marker{display:none}.assistant-context summary>span:first-child{min-width:0;flex:1}.assistant-context summary b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assistant-context summary small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.assistant-context-label{font-size:14px;color:var(--muted)}.assistant-context[open] .assistant-context-label{color:var(--ink)}.assistant-context-body{padding:0 20px 20px;font-size:14px;line-height:1.7}.assistant-context-body p{margin:8px 0}.assistant-context-body a{color:var(--ink)}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-messages{display:block!important;height:auto!important;max-height:none!important;min-height:260px;flex:none!important;overflow:visible!important;padding:24px 0 12px!important;margin:0!important;border:0;background:transparent}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-messages .message{display:flex;margin:0 0 24px;background:transparent!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-messages .bubble{font-size:16px!important;line-height:1.8;height:auto!important;max-height:none!important;overflow:visible!important}
.assistant-message-meta{display:block;font-size:11px!important;color:var(--muted);margin-bottom:10px}.assistant-empty{padding:32px 12px;text-align:center}.assistant-empty h3{font-size:21px;font-weight:600;margin:12px 0}.assistant-empty p{font-size:14px;color:var(--muted);line-height:1.7}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-compose{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:calc(15px + env(safe-area-inset-bottom))!important;width:362px!important;max-width:362px!important;z-index:55!important;margin:0!important;display:flex!important;align-items:flex-end;gap:8px;padding:10px!important;border-radius:28px;background:#f5f5f6!important;border:1px solid rgba(45,48,49,.045)!important;box-sizing:border-box}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-compose textarea{font-size:16px!important;line-height:1.5;min-height:44px!important;max-height:132px!important;flex:1;min-width:0;background:transparent!important;border:0!important;padding:10px!important;resize:none;overflow-y:auto}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-compose button[type="submit"]{min-height:44px;min-width:60px!important;width:60px!important;padding:0 12px!important;white-space:nowrap;border-radius:22px;background:var(--minimal-dark,#2d3031)!important;color:#fff!important;font-size:14px!important;border:0;flex:none}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-compose button:disabled{opacity:.45}.assistant-tools{margin:12px 0;display:flex;gap:8px;flex-wrap:wrap}.assistant-tools>.video-chat-actions{width:100%;position:static!important;flex-wrap:wrap!important}.assistant-embedded-title{display:flex;justify-content:space-between;align-items:center;margin:16px 0 4px}.assistant-embedded-title h2{font-size:21px;font-weight:600;margin:0}
.assistant-latest{position:fixed;bottom:calc(var(--assistant-compose-height,64px) + 32px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:54;min-height:44px;padding:0 18px;border:0;border-radius:22px;background:#fff;color:var(--ink);font-size:14px;box-shadow:0 3px 18px #0000000b}.assistant-latest[hidden]{display:none}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="hub"] .app-header{display:none!important}html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="hub"] .app-shell{display:block!important;height:auto!important;overflow:visible!important;padding-bottom:26px!important}html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="hub"] #appView{display:block!important;padding-bottom:26px!important}
.assistant-hub-nav{display:flex;justify-content:space-between;align-items:center;margin:0 0 24px}.assistant-hub-nav h2{font-size:21px;font-weight:600;margin:0}.assistant-hub-intro{background:#fff;padding:24px;border-radius:28px;margin-bottom:24px}.assistant-hub-intro>small{font-size:11px;color:var(--muted)}.assistant-hub-intro h3{font-size:34px;font-weight:700;margin:12px 0}.assistant-hub-intro p{font-size:14px;line-height:1.7;color:var(--muted)}.assistant-history-search{display:flex;gap:8px;background:#fff;border-radius:24px;padding:4px;margin-bottom:16px}.assistant-history-search input{font-size:16px;min-width:0;flex:1;min-height:44px;border:0;background:transparent;padding:8px 14px}.assistant-history-search button{min-height:44px;border:0;border-radius:22px;padding:0 14px;background:var(--minimal-dark,#2d3031);color:#fff;font-size:14px}.assistant-history-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.assistant-history-filters button{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:22px;background:transparent;font-size:14px;color:var(--ink)}.assistant-history-filters button[aria-pressed="true"]{background:var(--minimal-dark,#2d3031);color:#fff}.assistant-history-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px}.assistant-history-head h3{font-size:21px;font-weight:600;margin:0}.assistant-history-head small{font-size:11px;color:var(--muted)}.assistant-history-list{background:#fff;border-radius:28px;overflow:hidden;margin-bottom:16px}.assistant-history-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:16px;padding:20px;border:0;border-bottom:1px solid #2d30310a;background:transparent;text-align:left;min-height:96px;color:var(--ink)}.assistant-history-row:last-child{border-bottom:0}.assistant-history-row>span:first-child{min-width:0;flex:1}.assistant-history-row small{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.assistant-history-row b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:600}.assistant-history-row span span{display:block;font-size:11px;color:var(--muted);margin-top:8px}.assistant-history-time{font-size:11px;color:var(--muted);flex:none}.assistant-history-time i{display:block;text-align:right;font-style:normal;font-size:22px;margin-top:12px}.assistant-history-note{font-size:11px;line-height:1.7;color:var(--muted);margin:16px 0}.assistant-history-note button{border:0;background:transparent;min-height:44px;font-size:14px;color:var(--ink)}
@media(min-width:700px){html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] #appView.ui-view .assistant-workspace{min-height:calc(100dvh - 88px)}}
@media(prefers-reduced-motion:reduce){.assistant-workspace *{scroll-behavior:auto!important}}
/* Stage tools use the same 44px controls and 28px sheet corners. */
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] .tab-bar,html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="hub"] .tab-bar{display:none!important}
.assistant-task-list{margin:24px 0}.assistant-task-list .assistant-history-head button,.assistant-task-stage button,.assistant-context-body button,.assistant-apply-entry,.assistant-script-entry button,.assistant-undo-button{min-height:44px;border:0;border-radius:22px;background:#f3f3f4;color:var(--ink);padding:10px 16px;font-size:14px}
.assistant-task-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff!important;text-align:left;margin:8px 0;padding:18px 20px!important;border-radius:24px!important;min-height:88px!important}.assistant-task-row>span:first-child{min-width:0}.assistant-task-row b{display:block;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-task-row small{display:block;font-size:11px;color:var(--muted);margin-top:8px}.assistant-task-row:disabled{opacity:.55}.assistant-task-stage{margin:24px 0}.assistant-task-stage h3{font-size:21px;font-weight:600}.assistant-apply-entry{display:block;margin-top:16px}.assistant-script-entry{margin:16px 0}.assistant-script-entry>button:first-child{width:100%;display:flex;justify-content:space-between;gap:16px;background:#fff;min-height:64px;padding:16px 20px;border-radius:28px}.assistant-script-entry span{color:var(--muted);font-size:11px}.assistant-script-entry b{font-weight:600}.assistant-undo-button{margin-top:12px}.assistant-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.assistant-sheet-head h2{font-size:21px;font-weight:600;margin:12px 0}.assistant-sheet-head button{min-height:44px;border:0;background:transparent;color:var(--ink);font-size:14px}
html[data-visual-mode="minimal"] body.theme-liquid #appView.ui-view .assistant-creative-sheet{width:402px;max-height:85dvh;overflow:auto;padding:20px;box-sizing:border-box;border-radius:28px 28px 0 0;background:#fff}
.assistant-creative-sheet form{display:grid;gap:20px;margin:16px 0 8px}.assistant-creative-sheet input,.assistant-creative-sheet textarea,.assistant-creative-sheet select{font-size:16px;min-height:44px;width:100%;box-sizing:border-box;padding:12px 14px;border:0;border-radius:16px;background:#f4f4f5;color:var(--ink)}.assistant-creative-sheet textarea{resize:vertical}.assistant-creative-sheet .review-pre{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.assistant-compare{max-height:200px;overflow:auto;padding:16px;background:#f4f4f5;border-radius:16px}.assistant-creative-sheet details summary{min-height:44px;line-height:44px;font-size:14px;cursor:pointer}.assistant-creative-sheet .field>span{font-size:14px}.assistant-creative-sheet .button{min-height:44px}.assistant-link-button{margin-top:12px}.assistant-task-page>.assistant-nav{margin-bottom:24px!important}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-messages .message.user .assistant-message-meta{color:#ffffffb3}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view] #appView.ui-view .assistant-compose{max-width:calc(100vw - 40px)!important}
/* Keep navigation available while reading a long conversation. */
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] #appView.ui-view .assistant-nav{position:sticky;top:0;z-index:30;background:var(--minimal-canvas,#EDEDED);padding-block:10px;backdrop-filter:blur(12px)}
html[data-visual-mode="minimal"] body.theme-liquid[data-assistant-view="chat"] #appView.ui-view .assistant-embedded-title{position:sticky;top:66px;z-index:29;background:var(--minimal-canvas,#EDEDED);padding-block:10px}

.assistant-task-page .assistant-hub-intro h3{font-size:21px;font-weight:600}
.assistant-task-page .assistant-hub-intro>button{min-height:44px;border:0;border-radius:22px;padding:10px 16px;background:#f3f3f4;color:var(--ink);font-size:14px;font-weight:600;margin-bottom:8px}
