/* Stage ד–ו: מפתחות, סרגל עליון, בית. בלי לגעת בכפתור הצף של בוט העזרה. */

/* —— מפתחות: שני כרטיסים, נקודה ירוקה/אפורה, תיאור קצר —— */
.st-key{display:block;margin:0 0 14px}
.st-key-h{display:flex;align-items:center;gap:8px;font-weight:700;margin:0 0 6px}
.st-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#9ca3af;flex:0 0 9px}
.st-dot.on{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.st-row{display:flex;gap:8px;align-items:center}
.st-row input{flex:1;min-width:0}
.st-uses{display:block;margin:6px 0 2px;color:var(--mut,#94a3b8);font-size:12.5px;line-height:1.45}
#st-keys-need,#st-keys-opt{margin-bottom:16px}

/* —— סרגל עליון בנייד: לוגו + צרו סרטון + תפריט בלבד —— */
@media (max-width:700px){
  #top{flex-wrap:nowrap}
  #top .tr .lime, html.fm #top .tr .lime{display:inline-flex!important}
  #top .tr .ghost{display:none!important}
  #side-account{
    display:flex;flex-direction:column;gap:10px;
    padding:12px 0 16px;margin:8px 0 4px;
    border-top:1px solid rgba(148,163,184,.35);
    border-bottom:1px solid rgba(148,163,184,.35);
  }
  #side-account #langWrap,
  #side-account #crBtn,
  #side-account #gsBtn,
  #side-account #resetBtn{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:40px;
    font-size:15px!important;
    justify-content:flex-start;
  }
  #side-account #crBtn{
    max-width:none!important;
    overflow:visible!important;
    white-space:normal!important;
    padding:8px 10px;
  }
  #side-account #langBtn{width:100%}
}

/* —— יתרה: סכום אחד בכפתור; הפירוט נשאר בפאנל —— */
#crBtn{max-width:none}
@media (min-width:701px){
  #crBtn{max-width:160px}
}

/* —— דף הבית: שדה רעיון + חמש דרכים —— */
.home-idea{margin:0 0 18px;padding:18px 18px 16px;border-radius:18px;background:var(--card,#141416);border:1px solid var(--line,rgba(255,255,255,.1));box-shadow:0 16px 40px rgba(0,0,0,.35);color:inherit}
.home-idea h2{margin:0 0 10px;font:800 1.35rem/1.25 Rubik,Heebo,sans-serif}
.home-idea-row{display:flex;gap:8px;align-items:stretch}
.home-idea-row textarea,
.home-idea-row input[type=text]{
  flex:1;min-width:0;min-height:52px;padding:12px 14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.15);background:#0b0b0c;color:inherit;font:inherit;font-size:16px;resize:vertical
}
.home-idea-row button{flex:0 0 auto;padding:0 18px;border-radius:12px;font-weight:800}
.home-paths{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 20px}
.home-path{
  display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  background:var(--card,#141416);border:1px solid var(--line,rgba(255,255,255,.1));text-decoration:none;color:inherit;
  box-shadow:0 8px 24px rgba(0,0,0,.25)
}
.home-path:hover{transform:translateY(-1px)}
.home-path .media{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#111}
.home-path .cap{padding:10px 12px 12px}
.home-path .cap b{display:block;font-size:15px;margin:0 0 2px}
.home-path .cap span{display:block;font-size:12.5px;color:var(--mut,#b7b7bf);line-height:1.4}
@media (max-width:900px){
  .home-paths{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .home-idea-row{flex-direction:column}
  .home-idea-row button{min-height:44px}
  .home-paths{grid-template-columns:1fr}
}

/* —— looks: שני טורים דביקים רק במסך צר —— */
@media (max-width:700px){
  body.looks-page .navin{
    height:auto!important;
    min-height:58px;
    flex-wrap:wrap!important;
    padding:8px 0;
    gap:8px 16px;
    align-items:flex-start!important;
  }
  body.looks-page .navlinks{
    flex-wrap:wrap;
    width:100%;
    gap:8px 14px;
  }
}

/* —— שולחן עבודה: סרגל הניווט חייב להיות גלוי (ב-v4.css הוא מוסתר גם מעל 1100px) —— */
@media (min-width:701px){
  html:not(.fm) #nav{
    display:flex!important;
    flex:1 1 auto;
    min-width:0;
    overflow:auto;
    align-items:center;
    gap:2px;
    scrollbar-width:none;
  }
  html:not(.fm) #top .logo{flex:0 0 auto}
  html:not(.fm) #nav a{padding:7px 8px;font-size:13.5px}
}

/* —— looks: שני טורים, כולל הקישור הראשון שמוסתר כיום ב-560px —— */
@media (max-width:700px){
  body.looks-page .navlinks a:first-child{display:inline!important}
}


/* vg-v288: models subtitle wraps as a full-width LTR block; headings clear the help FAB */
.models-provs{display:block;direction:ltr;unicode-bidi:isolate;text-align:start;margin:.35em 0 .45em;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
@media (max-width:700px){
  #view h2, #main h2, .pad h2, #preHome h2, #home-idea h2, .sh h2, section > h2, #dir-hf-jobs h4{
    padding-left:56px;padding-right:56px;box-sizing:border-box;
  }
}
/* אתגרים: תגית חדש + פוסט לצד האנגלי */
.ch-new-tag{display:inline-block;margin-inline-start:6px;background:var(--lime,#c6ff00);color:#111;font:800 11px/1 Heebo,sans-serif;padding:3px 8px;border-radius:999px;font-style:normal}
.ch-post{margin:12px 0 10px;padding:12px;border:1px solid var(--line,rgba(255,255,255,.12));border-radius:14px;background:rgba(255,255,255,.03)}
.ch-post > b{display:block;margin:0 0 6px}
.ch-post-pre{max-height:220px;overflow:auto;white-space:pre-wrap;margin:0 0 8px}
.ch-post-en{margin-top:8px}
.ch-post-en summary{cursor:pointer;color:var(--mut,#b7b7bf)}

/* vg-v289 leftovers: desktop new-project must not cover the idea heading;
   settings keys list must scroll clear of the help FAB at 412px */
@media (min-width:701px){
  .npwrap{height:auto!important;margin:0 0 12px!important;overflow:visible!important;display:flex!important;justify-content:flex-end;position:relative;z-index:5}
  #newproj.np-right{position:static!important;top:auto!important;right:auto!important;left:auto!important;z-index:auto!important;margin:0!important}
}
@media (max-width:700px){
  #st-keys-opt, #view .tool:has(#st-keys-opt){
    padding-bottom:calc(140px + env(safe-area-inset-bottom,0px));
    box-sizing:border-box;
  }
}
