/* Home fixes of 16.11.2026 (Levi 19:26 and 19:35), all languages. */

/* 1. Phones and tablets: the headline and the box go up. The tall art lane becomes a small lane for the cloud; the
   floating figure sits beside the headline's free side (sized and pinned by home-fix.js and v4b.js, which keep it off
   every text and control). Desktop keeps its approved layout. */
@media (max-width:900px){
  .core>.left{padding-top:var(--hero-lane,52px)}
  .core>.left .headline,.core>.left .motto{width:fit-content;max-width:100%}
  .core>.left .f-hammock{width:var(--hero-lady-w,110px)}
}

/* 2. Phones: the three contact buttons on ONE bottom row, equal thirds, inside the safe area. */
@media (max-width:600px){
  html:has(#pill){--salabimo-wa-lane:0px;--bar-gap:8px;--bar-side:12px;--bar-cell:calc((100vw - 2 * var(--bar-side) - 2 * var(--bar-gap)) / 3)}
  .agent-connect.agent-dock{left:var(--bar-side);right:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:var(--bar-cell);max-width:none}
  .agent-dock>summary{width:100%;min-height:52px;padding:4px 6px;font-size:14px;line-height:1.15;text-align:center;white-space:normal}
  .agent-dock>.acts-r{width:calc(100vw - 2 * var(--bar-side))}
  #pill.pill{left:auto;right:var(--bar-side);bottom:calc(10px + env(safe-area-inset-bottom,0px));width:calc(2 * var(--bar-cell) + var(--bar-gap));max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:var(--bar-gap)}
  #pill.pill a{min-width:0;width:100%;min-height:52px;padding:4px 6px;gap:6px;font-size:14px;line-height:1.15;box-sizing:border-box}
  #pill.pill a span{min-width:0}
  #pill.pill .ws.ico,#pill.pill .ico{width:26px!important;height:20px!important;flex:none}
  #pill.pill .ws.ico svg{height:20px;width:26px}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  /* narrow phones: the icon above the word, so no word is split */
  @media (max-width:380px){
    #pill.pill a{flex-direction:column;justify-content:center;gap:2px;font-size:13px;min-height:60px;height:60px}
    .agent-dock>summary{font-size:13px;min-height:60px;height:60px}
    body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  }
  /* while someone types, the bar steps aside so it never covers the field or the keyboard's edge */
  html:has(.prompt textarea:focus) .agent-connect.agent-dock,html:has(.prompt textarea:focus) #pill.pill{visibility:hidden}
}

/* 3. The prompt box (Levi 16.11.2026 22:30): the field is its own clean zone above a thin line; below it ONE compact
   footer that packs like Tetris. Phones: the notice across the box, then "Read more" left and the two buttons right on
   one row. Wider: notice and "Read more" left, buttons right, sharing rows. Opened, the full text takes its own row
   below the footer, so the buttons never move away. Languages without a short line keep both notices, same footer. */
.prompt .box{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"field field" "note note" "more btns";column-gap:12px;align-items:center}
.prompt .box>textarea#prompt{grid-area:field;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:2px}
.prompt .box>.ai-short,.prompt .box>.ai-disclosure{grid-area:note}
.prompt .box>.ai-more,.prompt .box>.wp8-mic-note{grid-area:more}
.prompt .box>.row{grid-area:btns;justify-self:end;align-self:center;margin-top:6px}
.prompt .box>.ai-more[open]{grid-area:auto;grid-column:1/-1;grid-row:4}
.prompt .box:not(:has(>.ai-more)){grid-template-areas:"field field" "note note" "more more" ". btns"}
@media (min-width:601px){
  .prompt .box{grid-template-areas:"field field" "note btns" "more btns"}
  .prompt .box>.row{align-self:end}
  .prompt .box:not(:has(>.ai-more)){grid-template-areas:"field field" "note note" "more btns"}
}
/* the short notice reads as secondary: smaller and quieter than the field, never lime, still 4.5:1 or better (measured).
   The full notices keep the privacy release's own look (wp9-privacy.css: 16 px, full ink, 65ch): only their place moves. */
.prompt .box>.ai-short{font-size:14.5px;line-height:1.45;color:var(--ink2);font-style:italic;margin:10px 0 0;border-top:0;padding:0;max-width:none}
#prompt-form .box>.ai-more>.ai-disclosure{margin:4px 0 8px}
#prompt-form .box>.ai-more>.wp8-mic-note{margin:12px 0 8px}
#prompt-form .box>.ai-disclosure,#prompt-form .box>.wp8-mic-note{margin:12px 0 0}
.ai-short{margin:12px 0 0}
.ai-more{margin:0}
.ai-more>summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;white-space:nowrap;box-sizing:border-box;padding:0 4px;cursor:pointer;font-weight:600;font-size:14.5px;color:var(--ink2);text-decoration:underline;text-underline-offset:3px;list-style:none}
.ai-more>summary::-webkit-details-marker{display:none}
.ai-more>summary:focus-visible{outline:3px solid var(--focus,#c7ff36);outline-offset:2px;border-radius:6px}
.ai-more .rm-less{display:none}
.ai-more[open] .rm-more{display:none}
.ai-more[open] .rm-less{display:inline}

/* 9. What each app fixes: a plain list under the box, one line per app, each line a link and a 44 px or larger target. */
.band.problems{max-width:1280px;margin:0 auto;padding:32px var(--pad,16px) 8px}
.band.problems h2{font-size:clamp(22px,3vw,30px);margin:0 0 12px}
.problem-list{list-style:none;margin:0;padding:0;display:grid;gap:0;max-width:72ch}
.problem-list li{border-top:1px solid var(--line,rgba(255,255,255,.15))}
.problem-list li:last-child{border-bottom:1px solid var(--line,rgba(255,255,255,.15))}
.problem-list a{display:block;min-height:44px;padding:12px 4px;color:inherit;text-decoration:none;line-height:1.45;font-size:17px}
.problem-list a:hover .pb-fix,.problem-list a:focus-visible .pb-fix{text-decoration:underline;text-underline-offset:3px}
.problem-list a:focus-visible{outline:3px solid var(--focus,#c7ff36);outline-offset:2px;border-radius:6px}
.problem-list .pb-who{font-weight:700}
.problem-list .pb-pain{font-style:italic}

/* 4. The writing field: bigger, the whole box a click target, 16 px or more, a clear focus ring. */
.prompt textarea#prompt{min-height:calc(5 * 1.5em + 24px);font-size:max(17px,1em);line-height:1.5;cursor:text}
.prompt .box{cursor:text}
.prompt .box :is(button,a,summary){cursor:pointer}
.prompt textarea#prompt:focus-visible,.prompt textarea#prompt:focus{outline:3px solid var(--focus,#c7ff36);outline-offset:2px}
@media (max-width:600px){.prompt textarea#prompt{min-height:calc(4 * 1.5em + 24px)}}
