@import url("./composer-mode.css");
@font-face { font-family:'DM Sans'; src:url('assets/fonts/dm-sans/DM-Sans-Variable.ttf') format('truetype'); font-style:normal; font-weight:100 1000; font-display:swap; }
/* Composer focus mirrors agent.css + shared.css/theme.css: 1px soft ring and 14px glow. */
.intro:has(.hero-prompt) { padding-bottom:60px; }
.hero-prompt.agent-composer { font-family:"DM Sans",system-ui,sans-serif; --tr-focus-base-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.05); position:relative; max-width:780px; margin:32px auto 0; padding:16px; border:0; border-radius:20px; background:#fff; box-shadow:var(--tr-focus-base-shadow); text-align:left; display:block; transition:box-shadow 220ms cubic-bezier(.22,1,.36,1); }
.hero-prompt.agent-composer:focus-within { box-shadow:var(--tr-focus-base-shadow),var(--tr-focus-glow-shadow,0 0 0 1px rgba(0,101,255,.09),0 0 14px 3px rgba(0,101,255,.09)); }
#hero-prompt-input.agent-composer-input { display:block; min-height:76px; max-height:200px; padding:0; width:100%; resize:none; border:0; outline:0; color:#262626; background:transparent; font:13px/1.6 "DM Sans",system-ui,sans-serif; }
#hero-prompt-input::placeholder { color:#a0a0a0; }
.hero-prompt .agent-composer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.hero-prompt .composer-actions { min-width:0; flex:1; display:flex; align-items:center; gap:6px; }
.hero-prompt .attach-file-button { display:grid; place-items:center; padding:0; border:0; color:#737373; cursor:pointer; width:32px; height:32px; flex:0 0 32px; border-radius:6px; background:transparent; transition:background-color 140ms ease,color 140ms ease; }
.hero-prompt .attach-file-button:hover { background:#ededed; }.hero-prompt .attach-file-button:active { background:rgba(0,101,255,.09); }
.hero-prompt .agent-mode-picker { position:relative; min-width:0; flex:1; }
.hero-prompt .agent-mode-trigger { width:auto; max-width:100%; height:32px; display:flex; align-items:center; gap:7px; padding:0 8px; border:0; border-radius:7px; cursor:pointer; background:transparent; color:#666; font-size:12px; }
.hero-prompt .agent-mode-trigger:hover { background:#ededed; }.hero-prompt .agent-mode-trigger:disabled { opacity:.5; cursor:default; }
.hero-prompt .agent-mode-trigger>span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hero-prompt .agent-submit-button { flex:0 0 32px; width:32px; height:32px; display:grid; place-items:center; border:0; padding:0; border-radius:8px; color:white; cursor:pointer; background:#0065ff; }
.hero-prompt .agent-submit-button img { filter:brightness(0) invert(1); }.hero-prompt .agent-submit-button:disabled { opacity:.35; cursor:default; }
.hero-prompt .agent-mode-menu { position:absolute; z-index:50; bottom:calc(100% + 10px); left:0; width:260px; max-width:calc(100vw - 60px); max-height:min(420px,55vh); overflow:auto; padding:5px; border:1px solid #ededed; border-radius:10px; background:white; box-shadow:0 4px 18px rgba(40,50,70,.10),0 1px 4px rgba(40,50,70,.06); overscroll-behavior:contain; }
.hero-prompt [hidden] { display:none!important; }
.hero-prompt .agent-mode-menu button { width:100%; height:auto; min-height:33px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px; border:0; border-radius:5px; cursor:pointer; background:transparent; font-size:12px; color:#262626; text-align:left; }
.hero-prompt .agent-mode-menu button:hover { background:#f7f7f7; }.hero-prompt .agent-mode-menu button.is-selected { color:#0065ff; background:rgba(0,101,255,.09); font-weight:500; }
.hero-prompt .agent-mode-option-copy { display:grid; gap:3px; }
.hero-prompt .agent-mode-option-copy strong { font-size:12px; font-weight:500; }
.hero-prompt .agent-mode-option-copy small { font-size:11px; font-weight:400; line-height:1.5; color:#737373; }
.hero-prompt .agent-mode-menu button:focus-visible { outline:1px solid #0065ff; outline-offset:-2px; background:rgba(0,101,255,.09); }
.hero-attachments { display:flex; gap:6px; flex-wrap:wrap; padding-bottom:7px; margin-bottom:7px; border-bottom:1px solid #f0f0f0; }
.hero-attachment { display:flex; align-items:center; gap:7px; max-width:250px; padding:6px 7px; background:#f7f7f7; border-radius:6px; font-size:11px; color:#666; }.hero-attachment>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.hero-attachment button { width:20px; height:20px; display:grid; place-items:center; padding:3px; background:transparent; border:0; border-radius:4px; cursor:pointer; }.hero-attachment button:hover { background:#ededed; }
.hero-prompt-status { display:block; color:#939eB3; font-size:10px; line-height:1.6; }.hero-prompt-status:empty { display:none; }.hero-prompt-status:not(:empty) { padding-top:8px; }
.hero-prompt.is-file-dragging { outline:2px solid #0065ff; outline-offset:-2px; background:#f7faff; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.visual-composition>.agent-card { padding-bottom:15px; }.visual-composition>.agent-card .agent-action-log { margin-bottom:0; }
@media(max-width:760px) { .intro:has(.hero-prompt) { padding-bottom:48px; }.hero-prompt.agent-composer { margin-top:28px; max-width:100%; }.hero-prompt .agent-mode-trigger { gap:5px; padding:0 4px; } }
@media(prefers-reduced-motion:reduce) { .hero-prompt.agent-composer { transition:none; } }

.hero-prompt button { font-family:inherit; }

@media(forced-colors:active){.hero-prompt.agent-composer:focus-within{box-shadow:none;outline:2px solid Highlight;outline-offset:2px}}
