/* The demo on a phone (Ori 15.11: "נחזור לגרסה הכי ראשונה שמכניסים פרטים ידנית ... ננקה אותה בטלפון ונתאים אותה שתיראה
   מעולה במובייל"). Loaded last; everything here is for screens up to 700px. Fewer words and boxes, the outputs larger,
   and once the kit is built its tabs sit at the bottom of the screen like an app's. */
@media (max-width:700px){
  /* the demo strip and the frame */
  #demo .wrap{width:calc(100% - 20px)}
  .app{border-radius:18px;min-height:0}
  .app-top{padding:7px 12px;font-size:14px}
  .app-top b{font-size:13px;padding:2px 12px}
  .app-top .link{font-size:14.5px}
  .demo-after p{display:none}
  .demo-after{margin-top:20px}
  .app .finish{display:none}

  /* screen 1: name, your name, photo (optional), style, button */
  .brief{padding:20px 16px 26px;gap:0}
  .brief .hand{font-size:24px}
  .brief h3{font-size:31px}
  .brief .q{font-size:16.5px;margin:6px 0 16px}
  .brief-side{display:none}
  .brief .form-row{gap:10px}
  .brief .field{padding:13px 14px}
  .ph-pick{margin-top:12px;gap:10px}
  .ph-add{padding:8px 12px !important;gap:10px !important}
  .ph-tx small{font-size:12.5px}
  .ph-tx b{font-size:15.5px}
  .ph-prev{width:44px;height:44px}
  .ph-prev svg{width:21px;height:21px}
  .sty-wrap{margin-top:16px}
  .sty-grid{grid-template-columns:repeat(4,1fr) !important;gap:10px 8px !important}
  .sty-c{aspect-ratio:1/1 !important;border-radius:10px}
  .sty-in{gap:5cqw !important;padding:8cqw !important}
  .sty-in .lmk{font-size:16cqw !important}
  .sty-name{font-size:15cqw !important}
  .sty-l{font-size:12px !important}
  .brief .go{width:100%;justify-content:center;margin-top:20px;font-size:20px;padding:17px 20px}
  /* the shark's chat button waits for the kit, so it never sits on the form or the build */
  .app:not(.is-built) .shark-dock{display:none}

  /* screen 2: the build, three small tiles in a row */
  .build{padding:16px 14px 22px}
  .build-head{gap:10px;flex-wrap:nowrap}
  .build-head img{width:46px;height:46px}
  .build-head h3{font-size:21px}
  .build-head p{display:none}
  .build-count{padding:4px 12px;border-radius:12px;box-shadow:3px 3px 0 var(--sky)}
  .build-count b{font-size:26px}
  .build-count span{font-size:12px}
  .build-wall{grid-template-columns:repeat(3,1fr) !important;gap:8px;margin-top:14px}
  .btile{padding:10px 8px 9px;border-radius:12px;text-align:center}
  .btile i{width:30px;height:30px;margin-inline:auto;border-radius:9px}
  .btile i svg{width:17px;height:17px}
  .btile b{font-size:13px;line-height:1.25;margin-top:6px}
  .btile small{display:none}

  /* the kit and the views: a short heading, no explanations under it */
  .app-body{padding:16px 12px 28px}
  .kit-head{margin-bottom:14px;gap:12px}
  .kit-head .hand{font-size:22px}
  .kit-head h3{font-size:27px}
  .kit-head .q{display:none}
  .view-h{gap:10px;margin-bottom:12px}
  .view-h .ic{display:none}
  .view-h h3{font-size:23px}
  .view-h p{display:none}
  .view-h .stp{font-size:12.5px}
  .view-h .sp{width:100%;margin:0;overflow-x:auto;scrollbar-width:none}
  .view-h .sp::-webkit-scrollbar{display:none}
  .view-h .seg{flex-wrap:nowrap !important;width:max-content}
  .tools{padding:8px 10px;gap:8px 12px;border-radius:14px}
  .tg>span{display:none}
  .tg.end .btn{padding:8px 12px;font-size:14px}
  .kpis{grid-template-columns:repeat(3,1fr) !important;gap:8px}
  .kpi{padding:10px}
  .kpi small{font-size:12px}
  .kpi b{font-size:19px}
  .rule{font-size:13px}
  .wa-grid .phone{height:440px}
  .panel{padding:14px}

  /* the tabs at the bottom of the screen, like an app's, while the built demo is on screen (app.js toggles .nav-dock) */
  .app.is-built .app-nav{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    border-bottom:0;border-top:1.5px solid var(--line);background:rgba(255,254,251,.97);box-shadow:0 -8px 22px rgba(45,62,102,.12);
    transform:translateY(110%);transition:transform .3s ease}
  .app.is-built.nav-dock .app-nav{transform:none}
  .app.is-built .app-nav .brand,.app.is-built .app-nav .bizchip{display:none}
  .app.is-built .app-tabs{gap:2px;overflow:visible}
  .app.is-built .tab{position:relative;flex:1;flex-direction:column;gap:3px !important;font-size:11.5px !important;line-height:1.1;padding:7px 2px !important;border-radius:12px;white-space:nowrap}
  .app.is-built .tab svg{width:22px !important;height:22px !important}
  .app.is-built .tab .cnt{position:absolute;top:2px;left:calc(50% - 22px);margin:0;font-size:10.5px;min-width:17px;height:17px}
  .app.is-built .app-body{padding-bottom:28px}
  .app.is-built .shark-dock{bottom:24px}
  body.dock-on .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
  body.dock-on .shark-fab{transform:translateY(-62px)}
  body.dock-on .chat{bottom:138px}
}
