/* VividlyHER builder on a phone (Oct 13, Becky: "the builder is tough on mobile").
   While she edits her look or her logo, the editing sheet gets most of the screen and her site stays
   live above it. One tap on the handle flips between "edit" and "see my site". Bigger buttons, one
   typeface per row, no zoom-jump when she types. Desktop is untouched. */
@media (max-width:900px){
  body.looking #mini,body.looking .see-site{display:none!important}

  /* the handle */
  .vhm-grab{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;border:0;border-bottom:1px solid #ecdcd2;background:#fff;font:600 14px "DM Sans",system-ui,sans-serif;color:#6b2a4c;cursor:pointer;flex:none}
  .vhm-grab i{display:block;width:40px;height:5px;border-radius:3px;background:#d9c2cc}

  /* the sheet reads like a page, not a form */
  .c-look .lk-top{padding:10px 16px 0}
  .c-look .lk-top>b{font-size:21px;margin-bottom:4px}
  .c-look .lk-tabs{gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .c-look .lk-tabs::-webkit-scrollbar{display:none}
  .c-look .lk-tabs button{flex:1 0 auto;min-height:46px;padding:12px 12px;font-size:15.5px}
  .c-look .lk-body{padding:12px 16px 20px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .c-look .lk-h{font-size:14px;margin:18px 0 8px}
  .c-look .lk-note,.c-look .lg-sub,.c-look .lk-rl,.c-look .lk-start{font-size:14px}

  /* buttons a finger can hit */
  .c-look .lk-seg button,.c-look .lk-chips button{min-height:44px;padding:10px 14px;font-size:14.5px}
  .c-look .lk-seg.lk-wrap,.c-look .lk-seg{flex-wrap:wrap}
  .c-look .lk-bar{flex-wrap:wrap;gap:2px 16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .c-look .lk-keep{flex:none;min-height:48px;padding:13px 20px;font-size:16px;border-radius:10px}
  .c-look .lk-undo,.c-look .lk-x,.c-look .lg-done,.c-look .lg-mv-0{min-height:40px;padding:8px 2px;font-size:14.5px;white-space:nowrap}
  .c-look .lg-this,.c-look .lg-more,.c-look .lg-dd-go,.c-look .lg-upbtn,.c-look .lk-cutgo,.c-look .lg-dr-go{min-height:46px;font-size:15px}
  .c-look .lk-shades button{height:40px}
  .c-look .lk-bg button,.c-look .lk-mine button{min-height:56px}
  .c-look .lk-bg{grid-template-columns:repeat(4,minmax(0,1fr))}
  .c-look .lk-mine{grid-template-columns:repeat(3,minmax(0,1fr))}
  .c-look .lk-hue{width:150px;height:150px}
  .c-look input[type=range]{height:34px}

  /* Type: one typeface per row, big enough to read */
  .c-look .lk-fonts{grid-template-columns:1fr;gap:8px}
  .c-look .lk-fonts button{padding:12px 14px}
  .c-look .lk-fonts b{font-size:24px}
  .c-look .lk-fonts span{font-size:13.5px}
  .c-look .lg-fonts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .c-look .lg-fonts button{min-height:52px;font-size:20px}
  .c-look .lg-dd-btn{padding:12px 14px}
  .c-look .lg-dd-btn .lg-dd-s{font-size:22px}
  .c-look .lg-dd-list{max-height:48vh}
  .c-look .lg-dd-o{padding:10px 12px}
  .c-look .lg-ems button,.c-look .lg-syms button{min-height:56px}

  /* no zoom-jump on iPhone when she taps a field */
  .c-look input[type=text],.c-look input[type=search],.c-look input:not([type]),.c-look textarea,.c-look select,.corner textarea,.corner input[type=text]{font-size:16px!important}
}
@media (max-width:420px){
  .c-look .lk-wheelrow{flex-direction:column;align-items:stretch}
  .c-look .lk-hue{margin:0 auto}
}

/* VividlyHER builder on a phone.
   Oct 13: a handle on the editing sheet so she can flip between editing and seeing her site.
   Oct 16 (Becky: "nothing in the builder works on mobile, we have multiple menus", then "YES" to the plan):
   her website is the screen, one menu lives at the bottom (the shared tabs), and Becky waits in a small dock
   with one line to type or speak and one row of chips. She rises into a sheet only when she is needed. */
/* the dock pieces exist only on phones */
.vhp-grab,.vhp-last,.vhp-dim{display:none}
@media (max-width:900px){
  /* one menu: the chat's own menu, the floating pills and the minimized bubble leave on phones */
  body.building .see-site,body.building #mini,body.building .corner .c-menu,body.building .corner .c-photo,body.building .corner .c-x,body.building .corner .c-menu-dd,body.building .her .se-b{display:none!important}

  /* her site fills the screen above Becky's dock */
  body.building:not(.mirror-full) .her{bottom:calc(max(var(--vhsn-tab,0px),var(--vhp-covered,0px)) + var(--vhp-dock,150px) + 14px)!important;transition:bottom .3s ease}

  /* Becky's dock */
  body.building:not(.looking):not(.mirror-full) .corner{top:auto!important;left:8px!important;right:8px!important;width:auto!important;bottom:calc(max(var(--vhsn-tab,0px),var(--vhp-covered,0px)) + 8px)!important;height:auto!important;max-height:var(--vhp-room,calc(100dvh - 90px));transform:none!important;opacity:1!important;pointer-events:auto!important;border-radius:20px!important;display:flex!important;flex-direction:column;transition:max-height .35s ease}
  body.building:not(.looking):not(.mirror-full):not(.vhp-open) .corner .c-head,body.building:not(.looking):not(.mirror-full):not(.vhp-open) .corner .c-body{display:none!important}
  body.building:not(.looking):not(.mirror-full):not(.vhp-open) .vhp-last{display:flex;align-items:flex-start;gap:10px;width:100%;margin:0;padding:12px 14px 4px;border:0;background:none;text-align:left;cursor:pointer;font:400 14.5px/1.4 "DM Sans",system-ui,sans-serif;color:#3a1f2e}
  .vhp-last img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 2px #fff,0 0 0 3px #f07fae}
  .vhp-last span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}
  .vhp-last i{flex:none;font-style:normal;font-weight:600;font-size:13px;color:#b51b5b;padding-top:2px}

  /* the chips: one row she can swipe */
  body.building .corner .c-dock{display:flex!important;gap:7px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:8px 12px 6px;border-top:0;background:transparent}
  body.building .corner .c-dock::-webkit-scrollbar{display:none}
  body.building .corner .c-dock button,body.building .corner .c-dock button:first-child,body.building .corner .c-dock button[data-h="edit"]{flex:none;border:1px solid rgba(181,27,91,.28);border-radius:999px;padding:9px 14px;background:#fff;color:#b51b5b;font:600 13.5px/1 "DM Sans",system-ui,sans-serif;white-space:nowrap}
  body.building .corner .c-dock button[data-h="see"]{display:none}
  body.building .corner .c-foot{padding:6px 12px calc(10px) !important}

  /* Becky rises */
  body.building.vhp-open:not(.looking) .vhp-dim{display:block;position:fixed;inset:0;z-index:19;background:rgba(44,20,36,.28);animation:vhpIn .25s ease}
  @keyframes vhpIn{from{opacity:0}to{opacity:1}}
  body.building.vhp-open:not(.looking):not(.mirror-full) .corner{height:min(calc(var(--vhp-height,100dvh) * .78),640px)!important;left:0!important;right:0!important;bottom:max(var(--vhsn-tab,0px),var(--vhp-covered,0px))!important;border-radius:22px 22px 0 0!important;box-shadow:0 -20px 50px -20px rgba(44,20,36,.45)!important}
  body.building.vhp-open .corner .c-head{padding:6px 16px 10px!important;background:#fff!important;color:#2c1424!important}
  body.building.vhp-open .corner .c-head .c-title .v{color:#2c1424!important}
  body.building.vhp-open .corner .c-head .c-sub{color:#8a7482!important}
  body.building.vhp-open .corner .c-head img{width:36px!important;height:36px!important}
  body.building.vhp-open .corner .c-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;overflow-anchor:none;-webkit-overflow-scrolling:touch;touch-action:pan-y}
  body.building.vhp-open:not(.looking) .vhp-grab{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;border:0;background:#fff;border-radius:22px 22px 0 0;font:600 15px "DM Sans",system-ui,sans-serif;color:#6b2a4c;cursor:pointer;flex:none}
  .vhp-grab i{display:block;width:40px;height:5px;border-radius:3px;background:#d9c2cc}

  /* her look, logo and photos: the editing sheet sits above the tabs */
  body.building.looking .corner{bottom:max(var(--vhsn-tab,0px),var(--vhp-covered,0px))!important;height:calc(66dvh - max(var(--vhsn-tab,0px),var(--vhp-covered,0px)))!important;top:auto!important;left:0!important;right:0!important;border-radius:20px 20px 0 0!important}
  body.building.looking .her{bottom:calc(66dvh + 6px)!important}
  body.building.looking .corner .c-head{display:none!important}
  body.building.looking.vhm-peek .corner{height:calc(34dvh - max(var(--vhsn-tab,0px),var(--vhp-covered,0px)))!important}
  body.building.looking.vhm-peek .her{bottom:calc(34dvh + 6px)!important}

  /* while the camera takes photos, the tabs step aside */
  body.building.mirror-full .vhsn-tabs{display:none!important}
}
/* Oct 18: the conversation alone scrolls; its composer and navigation stay within reach. */
@media(max-width:900px){
  body.building .corner .c-head,body.building .corner .c-foot,body.building .corner .c-dock{flex-shrink:0}
  body.building .corner .c-dock button{min-height:44px;font-size:14px}
  body.building .corner .c-foot textarea{min-width:0;max-height:100px}
  body.building .corner .c-mic,body.building .corner .c-send{min-width:44px;min-height:44px}
  body.building .corner .c-body .msg{overflow-wrap:anywhere}
  body.building .corner .c-body img{max-width:100%}
  body.building .corner .vhp-last{font-size:16px!important}
  body.building .corner .vhp-last i{font-size:14px}
  body.building .corner .c-body:focus-visible{outline:2px solid #b51b5b;outline-offset:-3px}
  body.building.looking .corner{max-height:var(--vhp-room,calc(100dvh - 90px))}
}
@media(max-width:900px) and (max-height:540px){
  body.building.vhp-open .corner .c-head{display:none!important}
  body.building.vhp-open .corner .c-dock{display:none!important}
  body.building.vhp-open:not(.looking):not(.mirror-full) .corner{height:var(--vhp-room,70dvh)!important}
  body.building:not(.vhp-open):not(.looking) .vhp-last span{-webkit-line-clamp:1}
}
@media(prefers-reduced-motion:reduce){.corner,.her{transition:none!important}.vhp-dim{animation:none!important}}
/* Leave breathing room between the two panels at small laptop widths. */
@media(min-width:901px) and (max-width:1000px){
  body.building .her{width:calc(94vw - 400px)!important;right:auto!important}
}
@media(max-width:900px) and (max-height:540px){
  body.building:not(.looking) .corner .c-dock{display:none!important}
}
