
:root { color-scheme: light; font: 15px system-ui, sans-serif; background: #fff; color: #111; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 880px; padding: 0 24px; }
header, .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body > header { min-height: 76px; border-bottom: 1px solid #e8e8e8; }
h1 { font-size: 1.25rem; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; }
h1 .profile-icon { width: 32px; height: 32px; }
.profile-icon { object-fit: cover; border-radius: 50%; }
article strong:has(.profile-icon) { display: flex; align-items: center; gap: 8px; }
article strong .profile-icon { width: 28px; height: 28px; }
main { min-height: min(56vh, 620px); padding: 24px 0 12px; }
article { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px 18px; margin: 12px 0; line-height: 1.5; }
article[data-role=user] { background: #f4f4f4; margin-left: min(16%, 120px); border-radius: 16px; }
article strong { display: block; margin-bottom: 6px; font-size: .8rem; color: #515151; }
form { display: grid; gap: 10px; }
#form { position: sticky; bottom: 0; padding: 14px 0 20px; background: #fff; }
.composer { border: 1px solid #d1d1d1; border-radius: 20px; padding: 12px; box-shadow: 0 5px 20px #0000000d; display: grid; gap: 10px; }
.composer:focus-within { border-color: #737373; }
.composer-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.composer textarea { width: 100%; border: 0; outline: 0; line-height: 1.45; padding: 8px; min-height: 64px; max-height: 36vh; }
.composer textarea:focus-visible { outline: 0; }
textarea, input, button { font: inherit; padding: 8px 11px; border: 1px solid #666; border-radius: 7px; }
textarea, input { background: #fff; color: #111; }
textarea { resize: vertical; }
button { background: #111; color: #fff; border-color: #111; cursor: pointer; font-size: .86rem; }
button:hover:not(:disabled) { background: #353535; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
#status, .composer-meta { color: #555; font-size: .83rem; }
#attachment-name { font-size: .84rem; }
#send { min-width: 72px; border-radius: 10px; }
#workspace-list { height: min(50vh, 360px); overflow: auto; display: grid; align-content: start; gap: 5px; }
#workspace-list button { text-align: left; overflow-wrap: anywhere; }
dialog { width: min(620px, 85vw); border: 1px solid #bbb; border-radius: 14px; padding: 18px; background: #fff; color: #111; }
dialog::backdrop { background: rgb(0 0 0 / .35); }
#attachment-name, #folder { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 540px) { body { padding: 0 12px; } .composer-tools label { font-size: .8rem; } }
/* Animated assistant indicator, visible only until the first reply token. */
.leo-thinking { display:inline-flex; align-items:center; gap:5px; min-height:22px; padding:4px 0; }
.leo-thinking .dot { width:6px; height:6px; border-radius:50%; background:#9a7a32; animation:leo-pulse 1.15s ease-in-out infinite; }
.leo-thinking .dot:nth-child(2) { animation-delay:.16s; }
.leo-thinking .dot:nth-child(3) { animation-delay:.32s; }
@keyframes leo-pulse { 0%,65%,100% { opacity:.25; transform:translateY(0); } 32% { opacity:1; transform:translateY(-3px); } }
@media (prefers-reduced-motion:reduce) { .leo-thinking .dot { animation:none; opacity:.75; } }
[hidden] { display: none !important; }
.section-nav { display:flex; gap:8px; padding:14px 0; }
.section-nav button[aria-pressed="false"] { background:#fff; color:#111; border-color:#bbb; }
#media-panel { display:grid; gap:16px; padding-top:6px; }
.media-card { padding:18px; border:1px solid #dedede; border-radius:14px; }
.media-card h2 { font-size:1rem; margin:0 0 10px; }
#media-drop { width:100%; margin-top:12px; padding:20px; background:#f8f8f8; color:#111; border:1px dashed #888; }
#media-preview { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
#media-preview > div, #media-jobs > div { border:1px solid #e5e5e5; border-radius:10px; padding:10px; margin-top:10px; overflow-wrap:anywhere; }
#media-preview button { margin:5px 4px 0 0; }
.media-job-output { white-space:pre-wrap; }
.output-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.output-tile { margin:0; padding:0 0 10px; background:#f7f7f7; border:1px solid #e4e4e4; border-radius:9px; overflow:hidden; line-height:1.4; }
.output-tile video,.output-tile img { display:block; width:100%; height:190px; object-fit:contain; background:#161616; }
.output-tile p { margin:8px 9px 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.85rem; }
.output-tile > a { color:#222; }
.output-tile > a:last-child { margin:0 9px; font-size:.78rem; }

/* Inline media generation card */
.leo-job-card { border:1px solid #e2dfd8; border-radius:16px; padding:16px; background:#faf9f6; margin:8px 0 12px; }
.leo-job-heading { font-size:.94rem; font-weight:700; margin:0 0 10px; }
.leo-job-prompt { background:#f0eee9; padding:11px 13px; border-radius:10px; color:#36332c; font-size:.86rem; overflow-wrap:anywhere; white-space:pre-wrap; }
.leo-job-meta { display:flex; align-items:center; gap:9px; margin-top:12px; color:#625f58; font-size:.82rem; flex-wrap:wrap; }
.leo-job-spinner { width:16px; height:16px; border:2px solid #dfd7c5; border-top-color:#a17b2a; border-radius:50%; animation:leo-spin .8s linear infinite; flex-shrink:0; }
.leo-job-timer { margin-left:auto; font-variant-numeric:tabular-nums; white-space:nowrap; }
.leo-job-result { margin-top:12px; }
.leo-job-result img, .leo-job-result video { max-width:100%; }
.leo-job-error { color:#a02828; }
@keyframes leo-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .leo-job-spinner { animation:none; } }

.bottom-mode-switch { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 50; display:flex; gap:8px; padding:8px; border:1px solid #dadada; border-radius:999px; background: rgba(255,255,255,.96); box-shadow: 0 12px 28px #00000014; backdrop-filter: blur(10px); }
.bottom-mode-switch button { min-width: 108px; border-radius: 999px; }
.bottom-mode-switch button[aria-pressed="false"] { background:#fff; color:#111; border-color:#bbb; }
#form { padding-bottom: 78px; }
#media-panel { padding-bottom: 92px; }
.gallery-launch { cursor: pointer; }
.gallery-launch:hover { filter: brightness(1.02); }
#gallery-viewer { width:min(1040px,94vw); max-height:92vh; padding:14px; }
#gallery-viewer::backdrop { background: rgb(0 0 0 / .72); }
.gallery-shell { display:grid; gap:12px; }
.gallery-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gallery-stage-wrap { position: relative; border-radius: 16px; background:#111; min-height: 58vh; display:grid; align-items:center; overflow:hidden; }
.gallery-stage { min-height:58vh; display:grid; place-items:center; padding:14px 58px; touch-action: pan-y; user-select:none; }
.gallery-stage img,.gallery-stage video { max-width:100%; max-height: calc(92vh - 190px); border-radius: 10px; }
.gallery-nav { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%; border:0; background:rgb(255 255 255 / .88); color:#111; font-size:24px; line-height:1; display:grid; place-items:center; }
.gallery-nav:hover { background:#fff; }
#gallery-prev { left:10px; }
#gallery-next { right:10px; }
.gallery-caption { font-size:.9rem; color:#333; overflow-wrap:anywhere; }
.gallery-thumbs { display:flex; gap:8px; overflow:auto; padding-bottom:2px; }
.gallery-thumb { width:76px; height:76px; border:2px solid transparent; border-radius:10px; padding:0; overflow:hidden; background:#f3f3f3; flex:0 0 auto; }
.gallery-thumb[aria-current="true"] { border-color:#111; }
.gallery-thumb img,.gallery-thumb video { width:100%; height:100%; object-fit:cover; display:block; background:#111; }
.gallery-meta { color:#666; font-size:.84rem; }
@media (max-width: 640px) { .bottom-mode-switch { bottom:10px; width:calc(100% - 20px); justify-content:center; } .bottom-mode-switch button { flex:1 1 0; } #gallery-viewer { width:100vw; max-width:100vw; max-height:100vh; height:100vh; border-radius:0; } .gallery-stage-wrap,.gallery-stage { min-height: calc(100vh - 188px); } .gallery-stage { padding:10px 46px; } }


/* Leo's deterministic request router: no remote classifier is required. */
.leo-intent-choice { margin:12px 0; padding:12px 14px; border:1px solid #dedede; border-radius:14px; background:#fbfbfb; }
.leo-intent-choice .intent-options { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.leo-intent-choice .intent-options button { border-radius:10px; }
.leo-intent-choice .intent-options button.secondary { background:white; color:#111; border-color:#bbb; }
.leo-intent-caption { font-size:.83rem; color:#555; margin:5px 0; }
#process-sidebar { position:fixed; inset:0 auto 0 0; width:min(280px, 90vw); overflow:auto; box-sizing:border-box; padding:16px; background:#fff; color:#111; border-right:1px solid #ddd; z-index:55; box-shadow:0 0 28px #0002; }
#process-sidebar header { display:flex; justify-content:space-between; align-items:center; }
#process-sidebar p { font-size:.85rem; overflow-wrap:anywhere; }
#process-sidebar summary { cursor:pointer; padding:10px 0; }
#process-sidebar button { margin:3px; }
#welcome[open]{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr);align-items:center;gap:24px;padding:36px 0}
.welcome-lion{width:min(100%,160px);height:auto;justify-self:center;object-fit:contain}
#join-form{display:grid;gap:8px}
#join-form input{width:100%;box-sizing:border-box}
#join-form p{margin:2px 0}
#join-form button{justify-self:start}
#process-sidebar section{margin:18px 0;padding-bottom:12px;border-bottom:1px solid #ececec}
#process-sidebar h2{font-size:.95rem;margin:.45em 0}
#chat-list button{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#chat-list button[aria-current=true]{background:#ededed;color:#111}
#messages .online-message{border-bottom:1px solid #eee;padding:12px 0;overflow-wrap:anywhere}
.online-message p{margin:8px 0}
.online-message pre{white-space:pre-wrap;background:#f4f4f4;padding:10px}
.media-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.media-line strong{overflow-wrap:anywhere}
.media-object{display:block;max-width:100%;max-height:460px;margin:8px 0}
.icon-download{display:inline-grid;place-items:center;padding:5px;color:#151515;background:transparent;border:0;text-decoration:none}
.icon-download svg{width:19px;height:19px}
.chat-arrows button{min-width:34px;padding:4px}
#chat-attachment:empty{display:none}
#chat-attachment .media-object{max-height:160px}
.matrix-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#178236;margin-right:7px}
.matrix-dot.working{animation:matrix-pulse .8s infinite alternate}
@keyframes matrix-pulse{to{opacity:.25}}
@media(prefers-reduced-motion:reduce){.matrix-dot.working{animation:none}}
@media(max-width:580px){#welcome[open]{grid-template-columns:1fr;gap:12px;padding-top:10px}.welcome-lion{width:96px}}
#welcome::backdrop{background:#15192270}
#welcome-close{position:absolute;top:10px;right:10px;min-width:34px;font-size:20px;line-height:1}
#welcome[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #ddd;border-radius:18px;background:#fff;box-shadow:0 18px 70px #0002}
@media(max-width:580px){#welcome[open]{padding:18px}}
#join-form .join-step:not([hidden]){display:grid;gap:6px;min-height:108px;align-content:start}
#join-form .join-step label{font-size:.88rem;font-weight:600}
#join-form .join-step input{border:0;border-bottom:1px solid #969696;background:transparent;border-radius:0;padding:9px 0 10px;font:inherit;font-size:1.25rem;outline-offset:4px;box-shadow:none}
#join-form .join-step input:focus{border-bottom-color:#111}
#join-form .join-step input::placeholder{color:#777}
.join-actions{display:flex;gap:9px;align-items:center}
.join-actions button{border-radius:999px;padding:9px 15px}
#join-back{background:#fff;color:#111}
#workspace-tools{width:min(680px,calc(100vw - 32px));box-sizing:border-box;max-height:85dvh;color:#171717;border:1px solid #ddd;border-radius:16px;padding:22px}
#workspace-tools::backdrop{background:#0005}
#workspace-tools header{display:flex;justify-content:space-between;align-items:center}
#workspace-tools section{border-top:1px solid #eee;padding:8px 0}
#workspace-tools label{display:block;margin:6px 0}
#source-edit{width:100%;box-sizing:border-box;font:13px ui-monospace,monospace}
#source-preview{margin-top:12px}

.creator-credit{display:block;font-size:.72rem;line-height:1.3;color:#646464;font-weight:400}.leo-brand h1{margin-bottom:0}.leo-brand .creator-credit{margin:3px 0 0 42px}#welcome .creator-credit{margin:0 0 11px}
body{max-width:none;padding-inline:28px}
body > header h1{margin:0}
.matrix-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#process-sidebar{width:min(298px,90vw);background:#fbfbfb;box-shadow:none}
.leo-workspace-nav{padding:14px 0 0;margin-bottom:16px}
body:not(.matrix-guest) .guest-sidebar-note,.matrix-guest #process-sidebar :is(#peer-attention-toggle,#show-hidden-chats,#import-chat,#open-connectors,#leave){display:none}
.matrix-guest #process-sidebar section[aria-labelledby="tools-heading"]{display:none}
.composer > .composer-meta{margin:4px 0}
.composer-footer{padding-top:5px}
.chat-title-bar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;margin-bottom:14px;gap:14px}
.chat-title-bar h2,.media-heading h2{font-size:clamp(1.35rem,3vw,2.5rem);margin:12px 0 16px}
.chat-title-bar .composer-meta{background:#f2f2f2;border-radius:30px;padding:8px 12px;white-space:nowrap}
#messages .online-message{width:fit-content;max-width:min(88%,680px);border:1px solid #e1e1e1;border-radius:16px;margin:0 0 18px;padding:12px 15px}
#messages .message-user{margin-left:auto;background:#f3f3f3;border-color:transparent}
#messages .message-leo{background:white;margin-right:auto}
.media-columns{display:grid;gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.media-columns .media-card{margin:0}
.media-columns h3{margin:0 0 12px}
.media-columns textarea{width:100%;box-sizing:border-box;margin:6px 0 12px}
.ref-drop{display:block;width:100%;border:1px dashed #959595;color:#161616;background:#fafafa;margin-bottom:12px}
#working-media:not([hidden]){display:grid;gap:8px;margin-bottom:14px;justify-items:center;background:#f7f7f7}
#working-media .media-object{max-height:420px}
#media-preview.output-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#media-preview .output-tile{min-width:0}
.media-preview-button{padding:3px 7px;color:#111;background:#fff;border-color:#d5d5d5}
@media(max-width:800px){.media-columns{grid-template-columns:1fr}.chat-title-bar{flex-wrap:wrap}.chat-title-bar h2{margin-bottom:6px}}

.matrix-dot.away{background:#aaa;animation:none}
.chat-header-actions{display:flex;gap:7px;align-items:center}
#deep-reasoning{background:#fff;color:#262626;border:1px solid #ddd;border-radius:999px;padding:5px 12px;font-size:.82rem}
#deep-reasoning[aria-pressed=true]{background:#161616;color:#fff;border-color:#161616}
.brand-left,.matrix-brand,.inline-tool,.skill-row{display:flex;align-items:center;gap:8px}
.brand-left{min-width:0}
.matrix-brand .profile-icon{width:30px;height:30px}
.inline-tool{background:transparent;color:#262626;border:0;padding:5px 7px}
.inline-tool:hover,.inline-tool:focus-visible{background:#f1f1f1}
.skill-row{flex-wrap:wrap}
.skill-row #coding-skill{appearance:auto;border:0;border-bottom:1px solid #ddd;background:#fff;padding:3px;max-width:100%;font:inherit}
.reference-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:7px 0 10px}
.reference-slot{position:relative;min-width:0}
.reference-slot > button:first-child{width:100%;min-height:45px;background:#f9f9f9;color:#1c1c1c;border:1px dashed #aaa;padding:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-slot:has(.reference-remove) > button:first-child{padding-right:19px}
.reference-remove{position:absolute;right:3px;top:3px;padding:0 3px;line-height:1.3;background:#fff;color:#212121;border:0}
#worker-list,#online-matrix-status,#node-status,#node-jobs{max-height:clamp(90px,24vh,240px);overflow:auto;overscroll-behavior:contain}
#chat-list,#local-chat-histories{max-height:clamp(110px,29vh,350px);overflow:auto;overscroll-behavior:contain;padding-right:4px}
#process-sidebar #nodes-panel{padding-bottom:14px;border-bottom:1px solid #ddd}
.history-row{display:flex;align-items:center;gap:3px;min-width:0;margin:2px 0}
.history-row .history-title{flex:1;min-width:0;width:auto!important;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;color:#171717;padding:5px 8px;margin:0}
.history-row .history-title:hover,.history-row .history-title[aria-current=true]{background:#efefef;color:#171717}
.history-row input{flex:1;min-width:0;width:100%;padding:4px}
.history-menu{position:relative;flex:none}
.history-menu summary{cursor:pointer;list-style:none;color:#333;padding:3px 7px!important;line-height:1}
.history-menu summary::-webkit-details-marker{display:none}
.history-menu[open]{min-width:92px}
.history-menu div{display:grid;gap:2px;margin:3px 0}
.history-menu div button{padding:4px 6px;border:0;background:#f3f3f3;color:#222;text-align:left;white-space:nowrap;margin:0;font-size:.76rem}
#matrix-sidebar-toggle, #matrix-sidebar-close { display:none; }
@media (min-width: 720px) {
  body:has(#process-sidebar:not([hidden])) { padding-inline-start:calc(clamp(220px, 26vw, 298px) + 28px); }
  #process-sidebar { width:clamp(220px, 26vw, 298px); }
}
@media (max-width: 719px) {
  #matrix-sidebar-toggle:not([hidden]), #matrix-sidebar-close { display:inline-block; }
  #process-sidebar:not([hidden]) { box-shadow:0 0 28px #0004; }
  body{padding-inline:14px}
}
#form .composer{padding:7px 10px;gap:4px;border-radius:15px;box-shadow:none}
#form #prompt{min-height:34px;max-height:152px;resize:none;box-sizing:border-box;padding:6px 3px}
#form .composer-tools{gap:4px}
#form .chat-arrows button,#form #deep-reasoning{padding-block:3px}
#form .actions{gap:4px}

.reply-lion{width:28px;height:28px;object-fit:contain;display:block}
#signin-form .join-step:not([hidden]){display:grid;gap:6px;align-content:start}
#signin-form input{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #969696;background:transparent;border-radius:0;padding:9px 0 10px;font-size:1.2rem}
#signin-entry{margin:4px 0 14px}

/* Shared Matrix chat presentation */
#form .composer{padding:8px 12px;gap:4px;border-radius:16px;box-shadow:none}
#form #prompt{min-height:36px;max-height:144px;resize:none;box-sizing:border-box;padding:7px 4px}
#form .actions,#form .composer-tools{gap:6px}
#form .composer-tools button{font-size:.82rem}
#messages pre{overflow:auto;white-space:pre;background:#f5f5f5;border-radius:8px;padding:12px}
#messages h3{margin:12px 0 5px}
#messages p{margin:5px 0}
#messages hr{border:0;border-top:1px solid #e5e5e5;margin:12px 0}

#chat-panel .chat-title-bar{border:0;margin:0;padding:0;min-height:0}
#active-chat-title,#chat-peer-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

#peer-compute { width: min(92vw, 38rem); max-height: 85vh; overflow: auto; }
#peer-compute textarea { display: block; width: 100%; box-sizing: border-box; }
#peer-result { white-space: pre-wrap; overflow-wrap: anywhere; }

#chat-controls { flex:1; row-gap:4px; }
#chat-controls button { display:inline-flex; align-items:center; gap:4px; min-height:28px; padding:3px 8px; background:#fff; color:#262626; border:1px solid #ddd; border-radius:999px; font-size:.82rem; }
#chat-controls button:hover { background:#f2f2f2; }
#chat-controls button[aria-pressed="true"] { background:#161616; color:#fff; border-color:#161616; }

#create-tabs { display:flex; flex-wrap:wrap; gap:5px; }
#create-tabs button { border-radius:5px; padding:4px 7px; min-height:25px; font-size:.75rem; }
#media-create-source-label:not([hidden]) { display:block; margin:8px 0; }

.chat-code-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; align-items:start; }
.chat-code-layout:has(.code-workspace:not([hidden])) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.code-workspace { position:sticky; top:12px; max-height:calc(100dvh - 100px); overflow:auto; min-width:0; border:1px solid #ddd; border-radius:12px; padding:12px; background:#fafafa; }
.code-workspace header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.code-workspace h2 { font-size:1rem; margin:0; }
.code-source { max-height:55vh; overflow:auto; margin:8px 0; padding:6px; background:#fff; border:1px solid #ddd; }
.code-source-line { display:block; white-space:pre; }
.code-source-line[data-changed=true] { background:#fff2a8; color:#252116; }
.code-source-number { display:inline-block; width:4em; color:#686868; user-select:none; }
@media(max-width:800px) { .chat-code-layout:has(.code-workspace:not([hidden])) { grid-template-columns:minmax(0,1fr); } .code-workspace { position:static; max-height:none; } }

.video-source-picker { display:grid; gap:8px; padding:10px; border:1px solid #bbb; border-radius:7px; }
.video-source-picker img { max-width:100%; max-height:160px; border-radius:5px; }

.library-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.library-eye { display:inline-grid; place-items:center; min-width:30px; min-height:28px; padding:4px; background:#fff; color:#252525; border:1px solid #a5a5a5; }
.library-eye:hover:not(:disabled), .library-eye[aria-pressed=true] { background:#efefef; color:#111; }
[data-library-state] .history-title, [data-library-state] video,
[data-library-state] .saved-media-name, [data-library-state] .media-line strong { opacity:.55; }
[data-library-state]::after { display:block; content:'Hidden'; font-size:.72rem; color:#555; padding:3px 5px; }
[data-library-state=trash]::after { content:'Trash'; }
.saved-video-menu { margin:5px; }

.still-caption { display:flex; align-items:center; gap:6px; padding:3px 2px; }
.still-caption .saved-media-name { flex:1; min-width:0; color:#252525; background:transparent; border:0; padding:4px; font:inherit; font-size:.82rem; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.still-caption .saved-media-name:hover { color:#111; background:transparent; text-decoration:underline; }
.still-options { margin:0 2px; color:#252525; font-size:.78rem; }
.still-options summary { cursor:pointer; list-style:none; padding:4px; }
.still-options summary::-webkit-details-marker { display:none; }
.still-option-list { display:grid; justify-items:start; gap:4px; border-top:1px solid #ddd; padding:4px 0; }
.still-option-list a, .still-option-list button { background:transparent !important; color:#252525 !important; font:inherit; font-size:.78rem; text-align:left; border:0 !important; padding:3px 4px; margin:0; }
.still-option-list a:hover, .still-option-list button:hover { text-decoration:underline; }
.still-thumbnail { display:block; }


/* Media workspace composer and gallery */
#media-panel .media-prompt-box,.media-prompt-box{border:1px solid #d9dce3;border-radius:12px;padding:10px;background:#f8f9fc;min-width:0}
.media-prompt-box .section-nav{padding:0;margin:0 0 9px;flex-wrap:wrap;gap:5px}
.media-prompt-box label{display:block;font-size:12px;font-weight:650;margin:4px 0 6px}
.media-prompt-box textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #d9dce3;border-radius:9px;background:#fff;resize:vertical}
#reference-slots img{display:block;width:100%;height:42px;object-fit:cover;border-radius:5px}
.saved-media-delete{font-size:12px;padding:5px 8px}
.online-render-tile p{margin:6px 0 0;font-size:12px;line-height:1.4}
.online-render-preview{aspect-ratio:16/9;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#e9edf3;color:#3b4657;font-size:13px}
.online-render-preview img{position:absolute;width:100%;height:100%;object-fit:cover}
