/* Photos stay in the local draft until the user submits the composer. */
.entry-composer.has-photos .entry-empty-label{display:none}
.draft-attachments{min-width:0}
.draft-attachment-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 3px 12px;font-size:11px;color:#8c9c94}
.draft-attachment-meta #photo-count{color:#56796a;font-variant-numeric:tabular-nums}
.entry-composer .entry-photo-tray{display:flex;gap:12px;margin:0;padding:4px 2px 14px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c7ddd1 transparent}
.entry-composer .entry-photo-tray .photo-tile{width:100px;height:112px;flex:0 0 100px;border-radius:15px;background:#f0f5f2;border:1px solid #e6eee9;overflow:hidden}
.entry-composer .entry-photo-tray .photo-tile img{display:block;object-fit:contain;border-radius:14px;width:100%;height:100%}
.entry-photo-tray .photo-remove{top:3px;right:3px;width:29px;height:29px;background:#244336b3;box-shadow:0 0 0 2px #fff8}
.entry-photo-tray .photo-remove svg{width:15px;height:15px}
.entry-photo-tray .photo-cover-button{position:absolute;left:6px;bottom:6px;top:auto;right:auto;width:auto;height:23px;min-height:0;max-width:calc(100% - 12px);padding:3px 7px;border:0;border-radius:15px;background:#fffE;color:#436c58;font-size:9px;opacity:0;transition:opacity .15s}
.entry-photo-tray .photo-tile:hover .photo-cover-button,.entry-photo-tray .photo-tile:focus-within .photo-cover-button,.entry-photo-tray .photo-tile.is-cover .photo-cover-button{opacity:1}
.entry-photo-tray .photo-tile.is-cover{border:2px solid #267d68}
.draft-add-more{width:76px;height:112px;flex:0 0 76px;border:1px dashed #cbddd2;border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;color:#709481;background:#f6faf7;font-size:10px}
.draft-add-more svg{width:24px;height:24px}.draft-add-more:hover{background:#edf7f0;border-color:#7caf91}
.draft-prompts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:13px 0 16px;border-top:1px solid #edf2ef;border-bottom:1px solid #edf2ef}
.draft-prompts button{min-width:0;min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px;border:1px solid #dce8e0;border-radius:13px;background:#f9fcfa;color:#3c6250;font-size:12px;font-weight:500;white-space:nowrap;transition:background .15s,border-color .15s}
.draft-prompts button>svg{width:13px;height:13px;color:#8aab99}.draft-prompts button>span:first-child{font-size:16px}
.draft-prompts button:hover{background:#f0f8f3;border-color:#99c3ac}.draft-prompts button[aria-pressed=true]{background:#e8f6ed;border-color:#72ad91;color:#1e7056}
.entry-composer.is-idle.has-photos .input-row{min-height:86px;padding:13px 0 4px;align-items:flex-end}
.entry-composer.is-idle.has-photos #inspiration{min-height:64px;max-height:180px;padding:4px 3px 8px;font-size:15px;line-height:1.8;overflow-y:auto}
.entry-composer.is-idle.has-photos .composer-bottom{border-top:0;padding-top:10px}
.entry-composer.is-idle .entry-input-shell{min-width:0}
.entry-empty-mode .workspace{width:100%;min-width:0}
@media(max-width:760px){
  .entry-empty-mode .experience{padding:28px 16px 40px;min-height:0}
  .entry-empty-mode .workspace{margin-top:24px;max-width:600px}
  .entry-empty-mode .intro h1{font-size:28px;letter-spacing:-1px}
  .entry-composer.is-idle .entry-input-shell{padding:16px 14px 13px;border-radius:25px}
  .entry-composer .entry-photo-tray{gap:10px;padding-bottom:13px}
  .entry-composer .entry-photo-tray .photo-tile{width:88px;height:102px;flex-basis:88px;border-radius:13px}
  .entry-photo-tray .photo-remove{width:32px;height:32px}
  .entry-photo-tray .photo-cover-button{opacity:1;font-size:9px}
  .draft-add-more{width:64px;height:102px;flex-basis:64px}
  .draft-attachment-meta{padding-bottom:9px;font-size:10px}
  .draft-prompts{gap:6px;padding:12px 0}
  .draft-prompts button{padding:10px 5px;gap:5px;min-height:44px;font-size:12px;border-radius:11px}
  .draft-prompts button>svg{display:none}.draft-prompts button>span:first-child{font-size:14px}
  .entry-composer.is-idle.has-photos #inspiration{font-size:16px;line-height:1.65;min-height:64px}
  .entry-composer.is-idle .add-photos,.entry-composer.is-idle .send-button{width:44px;height:44px}
  .entry-composer.is-idle .choice-status{font-size:9px;max-width:none}
  .entry-composer.is-idle .composer-bottom{flex-wrap:wrap;gap:6px}
  .entry-empty-mode .cases{margin-top:24px;padding-inline:16px;max-width:100%}
  .entry-empty-mode .case-grid{margin-inline:0;max-width:100%;padding-inline:0}
}
@media(max-width:380px){
  .topbar{padding-inline:12px;gap:5px}.brand{gap:5px}.brand img{width:32px;height:32px}.brand strong{font-size:16px}
  .studio-quick-actions{gap:4px;margin-right:0}.studio-pill{width:32px;height:36px}.header-actions{gap:4px}.header-actions .icon-button{width:36px;height:36px}
  .entry-empty-mode .experience{padding-inline:12px}.draft-prompts button{font-size:11px;gap:3px}
  .entry-composer.is-idle .drop-hint{display:none}.entry-composer.is-idle .choice-status{margin-left:0;text-align:left}
}
@media(prefers-reduced-motion:reduce){.draft-prompts button,.entry-photo-tray .photo-cover-button{transition:none}}

/* Shared handwritten brand artwork; scoped to avoid the avatar image rules. */
.brand.brand-with-wordmark{gap:9px;flex-shrink:0;min-height:44px}
.brand.brand-with-wordmark .brand-avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0}
.brand.brand-with-wordmark .brand-lockup{display:block;width:72px;height:48px;max-width:none;border-radius:0;object-fit:contain;flex-shrink:0}
.ai-identity .ai-brand-name{display:flex;align-items:center;gap:6px;line-height:1.2}
.ai-identity .ai-brand-name .brand-name{width:46px;height:21px;max-width:none;object-fit:contain;border-radius:0;background:none}
.ai-brand-name>span{font-size:13px;letter-spacing:.2px;font-weight:600}
.studio-brand-signature{display:inline-flex;align-items:center;gap:10px}
.studio-brand-signature .brand-script{display:block;width:76px;height:auto;flex-shrink:0}
@media(max-width:760px){
 .brand.brand-with-wordmark{gap:7px}
 .brand.brand-with-wordmark .brand-avatar{width:30px;height:30px}
 .brand.brand-with-wordmark .brand-lockup{width:64px;height:43px}
}
@media(max-width:380px){
 .brand.brand-with-wordmark{gap:5px}
 .brand.brand-with-wordmark .brand-avatar{width:28px;height:28px}
 .brand.brand-with-wordmark .brand-lockup{width:57px;height:38px}
}


/* Give the product name room without crowding mobile creation controls. */
.brand.brand-with-wordmark .brand-lockup{width:128px;height:45px}
@media(max-width:760px){
 .brand.brand-with-wordmark .brand-lockup{width:104px;height:37px}
}
@media(max-width:380px){
 .brand.brand-with-wordmark .brand-avatar{display:none}
 .brand.brand-with-wordmark .brand-lockup{width:100px;height:35px}
}


/* Mobile creation: readable conversation, deliberate sending, full-page previews. */
@media(max-width:760px){
  body{--studio-header-height:64px}
  .entry-empty-mode .topbar{height:auto;min-height:calc(73px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}
  body.editor-mode{position:fixed;left:0;right:0;top:var(--studio-viewport-top,0px);width:100%;height:var(--studio-viewport-height,100dvh);overflow:hidden}
  body.editor-mode .topbar{height:calc(var(--studio-header-height) + env(safe-area-inset-top));min-height:0;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:6px}
  body.editor-mode main{height:calc(var(--studio-viewport-height,100dvh) - var(--studio-header-height) - env(safe-area-inset-top))}
  .topbar .header-actions .icon-button,.topbar .studio-pill{min-width:44px;min-height:44px;width:44px;height:44px;flex-shrink:0}
  .topbar #xhs-open.xhs-pill{width:70px;min-width:70px;height:44px}
  .topbar .header-actions{gap:5px;flex-shrink:0}
  .topbar .studio-quick-actions{gap:5px;flex-shrink:0;margin-right:4px}
  .chat-log{padding:20px 16px;gap:24px;scroll-padding-block:20px}
  .chat-bubble,.chat-turn.user .chat-bubble{font-size:16px;line-height:1.75}
  .chat-turn.user{max-width:92%}
  .chat-history-question{font-size:14px;line-height:1.7}
  .chat-turn .speaker,.ai-identity small,.chat-receipt,.photo-count-chip{font-size:12px}
  .ai-panel-header{height:60px;min-height:60px;padding:10px 16px}
  .question-card h3{font-size:16px;line-height:1.65}
  .chat-options button.option-card{font-size:14px;min-width:min(130px,100%);min-height:48px;border-radius:18px!important;line-height:1.5}
  .quick-prompts button,.chat-style-picker button{font-size:13px;min-height:44px}
  .editor-view-switch button{font-size:14px;min-height:44px}
  .chat-controls{padding:10px 12px max(10px,env(safe-area-inset-bottom));max-height:55%;overflow-y:auto}
  #chat-input{font-size:16px;line-height:1.55;max-height:110px}
  #chat-input::placeholder{font-size:14px;line-height:1.75}
  .chat-footnote,.chat-count{font-size:11px}
  .chat-error,.chat-notice,.chat-working #job-detail,.analysis-summary p,.analysis-summary small{font-size:13px;line-height:1.7}
  .chat-error{max-height:140px;overflow-y:auto}
  .chat-error .text-button,.chat-notice button{min-height:44px;font-size:14px}
  .chat-proposal-card p,.mini-plan-meta,.chat-proposal-card .solid-button{font-size:14px}
  .chat-proposal-card .solid-button{min-height:48px}
  .canvas-toolbar{height:auto;min-height:68px;flex-wrap:wrap;padding:8px 12px;gap:8px;flex-shrink:0}
  .canvas-tabs{flex-shrink:0}
  .canvas-tabs button{min-width:44px;min-height:44px;font-size:14px;padding-inline:6px}
  .canvas-actions{margin-left:auto;max-width:100%;gap:5px}
  .canvas-content{padding:16px 12px max(20px,env(safe-area-inset-bottom))}
  .canvas-content .xhs-note .note-carousel{width:100%;max-width:min(100%,max(140px,calc((var(--studio-viewport-height,100dvh) - 228px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.75)));max-height:none;aspect-ratio:3/4;justify-self:center;margin-inline:auto}
  .canvas-content .xhs-note .note-carousel>img{width:100%;height:100%;object-fit:contain}
  .canvas-content .xhs-note .note-copy p,.xhs-note .note-scroll p{font-size:16px;line-height:1.8}
  .canvas-content .note-tags,.plan-overview p{font-size:14px;line-height:1.7}
  .canvas-photo-grid figcaption,.plan-sheet>span{font-size:12px}
  .canvas-actions .album-action-label{font-size:13px}
  .canvas-actions .album-open{min-width:44px;min-height:44px;padding-inline:8px}
  .album-dialog .album-heading p,.album-dialog .album-help,#album-status{font-size:14px}
  .album-dialog>small{font-size:12px}
  .album-dialog .album-heading .icon-button{width:44px;height:44px;flex-shrink:0}
  .entry-composer .entry-photo-tray .photo-tile{width:104px;height:104px;flex-basis:104px}
  .entry-composer .entry-photo-tray .photo-tile img{height:100%}
  .entry-photo-tray .photo-remove{width:44px;height:44px;top:0;right:0;box-shadow:none}
  .entry-photo-tray .photo-cover-button{left:0;bottom:0;width:100%;max-width:none;height:44px;min-height:44px;border-radius:0;font-size:12px;opacity:1;border-top:1px solid #dce9e1}
  .draft-add-more{height:104px;min-width:64px;font-size:12px}
  .draft-attachment-meta{font-size:12px}
  .draft-prompts{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:8px}
  .draft-prompts button{flex:0 0 auto;min-width:102px;font-size:14px;min-height:44px;padding:10px 12px}
  .entry-composer.is-idle .choice-status{font-size:12px;line-height:1.5}
  .entry-composer.is-idle #inspiration{font-size:16px}
  input,textarea{scroll-margin-bottom:24px}
  .utility-field input{font-size:16px}
  body.editor-mode.mobile-keyboard-open{--studio-header-height:52px}
  .mobile-keyboard-open .ai-panel-header,.mobile-keyboard-open .quick-prompts,.mobile-keyboard-open .chat-footnote{display:none}
  .mobile-keyboard-open .chat-controls{padding-top:6px;padding-bottom:6px}
}
@media(max-width:420px){
  .entry-empty-mode .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:72px;height:auto;padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:8px}
  .entry-empty-mode .topbar>.brand{grid-row:1;grid-column:1}
  .entry-empty-mode .topbar>.header-actions{grid-row:1;grid-column:2;justify-self:end}
  .entry-empty-mode .topbar>.studio-quick-actions{grid-row:2;grid-column:1/-1;justify-self:end;margin:0}
}
