  :root { --ph: 300px; --g: #3ce36a; --c: #2fd3ff; --a: #ffb21f; --r: #ff3b3b; --m: #ff5cf0; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  button, .fval, #joy, #thr, #tbtns, #fcu { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; -webkit-touch-callout: none; }
  #joy, #thr { touch-action: none; }
  #menu, .screen, #acct, #adm, #guide { touch-action: pan-x pan-y pinch-zoom; }
  body.fly-lock, body.fly-lock canvas { touch-action: none; }
  body.phone { overscroll-behavior: none; position: fixed; width: 100%; height: 100%; }
  #errBox { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 99; background: #3a0d0d; border: 2px solid #ff5050;
    border-radius: 10px; padding: 8px 12px; font: 13px Consolas, monospace; direction: ltr; text-align: left; display: none; white-space: pre-wrap; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #000; color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif; user-select: none; -webkit-user-select: none; }
  #cesium { position: fixed; top: 0; left: 0; right: 0; bottom: var(--ph); }
  #cesium .cesium-viewer-bottom, #cesium .cesium-widget-credits { display: none !important; }
  /* הלוגו של Cesium ion מוצג רק כשבאמת משתמשים בשירות של Cesium ion (מפתח להרים/בניינים). התמונות הן של Esri – הקרדיט שלהם נשאר (קטן) */
  body:not(.ionOn) #credits .cesium-credit-logoContainer { display: none !important; }
  /* במקום הקישור "Data attribution" – רק "© Esri" קטנטן (חובה לתת קרדיט על תמונות הלוויין) */
  body:not(.ionOn) #credits .cesium-credit-expand-link, body:not(.ionOn) #credits .cesium-credit-textContainer { display: none !important; }
  body:not(.ionOn) #credits::after { content: '© Esri'; font-size: 9px; color: #fff; opacity: .5; font-family: Arial, sans-serif; pointer-events: none; }
  #credits { position: fixed; left: 6px; bottom: calc(var(--ph) + 4px); font-size: 10px; opacity: .7; direction: ltr; z-index: 5; }
  #credits a { color: #9fd8ff; }
  .hidden { display: none !important; }
  button { font-family: inherit; }

  /* ===== מסגרת תא טייס ===== */
  #frame { position: fixed; top: 0; left: 0; right: 0; bottom: var(--ph); pointer-events: none;
    background:
      linear-gradient(100deg, #111 0, #222 3.5%, transparent 3.6%),
      linear-gradient(-100deg, #111 0, #222 3.5%, transparent 3.6%),
      linear-gradient(0deg, #1a1c20 0, #1a1c20 10px, transparent 10px); }

  /* ===== פאנל מכשירים ===== */
  #panel { position: fixed; left: 0; right: 0; bottom: 0; height: var(--ph);
    background: linear-gradient(#2a2e35, #1d2025); border-top: 2px solid #444; direction: ltr;
    display: flex; flex-direction: column; align-items: center; }
  #fcu { height: 46px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #3a3f47; border-bottom: 1px solid #555; padding: 0 6px; overflow-x: auto; }
  .fgrp { display: flex; align-items: center; gap: 2px; background: #2b2f36; border-radius: 6px; padding: 3px 4px; }
  .fgrp label { font-size: 10px; color: #ccc; margin: 0 3px; }
  .fval { font-family: Consolas, monospace; font-size: 17px; color: #ffa53a; background: #111; padding: 2px 6px;
    border-radius: 3px; min-width: 62px; text-align: center; cursor: ns-resize; }
  .fbtn { background: #555b65; color: #fff; border: none; border-radius: 4px; width: 22px; height: 26px; cursor: pointer; font-size: 11px; }
  .fbtn:active { background: #777; }
  .pb { position: relative; background: #555b65; color: #fff; border: none; border-radius: 4px; padding: 6px 7px 9px;
    font-size: 11px; font-weight: bold; cursor: pointer; min-width: 40px; }
  .pb::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 3px; height: 3px; border-radius: 2px; background: #333; }
  .pb.on::after { background: #3ce36a; box-shadow: 0 0 6px #3ce36a; }
  .pb.arm::after { background: #2fd3ff; box-shadow: 0 0 6px #2fd3ff; }
  .master { width: 54px; height: 32px; border-radius: 4px; font-size: 9px; font-weight: bold; border: 1px solid #555;
    background: #2b2f36; color: #555; cursor: pointer; line-height: 1.1; }
  .master.warn { background: #c41919; color: #fff; animation: flash .5s infinite alternate; }
  .master.caut { background: #c98a00; color: #000; }
  @keyframes flash { from { opacity: 1; } to { opacity: .45; } }
  #instr { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 4px; }
  #instr canvas { background: #000; border-radius: 6px; border: 3px solid #0b0c0e; box-shadow: inset 0 0 8px #000; box-sizing: content-box; flex: none; }

  /* ===== שכבות מידע ===== */
  #info { position: fixed; top: 8px; left: 8px; background: rgba(5,10,20,.72); border: 1px solid rgba(120,200,255,.35);
    border-radius: 10px; padding: 8px 12px; font-size: 13px; direction: ltr; line-height: 1.5; font-family: Consolas, monospace; min-width: 210px; }
  #info b { color: var(--c); }
  /* ===== בית הספר לטיסה – EFB (הטאבלט של הטייס) ===== */
  #school { --sk: 1; position: fixed; top: 8px; right: 8px; z-index: 6; width: calc(372px * var(--sk)); font-size: calc(14.5px * var(--sk));
    max-height: calc(100vh - var(--ph) - 16px); display: flex; flex-direction: column; color: #e6edf7; line-height: 1.45;
    background: #11161f; border: .4em solid #262c36; border-radius: 1.1em; overflow: hidden;
    box-shadow: 0 .8em 2.4em rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.07); transition: box-shadow .3s, border-color .3s; }
  #sHead { display: flex; align-items: center; gap: .35em; padding: .3em .45em; background: #1b212c; cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; font-size: .85em; flex: none; }
  #sHead .efb { background: #2fd3ff; color: #04202b; font-weight: 900; border-radius: .35em; padding: 0 .35em; font-size: .8em; letter-spacing: .05em; }
  #sHead b { color: #ffd23f; white-space: nowrap; } #sHead .sp { flex: 1; }
  .ib { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: .4em; min-width: 2em; height: 2em;
    font-size: 1em; line-height: 1; cursor: pointer; padding: 0 .3em; }
  .ib:active { background: rgba(255,210,63,.35); }
  .ib.sz { font-size: .72em; min-width: 3.3em; height: 2.7em; }
  #school .body { display: flex; flex-direction: column; padding: .45em .65em .7em; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #school .body > * { flex: none; }
  #school .body > #sSay { flex: none; overflow: visible; }                 /* ההוראה – תמיד גלויה במלואה */
  #school .body > #sCkWrap { flex: 1 1 auto; min-height: 4.2em; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #schoolTab { position: fixed; top: 8px; right: 8px; z-index: 6; background: #11161f; color: #ffd23f; border: 3px solid #262c36; border-radius: 12px; padding: 8px 14px; font-size: 15px; font-weight: bold; cursor: pointer; font-family: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
  #schoolTab.hidden { display: none; } body.phone #schoolTab { top: calc(46px + var(--sa-t, env(safe-area-inset-top))); left: calc(8px + var(--sa-l, env(safe-area-inset-left))); right: auto; }
  #sMini { display: none; padding: .45em .7em; cursor: pointer; font-size: .95em; color: #ffd23f; }
  #school.min .body, #school.min #sGrip { display: none; } #school.min #sMini { display: block; }
  #sTl { position: relative; display: flex; justify-content: space-between; margin: .1em .1em .4em; height: 2.6em; }
  #sTl .line { position: absolute; top: .82em; right: .9em; left: .9em; height: .16em; background: rgba(255,255,255,.15); border-radius: 1em; }
  #sTl .node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 1.8em; }
  #sTl .node span { width: 1.75em; height: 1.75em; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1d2532;
    border: .12em solid rgba(255,255,255,.2); font-size: .85em; filter: grayscale(1); opacity: .55; }
  #sTl .node em { font-style: normal; font-size: .6em; color: #8fa3bd; white-space: nowrap; margin-top: .15em; }
  #sTl .node.done span { background: #123d24; border-color: #3ce36a; filter: none; opacity: 1; }
  #sTl .node.cur span { background: #4a3b05; border-color: #ffd23f; filter: none; opacity: 1; box-shadow: 0 0 .7em rgba(255,210,63,.6); }
  #sTl .node.cur em { color: #ffd23f; font-weight: bold; }
  #sPlane { position: absolute; top: -.62em; font-size: .85em; transform: scaleX(-1); transition: right 1.2s; color: #fff; z-index: 2; text-shadow: 0 0 .4em #2fd3ff; }
  #sSay { display: flex; gap: .5em; align-items: flex-start; }
  #sSay .av { font-size: 1.7em; line-height: 1; background: #1d2532; border-radius: 50%; width: 1.5em; height: 1.5em; display: flex; align-items: center;
    justify-content: center; flex: none; border: .07em solid #2fd3ff; }
  #sSay .bub { flex: 1; min-width: 0; background: #1a2230; border: 1px solid rgba(47,211,255,.35); border-radius: .25em .9em .9em .9em; padding: .45em .65em; }
  #sTitle { font-size: 1.15em; font-weight: bold; color: #7fffb0; }
  #sTitle .tag { font: bold .68em Consolas, monospace; color: #2fd3ff; border: 1px solid rgba(47,211,255,.5); border-radius: .3em; padding: 0 .3em; vertical-align: middle; white-space: nowrap; }
  #sKeys { display: flex; gap: .5em; flex-wrap: wrap; align-items: center; margin: .35em 0 .45em; }
  #sKeys:empty { display: none; }
  .kc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 1.9em; padding: .16em .45em .1em;
    border: .07em solid #e8eef8; border-bottom-width: .2em; border-radius: .33em; background: #1d2a44; color: #ffd23f;
    font: bold 1.9em Consolas, 'Segoe UI', monospace; line-height: 1.05; animation: keyBounce 1.2s infinite; }
  .kc.wide { font-size: 1.15em; padding: .35em .6em .25em; }
  .kc small { font: .4em 'Segoe UI', Arial, sans-serif; color: #cfe3ff; margin-top: .12em; }
  @keyframes keyBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(.1em); } }
  .kk { display: inline-block; padding: 0 .4em; border: 1px solid #ffd23f; border-radius: .3em; color: #ffd23f; font-weight: bold;
    font-family: Consolas, 'Segoe UI', monospace; unicode-bidi: isolate; direction: ltr; background: rgba(255,210,63,.08); }
  #sText b { color: #ffd23f; }
  .phNew { display: block; color: #9fd8ff; font-size: .85em; margin-bottom: .3em; }
  .lateMsg { display: block; color: #ffd23f; font-weight: bold; margin-bottom: .2em; }
  .why { margin-top: .4em; padding: .4em .55em; background: rgba(255,255,255,.06); border-radius: .5em; font-size: .9em; }
  #sLive { margin-top: .45em; padding: .3em .6em; border-radius: .5em; background: rgba(47,211,255,.12); color: #bfefff; font-weight: bold; font-size: .9em; }
  #sLive:empty, #sCop:empty { display: none; }
  #sCop { margin-top: .45em; padding: .35em .6em; border-radius: .5em; background: rgba(60,227,106,.13); color: #9dffbf; font-size: .88em; }
  #school .btns { display: flex; gap: .35em; margin: .55em 0; flex-wrap: wrap; }
  #school .btns button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: .5em; padding: .32em .7em; cursor: pointer; font-size: .85em; }
  #school .btns button.primary { background: linear-gradient(#ffd23f,#ff9f1c); color: #1a1440; font-weight: bold; border: none; }
  #sCkWrap { background: #0a0e14; border: 1px solid #2a3442; border-radius: .6em; padding: .35em .5em; font-family: Consolas, 'Courier New', monospace; }
  #sCkHead { color: #fff; font-weight: bold; font-size: .78em; letter-spacing: .06em; border-bottom: 1px solid #2a3442; padding-bottom: .25em; margin-bottom: .25em; text-align: center; }
  #sCkHead span { font-family: 'Segoe UI', Arial, sans-serif; color: #8fa3bd; font-weight: normal; letter-spacing: 0; }
  #sCk { list-style: none; }
  #sCk li { display: flex; align-items: baseline; gap: .35em; padding: .18em .3em; border-radius: .35em; color: #2fd3ff; font-size: .9em; cursor: pointer; direction: ltr; }
  #sCk li i { width: 1.1em; font-style: normal; text-align: center; flex: none; }
  #sCk li i::before { content: '☐'; color: #5d6b7e; }
  #sCk li .lab, #sCk li .val { flex: none; } #sCk li .val { font-weight: bold; }
  #sCk li .dots { flex: 1; border-bottom: .12em dotted currentColor; opacity: .45; transform: translateY(-.28em); min-width: .6em; }
  #sCk li small { flex: none; font-family: 'Segoe UI', Arial, sans-serif; color: #8fa3bd; font-size: .78em; direction: rtl; min-width: 6.2em; text-align: right; }
  #sCk li.done { color: #3ce36a; } #sCk li.done i::before { content: '✔'; color: #3ce36a; }
  #sCk li.cur { background: rgba(255,210,63,.15); color: #ffd23f; } #sCk li.cur i::before { content: '▶'; color: #ffd23f; animation: ckBlink 1s infinite; }
  #sCk li.cur.wait i::before { content: '⏳'; animation: none; }
  #sCk li.late { background: rgba(255,120,40,.25); color: #ffb070; }
  #sCk li.skip { color: #4f5b6b; text-decoration: line-through; } #sCk li.skip i::before { content: '–'; }
  @keyframes ckBlink { 50% { opacity: .25; } }
  #sLateWrap { margin-top: .55em; font-size: .78em; color: #9fb2c8; display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
  .seg2 { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: .5em; overflow: hidden; }
  .seg2 button { background: transparent; color: #cfe3ff; border: none; padding: .32em .55em; cursor: pointer; font-size: 1em; }
  .seg2 button.sel { background: #ffd23f; color: #1a1440; font-weight: bold; }
  #sGrip { position: absolute; left: 0; bottom: 0; width: 1.6em; height: 1.6em; cursor: nesw-resize; touch-action: none; user-select: none;
    background: linear-gradient(45deg, #6b7a8f 0 12%, transparent 12% 30%, #6b7a8f 30% 40%, transparent 40% 58%, #6b7a8f 58% 66%, transparent 66%); border-bottom-left-radius: .7em; opacity: .8; }
  #school.ok { border-color: #3ce36a; box-shadow: 0 0 1.6em rgba(60,227,106,.6); }
  #school.late, #school.frozen { border-color: #ffd23f; }
  #school.prob { border-color: #ff4d4d; box-shadow: 0 0 1.6em rgba(255,60,60,.6); }
  #school.prob .bub { background: #3a0d12; border-color: #ff6b6b; } #school.prob #sTitle { color: #ff9a9a; } #school.prob .av { border-color: #ff4d4d; }
  #school.prob #sCkWrap { opacity: .45; }
  body.phone #school { top: calc(46px + var(--sa-t, env(safe-area-inset-top))); left: calc(8px + var(--sa-l, env(safe-area-inset-left))); right: auto;
    max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
  body.phone.tablet #school { max-height: calc(100vh - 340px); max-height: calc(100dvh - 340px); }
  @media (orientation: portrait) { body.phone.tablet #school { max-height: calc(100vh - 610px); max-height: calc(100dvh - 610px); } }
  body.phone:not(.tablet) #sTl, body.phone:not(.tablet) #sGuide, body.phone:not(.tablet) #sLateWrap, body.phone:not(.tablet) #sHead b { display: none; }
  body.phone:not(.tablet) #school { max-height: calc(100vh - 175px); max-height: calc(100dvh - 175px); }
  body.phone:not(.tablet) #school .body > #sCkWrap { min-height: 2.6em; }
  body.phone:not(.tablet) #school .btns { margin: .35em 0; }
  body.phone:not(.tablet) #sTitle { font-size: 1.05em; }
  .hl { outline: 3px solid #ffd23f !important; outline-offset: 2px; box-shadow: 0 0 20px #ffd23f !important; animation: hlPulse 1s infinite alternate; }
  @keyframes hlPulse { from { outline-color: #ffd23f; } to { outline-color: rgba(255,210,63,.25); } }
  #freezeTag { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
    background: rgba(255,210,63,.92); color: #1a1440; font-weight: bold; padding: 5px 16px; border-radius: 20px; font-size: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,.4); }
  #holdMenu { width: 20px; height: 20px; vertical-align: middle; }
  body.phone #freezeTag { display: none !important; }
  body.proOn #freezeTag { top: 72px; z-index: 8; }   /* לא מתחבא מתחת לסרגל המקצועי */
  @media (min-width: 761px) and (max-width: 1500px) { body.proOn #freezeTag { top: 104px; } }
  body.coachOn:not(.phone) #freezeTag, body:not(.phone):has(#school:not(.hidden)) #freezeTag { left: calc(50vw - 77px); }
  /* מגרעת (Notch) באייפון */
  body.phone #fcu { padding-left: calc(6px + var(--sa-l, env(safe-area-inset-left))); padding-right: calc(6px + var(--sa-r, env(safe-area-inset-right))); padding-top: var(--sa-t, env(safe-area-inset-top)); height: calc(40px + var(--sa-t, env(safe-area-inset-top))); }
  body.phone #joy { left: calc(12px + var(--sa-l, env(safe-area-inset-left))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); }
  body.phone #thr { right: calc(10px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); }
  body.phone #tbtns { right: calc(70px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); }
  /* אייפד / טאבלט – הכל גדול יותר */
  body.phone.tablet #joy { width: 170px; height: 170px; left: calc(20px + var(--sa-l, env(safe-area-inset-left))); bottom: 20px; }
  body.phone.tablet #knob { width: 72px; height: 72px; margin: -36px; }
  body.phone.tablet #thr { width: 70px; height: 230px; right: calc(18px + var(--sa-r, env(safe-area-inset-right))); bottom: 20px; }
  body.phone.tablet #tbtns { grid-template-columns: repeat(3, 84px); gap: 6px; right: calc(100px + var(--sa-r, env(safe-area-inset-right))); bottom: 20px; }
  body.phone.tablet #tbtns button { height: 50px; font-size: 15px; }
  body.phone.tablet #instr { left: 210px; right: 380px; bottom: 10px; }
  body.phone.tablet #fcu { height: calc(50px + var(--sa-t, env(safe-area-inset-top))); }
  body.phone.tablet .fval { font-size: 18px; min-width: 64px; } body.phone.tablet .fbtn { width: 30px; height: 34px; }
  body.phone.tablet .pb { font-size: 13px; padding: 7px 10px 10px; min-width: 50px; }
  /* אייפד לאורך: המכשירים בשורה מעל הכפתורים */
  @media (orientation: portrait) {
    body.phone.tablet #instr { left: 10px; right: 10px; bottom: 270px; }
  }
  #msg { position: fixed; top: 22%; left: 50%; transform: translateX(-50%); font-size: 26px; font-weight: bold;
    text-shadow: 0 2px 10px #000; opacity: 0; transition: opacity .4s; white-space: nowrap; pointer-events: none; text-align: center; }
  #camName { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6);
    padding: 4px 12px; border-radius: 8px; opacity: 0; transition: opacity .4s; pointer-events: none; }

  /* ===== מסכים ===== */
  .screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: radial-gradient(ellipse at center, rgba(5,15,40,.55), rgba(0,0,0,.88)); padding: 24px 16px; overflow-y: auto; z-index: 20; }
  .card { background: rgba(10,18,36,.88); border: 1px solid rgba(120,200,255,.35); border-radius: 16px; padding: 18px 22px;
    max-width: 760px; width: 100%; margin-bottom: 14px; }
  h1.title { font-size: 40px; text-align: center; background: linear-gradient(90deg,#9fd8ff,#ffffff,#ffd23f);
    -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 2px; }
  .sub { text-align: center; color: #9fd8ff; margin-bottom: 14px; }
  .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
  .col { flex: 1; min-width: 220px; }
  .card label.l { display: block; font-size: 13px; color: #9fd8ff; margin-bottom: 4px; }
  select, input[type=text] { width: 100%; font-size: 16px; padding: 7px 8px; border-radius: 8px; border: 1px solid #456;
    background: #0d1626; color: #fff; }
  .seg { display: flex; gap: 6px; flex-wrap: wrap; }
  .seg button { flex: 1; background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.25);
    border-radius: 10px; padding: 8px; font-size: 15px; cursor: pointer; min-width: 110px; }
  .seg button.sel { border-color: #ffd23f; background: rgba(255,210,63,.18); }
  #plan { font-family: Consolas, monospace; direction: ltr; background: #07101e; border-radius: 10px; padding: 10px 12px;
    font-size: 14px; line-height: 1.7; text-align: left; }
  #plan b { color: #7fffb0; }
  .bigBtn { display: block; margin: 8px auto 0; font-size: 22px; padding: 14px 40px; border: none; border-radius: 40px;
    background: linear-gradient(#ffd23f,#ff9f1c); color: #1a1440; font-weight: bold; cursor: pointer; box-shadow: 0 6px 22px rgba(255,170,0,.4); }
  .bigBtn:disabled { opacity: .45; cursor: wait; }
  .btn2 { font-size: 16px; padding: 10px 22px; border-radius: 30px; border: 2px solid #9fd8ff; background: transparent; color: #fff; cursor: pointer; margin: 4px; }
  .note { font-size: 13px; opacity: .8; line-height: 1.5; }
  details summary { cursor: pointer; color: #9fd8ff; }
  #loadStatus { text-align: center; margin-top: 8px; color: #ffd23f; }
  .center { text-align: center; }
  .stat { font-size: 18px; line-height: 1.8; text-align: center; }
  .stars { font-size: 40px; text-align: center; }

  /* ===== מדריך ===== */
  #guide { background: rgba(2,6,16,.97); z-index: 30; }
  #guide .card { max-width: 900px; background: #0a1224; }
  #gNav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  #gNav button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px;
    padding: 5px 10px; cursor: pointer; font-size: 13px; }
  #gNav button.sel { background: rgba(255,210,63,.2); border-color: #ffd23f; }
  #gBody { font-size: 16px; line-height: 1.75; }
  #gBody h2 { color: #ffd23f; margin: 6px 0 10px; }
  #gBody h3 { color: #9fd8ff; margin: 14px 0 6px; }
  #gBody p { margin-bottom: 10px; }
  #gBody ul, #gBody ol { margin: 0 22px 12px 0; }
  #gBody li { margin-bottom: 4px; }
  #gBody table { border-collapse: collapse; width: 100%; margin: 8px 0 14px; font-size: 14px; }
  #gBody td, #gBody th { border: 1px solid #345; padding: 5px 8px; text-align: right; }
  #gBody th { background: #12233f; }
  #gBody code, #gBody kbd { direction: ltr; unicode-bidi: embed; background: #1c2a44; padding: 1px 6px; border-radius: 4px;
    font-family: Consolas, monospace; color: #ffd23f; }
  .tip { background: rgba(60,227,106,.1); border-right: 4px solid #3ce36a; padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
  .warnBox { background: rgba(255,59,59,.1); border-right: 4px solid #ff3b3b; padding: 8px 12px; border-radius: 6px; margin: 10px 0; }

  /* ===== מגע ===== */
  #touchUI { position: fixed; inset: 0; pointer-events: none; bottom: var(--ph); }
  #joy { position: absolute; left: 18px; bottom: 18px; width: 130px; height: 130px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); pointer-events: auto; touch-action: none; }
  #knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(47,211,255,.55); }
  #thr { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 160px; border-radius: 12px;
    background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); pointer-events: auto; overflow: hidden; touch-action: none; }
  #thrFill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ff5a3c,#ffcc33,#5dff9a); opacity: .7; }
  #tbtns { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: center; max-width: 60%; }
  #tbtns button { min-width: 46px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(8,16,32,.7); color: #fff; font-size: 13px; }
  #thrLbl { position: absolute; top: 4px; width: 100%; text-align: center; font-size: 11px; font-weight: bold; }
  /* ===== Flight Deck Pro: כפתורי מגע, ג'ויסטיק ומצערת ===== */
  #tbtns button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.05; padding: 0 2px;
    background: linear-gradient(180deg, rgba(30,44,72,.8), rgba(8,14,28,.86)); border: 1px solid rgba(160,200,255,.3);
    box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .08s, background .15s; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
  #tbtns button b { font-size: 15px; font-weight: 400; line-height: 1.1; }
  #tbtns button span { font-size: 9.5px; opacity: .92; white-space: nowrap; }
  #tbtns button:active, #tbtns button.on { transform: scale(.94); background: linear-gradient(180deg, rgba(47,211,255,.55), rgba(16,80,140,.8)); border-color: rgba(160,235,255,.8); }
  #joy { background: radial-gradient(circle, rgba(47,211,255,.1) 0 30%, rgba(255,255,255,.05) 31% 60%, rgba(255,255,255,.1) 61%);
    border: 2px solid rgba(160,220,255,.45); box-shadow: 0 0 18px rgba(47,211,255,.18), inset 0 0 22px rgba(0,0,0,.35); }
  #joy::before, #joy::after { content: ''; position: absolute; background: rgba(255,255,255,.18); pointer-events: none; }
  #joy::before { left: 50%; top: 12%; bottom: 12%; width: 1px; } #joy::after { top: 50%; left: 12%; right: 12%; height: 1px; }
  #knob { z-index: 2; background: radial-gradient(circle at 35% 30%, #a8ecff, #2fd3ff 45%, #0b6fa0);
    box-shadow: 0 0 16px rgba(47,211,255,.6), 0 3px 8px rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.7); }
  body.tilt-on #knob { box-shadow: 0 0 22px rgba(124,255,154,.95), 0 3px 8px rgba(0,0,0,.4); border-color: #7cff9a; }
  #thr { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 2px solid rgba(160,220,255,.45); box-shadow: inset 0 0 18px rgba(0,0,0,.4); }
  #thr::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.2) calc(10% - 1px) 10%); }
  #thrFill { box-shadow: 0 -2px 12px rgba(255,204,51,.55); }
  #thrLbl { z-index: 2; text-shadow: 0 1px 3px #000; line-height: 1.1; } #thrLbl small { font-size: 9px; color: #9fe9ff; }
  #rotate { position: fixed; inset: 0; z-index: 50; background: #050a18; display: none; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; font-size: 22px; gap: 14px; padding: 20px; }
  #rotate .ico { font-size: 70px; animation: rot 1.6s infinite ease-in-out; }
  @keyframes rot { 0%,30% { transform: rotate(0); } 60%,100% { transform: rotate(-90deg); } }

  /* ===== מצב טלפון ===== */
  body.phone #panel { top: 0; bottom: auto; height: auto; background: transparent; border: none; pointer-events: none; }
  body.phone #fcu { pointer-events: auto; height: 40px; justify-content: flex-start; gap: 4px; background: rgba(42,46,53,.9); }
  body.phone .fval { font-size: 14px; min-width: 50px; padding: 2px 3px; }
  body.phone .fbtn { width: 22px; height: 26px; }
  body.phone .fgrp label { font-size: 9px; margin: 0 1px; }
  body.phone .pb { padding: 5px 5px 8px; font-size: 10px; min-width: 36px; }
  body.phone .master { width: 44px; height: 28px; font-size: 8px; }
  body.phone #instr { position: fixed; left: 140px; right: 250px; bottom: 6px; padding: 0; gap: 6px; pointer-events: auto; flex: none; }
  body.phone #instr canvas { border-width: 2px; }
  body.phone.scr-nd #dEcam, body.phone.scr-ecam #dNd { display: none; }
  body.phone #info { display: none; }
  /* ⚠ המרחק מהקצה כולל את ה"אי הדינמי" / המגרעת של האייפון (safe-area) – אחרת המצערת נכנסת מתחת לאי */
  body.phone #joy { left: calc(12px + var(--sa-l, env(safe-area-inset-left))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); width: 120px; height: 120px; }
  body.phone #thr { right: calc(10px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); width: 52px; height: 160px; }
  body.phone #tbtns { left: auto; transform: none; right: calc(70px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); display: grid;
    grid-template-columns: repeat(3, 56px); gap: 4px; max-width: none; }
  body.phone #tbtns button { height: 36px; min-width: 0; font-size: 11px; padding: 0 2px; }
  body.phone #msg { font-size: 15px; top: 32%; white-space: normal; width: 60%; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
  body.phone #keysNote { display: none; }
  body.phone #mWarn, body.phone #mCaut, body.phone #bVs, body.phone #bAlt, body.phone #bLoc, body.phone #bAbrk, body.phone #bHdg { display: none; }
  body.phone #fVs { display: none; } body.phone .fgrp:has(#fVs) { display: none; }
  body.phone h1.title { font-size: 30px; }
  body.phone .screen { padding: 12px 10px; }
  body.phone .card { padding: 12px 14px; }

  /* ===== קוקפיט 2.5D (מחשב) ===== */
  #panel { background: linear-gradient(#31343a, #1c1e22 40%, #15171a); border-top: 3px solid #0b0c0e; box-shadow: 0 -8px 30px rgba(0,0,0,.7); }
  #glare { height: auto; min-height: 66px; width: 100%; display: flex; align-items: stretch; background: linear-gradient(#4a4d53, #2b2e33); border-bottom: 2px solid #111; flex: none;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,.45); }
  .gl-left, .gl-right { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: rgba(0,0,0,.18); }
  .gl-right { flex-direction: column; justify-content: center; gap: 3px; padding-top: 3px !important; padding-bottom: 3px !important; flex-shrink: 0; }   /* שתי שורות כפתורי ה-ND תמיד נראות (לא מתחבאות מתחת לגלגלים ולבלם האוטומטי) */
  .gl-lbl { font: bold 9px Arial; color: #aab; letter-spacing: .12em; }
  #fcu { flex: 1; height: auto; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(#3b3e44, #26282d); border: none; padding: 0 8px; overflow: visible; }
  .fgrp { display: flex; flex-direction: column; align-items: center; gap: 1px; background: transparent; padding: 0; min-width: 118px; position: relative; }
  .fgrp label { font: bold 9px Arial; color: #dde; letter-spacing: .06em; margin: 0; }
  .fgrp label .sm { color: #889; font-weight: normal; }
  .fwin { display: flex; align-items: center; gap: 4px; background: #0a0c0e; border: 1px solid #000; border-radius: 3px; padding: 1px 6px; box-shadow: inset 0 0 6px #000; }
  .fval { font: 20px 'DSEG7', Consolas, monospace; color: #ffb43a; background: transparent; padding: 0; min-width: 58px; text-align: center; text-shadow: 0 0 6px rgba(255,180,58,.7); cursor: ns-resize; letter-spacing: .04em; }
  .fwin .dot { width: 7px; height: 7px; border-radius: 50%; background: #332; display: inline-block; }
  .fwin .dot.on { background: #ffb43a; box-shadow: 0 0 6px #ffb43a; }
  .kn { display: flex; align-items: center; gap: 3px; }
  .fbtn { background: linear-gradient(#777c86, #4a4f58); color: #fff; border: 1px solid #222; border-radius: 4px; width: 24px; height: 22px; cursor: pointer; font-size: 10px; }
  .kpush { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #1a1b1e; background: radial-gradient(circle at 35% 30%, #9a9ea8, #5a5e66 60%, #3a3d43); color: #222; cursor: pointer; font-size: 10px; box-shadow: 0 2px 4px rgba(0,0,0,.6); }
  .kpush:active { transform: scale(.94); }
  .fcu-mid { display: flex; align-items: center; gap: 5px; }
  .fcu-stack { display: flex; flex-direction: column; gap: 4px; }
  .pb { position: relative; background: linear-gradient(#5c6069, #3d4048); color: #e8e8e8; border: 1px solid #1a1a1a; border-radius: 3px; padding: 5px 6px 9px;
    font: bold 10px Arial; cursor: pointer; min-width: 48px; box-shadow: 0 2px 3px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.15); }
  .pb::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 1px; background: #1e2a1e; }
  .pb.on::after { background: #3ce36a; box-shadow: 0 0 7px #3ce36a; }
  .pb.arm::after { background: #2fd3ff; box-shadow: 0 0 7px #2fd3ff; }
  .pb:active { transform: translateY(1px); }
  .master { width: 56px; height: 34px; border-radius: 3px; font: bold 9px Arial; border: 1px solid #000; background: #2b2d31; color: #444; cursor: pointer; line-height: 1.1; box-shadow: inset 0 0 8px #000; }
  .master.warn { background: #d61a1a; color: #fff; animation: flash .5s infinite alternate; box-shadow: 0 0 14px #ff3030; }
  .master.caut { background: #e59a00; color: #000; box-shadow: 0 0 12px #ffb000; }
  .efis-row { display: flex; gap: 3px; }
  .eb { background: linear-gradient(#5c6069, #3d4048); color: #ddd; border: 1px solid #1a1a1a; border-radius: 3px; font: bold 9px Arial; padding: 3px 5px; cursor: pointer; min-width: 30px; }
  .eb.sel { background: #2a3b2a; color: #7fffb0; box-shadow: inset 0 0 6px #000; }
  .eb.tog.on { color: #7fffb0; }

  #main { flex: 1; display: flex; align-items: stretch; width: 100%; min-height: 0; padding: 6px 8px 2px; gap: 8px; }
  #instr { flex: 1; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 0; min-width: 0; }
  .disp { background: #1a1b1d; border-radius: 7px; padding: 6px; box-shadow: 0 3px 8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); border: 1px solid #0a0a0a; flex: none; }
  #instr canvas, .isis canvas { display: block; background: #000; border-radius: 3px; border: none; box-shadow: inset 0 0 12px #000; }
  #rightPanel { overflow: hidden; width: 260px; flex: none; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
  .rp-row { display: flex; gap: 8px; align-items: stretch; }
  .rp-lbl { font: bold 9px Arial; color: #bcc; letter-spacing: .1em; text-align: center; margin-bottom: 3px; }
  #gearPanel { flex: 1; background: linear-gradient(#3a3d43, #26282d); border: 1px solid #111; border-radius: 6px; padding: 5px; display: flex; flex-direction: column; align-items: center; }
  .gearLights { display: flex; gap: 4px; margin-bottom: 4px; }
  .gearLights i { width: 18px; height: 11px; border-radius: 2px; background: #1c2a1c; border: 1px solid #000; }
  .gearLights i.on { background: #30ff60; box-shadow: 0 0 6px #30ff60; }
  .gearLights i.trans { background: #ff4030; box-shadow: 0 0 6px #ff4030; }
  #gearLever { width: 30px; height: 60px; background: #111; border-radius: 15px; position: relative; cursor: pointer; border: 1px solid #000; }
  #gearLever .gknob { position: absolute; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ccc 55%, #888); top: 3px; transition: top .35s; box-shadow: 0 2px 4px #000; }
  #gearLever.down .gknob { top: 33px; }
  #abrkPanel { flex: 1; background: linear-gradient(#3a3d43, #26282d); border: 1px solid #111; border-radius: 6px; padding: 5px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
  .kb { background: linear-gradient(#5c6069, #3d4048); color: #e8e8e8; border: 1px solid #1a1a1a; border-radius: 3px; padding: 4px 6px 7px; font: bold 10px Arial; cursor: pointer; position: relative; min-width: 46px;
    box-shadow: 0 2px 3px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.15); }
  .kb::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 2px; height: 3px; background: #1e2a1e; border-radius: 1px; }
  .kb.on::after { background: #3ce36a; box-shadow: 0 0 6px #3ce36a; }
  .kb.on.blue::after { background: #2fd3ff; box-shadow: 0 0 6px #2fd3ff; }
  .kb.big { min-width: 54px; padding: 8px 6px 11px; font-size: 10px; line-height: 1.15; }
  .kb:active { transform: translateY(1px); }
  .isis { width: 92px; height: 92px; padding: 4px; }
  #clockPanel { flex: 1; background: #26282d; border: 1px solid #111; border-radius: 6px; padding: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  #clk { font: 18px Consolas, monospace; color: #ffb43a; text-shadow: 0 0 6px rgba(255,180,58,.6); }
  #clkUtc { font: 11px Consolas, monospace; color: #9ab; }

  /* פדסטל – בפרספקטיבה */
  #pedestal { height: 112px; width: 100%; flex: none; perspective: 900px; perspective-origin: 50% 0; overflow: hidden; background: #111214; }
  #ped3d { height: 132px; transform: rotateX(18deg); transform-origin: 50% 0; background: linear-gradient(#3b3e44, #23252a); border-top: 2px solid #55585f; display: flex; align-items: flex-start; justify-content: center; gap: 14px; padding: 6px 10px; }
  #ecp { display: grid; grid-template-columns: repeat(5, 46px); gap: 4px; align-content: start; }
  .kb.ecp { min-width: 0; padding: 4px 2px 7px; font-size: 9px; }
  #thrPanel { display: flex; flex-direction: column; align-items: center; }
  #thrQuad { position: relative; width: 150px; height: 96px; background: linear-gradient(#1b1c1f, #2a2c30); border-radius: 6px; border: 1px solid #000; box-shadow: inset 0 0 10px #000; }
  #thrQuad .detents { position: absolute; left: 4px; top: 10px; bottom: 20px; width: 34px; font: bold 8px Arial; color: #ccc; }
  #thrQuad .detents span { position: absolute; left: 0; transform: translateY(50%); line-height: 1; }
  #thrQuad .detents .rev { bottom: -16px; color: #ff9a6a; }
  #levers { position: absolute; left: 42px; right: 8px; top: 10px; bottom: 20px; display: flex; justify-content: space-around; }
  .lever { position: relative; width: 24px; height: 100%; cursor: grab; touch-action: none; }
  .lever .rail { position: absolute; left: 10px; width: 4px; top: 0; bottom: -14px; background: #000; border-radius: 2px; }
  .lever .handle { position: absolute; left: -2px; width: 28px; height: 20px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#efefef, #b6b6b6 60%, #8d8d8d); box-shadow: 0 3px 5px #000; transform: translateY(-50%); }
  .lever .handle::after { content: ''; position: absolute; left: 10px; top: 14px; width: 8px; height: 22px; background: linear-gradient(#aaa, #555); border-radius: 2px; }
  .lever.rev .handle { background: linear-gradient(#ffb080, #e07040); }
  #engPanel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  #engMode { display: flex; align-items: center; gap: 4px; font: bold 8px Arial; color: #ccc; }
  .rotary { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #999, #555 60%, #333); border: 2px solid #111; position: relative; cursor: pointer; box-shadow: 0 2px 4px #000; }
  .rotary i { position: absolute; left: 50%; top: 3px; width: 3px; height: 13px; margin-left: -1.5px; background: #fff; border-radius: 2px; transform-origin: 50% 100%; transition: transform .2s; }
  .rotary.left i { transform: translateY(0) rotate(-55deg); } .rotary.right i { transform: rotate(55deg); }
  #engMasters { display: flex; gap: 6px; }
  .emaster { width: 34px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: bold 8px Arial; color: #ccc; cursor: pointer; }
  .emaster .lamp { width: 30px; height: 10px; background: #1d1e22; border: 1px solid #000; font-size: 7px; color: #444; text-align: center; line-height: 10px; }
  .emaster .lamp.fault { background: #e59a00; color: #000; } .emaster .lamp.avail { background: #3ce36a; color: #000; }
  .emaster .sw { width: 22px; height: 30px; background: linear-gradient(#777, #333); border-radius: 3px; border: 1px solid #000; position: relative; }
  .emaster .sw::after { content: ''; position: absolute; left: 4px; right: 4px; top: 3px; height: 10px; background: #e33; border-radius: 2px; transition: top .2s; }
  .emaster.on .sw::after { top: 17px; background: #ddd; }
  #flapPanel, #spdBrkPanel { display: flex; flex-direction: column; align-items: center; }
  #flapGate, #sbGate { position: relative; width: 84px; height: 90px; background: linear-gradient(#1b1c1f, #2a2c30); border-radius: 6px; border: 1px solid #000; box-shadow: inset 0 0 10px #000; }
  #sbGate { width: 70px; }
  .fmarks { position: absolute; left: 5px; top: 8px; bottom: 8px; display: flex; flex-direction: column; justify-content: space-between; font: bold 8px Arial; color: #ccc; }
  #flapLever, #sbLever { position: absolute; left: 44px; top: 6px; bottom: 6px; width: 30px; cursor: grab; touch-action: none; }
  #sbLever { left: 32px; }
  #flapLever::before, #sbLever::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 6px; background: #000; border-radius: 3px; }
  .fhandle { position: absolute; left: 2px; width: 26px; height: 16px; border-radius: 3px; background: linear-gradient(#f3f3f3, #bdbdbd 60%, #8d8d8d); box-shadow: 0 2px 4px #000; transform: translateY(-50%); transition: top .25s; }
  #sbLever .fhandle { background: linear-gradient(#e6e6e6, #a9a9a9 60%, #777); }
  #miscPanel { display: grid; grid-template-columns: repeat(2, auto); gap: 5px; align-content: start; }
  #parkBrk.on { background: linear-gradient(#a33, #611); color: #fff; }
  #parkBrk.on::after { background: #ff3030; box-shadow: 0 0 6px #ff3030; }

  /* ===== פאנל עליון ===== */
  #overhead { position: fixed; top: 0; left: 0; right: 0; z-index: 12; perspective: 1000px; perspective-origin: 50% 100%; pointer-events: none; }
  #ovh3d { pointer-events: auto; margin: 0 auto; width: min(1180px, 96vw); background: linear-gradient(#2d3036, #3d4047); border: 2px solid #111; border-top: none; border-radius: 0 0 14px 14px;
    transform: rotateX(-14deg); transform-origin: 50% 0; padding: 10px 14px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.8); direction: ltr; }
  .ovh-title { display: flex; justify-content: space-between; align-items: center; font: bold 12px Arial; color: #ccd; letter-spacing: .15em; margin-bottom: 8px; }
  .ovh-title button { background: #555; color: #fff; border: 1px solid #222; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
  .ovh-grid { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .ovh-sec { background: #26282d; border: 1px solid #111; border-radius: 6px; padding: 6px 8px 8px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; position: relative; min-width: 160px; }
  .ovh-h { width: 100%; text-align: center; font: bold 10px Arial; color: #ddd; letter-spacing: .15em; border-bottom: 1px solid #444; padding-bottom: 3px; margin-bottom: 3px; }
  .sw { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 56px; cursor: pointer; }
  .sw .lamp { width: 48px; height: 13px; background: #1a1b1e; border: 1px solid #000; font: bold 8px Arial; color: #3a3b40; text-align: center; line-height: 13px; }
  .sw .lamp.on { background: #3ce36a; color: #000; } .sw .lamp.amber { background: #e59a00; color: #000; } .sw .lamp.blue { background: #2fd3ff; color: #000; } .sw .lamp.white { background: #eee; color: #000; }
  .sw .tog { width: 28px; height: 30px; background: linear-gradient(#6a6e78, #3b3e46); border: 1px solid #000; border-radius: 3px; position: relative; }
  .sw .tog::after { content: ''; position: absolute; left: 5px; right: 5px; top: 4px; height: 12px; background: #ddd; border-radius: 2px; transition: top .15s; }
  .sw .tog.on::after { top: 14px; background: #fff; box-shadow: 0 0 5px #fff; }
  .sw label { font: bold 8px Arial; color: #ccd; text-align: center; letter-spacing: .04em; line-height: 1.1; pointer-events: none; }
  .apuGauge { width: 100%; text-align: center; font: 11px Consolas, monospace; color: #3ce36a; background: #000; border-radius: 3px; padding: 2px; }
  .ovh-help { margin-top: 8px; font: 11px 'Segoe UI', Arial; color: #9ab; direction: rtl; text-align: right; }
  #atc { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 7; background: rgba(0,20,40,.85); border: 1px solid #2fd3ff; color: #bfefff; padding: 6px 16px; border-radius: 10px;
    font: 13px Consolas, monospace; direction: ltr; transition: opacity .5s; pointer-events: none; max-width: 56vw; white-space: normal; overflow: hidden; line-height: 1.35; max-height: calc(3 * 1.35em + 14px); }
  body.coachOn:not(.phone) #atc, body:not(.phone):has(#school:not(.hidden)) #atc { left: calc(50vw - 77px); max-width: calc(100vw - 622px); width: max-content; }   /* הקשר לא נכנס מתחת למדריך / לוח המידע */
  #taxiHint { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: min(560px, calc(100vw - 420px));
    background: rgba(10,22,18,.92); border: 2px solid #22ff88; color: #eafff3; padding: 8px 14px; border-radius: 16px; font-size: 16px; line-height: 1.35; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
  #taxiHint.hidden { display: none; }
  body.coachOn:not(.phone) #taxiHint, body:not(.phone):has(#school:not(.hidden)) #taxiHint { left: calc(50vw - 77px); max-width: calc(100vw - 622px); min-width: 0; }   /* לא נכנס מתחת למדריך / בית הספר שבימין */
  #taxiHint .th-ar { font-size: 38px; line-height: 1; min-width: 44px; text-align: center; color: #22ff88; }
  #taxiHint .th-tx { flex: 1; }
  #taxiHint .th-m { font-weight: bold; font-size: 17px; }
  #taxiHint .th-s { color: #a8f5cc; font-size: 14.5px; margin-top: 2px; }
  #taxiHint .th-w { color: #ffd23f; font-size: 14.5px; font-weight: bold; margin-top: 3px; }
  #taxiHint .th-kt { text-align: center; border-right: 1px solid rgba(255,255,255,.2); padding-right: 10px; }
  #taxiHint .th-kt b { display: block; font-size: 22px; } #taxiHint .th-kt small { font-size: 11px; color: #9fd8c0; }
  #taxiHint.big { border-color: #ffd23f; background: rgba(40,32,0,.94); } #taxiHint.big .th-ar { color: #ffd23f; font-size: 46px; } #taxiHint.big .th-m { font-size: 19px; color: #fff3c4; }
  /* מצב Lite / טלפון: בלי פדסטל ופאנל עליון, המכשירים כמו קודם */
  body.phone #pedestal, body.phone #rightPanel, body.phone #efis, body.phone .gl-left .gl-lbl, body.phone #sdWrap, body.phone #overhead { display: none !important; }
  /* טלפון פשוט: הכפתור 💡 אורות פותח את הפאנל העליון כחלון מלא שאפשר לגלול */
  body.phone:not(.c3d).ovhOpen #overhead { display: block !important; position: fixed; inset: 0; z-index: 45; overflow: auto; background: rgba(0,0,0,.55); pointer-events: auto; perspective: none; -webkit-overflow-scrolling: touch; }
  body.phone:not(.c3d) #ovh3d { transform: none; width: 100%; box-sizing: border-box; padding: calc(4px + var(--sa-t, env(safe-area-inset-top))) 6px 8px; border-radius: 0 0 12px 12px; }
  body.phone:not(.c3d) .ovh-title { position: sticky; top: 0; z-index: 2; background: #2d3036; padding: 2px 0; margin-bottom: 2px; }
  body.phone:not(.c3d) .ovh-title button { font-size: 15px; padding: 5px 16px; }
  body.phone:not(.c3d) .ovh-grid { gap: 5px; } body.phone:not(.c3d) .ovh-sec { min-width: 0; padding: 4px 5px 6px; gap: 4px; }
  body.phone:not(.c3d) .sw { width: 50px; gap: 2px; } body.phone:not(.c3d) .sw .tog { width: 30px; height: 26px; } body.phone:not(.c3d) .sw .lamp { width: 44px; }
  body.phone:not(.c3d) .sw label { font-size: 8.5px; line-height: 1.05; } body.phone:not(.c3d) .ovh-h { font-size: 9px; margin-bottom: 1px; padding-bottom: 1px; }
  body.phone:not(.c3d) .apuGauge { font-size: 11px; padding: 1px 4px; }
  body.phone:not(.c3d) .ovh-help { display: none; }
  body.phone #glare { height: auto; background: transparent; border: none; box-shadow: none; }
  body.phone .gl-left { padding: 0 2px; background: transparent; }
  body.phone #main { padding: 0; position: static; display: contents; }
  body.phone .fgrp { min-width: 0; } body.phone .fgrp label { font-size: 8px; } body.phone .fwin { padding: 0 3px; } body.phone .fval { font-size: 14px; min-width: 44px; }
  body.phone .kpush { display: none; } body.phone .fcu-stack { flex-direction: row; } body.phone .kn .fbtn { width: 22px; height: 24px; }
  body.phone .disp { padding: 2px; border-radius: 4px; }
  body.phone #atc { top: 46px; font-size: 11px; max-width: 60vw; } body.phone #taxiHint { top: 72px; font-size: 12px; min-width: 0; max-width: calc(100vw - 330px); padding: 5px 9px; gap: 7px; } body.phone #taxiHint .th-ar { font-size: 26px; min-width: 28px; } body.phone #taxiHint .th-m { font-size: 13px; } body.phone #taxiHint .th-s, body.phone #taxiHint .th-w { font-size: 11.5px; }
  body.phone .fgrp { flex-direction: row; gap: 3px; background: #2b2f36; border-radius: 6px; padding: 2px 5px; align-items: center; }
  body.phone .fgrp label { font-size: 9px; color: #ccc; margin: 0 2px; } body.phone .fgrp label .sm { display: none; }
  body.phone .fwin { order: 2; } body.phone .kn { order: 3; display: contents; } body.phone .kn .fbtn:first-child { order: 1; } body.phone .kn .fbtn:last-child { order: 4; }
  body.phone .fwin .dot { display: none; } body.phone .fcu-mid { gap: 3px; } body.phone .fcu-stack { gap: 3px; }
  body.phone #glare .gl-left { display: none; }
  /* צ'קליסט קרקע (התחלה בשער) */
  #gndCk { position: fixed; top: 8px; right: 8px; z-index: 6; width: 330px; background: #11161f; border: 4px solid #262c36; border-radius: 14px; color: #e6edf7; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.55); overflow: hidden; }
  #gndCk .hd { background: #1b212c; padding: 6px 10px; font-weight: bold; color: #ffd23f; display: flex; justify-content: space-between; align-items: center; }
  #gndCk .hd span { font-size: 11px; color: #9fd8ff; font-weight: normal; }
  #gndCk ul { list-style: none; padding: 6px 10px 8px; margin: 0; max-height: 45vh; overflow-y: auto; }
  #gndCk li { padding: 3px 6px; border-radius: 6px; color: #8fa3bd; display: flex; gap: 6px; align-items: baseline; }
  #gndCk li.done { color: #3ce36a; } #gndCk li.done::before { content: '✔'; }
  #gndCk li.cur { background: rgba(255,210,63,.15); color: #ffd23f; font-weight: bold; } #gndCk li.cur::before { content: '▶'; animation: ckBlink 1s infinite; }
  #gndCk li.todo::before { content: '☐'; color: #5d6b7e; }
  #gndCk li small { color: #9fb2c8; font-weight: normal; font-size: 12px; }
  #gndCk .ft { padding: 6px 10px 8px; border-top: 1px solid #2a3442; font-size: 12px; color: #cfe3ff; }
  #gndCk .ft button { background: linear-gradient(#ffd23f,#ff9f1c); color: #1a1440; font-weight: bold; border: none; border-radius: 16px; padding: 4px 12px; cursor: pointer; margin-left: 6px; font-family: inherit; }
  body.phone #gndCk { top: calc(46px + var(--sa-t, env(safe-area-inset-top))); left: calc(8px + var(--sa-l, env(safe-area-inset-left))); right: auto; width: 250px; font-size: 12px; }
  body.phone #gndCk ul { max-height: 30vh; } body.phone #gndCk li.done { display: none; }

  /* ===== התפריט: מסוף טיסות מודרני מעל גלובוס תלת־ממדי =====
     צבעים: לילה #07112a · זכוכית · מגנטה של מסלול טיסה #ff4fd8 · ענבר של כסף #ffb547 · ירוק "יציאה" #34e28a */
  :root { --mg-night: #07112a; --mg-glass: rgba(9, 20, 46, .80); --mg-glass2: rgba(16, 32, 68, .72); --mg-line: rgba(150, 185, 255, .18);
    --mg-ink: #eef3ff; --mg-mut: #8ea6d6; --mg-route: #ff4fd8; --mg-amber: #ffb547; --mg-go: #34e28a;
    --mg-ui: 'IBM Plex Sans Hebrew', 'Segoe UI', Arial, sans-serif; --mg-code: 'Saira Condensed', 'Arial Narrow', 'Segoe UI', Arial, sans-serif; }
  #menu.mg { background: none; padding: 0; overflow: hidden; display: block; pointer-events: none; font-family: var(--mg-ui); color: var(--mg-ink); }
  #menu.mg::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 38% 52%, transparent 55%, rgba(4, 9, 24, .55) 100%), linear-gradient(to bottom, rgba(4,9,24,.55), transparent 16%, transparent 78%, rgba(4,9,24,.5)); }
  #menu.mg > * { pointer-events: auto; }
  #menu.mg .mg-tip, #menu.mg .mg-hint { pointer-events: none; }
  #menu.mg .note { font-size: 13.5px; color: var(--mg-mut); opacity: 1; line-height: 1.55; margin: 2px 0 10px; }
  #menu.mg h2 { font-size: 19px; font-weight: 700; margin: 2px 0 4px; letter-spacing: 0; }
  #menu.mg label.l { display: block; font-size: 13px; color: var(--mg-mut); margin: 12px 0 5px; }
  #menu.mg select, #menu.mg input[type=text] { background: rgba(4, 10, 26, .75); border: 1px solid var(--mg-line); color: var(--mg-ink); border-radius: 10px; font-family: inherit; }
  #menu.mg select:focus-visible, #menu.mg input:focus-visible, #menu.mg button:focus-visible { outline: 2px solid var(--mg-route); outline-offset: 2px; }

  /* ----- שורת העליונה ----- */
  .mg-top { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
  .mg-brand { font-family: var(--mg-code); font-weight: 700; font-size: 26px; letter-spacing: .02em; direction: ltr; white-space: nowrap; color: var(--mg-ink); }
  .mg-brand b { font-weight: 700; color: var(--mg-route); margin-left: 6px; font-size: 15px; vertical-align: super; letter-spacing: .12em; }
  .mg-pilot { display: flex; align-items: center; gap: 10px; background: var(--mg-glass); border: 1px solid var(--mg-line); border-radius: 16px; padding: 6px 8px 6px 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  #menu .pc-badge { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mg-code); font-weight: 700; font-size: 20px; color: #fff; flex: none; direction: ltr; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
  #menu .pc-main { min-width: 220px; }
  #menu .pc-name { display: flex; align-items: center; gap: 8px; }
  #menu .pc-name input, #menu .pc-name textarea { width: 130px; max-width: 46vw; font-size: 16px; font-weight: 700; padding: 3px 8px; resize: none; overflow: hidden; line-height: 1.2; font-family: inherit; white-space: nowrap; text-overflow: clip; box-sizing: border-box; background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
  #menu .pc-name input[data-l="m"] { font-size: 14px; } #menu .pc-name input[data-l="l"] { font-size: 12px; }
  #menu .rank { background: none; border: none; color: var(--mg-mut); font-size: 13px; font-weight: 500; padding: 0; white-space: nowrap; }
  #menu .xpbar { position: relative; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; margin-top: 6px; overflow: visible; }
  #menu #xpFill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7f5cff, var(--mg-route)); width: 0; transition: width .6s; }
  #menu .xpbar span { position: absolute; top: 7px; right: 0; left: auto; inset: auto; font-size: 11px; line-height: 1.2; color: var(--mg-mut); white-space: nowrap; }
  .mg-money { background: var(--mg-glass); border: 1px solid rgba(255,181,71,.35); border-radius: 14px; padding: 4px 14px; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .mg-money small { display: block; font-size: 11px; color: var(--mg-mut); }
  .mg-money b { font-family: var(--mg-code); font-size: 24px; font-weight: 700; color: var(--mg-amber); direction: ltr; display: block; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .mg-stats { display: flex; gap: 16px; margin-inline-start: auto; }
  .mg-stats div { text-align: center; }
  .mg-stats small { display: block; font-size: 11px; color: var(--mg-mut); }
  .mg-stats b { font-family: var(--mg-code); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .mg-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--mg-line); background: var(--mg-glass); color: #fff; font-size: 20px; cursor: pointer; }
  .mg-icon:hover { border-color: var(--mg-route); }

  /* ----- הפאנל בצד (טאבים + רשימות) ----- */
  .mg-side { position: absolute; top: 96px; right: 14px; bottom: 14px; width: 380px; display: flex; flex-direction: column; background: var(--mg-glass); border: 1px solid var(--mg-line);
    border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
  #menu .tabs { display: flex; gap: 2px; padding: 6px; margin: 0; max-width: none; border-bottom: 1px solid var(--mg-line); flex-wrap: nowrap; }
  #menu .tabs button { flex: 1; min-width: 0; background: transparent; border: none; border-radius: 12px; color: var(--mg-mut); padding: 7px 2px 6px; font-size: 12.5px; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  #menu .tabs button i { font-style: normal; font-size: 19px; line-height: 1.1; }
  #menu .tabs button:hover { background: rgba(255,255,255,.05); color: var(--mg-ink); }
  #menu .tabs button.sel { background: rgba(255,79,216,.14); color: #fff; font-weight: 700; border: none; }
  .mg-scroll { flex: 1; overflow-y: auto; padding: 12px 14px 16px; overscroll-behavior: contain; }
  .mg-scroll::-webkit-scrollbar { width: 6px; } .mg-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
  #menu .tabhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  #menu .btn3 { font-size: 12.5px; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--mg-line); background: transparent; color: var(--mg-mut); cursor: pointer; font-family: inherit; white-space: nowrap; }
  #menu .btn3:hover { color: #fff; border-color: var(--mg-route); }

  /* טיסות: כמו לוח יציאות */
  #menu #jobs { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  #menu .job { display: grid; grid-template-columns: 74px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: rgba(255,255,255,.035);
    border: 1px solid transparent; border-radius: 14px; padding: 9px 11px; cursor: pointer; position: relative; transition: background .15s, border-color .15s; transform: none; }
  #menu .job:hover { background: rgba(255,255,255,.07); transform: none; border-color: transparent; }
  #menu .job.sel { background: rgba(255,79,216,.12); border-color: rgba(255,79,216,.65); }
  #menu .job.locked { opacity: .5; }
  #menu .job .j-code { grid-row: 1 / span 2; font-family: var(--mg-code); font-size: 30px; font-weight: 700; line-height: 1; direction: ltr; text-align: center; letter-spacing: .03em; }
  #menu .job .j-city { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #menu .job .j-meta { font-size: 12.5px; color: var(--mg-mut); display: flex; gap: 10px; flex-wrap: wrap; }
  #menu .job .j-pay { grid-row: 1; font-family: var(--mg-code); font-size: 20px; font-weight: 700; color: var(--mg-amber); direction: ltr; text-align: left; }
  #menu .job .j-kind { grid-row: 2; font-size: 12px; color: var(--mg-mut); text-align: left; white-space: nowrap; }
  #menu .job .j-lock { font-size: 12px; color: var(--mg-amber); }

  /* מטוסים */
  #menu #fleet, #menu #airlines { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  #menu .acard { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; column-gap: 10px; background: rgba(255,255,255,.035); border: 1px solid transparent; border-radius: 14px; padding: 9px 11px; cursor: pointer; position: relative; }
  #menu .acard:hover { background: rgba(255,255,255,.07); border-color: transparent; }
  #menu .acard.sel { background: rgba(255,79,216,.12); border-color: rgba(255,79,216,.65); }
  #menu .acard.locked { opacity: .55; }
  #menu .acard .a-ic { font-size: 30px; text-align: center; }
  #menu .acard .nm { font-weight: 700; font-size: 15px; }
  #menu .acard .st { font-size: 12.5px; color: var(--mg-mut); line-height: 1.45; }
  #menu .acard .own { position: static; background: rgba(52,226,138,.14); color: var(--mg-go); border-radius: 10px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
  #menu .acard .buy { margin: 0; background: var(--mg-amber); color: #1b1203; font-weight: 700; border: none; border-radius: 20px; padding: 5px 12px; cursor: pointer; font-size: 13px; font-family: inherit; white-space: nowrap; }
  #menu .acard .buy:disabled { opacity: .4; cursor: not-allowed; }
  #menu .acard .lock { font-size: 12px; color: var(--mg-amber); text-align: left; }

  /* חברות תעופה: זנב צבעוני במקום לוגו */
  #menu .al-region { font-size: 13px; color: var(--mg-mut); margin: 12px 2px 4px; font-weight: 600; }
  #menu .alcard { grid-template-columns: 46px 1fr auto; }
  #menu .albox { position: relative; width: 46px; height: 46px; margin: 0 auto; } #menu .albox .albadge { display: block; border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
  #menu .albox .tailsw { position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; }
  #menu .pc-badge { padding: 0; overflow: hidden; } #menu .pc-badge .albadge { display: block; width: 100%; height: 100%; } .bp-bd { display: inline-block; vertical-align: -4px; margin-inline-end: 6px; line-height: 0; } .bp-bd .albadge { border-radius: 5px; }
  #menu .tailsw { width: 40px; height: 40px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); border-radius: 3px; margin: 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
  #menu .alcard .nm small { display: block; font-weight: 400; color: var(--mg-mut); font-size: 12.5px; }
  #menu .alcard .code { font-family: var(--mg-code); font-weight: 700; font-size: 18px; color: var(--mg-mut); direction: ltr; }
  #menu .alcard .bonus { grid-column: 2 / span 2; font-size: 12.5px; color: #ffd38f; margin-top: 3px; }
  #menu .alcard .fl { grid-column: 2 / span 2; display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
  #menu .alcard .fl span { font-family: var(--mg-code); font-size: 12px; border: 1px solid var(--mg-line); border-radius: 6px; padding: 0 5px; color: var(--mg-mut); direction: ltr; }
  #menu .alcard .fl span.mine { color: #fff; border-color: rgba(255,79,216,.6); }

  /* טיסה חופשית */
  #menu .row2 { display: grid; grid-template-columns: 1fr 128px; gap: 6px; }
  #menu .apq { width: 100%; box-sizing: border-box; font-size: 14px; padding: 6px 8px; margin: 0 0 4px; }
  #menu .apq-n { font-size: 12px; opacity: 0.75; margin: -2px 0 4px; min-height: 1em; }
  #menu .row2 select, #menu #freeAc { font-size: 15px; padding: 7px 8px; width: 100%; }
  #menu .mg-pick { margin-bottom: 4px; }
  #menu #plan { margin-top: 12px; font-family: var(--mg-ui); direction: rtl; text-align: right; background: rgba(4,10,26,.6); border: 1px solid var(--mg-line); border-radius: 12px; font-size: 13.5px; line-height: 1.7; }
  #menu #plan b { color: #fff; }

  /* הגדרות */
  #menu .seg { gap: 5px; }
  #menu .seg button { min-width: 0; font-size: 13.5px; padding: 7px 6px; border: 1px solid var(--mg-line); background: rgba(255,255,255,.04); border-radius: 10px; font-family: inherit; }
  #menu .seg button.sel { border-color: var(--mg-route); background: rgba(255,79,216,.16); color: #fff; font-weight: 600; }
  #menu .mg-checks label, #menu label.mg-checks { display: block; font-size: 14px; margin: 8px 0; line-height: 1.45; cursor: pointer; }
  #menu .mg-checks label.sub2 { margin-inline-start: 24px; font-size: 13px; color: var(--mg-mut); }
  #menu details { margin-top: 12px; border-top: 1px solid var(--mg-line); padding-top: 10px; }
  #menu details summary { color: var(--mg-ink); font-size: 14px; }
  #menu #keysNote { margin-top: 8px; line-height: 1.8; }
  #menu #ionToken { width: 100%; padding: 6px 8px; font-size: 13px; }

  /* ----- כרטיס העלייה למטוס (Boarding pass) ----- */
  .mg-pass { --stub: 150px; position: absolute; left: 18px; bottom: 18px; width: min(640px, calc(100vw - 440px)); filter: drop-shadow(0 18px 36px rgba(0,0,0,.5)); direction: rtl; }
  .bp-card { display: flex; background: #f3f6fc; color: #0d1730; border-radius: 22px; overflow: hidden;
    -webkit-mask: radial-gradient(circle 12px at var(--stub) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at var(--stub) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 12px at var(--stub) 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at var(--stub) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
  .bp-body { flex: 1; padding: 14px 18px 12px; min-width: 0; }
  .bp-stub { width: var(--stub); flex: none; position: relative; background: #0d1730; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 10px; }
  .bp-stub::before { content: ''; position: absolute; top: 14px; bottom: 14px; right: 0; width: 0; border-right: 2px dashed rgba(243,246,252,.35); }
  #menu .bigBtn { margin: 0; width: 100%; border-radius: 16px; padding: 14px 8px; font-size: 22px; font-family: inherit; background: var(--mg-go); color: #062214; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; }
  #menu .bigBtn .go-ic { font-size: 28px; line-height: 1; display: inline-block; transform: scaleX(-1); }
  #menu .bigBtn:hover:not(:disabled) { filter: brightness(1.08); }
  #menu .bigBtn:disabled { opacity: .45; }
  #menu #loadStatus { font-size: 11.5px; color: #c3cee6; text-align: center; line-height: 1.35; margin: 0; }
  #menu #startInfo { font-size: 12.5px; color: #5a6b8e; margin-top: 6px; }
  .bp-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
  .bp-ap .bp-code { font-family: var(--mg-code); font-size: 46px; font-weight: 700; line-height: .95; letter-spacing: .02em; direction: ltr; }
  .bp-ap .bp-city { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .bp-ap .bp-rw { font-size: 12px; color: #5a6b8e; }
  .bp-ap.to { text-align: left; }
  .bp-mid { text-align: center; color: #5a6b8e; font-size: 12.5px; }
  .bp-line { position: relative; height: 18px; margin-bottom: 3px; }
  .bp-line::before { content: ''; position: absolute; top: 50%; right: 4px; left: 4px; border-top: 2px dashed rgba(13,23,48,.3); }
  .bp-line span { position: relative; display: inline-flex; align-items: center; height: 100%; background: #f3f6fc; padding: 0 6px; color: var(--mg-route); line-height: 0; }
  .bp-line span svg { width: 18px; height: 18px; display: block; }   /* ✈ כציור ולא כאימוג'י – באייפון האימוג'י היה ענק ועלה על הטקסט */
  .bp-grid { display: grid; grid-template-columns: repeat(6, auto); gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(13,23,48,.12); justify-content: space-between; }
  .bp-grid small { display: block; font-size: 11px; color: #5a6b8e; }
  .bp-grid b { font-family: var(--mg-code); font-size: 18px; font-weight: 700; direction: ltr; display: inline-block; font-variant-numeric: tabular-nums; }
  .bp-grid b.money { color: #b86e00; }
  #menu.mg .bp-grid select { font-size: 13px; padding: 3px 6px; border-radius: 8px; border: none; background: #0d1730; color: #fff; font-family: inherit; max-width: 172px; direction: ltr; cursor: pointer; }
  .bp-tag { display: inline-block; font-size: 12px; font-weight: 600; background: #0d1730; color: #fff; border-radius: 20px; padding: 2px 10px; margin-bottom: 6px; }
  .bp-tag.free { background: #5a6b8e; }

  /* ----- רמז ומידע על שדה בגלובוס ----- */
  .mg-tip { position: fixed; z-index: 25; display: none; background: var(--mg-glass); border: 1px solid rgba(255,79,216,.55); border-radius: 12px; padding: 6px 11px; font-size: 13.5px; color: var(--mg-ink);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
  .mg-tip b { font-family: var(--mg-code); font-size: 17px; }
  /* 🌍 כפתורי הגלובוס: התקרבות, התרחקות, חזרה למסלול, מסך מלא */
  .mg-ctl { position: absolute; left: calc(14px + var(--sa-l, env(safe-area-inset-left))); top: 104px; display: flex; flex-direction: column; gap: 8px; z-index: 6; }
  .mg-ctl button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--mg-line); background: var(--mg-glass); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .mg-ctl button:active { transform: scale(.92); border-color: var(--mg-route); }
  body.mgWide .mg-ctl #mgWideBtn { background: var(--mg-route); border-color: var(--mg-route); }
  .mg-chip { position: absolute; left: calc(70px + var(--sa-l, env(safe-area-inset-left))); top: 104px; z-index: 6; display: none; padding: 10px 14px; border-radius: 14px; font: 700 15px var(--mg-ui);
    color: #fff; background: rgba(255,79,216,.88); border: 1px solid #ff9be9; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; touch-action: manipulation; direction: rtl; }
  .mg-chip.dep { background: rgba(52,226,138,.9); border-color: #9ff5c8; color: #062414; }
  body.mgFree .mg-chip { display: block; }
  /* גלובוס במסך מלא: הלוח של הלשוניות מוסתר (הכפתור ⛶ מחזיר אותו) */
  body.mgWide #menu .mg-side { display: none !important; }
  body.mgWide #menu .mg-pass { bottom: calc(8px + var(--sa-b, env(safe-area-inset-bottom))) !important; }
  body.phone .mg-ctl { top: calc(62px + var(--sa-t, env(safe-area-inset-top))); gap: 7px; }
  body.phone .mg-ctl button { width: 44px; height: 44px; font-size: 21px; }
  body.phone .mg-chip { top: calc(62px + var(--sa-t, env(safe-area-inset-top))); left: calc(66px + var(--sa-l, env(safe-area-inset-left))); }
  @media (max-height: 500px) { .mg-ctl { top: calc(56px + var(--sa-t, env(safe-area-inset-top))); gap: 6px; } .mg-ctl button { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
    .mg-chip { top: calc(56px + var(--sa-t, env(safe-area-inset-top))); left: calc(60px + var(--sa-l, env(safe-area-inset-left))); padding: 8px 12px; font-size: 14px; } }
  .mg-hint { position: absolute; left: 72px; top: 78px; font-size: 12.5px; color: rgba(238,243,255,.62); }
  /* קרדיט לתמונות הלוויין – בתפריט עובר לפינה העליונה כדי שהכרטיס לא יסתיר אותו */
  body.mgOn #credits { bottom: auto; z-index: 21; opacity: .55; }   /* המיקום נקבע ב-JS: מעל הפינה של כרטיס הטיסה */
  /* בטלפון בזמן טיסה: הקרדיט ישב על הג'ויסטיק וחסם נגיעות – עובר לפינה הימנית העליונה, מתחת לשורת הכפתורים */
  body.phone:not(.mgOn) #credits { left: calc(100% - 150px - var(--sa-r, env(safe-area-inset-right))); top: 94px; bottom: auto; transform: scale(.75); transform-origin: left bottom; opacity: .55; }

  @media (max-width: 1180px) { .bp-grid { grid-template-columns: repeat(3, auto); } }
  /* ----- מסך קטן (טלפון / חלון צר): גלובוס למעלה, כרטיס ורשימות למטה ----- */
  @media (max-width: 900px) {
    .mg-stats { display: none; }
    .mg-side { top: auto; right: 8px; left: 8px; bottom: 8px; width: auto; height: 44vh; }
    .mg-pass { left: 8px; right: 8px; width: auto; bottom: calc(44vh + 16px); }
    .bp-ap .bp-code { font-size: 34px; }
    .bp-grid { grid-template-columns: repeat(3, auto); }
    .mg-pass { --stub: 112px; } .bp-stub { width: var(--stub); }
    #menu .bigBtn { font-size: 18px; padding: 10px 6px; }
    .mg-hint { display: none; }
  }
  body.phone .mg-top { padding: calc(6px + var(--sa-t, env(safe-area-inset-top))) calc(8px + var(--sa-r, env(safe-area-inset-right))) 6px calc(8px + var(--sa-l, env(safe-area-inset-left))); gap: 8px; }
  body.phone .mg-brand { font-size: 18px; }
  body.phone #menu .pc-main { min-width: 0; }
  body.phone #menu .pc-name input, body.phone #menu .pc-name textarea { font-size: 14px; }
  body.phone #menu .pc-name input[data-l="m"] { font-size: 12px; } body.phone #menu .pc-name input[data-l="l"] { font-size: 11px; }
  body.phone .mg-money b { font-size: 18px; }
  body.phone .mg-icon { width: 36px; height: 36px; font-size: 17px; }
  body.phone .mg-pilot { padding: 4px 6px 4px 8px; } body.phone #menu .pc-badge { width: 34px; height: 34px; font-size: 15px; }
  @media (max-height: 500px) {
    .mg-top { padding: 6px 10px; }
    .mg-side { top: 58px; right: 8px; left: auto; width: 46vw; height: auto; bottom: 8px; }
    .mg-pass { left: 8px; bottom: 8px; width: calc(54vw - 24px); right: auto; }
    .bp-grid { display: none; }
    #menu #startInfo { display: none; }
    #menu .xpbar span { display: none; }
  }
  /* טלפון לאורך: כותרת קומפקטית, כרטיס קצר (רק מטוס ותשלום), יותר מקום לגלובוס */
  @media (max-width: 600px) {
    .mg-top { padding: calc(6px + var(--sa-t, env(safe-area-inset-top))) 8px 6px; gap: 6px; }
    .mg-brand { font-size: 16px; } .mg-brand b { font-size: 10px; margin-left: 3px; }
    #menu .pc-main { min-width: 0; }
    #menu .pc-name input, #menu .pc-name textarea { font-size: 14px; padding: 2px 6px; }
    #menu .pc-name input[data-l="m"] { font-size: 12px; } #menu .pc-name input[data-l="l"] { font-size: 11px; }
    #menu .rank, #menu .xpbar span { display: none; }
    .mg-pilot { padding: 4px 5px 4px 6px; gap: 6px; } #menu .pc-badge { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
    .mg-money { padding: 3px 8px; } .mg-money small { display: none; } .mg-money b { font-size: 17px; }
    .mg-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; flex: none; }
    .mg-side { height: 42vh; }
    .mg-pass { bottom: calc(42vh + 14px); --stub: 92px; }
    .bp-body { padding: 10px 12px 9px; }
    .bp-tag { margin-bottom: 3px; font-size: 11px; }
    .bp-ap .bp-code { font-size: 30px; }
    .bp-ap .bp-city { font-size: 12.5px; } .bp-ap .bp-rw { font-size: 11px; }
    .bp-route { gap: 6px; }
    .bp-mid { font-size: 11px; white-space: nowrap; }
    .bp-grid { grid-template-columns: auto auto; margin-top: 6px; padding-top: 6px; }
    .bp-grid .g-fl, .bp-grid .g-crz, .bp-grid .g-pax, .bp-grid .g-fuel { display: none; }
    #menu #startInfo { display: none; }
    #menu .bigBtn { font-size: 16px; padding: 9px 4px; }
    #menu .bigBtn .go-ic { font-size: 22px; }
    #menu #loadStatus { font-size: 10.5px; }
    body.mgOn #credits { transform: scale(.8); transform-origin: left bottom; }
    .bp-ap .bp-rw, .bp-ap .bp-city { white-space: nowrap; }
  }
  @media (max-width: 430px) { .mg-brand { display: none; } .mg-top { justify-content: space-between; } }

  /* =====================================================================
     📱 תפריט מותאם לטלפון: הגלובוס גדול וחשוף, כרטיס הטיסה הופך לפס קטן,
     והגדלים מתאימים למסך של אייפון.
     ===================================================================== */
  /* ---- טלפון על הצד (852×393) ---- */
  @media (orientation: landscape) and (max-height: 520px) {
    body.phone .mg-top { padding: calc(4px + var(--sa-t, env(safe-area-inset-top))) calc(8px + var(--sa-r, env(safe-area-inset-right))) 4px calc(8px + var(--sa-l, env(safe-area-inset-left))); gap: 6px; }
    body.phone .mg-brand { display: none; }
    body.phone .mg-pilot { padding: 3px 6px 3px 8px; gap: 6px; border-radius: 12px; }
    body.phone #menu .pc-badge { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
    body.phone #menu .pc-main { min-width: 0; }
    body.phone #menu .pc-name { gap: 6px; }
    body.phone #menu .pc-name input { font-size: 12px; padding: 1px 6px; border-radius: 7px; }
    body.phone #menu .pc-name input[data-l="m"] { font-size: 11px; } body.phone #menu .pc-name input[data-l="l"] { font-size: 10px; }
    body.phone #menu .rank { font-size: 11px; }
    body.phone #menu .xpbar { margin-top: 3px; height: 4px; } body.phone #menu .xpbar span { display: none; }
    body.phone .mg-money { padding: 2px 10px; border-radius: 11px; } body.phone .mg-money small { display: none; } body.phone .mg-money b { font-size: 16px; }
    body.phone .mg-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
    /* הפאנל בצד: צר יותר, כדי שהגלובוס יקבל את רוב המסך */
    body.phone .mg-side { top: calc(44px + var(--sa-t, env(safe-area-inset-top))); right: calc(6px + var(--sa-r, env(safe-area-inset-right))); bottom: 6px; width: min(40vw, 350px); border-radius: 14px; }
    body.phone #menu .tabs { padding: 3px; }
    body.phone #menu .tabs button { padding: 3px 1px 2px; font-size: 10.5px; gap: 0; border-radius: 9px; }
    body.phone #menu .tabs button i { font-size: 15px; }
    body.phone .mg-scroll { padding: 7px 9px 10px; font-size: 12px; }
    body.phone #menu .mg-scroll h2 { font-size: 15px; margin: 0 0 3px; }
    body.phone #menu .mg-scroll .note { font-size: 11px; line-height: 1.4; margin: 2px 0 6px; }
    body.phone #menu .btn3 { font-size: 11px; padding: 3px 8px; }
    body.phone #menu #jobs { gap: 4px; }
    body.phone #menu .job { grid-template-columns: 52px 1fr auto; column-gap: 7px; padding: 5px 8px; border-radius: 10px; }
    body.phone #menu .job .j-code { font-size: 21px; }
    body.phone #menu .job .j-city { font-size: 12.5px; }
    body.phone #menu .job .j-meta { font-size: 10.5px; gap: 6px; }
    body.phone #menu .job .j-pay { font-size: 15px; }
    body.phone #menu .job .j-kind { font-size: 10px; }
    body.phone #menu .acard { grid-template-columns: 38px 1fr auto; padding: 6px 8px; column-gap: 7px; border-radius: 10px; }
    body.phone #menu .acard .a-ic { font-size: 22px; } body.phone #menu .acard .nm { font-size: 12.5px; } body.phone #menu .acard .st { font-size: 10.5px; line-height: 1.35; }
    body.phone #menu .acard .own, body.phone #menu .acard .buy { font-size: 10.5px; padding: 2px 8px; }
    body.phone #menu .alcard { grid-template-columns: 34px 1fr auto; } body.phone #menu .albox { width: 34px; height: 34px; }
    body.phone #menu .alcard .nm small, body.phone #menu .alcard .bonus { font-size: 10.5px; } body.phone #menu .alcard .code { font-size: 14px; }
    body.phone #menu .row2 { grid-template-columns: 1fr 92px; gap: 4px; }
    body.phone #menu .row2 select, body.phone #menu #freeAc { font-size: 12px; padding: 4px 6px; }
    body.phone #menu label.l { font-size: 11.5px; margin: 6px 0 2px; }
    body.phone #menu #plan { font-size: 11px; line-height: 1.5; margin-top: 7px; }
    body.phone #menu .seg button { font-size: 11px; padding: 5px 4px; }
    body.phone #menu .mg-checks label, body.phone #menu label.mg-checks { font-size: 11.5px; margin: 5px 0; }
    body.phone #menu details summary { font-size: 12px; }
    /* כרטיס הטיסה: פס קצר בתחתית, מתחת לגלובוס */
    body.phone .mg-pass { --stub: 112px; left: calc(6px + var(--sa-l, env(safe-area-inset-left))); bottom: 6px; width: calc(100vw - min(40vw, 350px) - 24px - var(--sa-l, env(safe-area-inset-left)) - var(--sa-r, env(safe-area-inset-right))); filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
    body.phone .bp-card { border-radius: 14px; }
    body.phone .bp-body { padding: 5px 10px; display: flex; align-items: center; }
    body.phone .bp-body > div { width: 100%; }
    body.phone .bp-tag, body.phone .bp-grid, body.phone #startInfo, body.phone .bp-ap .bp-rw { display: none !important; }
    body.phone .bp-route { gap: 8px; }
    body.phone .bp-ap .bp-code { font-size: 25px; }
    body.phone .bp-ap .bp-city { font-size: 10.5px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
    body.phone .bp-mid { font-size: 10px; white-space: nowrap; }
    body.phone .bp-line { height: 14px; margin-bottom: 2px; } body.phone .bp-line span svg { width: 14px; height: 14px; }
    body.phone .bp-stub { padding: 6px 8px; gap: 3px; }
    body.phone .bp-stub::before { top: 8px; bottom: 8px; }
    body.phone #menu .bigBtn { flex-direction: row; justify-content: center; gap: 6px; padding: 7px 4px; font-size: 15px; border-radius: 11px; }
    body.phone #menu .bigBtn .go-ic { font-size: 17px; }
    body.phone #menu #loadStatus { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    body.phone .mg-tip { font-size: 11.5px; padding: 4px 8px; } body.phone .mg-tip b { font-size: 14px; }
  }
  /* ---- טלפון זקוף (393×852) ---- */
  @media (orientation: portrait) and (max-width: 640px) {
    body.phone .mg-top { padding: calc(4px + var(--sa-t, env(safe-area-inset-top))) calc(8px + var(--sa-r, env(safe-area-inset-right))) 4px calc(8px + var(--sa-l, env(safe-area-inset-left))); gap: 6px; }
    body.phone .mg-pilot { padding: 3px 6px 3px 8px; gap: 6px; border-radius: 12px; }
    body.phone #menu .pc-badge { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
    body.phone #menu .pc-name input { font-size: 12.5px; padding: 1px 6px; }
    body.phone #menu .pc-name input[data-l="m"] { font-size: 11.5px; } body.phone #menu .pc-name input[data-l="l"] { font-size: 10.5px; }
    body.phone #menu .xpbar { margin-top: 3px; height: 4px; }
    body.phone .mg-money { padding: 2px 10px; } body.phone .mg-money b { font-size: 16px; }
    body.phone .mg-icon { width: 34px; height: 34px; font-size: 16px; }
    body.phone .mg-side { height: 44vh; left: calc(6px + var(--sa-l, env(safe-area-inset-left))); right: calc(6px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(6px + var(--sa-b, env(safe-area-inset-bottom))); border-radius: 16px; }
    body.phone #menu .tabs button { padding: 4px 1px 3px; font-size: 11px; gap: 0; }
    body.phone #menu .tabs button i { font-size: 17px; }
    body.phone .mg-scroll { padding: 8px 11px 12px; font-size: 12.5px; }
    body.phone #menu .mg-scroll h2 { font-size: 16px; margin: 0 0 3px; }
    body.phone #menu .mg-scroll .note { font-size: 11.5px; line-height: 1.4; margin: 2px 0 7px; }
    body.phone #menu .job { grid-template-columns: 56px 1fr auto; column-gap: 8px; padding: 6px 9px; }
    body.phone #menu .job .j-code { font-size: 22px; } body.phone #menu .job .j-city { font-size: 13px; }
    body.phone #menu .job .j-meta { font-size: 10.5px; gap: 7px; } body.phone #menu .job .j-pay { font-size: 16px; } body.phone #menu .job .j-kind { font-size: 10px; }
    body.phone #menu .acard { grid-template-columns: 40px 1fr auto; padding: 7px 9px; }
    body.phone #menu .acard .a-ic { font-size: 24px; } body.phone #menu .acard .nm { font-size: 13px; } body.phone #menu .acard .st { font-size: 11px; }
    body.phone #menu .row2 { grid-template-columns: 1fr 100px; }
    body.phone #menu .row2 select, body.phone #menu #freeAc { font-size: 12.5px; padding: 5px 6px; }
    body.phone #menu #plan { font-size: 11.5px; }
    /* כרטיס הטיסה: פס קצר בין הגלובוס לרשימה */
    body.phone .mg-pass { --stub: 108px; left: calc(6px + var(--sa-l, env(safe-area-inset-left))); right: calc(6px + var(--sa-r, env(safe-area-inset-right))); width: auto; bottom: calc(44vh + 12px + var(--sa-b, env(safe-area-inset-bottom))); filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
    body.phone .bp-card { border-radius: 14px; }
    body.phone .bp-body { padding: 6px 12px; display: flex; align-items: center; }
    body.phone .bp-body > div { width: 100%; }
    body.phone .bp-tag, body.phone .bp-grid, body.phone #startInfo, body.phone .bp-ap .bp-rw { display: none !important; }
    body.phone .bp-ap .bp-code { font-size: 26px; }
    body.phone .bp-ap .bp-city { font-size: 11px; }
    body.phone .bp-mid { font-size: 10.5px; }
    body.phone .bp-stub { padding: 6px 8px; gap: 3px; }
    body.phone #menu .bigBtn { flex-direction: row; justify-content: center; gap: 6px; padding: 8px 4px; font-size: 15.5px; border-radius: 11px; }
    body.phone #menu .bigBtn .go-ic { font-size: 18px; }
    body.phone #menu #loadStatus { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { #menu #xpFill { transition: none; } }

  /* ----- מסכי סיום ושדרוג דרגה (נשארו מהעיצוב הקודם) ----- */
  .levelup { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
  .levelup .card { text-align: center; }
  #endStats .money { font-size: 15px; text-align: right; background: #07101e; border-radius: 10px; padding: 8px 14px; margin: 8px 0; line-height: 1.7; }
  #endStats .money b { color: #7fffb0; } #endStats .money .neg { color: #ff8080; }

  /* ===== קוקפיט תלת־ממדי ===== */
  #c3d { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: none; touch-action: none; outline: none; cursor: grab; }
  #c3dTip { position: fixed; z-index: 30; display: none; pointer-events: none; max-width: 300px; background: rgba(8,14,26,.92); border: 1px solid rgba(255,210,63,.6);
    color: #e9f1ff; border-radius: 10px; padding: 7px 11px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
  #c3dTip b { color: #ffd23f; }
  #c3dArrow { position: fixed; z-index: 8; width: 68px; height: 68px; display: none; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255,210,63,.92); color: #1a1440; border-radius: 50%; box-shadow: 0 0 22px rgba(255,210,63,.8); animation: c3dPulse 1s infinite alternate; font-weight: bold; }
  #c3dArrow span { font-size: 30px; line-height: 1; display: block; }
  #c3dArrow small { font-size: 11px; }
  @keyframes c3dPulse { from { transform: scale(1); } to { transform: scale(1.1); } }
  #c3dBar { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 7; display: flex; gap: 4px; background: rgba(6,10,20,.55);
    border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 4px 6px; backdrop-filter: blur(3px); }
  #c3dBar button { background: transparent; border: none; color: #fff; font-size: 19px; cursor: pointer; padding: 2px 7px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
  #c3dBar button small { font-size: 10px; color: #cfe3ff; margin-top: 2px; }
  #c3dBar button:hover { background: rgba(255,210,63,.2); }
  body.c3d #keysNote { display: none; }
  /* ===== המדריך בקרקע ===== */
  #coach { position: fixed; top: 10px; right: 10px; z-index: 9; width: 370px; max-width: calc(100vw - 20px); background: rgba(13,19,30,.96); color: #e8eef7;
    border: 3px solid #ffd23f; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.6); overflow: hidden; font-size: 15.5px; line-height: 1.5; }
  #coach .ch-head { display: flex; align-items: center; gap: 8px; background: #1c2433; padding: 6px 10px; cursor: default; }
  #coach .ch-av { font-size: 24px; } #coach .ch-head b { color: #ffd23f; font-size: 16px; }
  #coach .ch-n { flex: 1; text-align: left; color: #9fb4cc; font-size: 13px; }
  #coach .ch-x { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; width: 28px; height: 26px; cursor: pointer; }
  #coach .ch-dots { display: flex; gap: 4px; padding: 6px 12px 0; flex-wrap: wrap; }
  #coach .ch-dots i { flex: 1; min-width: 10px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
  #coach .ch-dots i.d { background: #3ce36a; } #coach .ch-dots i.c { background: #ffd23f; box-shadow: 0 0 8px #ffd23f; }
  #coach .ch-body { padding: 8px 12px 10px; }
  #coach .ch-t { font-size: 19px; font-weight: bold; color: #fff; margin-bottom: 4px; }
  #coach .ch-ok { color: #7fffb0; }
  #coach .ch-done { color: #7fffb0; font-size: 12.5px; font-weight: bold; margin-bottom: 3px; }
  #coach .ch-done:empty { display: none; }
  #coach .ch-now { color: #ffd23f; font-size: .8em; }
  body.coachOn:not(.phone) #msg { left: calc((100% - 400px) / 2); max-width: calc(100vw - 440px); }
  body:not(.phone):has(#school:not(.hidden)) #msg { left: calc((100% - 400px) / 2); max-width: calc(100vw - 440px); }
  #coach .ch-steps { list-style: none; margin: 4px 0 0; padding: 0; }
  #coach .ch-steps li { display: flex; gap: 7px; align-items: baseline; padding: 4px 7px; margin: 2px 0; border-radius: 8px; font-size: 15px; line-height: 1.35; color: #cfd9e6; }
  #coach .ch-steps li.cur { background: rgba(255,210,63,.16); color: #fff; font-weight: bold; box-shadow: inset 3px 0 0 #ffd23f; }
  #coach .ch-steps li.ok { opacity: .5; } #coach .ch-sn { flex: none; min-width: 1.4em; text-align: center; }
  #coach .ch-why { margin-top: 5px; font-size: 12.5px; color: #93a6bd; }
  #coach .ch-open { background: linear-gradient(#ffd23f, #ff9f1c); color: #1a1440; }
  #coach .ch-x2 b { color: #ffd23f; }
  #coach .ch-live { margin-top: 6px; background: rgba(47,211,255,.12); color: #bfefff; border-radius: 8px; padding: 4px 9px; font-weight: bold; font-size: 14px; }
  #coach .ch-live:empty { display: none; }
  #coach .ch-err { background: rgba(255,60,60,.18); border: 2px solid #ff5a5a; color: #ffdede; border-radius: 9px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; line-height: 1.35; }
  #coach .ch-err b { color: #fff; }
  #coach .ch-err .ch-fix { margin-top: 4px; background: #ff5a5a; color: #fff; border: 0; border-radius: 7px; padding: 4px 10px; font-weight: bold; cursor: pointer; }
  #coach .ch-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
  #coach .ch-btns button, #coach .ch-foot button { border: none; border-radius: 10px; padding: 7px 12px; font-size: 14.5px; cursor: pointer; font-family: inherit; font-weight: bold; }
  #coach .ch-show { background: linear-gradient(#ffd23f, #ff9f1c); color: #1a1440; }
  body.nohelp:not(.phlite) #gndAuto, body.nohelp:not(.phlite) #btnAuto, body.nohelp:not(.phlite) #tb-KeyY, body.nohelp:not(.phlite) .ft:has(#gndAuto), body.nohelp #sSkip, body.nohelp #sLateWrap { display: none !important; }   /* 📱 בטלפון הרגיל 🔑 הנעה נשאר – זו הדרך היחידה להניע */
  #coach .ch-do, #coach .ch-extra { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25) !important; }
  #coach .ch-extra { background: rgba(60,227,106,.2); }
  #coach .ch-extra.chk { background: linear-gradient(#5cf08a, #2fbf5c); color: #062b12; border: none !important; flex: 1; }
  #coach .ch-foot { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 8px; }
  #coach .ch-foot button { background: transparent; color: #9fd8ff; border: 1px dashed rgba(159,216,255,.5) !important; font-weight: normal; font-size: 13px; }
  #coach.min .ch-body, #coach.min .ch-dots { display: none; }
  body.phone #coach { top: calc(46px + var(--sa-t, env(safe-area-inset-top))); left: calc(8px + var(--sa-l, env(safe-area-inset-left))); right: auto; width: 290px; font-size: 13.5px; }
  body.phone #coach .ch-t { font-size: 16px; }
  #gndCk { display: none !important; }
  /* הודעות קצרות בקוקפיט התלת־ממדי – למטה, מעל סרגל המבטים, כדי לא להסתיר את המדריך */
  body.c3d #msg { top: auto; bottom: 80px; font-size: 19px; white-space: normal; width: max-content; max-width: min(720px, calc(100vw - 40px));
    background: rgba(6,10,20,.6); padding: 6px 14px; border-radius: 12px; }
  /* ===== טלפון: הקוקפיט התלת־ממדי עם בקרת מגע ===== */
  body.phone #c3dBar { top: calc(4px + var(--sa-t, env(safe-area-inset-top))); bottom: auto; padding: 2px 4px; gap: 1px; max-width: calc(100vw - 16px); overflow-x: auto; }
  body.phone #c3dBar button { font-size: 17px; padding: 2px 5px; min-width: 36px; min-height: 36px; }
  body.phone #c3dBar button small { display: none; }
  body.phone.c3d #tbtns { grid-template-columns: repeat(3, 64px); gap: 4px; bottom: calc(8px + var(--sa-b, env(safe-area-inset-bottom))); }
  body.phone.c3d #tbtns button { height: 31px; font-size: 10px; opacity: .9; }
  body.phone.c3d #joy { width: 104px; height: 104px; opacity: .85; }
  body.phone.c3d #thr { height: 140px; width: 46px; opacity: .85; }
  body.phone #coach { width: 270px; font-size: 12px; top: calc(46px + var(--sa-t, env(safe-area-inset-top))); right: auto; left: calc(8px + var(--sa-l, env(safe-area-inset-left))); max-height: 48vh; overflow-y: auto; }
  body.phone #coach .ch-t { font-size: 15px; } body.phone #coach .ch-btns button, body.phone #coach .ch-foot button { padding: 5px 8px; font-size: 12px; }
  body.phone.tablet #coach { width: 340px; font-size: 14px; }

  /* ===== משתמשים: מסך כניסה מעל הגלובוס + כפתור 👤 בתפריט ===== */
  .acct { position: fixed; inset: 0; z-index: 46; display: flex; direction: rtl; overflow-y: auto;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(7, 17, 42, .42), rgba(4, 9, 24, .9)); font-family: var(--mg-ui); color: var(--mg-ink); }
  .acct.acct-off { display: none; }
  .acct [hidden], .acct-pop [hidden] { display: none !important; }
  .acct-card { width: min(430px, 100%); margin: auto; background: var(--mg-glass); border: 1px solid var(--mg-line); border-radius: 24px; padding: 24px 22px 20px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); box-sizing: border-box; }
  .acct-brand { font-family: var(--mg-code); font-weight: 700; font-size: 22px; direction: ltr; text-align: center; letter-spacing: .02em; margin-bottom: 16px; }
  .acct-brand b { color: var(--mg-route); font-size: 13px; vertical-align: super; margin-left: 5px; letter-spacing: .12em; }
  .acct section, .acct form { display: grid; gap: 12px; margin: 0; }
  .acct h2 { margin: 0 0 4px; font-size: 25px; line-height: 1.25; font-weight: 700; text-align: center; text-wrap: balance; }
  .acct p { margin: 0; color: var(--mg-mut); font-size: 15px; line-height: 1.55; text-align: center; }
  .acct p.acct-small { font-size: 13.5px; }
  .acct label { font-size: 14.5px; color: var(--mg-mut); margin-bottom: -6px; }
  .acct input[type=text], .acct input[type=password] { width: 100%; box-sizing: border-box; font: 600 19px/1.3 var(--mg-ui); color: var(--mg-ink);
    background: rgba(4, 10, 26, .78); border: 1px solid var(--mg-line); border-radius: 12px; padding: 11px 14px; }
  .acct input::placeholder { color: rgba(142, 166, 214, .55); font-weight: 400; }
  .acct input:focus-visible, .acct button:focus-visible { outline: 2px solid var(--mg-route); outline-offset: 2px; }
  .acct .acct-codein { font-family: var(--mg-code); font-size: 26px; letter-spacing: .4em; text-align: center; padding-left: 46px; padding-right: 46px; }
  .acct-pw { position: relative; }
  .acct .acct-grid { display: grid; gap: 12px; }
  .acct p.acct-note { color: #ffd9a3; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .28); border-radius: 10px; padding: 7px 11px; text-align: start; }
  .acct-eye { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px; line-height: 1; }
  .acct-big { font: 700 18px/1.2 var(--mg-ui); padding: 15px 16px; border-radius: 16px; border: none; cursor: pointer; background: var(--mg-go); color: #062214; }
  .acct-big.alt { background: rgba(255, 255, 255, .04); color: var(--mg-ink); border: 1px solid var(--mg-line); }
  .acct-big:hover:not(:disabled) { filter: brightness(1.08); }
  .acct-big:disabled { opacity: .4; cursor: not-allowed; }
  .acct-link { font: 500 14.5px var(--mg-ui); background: none; border: none; color: var(--mg-mut); cursor: pointer; padding: 6px 10px; justify-self: center; }
  .acct-link:hover { color: var(--mg-ink); text-decoration: underline; }
  .acct p.acct-err { color: #ff9a9a; font-weight: 600; min-height: 1.5em; margin: -4px 0; }
  .acct-code { font-family: var(--mg-code); font-weight: 700; font-size: 58px; line-height: 1.1; letter-spacing: .22em; text-indent: .22em; text-align: center; color: var(--mg-amber);
    background: rgba(4, 10, 26, .7); border: 1px dashed rgba(255, 181, 71, .55); border-radius: 16px; padding: 12px 0 8px; user-select: all; font-variant-numeric: tabular-nums; }
  .acct p.acct-mig { color: var(--mg-go); font-weight: 600; }
  .acct label.acct-chk { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16.5px; color: var(--mg-ink); cursor: pointer; margin: 2px 0 0; }
  .acct-chk input { width: 21px; height: 21px; margin: 0; accent-color: var(--mg-go); cursor: pointer; }
  .acct-spin { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .14); border-top-color: var(--mg-route); justify-self: center; margin: 6px 0; animation: acctSpin 1s linear infinite; }
  @keyframes acctSpin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .acct-spin { animation-duration: 4s; } }
  @media (max-width: 420px) { .acct-card { padding: 20px 16px 16px; border-radius: 20px; } .acct-code { font-size: 46px; letter-spacing: .16em; text-indent: .16em; } .acct h2 { font-size: 22px; }
    .acct .acct-codein { letter-spacing: .28em; font-size: 24px; } }
  @media (max-height: 520px) { .acct-card { padding: 14px 18px; } .acct-brand { margin-bottom: 8px; } .acct section, .acct form { gap: 9px; } .acct-big { padding: 11px 14px; } .acct-code { font-size: 42px; } }

  .acct-btn { position: relative; flex: none; }
  .acct-btn::after { content: ''; position: absolute; bottom: 5px; left: 5px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--mg-night); display: none; }
  .acct-btn[data-sync="ok"]::after { display: block; background: var(--mg-go); }
  .acct-btn[data-sync="wait"]::after { display: block; background: var(--mg-amber); }
  .acct-btn[data-sync="err"]::after { display: block; background: #ff6b6b; }
  .acct-pop { position: fixed; z-index: 44; width: 272px; box-sizing: border-box; direction: rtl; background: var(--mg-glass); border: 1px solid var(--mg-line); border-radius: 16px;
    padding: 14px; display: grid; gap: 10px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-family: var(--mg-ui); color: var(--mg-ink); }
  .acct-pop[hidden] { display: none; }
  .ap-name { display: flex; gap: 8px; align-items: center; font-size: 17px; }
  .ap-row { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--mg-mut); }
  .ap-row b { font-family: var(--mg-code); font-size: 21px; color: var(--mg-ink); letter-spacing: .14em; margin-inline-start: auto; font-variant-numeric: tabular-nums; }
  .ap-row button, .ap-out, .ap-in { font: 600 13.5px var(--mg-ui); border-radius: 10px; border: 1px solid var(--mg-line); background: rgba(255, 255, 255, .05); color: var(--mg-ink); padding: 5px 10px; cursor: pointer; }
  .ap-out, .ap-in { padding: 9px 12px; font-size: 14px; }
  .ap-in { background: var(--mg-go); color: #062214; border-color: transparent; }
  .ap-out.sure { border-color: #ff6b6b; color: #ffb3b3; }
  .ap-sync { font-size: 13px; color: var(--mg-mut); line-height: 1.45; }

  /* ===== 🛠️ פאנל יוצרים ===== */
  .adm-entry .adm-gate { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
  #menu.mg .adm-gate input { width: 120px; box-sizing: border-box; font: 700 20px/1.2 var(--mg-code); letter-spacing: .3em; text-align: center; padding: 6px 8px;
    background: rgba(4, 10, 26, .75); border: 1px solid var(--mg-line); color: var(--mg-ink); border-radius: 10px; }
  .adm-entry .adm-gate .btn3 { font-size: 14px; padding: 7px 16px; }

  .adm { position: fixed; inset: 0; z-index: 47; display: flex; direction: rtl; overflow: hidden; font-family: var(--mg-ui); color: var(--mg-ink);
    padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: rgba(3, 8, 22, .72); box-sizing: border-box; }
  .adm.adm-off { display: none; }
  .adm [hidden] { display: none !important; }
  .adm-box { width: min(780px, 100%); max-height: 100%; margin: auto; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden;
    background: var(--mg-glass); border: 1px solid var(--mg-line); border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
  .adm-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--mg-line); }
  .adm-head h2 { margin: 0; font-size: 21px; font-weight: 700; }
  .adm-count { color: var(--mg-mut); font-size: 14px; margin-inline-start: auto; font-variant-numeric: tabular-nums; }
  .adm-x { background: none; border: 1px solid var(--mg-line); color: var(--mg-ink); border-radius: 50%; width: 36px; height: 36px; font-size: 16px; cursor: pointer; flex: none; }
  .adm-x:hover { border-color: var(--mg-route); }
  .adm-tools { display: flex; gap: 8px; padding: 12px 18px 0; }
  .adm-tools input { flex: 1; min-width: 0; box-sizing: border-box; font: 500 16px var(--mg-ui); color: var(--mg-ink); background: rgba(4, 10, 26, .75);
    border: 1px solid var(--mg-line); border-radius: 10px; padding: 8px 12px; }
  .adm input:focus-visible, .adm button:focus-visible { outline: 2px solid var(--mg-route); outline-offset: 2px; }
  .adm-msg { margin: 0; padding: 8px 18px 0; min-height: 1.4em; font-size: 14.5px; color: var(--mg-amber); font-weight: 600; }
  .adm-msg:empty { padding-top: 0; min-height: 0; }
  .adm-list { overflow-y: auto; padding: 10px 18px 18px; display: grid; gap: 8px; align-content: start; overscroll-behavior: contain; }
  .adm-empty { color: var(--mg-mut); text-align: center; margin: 18px 0; }

  .adm-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 11px 14px; border-radius: 14px;
    background: rgba(4, 10, 26, .55); border: 1px solid var(--mg-line); }
  .adm-row.banned { border-color: rgba(255, 107, 107, .55); background: rgba(60, 10, 18, .45); }
  .adm-main { min-width: 0; }
  .adm-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; }
  .adm-name b { overflow-wrap: anywhere; }
  .adm-chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
  .adm-chip.ban { background: rgba(255, 107, 107, .18); color: #ffb3b3; border: 1px solid rgba(255, 107, 107, .5); }
  .adm-chip.me { background: rgba(255, 79, 216, .14); color: #ffc2f1; border: 1px solid rgba(255, 79, 216, .45); }
  .adm-stats { color: var(--mg-mut); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
  .adm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .adm-btn { font: 600 13.5px var(--mg-ui); border-radius: 10px; border: 1px solid var(--mg-line); background: rgba(255, 255, 255, .05); color: var(--mg-ink);
    padding: 7px 12px; cursor: pointer; white-space: nowrap; }
  .adm-btn:hover { border-color: var(--mg-mut); }
  .adm-btn.go { background: var(--mg-go); color: #062214; border-color: transparent; }
  .adm-btn.bad { color: #ffb3b3; border-color: rgba(255, 107, 107, .45); }
  .adm-btn.ok { color: #9ff3c5; border-color: rgba(52, 226, 138, .45); }
  .adm-btn.sure { background: #ff6b6b; color: #2a0508; border-color: transparent; }

  .adm-edit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--mg-line); }
  .adm-edit label { display: grid; gap: 4px; font-size: 13px; color: var(--mg-mut); }
  .adm-edit input[type=number] { width: 140px; box-sizing: border-box; font: 700 16px var(--mg-ui); color: var(--mg-ink); background: rgba(4, 10, 26, .8);
    border: 1px solid var(--mg-line); border-radius: 10px; padding: 7px 10px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
  .adm-edit label.adm-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mg-ink); cursor: pointer; padding-bottom: 8px; }
  .adm-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--mg-go); }
  .adm-edit-btns { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }

  .adm-setup { overflow-y: auto; padding: 16px 18px 20px; display: grid; gap: 10px; align-content: start; }
  .adm-setup h3 { margin: 0; font-size: 18px; }
  .adm-setup p, .adm-setup ol { margin: 0; color: var(--mg-mut); font-size: 15px; line-height: 1.6; }
  .adm-setup ol { padding-inline-start: 22px; }
  .adm-setup b { color: var(--mg-ink); }
  .adm-setup-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .adm-setup .adm-btn { font-size: 15px; padding: 10px 18px; }
  .adm-setup pre { margin: 0; padding: 12px; border-radius: 12px; background: rgba(2, 6, 16, .85); border: 1px solid var(--mg-line); color: #cfe0ff;
    font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; text-align: left; overflow: auto; max-height: 260px; white-space: pre; user-select: all; }

  @media (max-width: 560px) {
    .adm { padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
    .adm-box { border-radius: 16px; }
    .adm-head { padding: 12px 14px 10px; } .adm-head h2 { font-size: 18px; }
    .adm-tools { padding: 10px 14px 0; } .adm-list { padding: 8px 14px 14px; } .adm-msg { padding-inline: 14px; }
    .adm-row { grid-template-columns: 1fr; }
    .adm-acts { justify-content: flex-start; }
    .adm-edit input[type=number] { width: 120px; }
  }
  .adm-box:focus { outline: none; }
  .adm-edit select { box-sizing: border-box; font: 600 15px var(--mg-ui); color: var(--mg-ink); background: rgba(4, 10, 26, .8); border: 1px solid var(--mg-line);
    border-radius: 10px; padding: 7px 8px; min-width: 150px; cursor: pointer; }
  .adm select:focus-visible { outline: 2px solid var(--mg-route); outline-offset: 2px; }
  .adm-msg[data-k="ok"] { color: var(--mg-go); }
  .adm-msg[data-k="wait"] { color: var(--mg-mut); font-weight: 500; }
  .adm .nw { white-space: nowrap; }
  .adm-code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 13.5px; color: var(--mg-mut); }
  .adm-code b { font: 700 17px var(--mg-code); letter-spacing: .14em; color: var(--mg-amber); font-variant-numeric: tabular-nums; }
  .adm-code.none { font-size: 12.5px; opacity: .8; }
  .adm-mini { font: 600 12.5px var(--mg-ui); border-radius: 8px; border: 1px solid var(--mg-line); background: rgba(255, 255, 255, .05); color: var(--mg-ink); padding: 2px 9px; cursor: pointer; }
  .adm-mini:hover { border-color: var(--mg-mut); }

.adm-back { position: fixed; left: 12px; bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); z-index: 99998; background: #1b2a4a; color: #fff; border: 1px solid #5a77b8; border-radius: 22px; padding: 8px 14px; font: 600 14px/1.2 inherit; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.adm-back[hidden] { display: none; }
/* ===== מסכים גבוהים (סיום עם ניתוח) נגללים מלמעלה גם בטלפון ===== */
#endScr, #pauseScr { justify-content: safe center !important; }
/* 📱 מסך הסיום בטלפון: קומפקטי, והכפתורים "טוס שוב" / "תפריט ראשי" תמיד נראים למטה */
body.phone #endScr .card { padding: 8px 14px 0; }
body.phone #endScr .title { font-size: 21px; margin: 0 0 2px; }
body.phone #endScr .stars { font-size: 20px; margin: 0; }
body.phone #endScr .stat { font-size: 12.5px; line-height: 1.45; }
body.phone #endScr .stat .money { font-size: 12.5px; margin-top: 4px; padding: 6px 10px; }
body.phone #endScr .center { position: sticky; bottom: 0; margin-top: 6px !important; padding: 6px 0 8px; background: linear-gradient(transparent, #0d1726 30%); display: flex; gap: 8px; justify-content: center; }
body.phone #endScr .bigBtn { padding: 7px 18px; font-size: 17px; margin: 0; }
body.phone #endScr .btn2 { padding: 7px 14px; font-size: 15px; margin: 0; }
/* ===== Flight Deck Pro: שידור חוזר וניתוח נחיתה ===== */
#recBar { position: fixed; top: calc(12px + var(--sa-t, env(safe-area-inset-top))); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; gap: 10px; align-items: center;
  background: rgba(8,14,28,.82); border: 1px solid rgba(160,200,255,.35); border-radius: 14px; padding: 8px 14px; color: #fff; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#recBar.hidden { display: none; }
#recBar button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; padding: 5px 10px; font: inherit; cursor: pointer; }
#recT { color: #9fe9ff; min-width: 3.5em; }
.recA { margin-top: 10px; text-align: right; background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; line-height: 1.5; }
.recA svg { display: block; margin: 6px 0 2px; background: rgba(0,0,0,.25); border-radius: 6px; }
.recA .recL { font-size: 11.5px; opacity: .85; margin-bottom: 4px; }
.recA ul { margin: 4px 0 0; padding-inline-start: 18px; }
/* ===== Flight Deck Pro: מה חדש ===== */
#newsBox { position: fixed; inset: 0; z-index: 90; background: rgba(0,4,14,.72); display: flex; align-items: safe center; justify-content: center; padding: 16px; overflow-y: auto; }
#newsBox .card { max-width: 560px; text-align: right; }
#newsBox h2 { margin: 0 0 8px; } #newsBox ul { margin: 0 0 14px; padding-inline-start: 20px; line-height: 1.7; }
#newsBox .bigBtn { width: 100%; position: sticky; bottom: 0; }
@media (max-height: 520px) { #newsBox { padding: 8px; } #newsBox .card { padding: 10px 14px; font-size: 13px; } #newsBox h2 { font-size: 18px; } #newsBox ul { line-height: 1.4; margin-bottom: 8px; } }
/* ===== Flight Deck Pro: הישגים ===== */
.achList { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 10px 0; }
.achHead { grid-column: 1 / -1; font-weight: 700; }
.achI { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); opacity: .55; }
.achI.on { opacity: 1; border-color: rgba(255,210,63,.55); background: rgba(255,210,63,.08); }
.achI span { grid-row: 1 / 3; font-size: 20px; text-align: center; } .achI b { font-size: 13px; } .achI small { font-size: 11px; opacity: .8; }
.achNew { margin-top: 8px; color: #ffd23f; font-size: 16px; }
/* ===== Flight Deck Pro: הבחירה עם השלט בתפריטים ===== */
.gp-focus { outline: 3px solid #2fd3ff !important; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(47,211,255,.25), 0 0 18px rgba(47,211,255,.55) !important; border-radius: 10px; }
/* ===== Flight Deck Pro: פריסת המגע בטלפון (4 עמודות של כפתורים) ===== */
body.phone #tbtns { grid-template-columns: repeat(4, 50px); gap: 4px; right: calc(70px + var(--sa-r, env(safe-area-inset-right))); bottom: calc(12px + var(--sa-b, env(safe-area-inset-bottom))); }
body.phone #tbtns button { height: 40px; min-width: 0; }
body.phone #instr { right: calc(292px + var(--sa-r, env(safe-area-inset-right))); }
body.phone.tablet #tbtns { grid-template-columns: repeat(4, 74px); gap: 6px; }
/* קוקפיט תלת־ממדי בטלפון: 4 עמודות נמוכות (16 כפתורים = 4 שורות, לא נכנסים לשטח של מחוון המנוע) */
body.phone.c3d #tbtns { grid-template-columns: repeat(4, 54px); gap: 4px; }
body.phone.c3d #tbtns button { height: 34px; } body.phone.c3d #tbtns button b { font-size: 13px; } body.phone.c3d #tbtns button span { font-size: 9px; }
body.phone.tablet.c3d #tbtns { grid-template-columns: repeat(4, 72px); } body.phone.tablet.c3d #tbtns button { height: 46px; }
body.phone.tablet #tbtns button { height: 52px; } body.phone.tablet #tbtns button b { font-size: 20px; } body.phone.tablet #tbtns button span { font-size: 12px; }
body.phone.tablet #instr { right: calc(436px + var(--sa-r, env(safe-area-inset-right))); }
@media (orientation: portrait) { body.phone.tablet #instr { right: 10px; } }
#gpCross{position:fixed;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;z-index:2147480000;pointer-events:none;display:none}
#gpCross i,#gpCross b{position:absolute;background:#fff;box-shadow:0 0 0 1.5px rgba(0,0,0,.75);border-radius:2px}
#gpCross i{left:15px;top:2px;width:4px;height:30px}
#gpCross b{left:2px;top:15px;width:30px;height:4px}
#gpCross.hot i,#gpCross.hot b{background:#7fffb0}
#gpBadge{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:2147481000;pointer-events:none;background:rgba(90,58,0,.92);border:1px solid #ffb21f;color:#ffe2a8;padding:6px 14px;border-radius:999px;font-size:14px;display:none;white-space:nowrap;max-width:96vw;overflow:hidden;text-overflow:ellipsis}
#gpPick{position:fixed;inset:0;z-index:2147482000;background:rgba(3,10,20,.72);display:flex;align-items:center;justify-content:center}
#gpPick .gpp-card{width:min(560px,94vw);max-height:86vh;display:flex;flex-direction:column;background:#0d1b2c;border:1px solid #2f5d86;border-radius:14px;padding:12px;box-shadow:0 10px 40px rgba(0,0,0,.6)}
#gpPick .gpp-h{color:#9fd8ff;font-size:14px;margin-bottom:8px}
#gpPick .gpp-list{overflow-y:auto;display:flex;flex-direction:column;gap:4px}
#gpPick .gpp-list button{text-align:right;padding:10px 12px;font-size:16px;border-radius:8px;border:1px solid #23415f;background:#132840;color:#e6f2ff;cursor:pointer}
#gpPick .gpp-list button.cur{border-color:#7fffb0;background:#163a2c}
#chBtn.armed{background:#5a3a00;border-color:#ffb21f;color:#ffe2a8}
/* 📱 בטלפון: כפתור אתגר הנחיתה קטן ובשורה אחת (קודם כל מילה ירדה שורה והכרטיס נהיה ענק) */
body.phone #chBtn{font-size:11px;padding:4px 6px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;border-radius:9px;margin-top:2px}
#chBtn .chLong{display:none}
#chBtn{white-space:nowrap;font-size:13px;padding:6px 8px;line-height:1.25}
body.phone #loadStatus.ok{display:none !important}
/* 📱 הסמל של חברת התעופה בגודל של המשבצת שלו (קודם עלה על השם) */
body.phone #menu .albox .albadge, body.phone #menu .albox > svg{width:100% !important;height:100% !important}
body.phone #menu .albox .tailsw{width:12px;height:12px;right:-4px;top:-4px}
#gpCursor{position:fixed;left:0;top:0;z-index:2147483000;pointer-events:none;display:none;width:30px;height:30px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7));will-change:transform}
#gpCursor i{position:absolute;left:-9px;top:-10px;width:24px;height:24px;border-radius:50%;border:2px solid rgba(127,255,176,0);transition:border-color .12s,transform .12s;transform:scale(.6)}
#gpCursor.hot i{border-color:rgba(127,255,176,.95);transform:scale(1)}
/* ===== 🎮 מצב שלט PlayStation ===== */
.psg{display:inline-flex;align-items:center;justify-content:center;min-width:1.5em;height:1.5em;padding:0 .3em;margin:0 .12em;border-radius:.75em;background:#1b2a3d;border:1px solid #3c5878;color:#e9f3ff;font-style:normal;font-weight:700;font-size:.92em;line-height:1;vertical-align:-.15em;direction:ltr;white-space:nowrap}
.psg0{color:#7fb6ff}.psg1{color:#ff7b8a}.psg2{color:#ff9be0}.psg3{color:#6fe3b4}
.psg0,.psg1,.psg2,.psg3{border-radius:50%;padding:0;width:1.5em}
#padPanel{position:fixed;left:12px;top:118px;z-index:2147470000;width:min(390px,calc(100vw - 24px));max-height:max(240px,calc(100vh - var(--ph,0px) - 130px));display:flex;flex-direction:column;direction:rtl;
  background:rgba(7,14,26,.9);border:1px solid #2f5d86;border-radius:14px;box-shadow:0 10px 34px rgba(0,0,0,.55);color:#e6f2ff;font-size:15px;backdrop-filter:blur(4px)}
#padPanel .pp-h{padding:9px 12px 7px;font-weight:700;font-size:16px;border-bottom:1px solid #23415f;display:flex;flex-direction:column;gap:3px}
#padPanel .pp-h span{font-weight:400;font-size:12px;color:#9fc3e6}
#padPanel .pp-list{overflow-y:auto;padding:4px 6px 6px}
#padPanel .pp-sec{color:#ffd27a;font-size:12.5px;font-weight:700;margin:8px 6px 3px}
#padPanel .pp-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 9px;border-radius:9px;border:1px solid transparent;cursor:pointer}
#padPanel .pp-row.sel{background:#16324f;border-color:#2fd3ff;box-shadow:0 0 0 3px rgba(47,211,255,.18)}
#padPanel .pp-v{white-space:nowrap;color:#cfe3ff;font-size:14px;direction:ltr;display:flex;align-items:center;gap:4px}
#padPanel .pp-v b{color:#fff}#padPanel .pp-v small{color:#9fc3e6;font-size:12px}
#padPanel .pon{color:#7fffb0!important}#padPanel .poff{color:#8a9bb0!important}
#padPanel .pp-ar{font-style:normal;color:#2fd3ff;opacity:0;font-size:11px}
#padPanel .pp-row.sel .pp-ar{opacity:1}
#padPanel .pp-hint{padding:7px 12px 9px;border-top:1px solid #23415f;font-size:13px;color:#9fd8ff;min-height:1.2em}
body.phone #padPanel{top:8px;max-height:calc(100vh - 16px);font-size:13px}
.pad-tip{margin-top:.45em;padding:.35em .55em;border-radius:.5em;background:rgba(47,211,255,.12);border:1px solid rgba(47,211,255,.35);color:#bfefff;font-size:.82em;line-height:1.35}
#padVk{position:fixed;inset:0;z-index:2147482600;background:rgba(2,8,18,.78);display:flex;align-items:center;justify-content:center;direction:rtl}
#padVk .vk-card{background:#0d1b2c;border:1px solid #2f5d86;border-radius:16px;padding:14px;box-shadow:0 12px 44px rgba(0,0,0,.6);width:min(760px,96vw)}
#padVk .vk-lab{color:#9fd8ff;font-size:15px;margin-bottom:6px}
#padVk .vk-val{background:#06101d;border:1px solid #2f5d86;border-radius:10px;padding:10px 12px;font-size:24px;min-height:1.4em;color:#fff;margin-bottom:10px;letter-spacing:.03em}
#padVk .vk-ph{color:#4d6a88}
#padVk .vk-caret{display:inline-block;width:2px;height:1em;background:#2fd3ff;vertical-align:-.12em;margin:0 2px;animation:vkb 1s steps(1) infinite}
@keyframes vkb{50%{opacity:0}}
#padVk .vk-rows{display:flex;flex-direction:column;gap:6px;align-items:center}
#padVk .vk-row{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
#padVk .vk-k{min-width:52px;height:48px;padding:0 10px;border-radius:9px;border:1px solid #2a4a6c;background:#15304d;color:#fff;font-size:21px;cursor:pointer;font-family:inherit}
#padVk .vk-del,#padVk .vk-done,#padVk .vk-lang,#padVk .vk-sp{font-size:16px}
#padVk .vk-sp{min-width:160px}#padVk .vk-done{background:#14513a;border-color:#2fbf7f}
#padVk .vk-help{margin-top:10px;color:#9fc3e6;font-size:13px;text-align:center}
#padHelp{position:fixed;inset:0;z-index:2147482500;background:rgba(2,8,18,.82);display:flex;align-items:safe center;justify-content:center;overflow-y:auto;direction:rtl;padding:12px}
#padHelp .padh-card{background:#0b1828;border:1px solid #2f5d86;border-radius:18px;padding:14px 16px;width:min(1060px,98vw);box-shadow:0 14px 50px rgba(0,0,0,.6);color:#e6f2ff}
#padHelp .padh-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
#padHelp h2{margin:0;font-size:21px}
#padHelp .padh-tabs{display:flex;gap:6px;margin:10px 0 6px;flex-wrap:wrap}
#padHelp .padh-tab{padding:7px 14px;border-radius:999px;border:1px solid #2a4a6c;background:#122a44;color:#cfe3ff;font-size:15px;cursor:pointer;font-family:inherit}
#padHelp .padh-tab.sel{background:#1d4e7a;border-color:#2fd3ff;color:#fff}
#padHelp .padh-tp{text-align:center;color:#ffd27a;font-size:15px;margin:2px 0 -4px;min-height:1.2em}
#padHelp .padh-svg{width:100%;height:auto;display:block;max-height:max(300px,calc(100vh - 250px));margin:0 auto}
#padHelp .body{fill:#1a2636;stroke:#3c5878;stroke-width:2}
#padHelp .pb{fill:#24364d;stroke:#4f7298;stroke-width:1.5;transition:fill .08s}
#padHelp .pb text,#padHelp .tl{fill:#e6f2ff;font-size:17px;font-weight:700;text-anchor:middle;dominant-baseline:middle;stroke:none;pointer-events:none}
#padHelp .tl{font-size:14px;fill:#9fc3e6}
#padHelp .pb.cr text{fill:#7fb6ff}#padHelp .pb.ci text{fill:#ff7b8a}#padHelp .pb.sq text{fill:#ff9be0}#padHelp .pb.tr text{fill:#6fe3b4}
#padHelp .pb.on,#padHelp .pb.on circle,#padHelp .pb.on path,#padHelp .pb.on rect{fill:#2fd3ff!important;stroke:#bff3ff}
#padHelp .pb.on text{fill:#05223a!important}
#padHelp .stk .nub{fill:#33506f}
#padHelp .lines path{stroke:#3c5878;stroke-width:1.4;fill:none}
#padHelp .padh-lab{font-size:13.5px;line-height:1.25;color:#e6f2ff;height:48px;display:flex;align-items:center;padding:0 4px;box-sizing:border-box;border-radius:8px}
#padHelp .padh-lab.l{justify-content:flex-start}#padHelp .padh-lab.r{justify-content:flex-start}
#padHelp .padh-lab.on{background:rgba(47,211,255,.22);color:#fff}
#padHelp .padh-live{background:#06101d;border:1px solid #23415f;border-radius:10px;padding:7px 10px;font-size:13px;color:#cfe3ff;margin-top:4px}
#padHelp .padh-note{font-size:13px;color:#9fc3e6;margin:8px 0 0}
#padHelpBtn{margin:6px 0}
#padNavBadge{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:2147471000;pointer-events:none;background:rgba(7,20,40,.92);border:1px solid #2fd3ff;color:#dff6ff;padding:7px 14px;border-radius:999px;font-size:14px;direction:rtl;white-space:nowrap}
.pad-nav{box-shadow:0 0 0 3px #2fd3ff,0 0 24px rgba(47,211,255,.5)!important}
#sCk li.gp-focus{outline-offset:0}
#uiConfirm{position:fixed;inset:0;z-index:2147482700;background:rgba(2,8,18,.7);display:flex;align-items:center;justify-content:center;direction:rtl}
#uiConfirm .uc-card{background:#0d1b2c;border:1px solid #2f5d86;border-radius:16px;padding:18px 20px;width:min(480px,92vw);box-shadow:0 12px 44px rgba(0,0,0,.6);color:#e6f2ff;text-align:center}
#uiConfirm .uc-t{font-size:19px;line-height:1.45;margin-bottom:14px}#uiConfirm .uc-t small{font-size:14px;color:#9fc3e6}
#uiConfirm .uc-b{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}#uiConfirm .uc-h{margin-top:10px;font-size:12px;color:#7f9bb8}
@media (max-width:700px){#padHelp .padh-lab{font-size:11px}}
/* ===== 🧑‍✈️ מצב מקצועי ===== */
#proMcdu, #proPanel { position: fixed; inset: 0; z-index: 60; background: rgba(4,8,14,.55); display: flex; align-items: center; justify-content: center; direction: rtl; font-family: inherit; }
#proMcdu .pm-card { background: #2a2f37; border: 3px solid #4a525e; border-radius: 16px; padding: 10px 12px; width: min(760px, 98vw); max-height: 98vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.7); color: #e8eef6; }
#proMcdu .pm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 15px; }
#proMcdu .pm-main { display: flex; gap: 6px; align-items: stretch; direction: ltr; }
#proMcdu canvas { align-self: center; width: min(512px, 70vw, calc(52vh * 1.25)); height: auto; aspect-ratio: 512/410; background: #000; border: 4px solid #111; border-radius: 6px; }
#proMcdu .pm-lsk { display: flex; flex-direction: column; justify-content: space-around; padding: 6% 0 7%; }
#proMcdu .mk { background: #444b56; color: #fff; border: 1px solid #5d6672; border-bottom: 3px solid #23272d; border-radius: 6px; font: bold 13px Consolas, monospace; padding: 6px 4px; min-width: 34px; cursor: pointer; }
#proMcdu .mk:active { transform: translateY(1px); border-bottom-width: 1px; }
#proMcdu .mk.lsk { min-width: 40px; padding: 4px; }
#proMcdu .mk.pg { background: #343a43; font-size: 11px; line-height: 1.1; min-width: 58px; }
#proMcdu .mk.clr { background: #6a4b2a; }
#proMcdu .pm-x { background: #5b2b2b; min-width: 80px; font-family: inherit; }
#proMcdu .pm-keys { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; direction: ltr; justify-content: center; }
#proMcdu .pm-pad { display: flex; gap: 10px; direction: ltr; justify-content: center; flex-wrap: wrap; }
#proMcdu .pm-num { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; align-content: start; }
#proMcdu .pm-alpha { display: grid; grid-template-columns: repeat(7, 36px); gap: 4px; }
#proMcdu .pm-efb { margin-top: 8px; background: #0f1620; border: 1px solid #2fd3ff55; border-radius: 10px; padding: 7px 10px; font-size: 13px; line-height: 1.6; color: #cfe9ff; }
#proMcdu .pm-efb b { color: #3ddcff; }
#proMcdu .pm-now { background: #3a3008; border: 2px solid #ffd23f; border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; font-size: 16px; line-height: 1.5; color: #fff; }
#proMcdu .pm-now b { color: #ffd23f; } #proMcdu .pm-now .pm-v { font: bold 19px Consolas, monospace; background: #000; color: #3ce36a; padding: 0 6px; border-radius: 4px; }
#proMcdu .pm-now.done { background: #12321d; border-color: #3ce36a; } #proMcdu .pm-now.done b { color: #7fffb0; }
#proMcdu .pm-now .pm-type { font-family: inherit; font-size: 13px; background: #2a7a3d; margin-inline-start: 6px; padding: 4px 9px; }
#proMcdu .pm-err { color: #ffb547; font-size: 14px; margin-top: 2px; }
#proMcdu .mk.go { background: #ffd23f !important; color: #1a1440 !important; animation: pmGo 0.8s ease-in-out infinite alternate; box-shadow: 0 0 12px #ffd23f; }
@keyframes pmGo { from { transform: scale(1); } to { transform: scale(1.12); } }
#proMcdu .pm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
#proMcdu .pm-c { background: #1a2636; border: 1px solid #2f4560; border-radius: 6px; padding: 1px 6px; font: 12px Consolas, monospace; white-space: nowrap; }
#proMcdu .pm-c small { color: #8aa0b8; font-size: 10px; }
#proMcdu .pm-help { margin-top: 6px; font-size: 12px; color: #aab4c0; line-height: 1.5; }
#proMcdu .gp-focus, #proPanel .gp-focus { outline: 3px solid #ffd23f !important; outline-offset: 1px; }

#proPanel .pp2-card { background: #121821; border: 3px solid #2b3442; border-radius: 16px; width: min(720px, 98vw); max-height: 94vh; display: flex; flex-direction: column; color: #e8eef6; box-shadow: 0 10px 40px rgba(0,0,0,.7); }
#proPanel .pp2-top { display: flex; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid #2b3442; }
#proPanel .pp2-tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
#proPanel .pp2-tab { background: #1e2633; color: #cfd8e3; border: 1px solid #334055; border-radius: 9px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
#proPanel .pp2-tab.sel { background: #ffd23f; color: #1a1a1a; font-weight: bold; }
#proPanel .pp2-x { background: #5b2b2b; color: #fff; border: none; border-radius: 9px; padding: 6px 12px; font-size: 15px; cursor: pointer; }
#proPanel .pp2-body { padding: 10px; overflow: auto; flex: 1; font-size: 14px; }
#proPanel .pp2-hint { padding: 6px 10px; font-size: 12px; color: #93a0b0; border-top: 1px solid #2b3442; }
#proPanel .pr-b { background: #253042; color: #eaf2ff; border: 1px solid #3a4a62; border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 13px; cursor: pointer; }
#proPanel .pr-b:disabled { opacity: .35; cursor: default; }
#proPanel .pr-b.on { background: #2a7a3d; border-color: #46b766; }
#proPanel .pr-b.go { background: #ffd23f; color: #1a1440; border-color: #ffd23f; font-weight: bold; box-shadow: 0 0 10px #ffd23f; }
#proPanel .r-com { display: flex; gap: 10px; align-items: center; justify-content: center; background: #0a0f15; border-radius: 12px; padding: 8px; }
#proPanel .r-com > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#proPanel .r-com small { color: #93a0b0; font-size: 11px; }
#proPanel .r-com b { font: bold 26px Consolas, monospace; color: #3ce36a; }
#proPanel .r-com > div:last-child b { color: #ffb547; }
#proPanel .r-com span { font-size: 12px; color: #cfd8e3; }
#proPanel .r-tune { display: flex; gap: 3px; direction: ltr; }
#proPanel .r-next { margin: 8px 0; background: #2b2410; border: 1px solid #ffd23f66; border-radius: 10px; padding: 7px 10px; color: #ffe38a; }
#proPanel .r-set { margin-inline-start: 6px; background: #4a3d10; }
#proPanel .r-freqs { font-size: 12px; color: #9fb0c4; direction: ltr; text-align: left; line-height: 1.5; margin-bottom: 6px; }
#proPanel .r-opts { display: flex; flex-direction: column; gap: 5px; }
#proPanel .r-call { text-align: left; display: flex; flex-direction: column; gap: 2px; }
#proPanel .r-call small { color: #9fb0c4; direction: rtl; text-align: right; }
#proPanel .r-none { color: #93a0b0; padding: 8px; text-align: center; }
#proPanel .r-log { margin-top: 8px; background: #070b10; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; max-height: 170px; overflow: auto; }
#proPanel .lg { padding: 2px 0; }
#proPanel .lg small { display: block; color: #9fb0c4; font-size: 11.5px; text-align: right; }
#proPanel .lg.me { color: #9fd8ff; } #proPanel .lg.atc { color: #3ce36a; } #proPanel .lg.sys { color: #ffd27a; } #proPanel .lg.pa { color: #e3b8ff; } #proPanel .lg.crew { color: #ffd27a; }
#proPanel .x-box { text-align: center; }
#proPanel .x-code { display: flex; gap: 10px; justify-content: center; margin: 6px 0 10px; }
#proPanel .x-d { display: flex; flex-direction: column; gap: 4px; align-items: center; }
#proPanel .x-d b { font: bold 34px Consolas, monospace; color: #3ce36a; background: #000; padding: 2px 10px; border-radius: 6px; }
#proPanel .x-mode { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
#proPanel .x-note { color: #93a0b0; font-size: 12px; }
#proPanel .pa-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
#proPanel .pa-b.done { background: #1e3a28; }
#proPanel .pa-st { margin-top: 10px; font-size: 13px; color: #cfd8e3; line-height: 1.6; }
#proPanel .ck-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
#proPanel .ck-t { font-size: 12px; padding: 4px 7px; }
#proPanel .ck-t.on { background: #ffd23f; color: #1a1a1a; }
#proPanel .ck-t.done:not(.on) { background: #1e3a28; }
#proPanel .ck-h { font: bold 16px Consolas, monospace; color: #3ddcff; text-align: center; margin-bottom: 6px; }
#proPanel .ck-list { display: flex; flex-direction: column; gap: 3px; }
#proPanel .ck-i { display: flex; align-items: center; gap: 6px; font-family: Consolas, monospace; text-align: left; }
#proPanel .ck-i span { white-space: nowrap; } #proPanel .ck-i i { flex: 1; border-bottom: 1px dotted #56647a; }
#proPanel .ck-i b { color: #3ddcff; } #proPanel .ck-i em { font-style: normal; width: 1.4em; text-align: center; }
#proPanel .ck-i.ok { background: #16301f; border-color: #2e6b40; } #proPanel .ck-i.ok b { color: #3ce36a; }
#proPanel .ck-i .ckhe { color: #8fa3ba; font-family: inherit; font-size: 11px; }
#proPanel .ck-note { margin-top: 6px; font-size: 12px; color: #93a0b0; }
#proPanel .sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
#proPanel .sy-grid > div { background: #1a2230; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
#proPanel .sy-n { color: #93a0b0; font-size: 12px; }
#proBar { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; gap: 4px; align-items: center; direction: rtl; background: rgba(10,14,20,.82); border: 1px solid #2b3442; border-radius: 12px; padding: 3px 5px; font-size: 12px; color: #cfd8e3; max-width: 96vw; flex-wrap: wrap; justify-content: center; }
#proBar button { background: #1e2633; color: #eaf2ff; border: 1px solid #334055; border-radius: 8px; padding: 3px 7px; font: inherit; font-size: 12px; cursor: pointer; }
#proBar button small { color: #8898ad; font-size: 10px; }
#proBar .pb-st { padding: 0 6px; white-space: nowrap; }
.proScore { margin: 8px 0; background: #0d1622; border: 1px solid #2f4560; border-radius: 10px; padding: 8px 12px; font-size: 14px; text-align: right; }
.proScore div { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; }
.proScore .ok { color: #7fffb0; } .proScore .no { color: #ff9a9a; }
body.phone #proBar { top: calc(44px + var(--sa-t, env(safe-area-inset-top))); right: calc(70px + var(--sa-r, env(safe-area-inset-right))); left: auto; transform: none; max-width: 52vw; }
body.phone #proBar .pb-st, body.phone #proBar small { display: none; }
@media (min-width: 761px) and (max-width: 1500px) { body:not(.phone) #proBar { left: calc(50vw - 80px); max-width: calc(100vw - 620px); } }   /* מסך קטן: סרגל המקצועי לא נכנס מתחת למדריך שבימין */
@media (max-width: 760px) { body:not(.phone) #proBar { top: auto; bottom: 66px; font-size: 11px; } #proBar .pb-st { display: none; } }

/* QA: מסכים קטנים */
#uiConfirm .uc-card { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
@media (max-height: 500px) { #uiConfirm .uc-t { font-size: 14px; line-height: 1.35; } }
body.proOn #msg { z-index: 70; }
@media (max-width: 1500px) { #proPanel, #proMcdu { justify-content: flex-end; padding-left: 10px; } }
body.phone #proPanel, body.phone #proMcdu { justify-content: center; padding-left: 0; }
#proMcdu canvas { width: min(512px, 70vw, calc((100vh - 440px) * 1.25)) !important; min-width: 220px; }
@media (max-height: 560px) { #proMcdu .pm-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; } #proMcdu .pm-top, #proMcdu .pm-now, #proMcdu .pm-efb, #proMcdu .pm-help { grid-column: 1 / -1; } #proMcdu canvas { width: min(300px, 40vw) !important; } #proMcdu .pm-keys { grid-column: 1; } #proMcdu .pm-pad { grid-column: 2; grid-row: 3 / span 2; } }
#proPanel .r-call.nx { border-color: #ffd23f; box-shadow: 0 0 0 1px #ffd23f inset; }
#proPanel .r-call.later { opacity: .6; }
#proPanel .r-call em { font-style: normal; color: #ffd23f; font-size: 12px; }
#proPanel .r-pad { font-size: 12.5px; color: #cfe9ff; background: #0d1622; border-radius: 8px; padding: 4px 8px; margin-bottom: 6px; }
#proBar button { min-height: 30px; }
body.proOn #msg { white-space: normal; max-width: min(92vw, 900px); width: max-content; }
body.proOn #atc { top: 72px; }
body.ovhOpen #coach { top: 318px; max-height: calc(100vh - 330px); overflow: auto; }
body.ovhOpen #proBar { top: auto; bottom: 8px; }

#proPanel .ck-easy { gap: 5px; }
#proPanel .ck-e { display: flex; gap: 10px; align-items: flex-start; text-align: right; padding: 7px 10px; font-size: 15px; }
#proPanel .ck-e .ck-st { font-size: 20px; line-height: 1.2; }
#proPanel .ck-e .ck-tx { display: flex; flex-direction: column; gap: 3px; flex: 1; }
#proPanel .ck-e .ck-tx b { font-weight: 600; }
#proPanel .ck-e .ck-tx small { color: #cfe3ff; font-size: 13px; line-height: 1.45; }
#proPanel .ck-e .ck-tx small.ck-man { color: #ffd23f; }
#proPanel .ck-e .ck-tx i { font-style: normal; font-family: Consolas, monospace; font-size: 11px; color: #7f93ab; text-align: left; }
#proPanel .ck-e.cur { background: #2b2410; border-color: #ffd23f; }
#proPanel .ck-e.ok { background: #13281b; border-color: #2e6b40; }
#proPanel .ck-e.ok b { color: #9cf0b6; }
/* 📋 צ'קליסט נקי: שורות שבוצעו קטנות, השורה של עכשיו גדולה ובולטת */
#proPanel .ck-e.ok { padding: 3px 10px; font-size: 13.5px; opacity: .8; }
#proPanel .ck-e.ok .ck-st { font-size: 15px; }
#proPanel .ck-e:not(.ok):not(.cur) { padding: 5px 10px; }
#proPanel .ck-e.cur { padding: 10px 12px; font-size: 16.5px; box-shadow: 0 0 0 2px #ffd23f inset, 0 0 14px rgba(255,210,63,.25); }
#proPanel .ck-e.cur .ck-tx small { font-size: 14px; }
#proPanel .ck-pill { display: inline-block; background: linear-gradient(#5cf08a, #2fbf5c); color: #062b12; font-weight: bold; border-radius: 7px; padding: 1px 8px; margin-left: 4px; }
body:not(.phone):has(#proPanel) #msg { left: auto; right: 16px; transform: none; top: auto; bottom: 110px; width: auto; max-width: calc(100vw - min(740px, 98vw) - 40px); font-size: 17px; white-space: normal; }
#proPanel .ck-h small { color: #8fa3ba; font-size: 12px; font-weight: normal; }
body:not(.phone) .phFullRow { display: none !important; }
body.phone #coach { max-height: calc(100vh - 56px - var(--sa-t, env(safe-area-inset-top))); max-height: calc(100dvh - 56px - var(--sa-t, env(safe-area-inset-top))); overflow-y: auto; }
.phFullRow { display: block; margin: 6px 0 10px; line-height: 1.5; }

/* ===== 📱 טלפון: שום דבר לא מכסה את הג'ויסטיק, את המצערת או את הכפתורים ===== */
body.phone #proBar { top: calc(6px + var(--sa-t, env(safe-area-inset-top))) !important; right: calc(8px + var(--sa-r, env(safe-area-inset-right))) !important; left: auto !important; bottom: auto !important; transform: none !important; max-width: none; flex-wrap: nowrap; padding: 2px; gap: 3px; }
body.phone #proBar .pbl, body.phone #proBar .pb-st { display: none !important; }
body.phone #proBar { display: grid; grid-template-columns: repeat(2, 38px); }
body.phone #proBar button { min-height: 34px; min-width: 36px; padding: 2px 4px; font-size: 18px; line-height: 1; }
@media (max-width: 1000px) { body.phone #proBar ~ #c3dBar, body.phone #c3dBar { } }
body.phone #coach { width: min(290px, 36vw); max-height: calc(var(--joyTop, 100vh) - 58px); overflow-y: auto; }
body.phone #coach .ch-btns button { padding: 6px 8px; font-size: 13px; }
body.phone #coach { font-size: 12.5px; }
body.phone #coach .ch-dots { display: none; }
body.phone:not(.tablet) #coach .ch-steps li:not(.cur), body.phone #coach .ch-steps li.ok, body.phone #coach .ch-why { display: none; }   /* בטלפון: רק מה שעושים עכשיו */
body.phone:not(.tablet) #coach .ch-steps li.cur { font-size: 14px; padding: 3px 6px; }
body.phone:not(.tablet) #coach .ch-head { padding: 2px 7px; } body.phone:not(.tablet) #coach .ch-av { font-size: 17px; } body.phone:not(.tablet) #coach .ch-head b { font-size: 13px; } body.phone:not(.tablet) #coach .ch-n { font-size: 11.5px; } body.phone:not(.tablet) #coach .ch-x { height: 24px; }
body.phone:not(.tablet) #coach .ch-t { font-size: 13.5px; margin-bottom: 2px; }
body.phone:not(.tablet) #coach .ch-btns { flex-wrap: nowrap; gap: 5px; } body.phone:not(.tablet) #coach .ch-btns button { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 6px; font-size: 12.5px; }
body.phone #coach .ch-head { padding: 4px 8px; }
body.phone #coach .ch-body { padding: 6px 9px 0; }
body.phone #coach .ch-t { font-size: 14.5px; }
body.phone #coach .ch-btns { position: sticky; bottom: 0; background: rgba(13,19,30,.98); margin: 6px -9px 0; padding: 6px 9px; box-shadow: 0 -6px 10px rgba(13,19,30,.9); }
body.phone #coach .ch-foot { padding-bottom: 6px; }
body.phone.proBox #msg { top: auto !important; bottom: calc(6px + var(--sa-b, env(safe-area-inset-bottom))); }
body.phone.c3d #msg { top: calc(54px + var(--sa-t, env(safe-area-inset-top))); bottom: auto; font-size: 14px; left: calc(min(330px, 39vw) + 18px); right: 100px; transform: none; width: auto; max-width: none; padding: 4px 8px; }
body.phone #atc { font-size: 12px; max-width: 46vw; }
body.phone #proPanel .pp2-card, body.phone #proMcdu .pm-card { max-height: calc(100vh - 8px); max-height: calc(100dvh - 8px); }
body.phone #proPanel .pp2-tab { padding: 5px 7px; font-size: 13px; }
body.phone #proPanel .pp2-body { padding: 6px; }
body.phone #proPanel .ck-e { padding: 5px 8px; font-size: 14px; }

/* ===================================================================
   📱 טלפון – סידור סופי של מסך הטיסה (גובר על כל מה שלמעלה)
   כל דבר במקום משלו: למעלה FCU + כפתורי המצב המקצועי · משמאל המדריך/בית הספר · באמצע קשר והודעות · למטה מסכים, ג'ויסטיק, כפתורים
   =================================================================== */
body.phone:not(.tablet) #coach { width: min(330px, 39vw); font-size: 12.5px; border-width: 2px; }
body.phone:not(.tablet) #coach .ch-head { padding: 3px 8px; min-height: 0; }
body.phone:not(.tablet) #coach .ch-head b { font-size: 13px; }
body.phone:not(.tablet) #coach .ch-x { padding: 0 8px; font-size: 12px; min-height: 22px; }
body.phone:not(.tablet) #coach .ch-body { padding: 5px 8px 0; }
body.phone:not(.tablet) #coach .ch-t { font-size: 13.5px; line-height: 1.3; margin-bottom: 3px; }
body.phone:not(.tablet) #coach .ch-x2, body.phone:not(.tablet) #coach .ch-steps li.cur { font-size: 13px; line-height: 1.35; }
body.phone:not(.tablet) #coach .ch-btns { margin: 5px -8px 0; padding: 5px 8px; gap: 5px; }
body.phone:not(.tablet) #coach .ch-btns button { font-size: 12.5px; padding: 6px 6px; min-height: 0; border-radius: 9px; }
body.phone:not(.tablet) #coach .ch-live:empty { display: none; }
body.phone:not(.tablet) #coach .ch-n { white-space: nowrap; font-size: 11px; }
body.phone:not(.tablet) #msg { font-size: 14px; line-height: 1.3; }
body.phone:not(.tablet) #atc { font-size: 11.5px; padding: 4px 9px; }
body.phone:not(.tablet) #school { --sk: .8; }
body:has(#pauseScr:not(.hidden)) #msg, body:has(#endScr:not(.hidden)) #msg, body.phone #proPanel ~ #msg, body.phone:has(#proPanel) #msg, body.phone:has(#proMcdu) #msg { display: none !important; }   /* חלון פתוח – ההודעות לא עולות עליו */
body.phone:not(.mgOn) #credits { top: calc(126px + var(--sa-t, env(safe-area-inset-top))) !important; left: auto !important; right: calc(4px + var(--sa-r, env(safe-area-inset-right))) !important; transform: scale(.6) !important; transform-origin: right top !important; opacity: .45 !important; }
body.phone #c3dBar { scrollbar-width: none; align-items: center; } body.phone #c3dBar::-webkit-scrollbar { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 780px) {
  body.phone .mg-pass { --stub: 96px; }
  body.phone .bp-ap .bp-code { font-size: 21px; }
  body.phone .bp-ap .bp-city { font-size: 10px; max-width: 64px; }
  body.phone .bp-mid { font-size: 9.5px; white-space: normal; line-height: 1.2; min-width: 0; }
  body.phone .bp-route { gap: 5px; grid-template-columns: auto minmax(0, 1fr) auto; }
  body.phone #menu .bigBtn { font-size: 13.5px; }
  body.phone #chBtn { font-size: 10px; padding: 3px 4px; }
}

/* 🛩️ ססנה: בלוח השטוח אין FCU, גלגלים מתקפלים, בלם אוטומטי, ספוילרים ומסך מערכות */
body.ga #glare, body.ga #gearPanel, body.ga #abrkPanel, body.ga #sdWrap, body.ga .disp.isis, body.ga #ecp, body.ga #engPanel, body.ga #spdBrkPanel, body.ga #flapPanel, body.ga #btnPush, body.ga #btnOvh, body.ga #thrPanel .detents { display: none !important; }
body.phone.ga:not(.tablet) #dNd { display: none !important; }
#gaPed { display: none; }
body.ga #gaPed { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px; }
#gaPed .gaBtns { display: grid; grid-template-columns: repeat(5, auto); gap: 4px; }
#gaPed .kb { min-width: 52px; font-size: 11px; padding: 4px 5px; }
#gaPed .kb.on { background: linear-gradient(180deg, #2c7a43, #1c4f2c); color: #c9ffd8; border-color: #57d27f; }

/* 🛩️ ססנה במחשב: פס המבטים עולה למעלה (בשמיים) – למטה הוא הסתיר את שורת המתגים */
body.ga:not(.phone) #c3dBar { bottom: auto; top: 58px; }

/* ===== סבב 3 – תיקוני פריסה בטלפון ===== */
/* ססנה בטלפון (לוח שטוח): מסך המנוע מוצג ליד השעונים – קודם לא הייתה דרך להגיע אליו */
body.phone.ga:not(.tablet).scr-nd #dEcam { display: block !important; }
/* מצב מקצועי: סרגל המצלמות לא נכנס מתחת לעמודת ה-MCDU/רדיו */
body.phone.proOn #c3dBar { max-width: calc(100vw - 2 * (96px + env(safe-area-inset-right))); }
/* כפתור סגירה של המדריך – גדול מספיק לאצבע */
body.phone #coach .ch-x { min-width: 32px; min-height: 30px; }
/* השעונים לא מתחת לפס הבית באייפון עם "חריץ" */
body.phone #instr { bottom: calc(6px + env(safe-area-inset-bottom)); }
/* טלפון קטן: רק מסך הטיסה (ראו phoneInstrRoom) */
body.phone.oneScr:not(.c3d) #dNd, body.phone.oneScr:not(.c3d) #dEcam { display: none !important; }

/* ===== v68: תא טייס תלת־ממדי במחשב – שום חלון לא מכסה את הלוח, בכל גודל מסך =====
   הקפטן יושב משמאל, והפקדים החשובים (PFD/ND, ECAM, לוח הטייס האוטומטי, הקונסולה) באמצע ומימין.
   לכן: בית הספר / המדריך – בצד שמאל (מעל החלון הצדדי), נתוני הטיסה – למעלה מימין (שמיים), סרגל המצלמות – למטה משמאל. */
body.c3d:not(.phone) #school { left: 8px; right: auto; width: calc(min(372px, 27vw) * var(--sk)); max-height: calc(100vh - 78px); }
body.c3d:not(.phone) #coach { left: 10px; right: auto; width: min(370px, 28vw); }
body.c3d:not(.phone) #info { left: auto; right: 8px; }
body.c3d:not(.phone) #c3dBar { left: 8px; transform: none; }
body.c3d:not(.phone) #c3dBar button { font-size: clamp(15px, 1.4vw, 19px); padding: 2px clamp(3px, .45vw, 7px); }
body.c3d:not(.phone) #freezeTag, body.c3d:not(.phone) #atc, body.c3d:not(.phone) #taxiHint { transform: translateX(-50%); width: max-content; }
@media (max-height: 640px) { body.c3d:not(.phone) #info { font-size: 11.5px; padding: 5px 9px; min-width: 0; } }
