* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  color: #222;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header { background: #fff; border-bottom: 1px solid #eee; }
nav {
  max-width: 1000px; margin: 0 auto; padding: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: bold; font-size: 1.3rem; color: #222; text-decoration: none; }
.links a { margin-inline-start: 1.2rem; color: #555; text-decoration: none; }
.links a:hover { color: #0066cc; }

main { flex: 1; max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }
.hero { text-align: center; padding: 4rem 0; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { color: #0066cc; }

footer { text-align: center; padding: 1.5rem; color: #888; border-top: 1px solid #eee; }

/* ===== דף פתיחה ===== */
body.opening {
  background: url("images/mainpage.jpg") center / cover no-repeat fixed;
  min-height: 100vh;
}
.opening-overlay {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10vh;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%);
}
.start-btn {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  background: #0077cc;
  padding: 0.8rem 3.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.2s, background 0.2s;
}
.start-btn:hover { background: #005fa3; transform: scale(1.06); }

/* ===== דף תפריט ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.menu-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  color: #222;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.menu-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateY(-3px); }
.menu-card h2 { font-size: 1.3rem; margin-bottom: 0.4rem; color: #0077cc; }

/* ===== דף הסבר: זרם חשמלי ===== */
.lesson h1 { text-align: center; }
.lesson h2 { margin: 2rem 0 0.8rem; }
.lead { font-size: 1.2rem; text-align: center; max-width: 700px; margin: 0 auto 1.5rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.07); margin: 0; }
.panel h2 { margin: 0 0 0.5rem; font-size: 1.3rem; text-align: center; }
.panel.water { border-top: 6px solid #3a9be0; }
.panel.wire  { border-top: 6px solid #e08a1e; }
.panel svg { width: 100%; height: auto; direction: ltr; }
.panel figcaption { text-align: center; color: #444; }
.panel .p { animation: flow 4s linear infinite; }
@keyframes flow { from { transform: translateX(-40px); } to { transform: translateX(340px); } }
.spin { transform-origin: 42px 100px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analogy { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.analogy th { background: #0077cc; color: #fff; padding: 0.7rem; }
.analogy td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #eee; }
.analogy td:first-child { color: #2b6cb0; font-weight: bold; }
.analogy td:nth-child(2) { color: #c05000; font-weight: bold; }
.facts { padding-inline-start: 1.5rem; }
.facts li { margin-bottom: 0.8rem; }
.back { margin-top: 2rem; text-align: center; }

/* ===== תפריט קוביות ===== */
.crumbs { color: #888; font-size: 0.95rem; margin-bottom: 0.5rem; }
.crumbs a { color: #0077cc; text-decoration: none; }
.page-title { text-align: center; margin-bottom: 2rem; }
.cube-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; padding: 1rem 0 2rem; }
.cube {
  width: 230px; height: 230px;
  background: #fff;
  border: 3px solid #0077cc;
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1rem;
  text-decoration: none; color: #1a3a5c;
  box-shadow: 10px 10px 0 #0b5c99, 10px 10px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cube:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 #0b5c99, 14px 14px 24px rgba(0,0,0,0.25); }
.cube:active { transform: translate(6px, 6px); box-shadow: 4px 4px 0 #0b5c99; }
.cube-img { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; }
.cube-img svg { width: 150px; height: 150px; }
.cube-title { font-size: 1.35rem; font-weight: bold; }

/* ===== דף מתח ===== */
.lesson h2.sec { color: #0b5c99; border-inline-start: 5px solid #0077cc; padding-inline-start: 0.6rem; }
.lesson .compare { margin-bottom: 0.5rem; }
.jet { stroke-dasharray: 8 6; animation: jet 0.6s linear infinite; }
@keyframes jet { to { stroke-dashoffset: -14; } }
.bright { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.7; } }
.volts td:first-child { color: #222; }
.volts td.danger { color: #c0392b; font-weight: bold; }

/* ===== דף התנגדות ===== */
.pour { animation: pour 0.5s linear infinite; }
@keyframes pour { 50% { opacity: 0.6; } }
.ohm { background: #fff; border: 2px solid #0077cc; border-radius: 14px; padding: 1.2rem 1.5rem; text-align: center; }
.ohm-formula { font-size: 1.6rem; font-weight: bold; color: #0b5c99; }
.ohm-sym { font-size: 1.4rem; font-family: Georgia, serif; color: #c05000; margin-bottom: 0.6rem; }
.ohm-ex { background: #f3f8fc; border-radius: 8px; padding: 0.6rem; margin-top: 0.5rem; }
.cube-img img { width: 165px; height: 165px; object-fit: contain; border-radius: 8px; }

/* ===== דף לד ===== */
.lesson ul.facts { list-style: disc; }
.code-box { background: #0e1a26; border-radius: 12px; overflow: hidden; margin-top: 0.8rem; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.9rem; background: #16283a; color: #9fb3c8; font-size: 0.9rem; }
.code-head button { font: inherit; font-size: 0.9rem; padding: 0.3rem 0.9rem; border-radius: 8px; border: 1px solid #4a6a88; background: transparent; color: #e6eef5; cursor: pointer; }
.code-head button:hover { background: #22405c; }
.code-head button.ok { background: #1D9E75; border-color: #1D9E75; }
.code-box pre { margin: 0; padding: 1rem; overflow-x: auto; text-align: left; color: #7dffb0; font-size: 0.9rem; line-height: 1.55; }
.code-box code { font-family: Consolas, Menlo, monospace; }

/* ===== לוגו ===== */
.logo { display: flex; align-items: center; }
.logo-svg { height: 40px; width: auto; display: block; direction: ltr; }

/* ===== דף בקרים ===== */
.panel.flow { margin-top: 0.5rem; }
.lesson code { background: #eef3f7; padding: 0 6px; border-radius: 4px; }
.uses { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 0.5rem; }
.uses span { background: #fff; border: 1px solid #d6e4f0; border-radius: 30px; padding: 0.35rem 0.9rem; font-size: 0.98rem; }

/* ===== לוחות אינטראקטיביים ===== */
.board-wrap { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 1rem; }
.board-wrap svg { width: 100%; height: auto; display: block; direction: ltr; }
.hot { cursor: pointer; fill: #fff; fill-opacity: 0; transition: fill-opacity .15s; }
.hot:hover, .hot:focus { fill-opacity: .18; outline: none; }
#hl { fill: none; stroke: #ffd166; stroke-width: 5; stroke-dasharray: 14 7; pointer-events: none; display: none; animation: hlmove 1s linear infinite; filter: drop-shadow(0 0 6px rgba(255,209,102,.9)); }
@keyframes hlmove { to { stroke-dashoffset: -21; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.chips button { font: inherit; font-size: .95rem; padding: .35rem .9rem; border-radius: 30px; border: 1.5px solid #0077cc; background: #fff; color: #0b5c99; cursor: pointer; }
.chips button.on { background: #0077cc; color: #fff; }
.hint { color: #666; font-size: .95rem; margin: .3rem 0 0; }
.info { background: #fff; border-radius: 14px; border-top: 6px solid #0077cc; box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 1rem 1.3rem; margin-top: 1rem; min-height: 160px; }
.info h3 { margin: 0 0 .6rem; font-size: 1.35rem; color: #0b5c99; }
.info ul { padding-inline-start: 1.3rem; margin: .4rem 0; }
.info li { margin-bottom: .35rem; }
.info .em { background: #fff4e0; border-inline-start: 4px solid #f08c00; padding: .5rem .8rem; border-radius: 6px; margin: .6rem 0; }
.info .warn { background: #fdecea; border-inline-start: 4px solid #c0392b; padding: .5rem .8rem; border-radius: 6px; margin: .6rem 0; }
.info .mini { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .95rem; }
.info .mini td, .info .mini th { border-bottom: 1px solid #eee; padding: .35rem .5rem; text-align: right; }
.info .mini th { background: #f3f8fc; }
.info pre { direction: ltr; text-align: left; background: #0e1a26; color: #7dffb0; border-radius: 8px; padding: .7rem .9rem; overflow-x: auto; font-size: .88rem; margin: .5rem 0; }
.info code { direction: ltr; unicode-bidi: embed; background: #eef3f7; padding: 0 5px; border-radius: 4px; }
.info pre code { background: none; padding: 0; }
.adc { background: #f3f8fc; border-radius: 10px; padding: .8rem 1rem; margin: .7rem 0; }
.adc input { width: 100%; direction: ltr; accent-color: #0077cc; }
.adc .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.adc .big { font-size: 1.6rem; font-weight: bold; color: #0b5c99; direction: ltr; }
.adc .bar { height: 14px; background: #dde7f0; border-radius: 7px; overflow: hidden; direction: ltr; margin-top: .4rem; }
.adc .bar div { height: 100%; background: linear-gradient(90deg, #4dabf7, #0077cc); width: 50%; }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.legend span { padding: .2rem .7rem; border-radius: 6px; font-weight: bold; color: #fff; }

/* ===== חיישן רטט ===== */
.sim-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: center; }
@media (max-width: 760px) { .sim-grid { grid-template-columns: 1fr; } }
.ctrls { display: flex; flex-direction: column; gap: .5rem; }
.ctrls input { width: 100%; direction: ltr; accent-color: #0077cc; }
.bigbtn { font: inherit; font-size: 1.15rem; font-weight: bold; padding: .7rem; border-radius: 12px; border: none; background: #e8590c; color: #fff; cursor: pointer; box-shadow: 0 4px 0 #a33f08; }
.bigbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a33f08; }
.state { font-size: 1.2rem; background: #f3f8fc; border-radius: 8px; padding: .4rem .7rem; }
.leds-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .95rem; margin-top: .3rem; }
.dot13 { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #555; vertical-align: middle; transition: background .1s, box-shadow .1s; }
.dot13.on { background: #ffd43b; box-shadow: 0 0 10px #ffd43b; }
#scope { width: 100%; height: auto; border-radius: 8px; margin-top: .8rem; display: block; }
.scope-lbl { display: flex; justify-content: space-between; font-size: .85rem; color: #666; }
.simvib pre { direction: ltr; text-align: left; background: #0e1a26; color: #7dffb0; border-radius: 8px; padding: .7rem .9rem; font-size: .9rem; margin: .8rem 0 0; min-height: 190px; }
.code-box code, .code-box pre code { background: none !important; padding: 0 !important; }
.code-title { color: #0b5c99; margin: 1.4rem 0 .3rem; font-size: 1.15rem; }
.ard-row { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; background: #f3f8fc; border-radius: 12px; padding: .6rem; flex-wrap: wrap; }
.ard-row svg { flex: 1 1 420px; width: 100%; max-width: 640px; height: auto; direction: ltr; }
.ledstate { flex: 0 0 auto; font-size: 1.4rem; font-weight: bold; padding: .6rem 1.2rem; border-radius: 30px; background: #dee2e6; color: #495057; transition: all .15s; margin-inline: auto; }
.ledstate.on { background: #ff3b30; color: #fff; box-shadow: 0 0 18px rgba(255,59,48,.6); }
.scene { position: relative; border-radius: 12px; padding: .6rem .6rem .3rem; transition: background .2s; }
.scene svg { width: 100%; height: auto; direction: ltr; display: block; }
.scene #sky { position: absolute; top: .4rem; left: .7rem; font-size: 1.8rem; }

/* ===== תרגול ===== */
.pr-sim { margin: .8rem 0; }
.pr-sim svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; direction: ltr; }
.pr-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.runbtn { font: inherit; font-weight: bold; font-size: 1rem; padding: .45rem 1.1rem; border-radius: 10px; border: none; background: #2f9e44; color: #fff; cursor: pointer; }
.runbtn.on { background: #c0392b; }
.pr-state { font-weight: bold; color: #0b5c99; }
.cube-list { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; padding: 1rem 0 2rem; }
.cube.cube-wide { width: min(520px, 92%); height: 150px; flex-direction: row; justify-content: flex-start; gap: 1.2rem; }
.cube.cube-wide .cube-img { flex: 0 0 120px; width: 120px; }
.cube.cube-wide .cube-img svg { width: 110px; height: 110px; }
.cube.cube-wide .cube-title { font-size: 1.3rem; text-align: right; }
.mx-ctrl { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .4rem .8rem; align-items: center; margin: .3rem 0 .6rem; }
.mx-ctrl input { direction: ltr; accent-color: #0077cc; width: 100%; }
@media (max-width: 700px) { .mx-ctrl { grid-template-columns: auto 1fr; } }
.mx-svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; direction: ltr; }

/* ===== לוח הקודים ===== */
.codes-search { width: 100%; font: inherit; font-size: 1.05rem; padding: .6rem .9rem; border: 2px solid #d6e4f0; border-radius: 10px; margin: .5rem 0 1rem; }
.codes-list { display: flex; flex-direction: column; gap: .8rem; }
.code-item { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.07); border-inline-start: 5px solid #0077cc; padding: .2rem 1rem; }
.code-item summary { cursor: pointer; padding: .7rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.15rem; font-weight: bold; color: #1a3a5c; }
.code-item summary::marker { color: #0077cc; }
.ci-date { font-size: .85rem; color: #888; font-weight: normal; }
.ci-desc { color: #444; margin: 0 0 .6rem; }
.code-item .code-box { margin-bottom: 1rem; }
.ed-form { display: flex; flex-direction: column; gap: .7rem; background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.ed-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: bold; color: #1a3a5c; }
.ed-form input, .ed-form textarea { font: inherit; font-weight: normal; padding: .5rem .7rem; border: 2px solid #d6e4f0; border-radius: 8px; }
.ed-form textarea { font-family: Consolas, Menlo, monospace; font-size: .9rem; text-align: left; }
.ed-btns { display: flex; gap: .6rem; }
.ed-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: 10px; padding: .6rem .9rem; margin-bottom: .5rem; box-shadow: 0 1px 5px rgba(0,0,0,.06); flex-wrap: wrap; }
.ed-act { display: flex; gap: .3rem; flex-wrap: wrap; }
.ed-act button { font: inherit; font-size: .9rem; padding: .25rem .6rem; border-radius: 6px; border: 1px solid #adb5bd; background: #f8f9fa; cursor: pointer; }

/* ===== מנועים ===== */
.motor-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .5rem 0 1rem; }
.motor-nav a { background: #fff; border: 1.5px solid #0077cc; color: #0b5c99; border-radius: 30px; padding: .35rem 1rem; text-decoration: none; font-weight: bold; }
.panel svg { direction: ltr; }
.msim-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
@media (max-width: 760px) { .msim-wrap { grid-template-columns: 1fr; } }
.msim { width: 100%; height: auto; display: block; direction: ltr; }
.mctrl { display: flex; flex-direction: column; gap: .5rem; }
.mctrl input { width: 100%; direction: ltr; accent-color: #0077cc; }
.mbtns { display: flex; gap: .4rem; flex-wrap: wrap; }
.spin-ico { animation: spinico 2s linear infinite; }
@keyframes spinico { to { transform: rotate(360deg); } }
.cube-img svg[viewBox="0 0 320 200"] { width: 180px; height: auto; }
.gbars { display: flex; flex-direction: column; gap: .4rem; }
.gbars > div { display: grid; grid-template-columns: 60px 1fr 90px; gap: .5rem; align-items: center; }
.gbar { height: 14px; background: #e9ecef; border-radius: 7px; overflow: hidden; direction: ltr; }
.gbar div { height: 100%; transition: width .2s; }
.motor-photo { width: 100%; max-height: 260px; object-fit: contain; display: block; margin: 0 auto .4rem; }

/* ===== גשר H ===== */
.hb-photo { max-height: 300px; }
.hb-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .hb-grid { grid-template-columns: 1fr; } }
.hb-col h3 { margin: 0 0 .4rem; text-align: center; color: #0b5c99; }
.hb-col input { width: 100%; direction: ltr; accent-color: #0077cc; }
.pins { display: flex; gap: .4rem; justify-content: center; margin-bottom: .4rem; }
.pinbtn { font: inherit; font-weight: bold; padding: .4rem .8rem; border-radius: 8px; border: 2px solid #868e96; background: #f1f3f5; color: #495057; cursor: pointer; direction: ltr; }
.pinbtn.hi { background: #e03131; border-color: #c92a2a; color: #fff; }
.truth tr.hl td { background: #fff3bf !important; font-weight: bold; }
.hb-hrow { max-width: 420px; margin: .8rem auto 0; text-align: center; }
.hb-hrow h3 { color: #0b5c99; margin: 0 0 .3rem; }

/* ===== שעון 7 מקטעים ===== */
.cube-sub { display: block; font-size: .95rem; font-weight: bold; color: #0077cc; margin-top: .1rem; }
.cards-row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.cards-row .state { font-size: 1rem; }
#digBtns .pinbtn { padding: .3rem .65rem; }
#digBtns .pinbtn.hi { background: #e03131; border-color: #c92a2a; color: #fff; }
.cube.cube-2l { justify-content: center; gap: .6rem; padding: .8rem 1rem 1.4rem; }
.cube.cube-2l .cube-img { flex: 0 0 auto; height: 130px; }
.cube.cube-2l .cube-img svg { width: 150px; height: 150px; }
.cube.cube-2l .cube-title { text-align: center; line-height: 1.35; }
.cube.cube-2l .cube-sub { margin-top: .25rem; }
.ds-ser { direction: ltr; text-align: left; background: #0e1a26; color: #7dffb0; border-radius: 8px; padding: .7rem .9rem; font-size: .9rem; margin: .8rem 0 0; min-height: 240px; white-space: pre; overflow: hidden; }
.cube.cube-2l .cube-img img { max-width: 170px; max-height: 120px; object-fit: contain; }

/* ---- לוח קודים חי ---- */
.live-status{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem 0;color:#495057;font-size:1.05rem}
.live-dot{width:12px;height:12px;border-radius:50%;background:#2f9e44;box-shadow:0 0 0 0 rgba(47,158,68,.6);animation:livepulse 2s infinite}
.live-dot.off{background:#adb5bd;animation:none}
@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(47,158,68,.6)}70%{box-shadow:0 0 0 10px rgba(47,158,68,0)}100%{box-shadow:0 0 0 0 rgba(47,158,68,0)}}
.live-refresh{border:1px solid #ced4da;background:#fff;border-radius:8px;padding:.25rem .7rem;cursor:pointer;font:inherit}
.code-box.flash{animation:liveflash 1.2s}
@keyframes liveflash{0%{box-shadow:0 0 0 4px #ffd43b}100%{box-shadow:0 0 0 4px transparent}}
.teacher-form{max-width:820px;margin:1rem auto;display:flex;flex-direction:column;gap:.45rem;background:#fff;border-radius:14px;padding:1.2rem;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.teacher-form label{font-weight:bold;margin-top:.4rem}
.teacher-form label.chk{font-weight:normal;margin-top:0}
.teacher-form input[type=text],.teacher-form input[type=password]{font:inherit;padding:.55rem .7rem;border:1px solid #ced4da;border-radius:8px}
.teacher-form textarea{min-height:340px;font:14px/1.5 Consolas,"Courier New",monospace;padding:.7rem;border:1px solid #ced4da;border-radius:8px;background:#0e1a26;color:#e9ecef;text-align:left}
.teacher-btns{display:flex;gap:.6rem;margin-top:.6rem}.teacher-btns .bigbtn{flex:1}
.teacher-msg{min-height:1.5em;font-weight:bold;text-align:center}.teacher-msg.ok{color:#2f9e44}.teacher-msg.err{color:#c92a2a}

/* ---- ארכיון קודים: מורה ---- */
.tabs-t{display:flex;gap:.5rem;justify-content:center;margin:1.2rem 0 .4rem;flex-wrap:wrap}
.tabs-t button{font:inherit;font-weight:bold;padding:.6rem 1.2rem;border-radius:10px;border:2px solid #0077cc;background:#fff;color:#0077cc;cursor:pointer}
.tabs-t button.on{background:#0077cc;color:#fff}
.linkbtn{background:none;border:none;color:#0077cc;font:inherit;cursor:pointer;text-decoration:underline;margin-top:.4rem}
.arc-list{display:flex;flex-direction:column;gap:.6rem;max-width:820px;margin:0 auto}
.arc-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#fff;border-radius:12px;padding:.7rem 1rem;box-shadow:0 2px 8px rgba(0,0,0,.07);border-inline-start:5px solid #0077cc;flex-wrap:wrap}
.arc-info{display:flex;flex-direction:column;gap:.15rem;min-width:200px;flex:1}
.arc-info span{color:#555;font-size:.92rem}.arc-info small{color:#999}
.arc-btns{display:flex;gap:.35rem;flex-wrap:wrap}
.arc-btns button{font:inherit;font-size:.9rem;padding:.35rem .6rem;border-radius:8px;border:1px solid #ced4da;background:#f8f9fa;cursor:pointer}
.arc-btns button:disabled{opacity:.35;cursor:default}
.arc-btns button.del{color:#c92a2a;border-color:#ffc9c9}

/* ---- תרגיל 6: LCD ---- */
.lcd6{display:block;max-width:640px;margin:0 auto;background:#2a8a3a;padding:clamp(8px,2.5vw,18px);border-radius:10px;border:3px solid #1d5f28}
.lcd6-screen{display:grid;grid-template-columns:repeat(16,1fr);gap:clamp(1px,.5vw,3px);background:#2f4fd0;padding:clamp(5px,1.5vw,12px);border-radius:4px;border:4px solid #1d2f8a}
.lcd6-c{aspect-ratio:.68;display:flex;align-items:center;justify-content:center;background:#3b62e6;color:#eef6ff;font:bold clamp(10px,3.2vw,28px) Consolas,"Courier New",monospace;border-radius:2px;min-width:0}

/* ===== דפי Arduino IDE (התקנה + סיור) ===== */
.ide-note { background:#fff4e0; border-inline-start:4px solid #f08c00; padding:.6rem .9rem; border-radius:8px; margin:1rem 0; }
.ide-warn { background:#fdecea; border-inline-start:4px solid #c0392b; padding:.6rem .9rem; border-radius:8px; margin:1rem 0; }
.ide-ok { background:#e6f6ee; border-inline-start:4px solid #1D9E75; padding:.6rem .9rem; border-radius:8px; margin:1rem 0; }
.ide-toc { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 1.5rem; }
.ide-toc a { background:#fff; border:2px solid #0077cc; border-radius:30px; padding:.3rem 1rem; text-decoration:none; color:#0b5c99; font-weight:600; }
.ide-toc a:hover { background:#0077cc; color:#fff; }
.os-tabs { display:flex; gap:.6rem; margin:1.2rem 0 .4rem; flex-wrap:wrap; }
.os-tabs button { font:inherit; font-size:1.05rem; font-weight:700; padding:.5rem 1.4rem; border-radius:12px; border:2px solid #0077cc; background:#fff; color:#0b5c99; cursor:pointer; }
.os-tabs button.on { background:#0077cc; color:#fff; }
.os-pane[hidden] { display:none; }
.istep { background:#fff; border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.07); padding:1rem 1.2rem 1.2rem; margin:1.4rem 0; border-top:6px solid #0077cc; }
.step-h { display:flex; align-items:center; gap:.7rem; margin-bottom:.4rem; }
.step-n { flex:0 0 auto; width:2.2rem; height:2.2rem; border-radius:50%; background:#0077cc; color:#fff; font-weight:800; display:grid; place-items:center; font-size:1.1rem; }
.step-h h3 { margin:0; font-size:1.3rem; color:#1a3a5c; }
.istep ol, .istep ul { padding-inline-start:1.4rem; margin:.4rem 0 .6rem; }
.istep li { margin-bottom:.3rem; }
.istep kbd, .lesson kbd { direction:ltr; unicode-bidi:embed; display:inline-block; background:#f3f3f3; border:1px solid #bbb; border-bottom-width:3px; border-radius:6px; padding:0 .4rem; font-family:Consolas, Menlo, monospace; font-size:.9em; }
.istep code { direction:ltr; unicode-bidi:embed; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:.8rem; }
.pair.one { grid-template-columns:1fr; }
@media (max-width: 860px) { .pair { grid-template-columns:1fr; } }
.pair > figure { margin:0; border-radius:12px; padding:.6rem; display:flex; flex-direction:column; gap:.5rem; }
.pair .act { background:#eef5fc; border:2px solid #0077cc; }
.pair .res { background:#e9f7f0; border:2px solid #1D9E75; }
.pair .bad { background:#fdecea; border:2px solid #c0392b; }
.pair .tag { align-self:flex-start; font-weight:800; font-size:.95rem; border-radius:20px; padding:.1rem .8rem; color:#fff; }
.pair .act .tag { background:#0077cc; }
.pair .res .tag { background:#1D9E75; }
.pair .bad .tag { background:#c0392b; }
.pair figcaption { font-size:.97rem; line-height:1.55; color:#333; }
.legend-t { width:100%; border-collapse:collapse; margin:.8rem 0; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.06); }
.legend-t th, .legend-t td { padding:.45rem .7rem; border-bottom:1px solid #eee; text-align:right; vertical-align:top; }
.legend-t th { background:#f3f8fc; color:#0b5c99; }
.legend-t td.k { white-space:nowrap; direction:ltr; text-align:right; }
.badge-n { display:inline-grid; place-items:center; width:1.6rem; height:1.6rem; border-radius:50%; background:#f08c00; color:#fff; font-weight:800; font-size:.9rem; }

/* --- חלון מדומה כללי --- */
.mock { direction:ltr; text-align:left; container-type:inline-size; width:100%; font-family:"Segoe UI", -apple-system, Arial, sans-serif; }
.mock * { box-sizing:border-box; }
.mwin { position:relative; background:#fff; border:1px solid #9aa6b2; border-radius:8px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.15); font-size:clamp(8px, 2.5cqi, 13px); line-height:1.35; color:#1d1d1d; }
.mwin .tbar { display:flex; align-items:center; gap:.6em; padding:.45em .7em; background:#f0f0f0; border-bottom:1px solid #d5d5d5; font-size:.95em; }
.mwin .tbar .tt { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mwin .tbar.mac { justify-content:center; position:relative; background:#ececec; }
.mwin .tbar.mac .tt { flex:0 1 auto; text-align:center; }
.mac-dots { position:absolute; left:.7em; top:50%; transform:translateY(-50%); display:flex; gap:.4em; }
.mac-dots i { width:.95em; height:.95em; border-radius:50%; display:block; }
.mac-dots i:nth-child(1){background:#ff5f57} .mac-dots i:nth-child(2){background:#febc2e} .mac-dots i:nth-child(3){background:#28c840}
.win-x { display:flex; gap:1.1em; color:#555; font-size:.95em; }
.mbody { padding:1em 1.2em; }
.mbody h4 { margin:0 0 .6em; font-size:1.15em; }
.mbody p { margin:0 0 .6em; }
.wbtns { display:flex; justify-content:flex-end; gap:.6em; padding:.7em 1em; background:#f5f5f5; border-top:1px solid #e0e0e0; flex-wrap:wrap; }
.mbtn { border:1px solid #adadad; background:#e9e9e9; padding:.35em 1.3em; border-radius:4px; font-size:1em; white-space:nowrap; }
.mbtn.pri { background:#0067c0; color:#fff; border-color:#0067c0; }
.mbtn.mac { border-radius:6px; background:#fff; }
.mbtn.mac.pri { background:#0a84ff; border-color:#0a84ff; color:#fff; }
.mbox { border:1px solid #c8c8c8; background:#fff; padding:.5em .7em; height:6.5em; overflow:hidden; font-size:.9em; color:#444; }
.mradio { display:flex; align-items:center; gap:.5em; margin:.35em 0; }
.mradio i { width:1em; height:1em; border:1px solid #666; border-radius:50%; display:inline-block; position:relative; }
.mradio i.on::after { content:""; position:absolute; inset:.2em; border-radius:50%; background:#0067c0; }
.mchk { display:flex; align-items:center; gap:.5em; margin:.35em 0; }
.mchk i { width:1em; height:1em; border:1px solid #666; display:inline-grid; place-items:center; font-style:normal; font-size:.85em; background:#fff; }
.mchk i.on { background:#0067c0; border-color:#0067c0; color:#fff; }
.minput { border:1px solid #9a9a9a; background:#fff; padding:.3em .5em; font-family:Consolas, Menlo, monospace; font-size:.9em; flex:1; }
.mprog { height:.9em; background:#e6e6e6; border:1px solid #bcbcbc; border-radius:2px; overflow:hidden; margin:.6em 0; }
.mprog > div { height:100%; background:#06b025; }
.mside-img { display:flex; gap:1em; align-items:flex-start; }
.wiz-banner { width:28%; min-height:11em; background:linear-gradient(160deg,#00979d,#005c5f); border-radius:3px; flex:0 0 auto; }
.hl { outline:3px solid #f08c00 !important; outline-offset:2px; border-radius:4px; animation:hlpulse 1.4s ease-in-out infinite; position:relative; z-index:3; }
@keyframes hlpulse { 50% { outline-color:#ffbf66; box-shadow:0 0 0 6px rgba(240,140,0,.25); } }
.ptr { position:absolute; right:-1.1em; bottom:-1.3em; width:1.7em; height:1.7em; z-index:9; pointer-events:none; filter:drop-shadow(1px 1px 1px rgba(0,0,0,.35)); }

/* --- דפדפן מדומה --- */
.mbrowser .addr { display:flex; align-items:center; gap:.5em; padding:.4em .7em; background:#f3f3f3; border-bottom:1px solid #ddd; }
.mbrowser .addr span { flex:1; background:#fff; border:1px solid #ddd; border-radius:20px; padding:.2em .8em; color:#333; }
.dl-page { padding:1em 1.2em; background:#fff; }
.dl-hero { background:#0b3b3e; color:#fff; border-radius:6px; padding:1em; display:flex; gap:1em; flex-wrap:wrap; align-items:flex-start; }
.dl-hero h4 { margin:0 0 .3em; font-size:1.3em; }
.dl-opts { background:#fff; color:#222; border-radius:6px; padding:.5em .7em; min-width:55%; flex:1; }
.dl-opts div { padding:.3em .3em; border-bottom:1px solid #eee; }
.dl-opts div:last-child { border:0; }
.dl-opts b { color:#00878f; }

/* --- Finder / DMG מדומה --- */
.dmg { display:flex; justify-content:space-around; align-items:center; padding:2em 1em; background:#fafafa; min-height:11em; position:relative; }
.dmg .ico { display:flex; flex-direction:column; align-items:center; gap:.4em; font-size:.95em; z-index:2; }
.dmg .app { width:4.2em; height:4.2em; border-radius:22%; background:linear-gradient(145deg,#00a3aa,#006a70); display:grid; place-items:center; color:#fff; font-weight:800; font-size:1.05em; }
.dmg .fold { width:4.6em; height:3.8em; background:#6cb4f5; border-radius:.35em; position:relative; display:grid; place-items:center; color:#fff; font-size:1.4em; }
.dmg .arrowline { position:absolute; left:32%; right:32%; top:45%; border-top:.25em dashed #f08c00; }
.dmg .arrowline::after { content:""; position:absolute; right:-.3em; top:-.65em; border:.55em solid transparent; border-left:.8em solid #f08c00; }
.mac-alert { width:72%; margin:1.2em auto; background:#f6f6f6; border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,.25); padding:1.2em; text-align:center; }
.mac-alert .app { width:3.2em; height:3.2em; border-radius:22%; background:linear-gradient(145deg,#00a3aa,#006a70); margin:0 auto .6em; }
.mac-alert p { margin:0 0 .5em; font-size:.92em; }
.mac-alert .mbtn { display:block; margin:.35em 0; }
.desk { background:linear-gradient(135deg,#3a6ea5,#6d9fcf); padding:1em; }

/* --- Arduino IDE מדומה --- */
.ide-mac-menubar { background:#e8e8e8; border-bottom:1px solid #ccc; padding:.25em .7em; display:flex; gap:1.2em; font-size:.92em; }
.ide-mac-menubar b { font-weight:700; }
.ide-menu { display:flex; gap:1.3em; padding:.3em .8em; background:#fff; border-bottom:1px solid #e3e3e3; font-size:.95em; position:relative; }
.ide-menu span { padding:0 .2em; }
.ide-tb { display:flex; align-items:center; gap:.55em; padding:.5em .8em; background:#fff; border-bottom:1px solid #e3e3e3; }
.tb-btn { width:2.2em; height:2.2em; border-radius:50%; background:#008184; display:grid; place-items:center; flex:0 0 auto; }
.tb-btn svg, .tb-ico svg, .ide-side svg { width:60%; height:60%; }
.tb-btn.dis { background:#c9d3d3; }
.board-sel { margin-left:.6em; display:flex; align-items:center; gap:.5em; border:1px solid #c5d1d1; border-radius:4px; padding:.3em .7em; min-width:13em; background:#fff; font-size:.95em; white-space:nowrap; }
.board-sel .usb { width:1.1em; height:1.1em; }
.board-sel .car { margin-left:auto; color:#666; }
.board-sel.none { color:#555; }
.tb-right { margin-left:auto; display:flex; gap:.6em; }
.tb-ico { width:2.2em; height:2.2em; border-radius:50%; border:1px solid #c5d1d1; display:grid; place-items:center; background:#fff; }
.ide-body { display:flex; min-height:22em; position:relative; }
.ide-side { width:2.9em; background:#f3f6f6; border-right:1px solid #e3e3e3; display:flex; flex-direction:column; align-items:center; gap:.5em; padding:.6em 0; flex:0 0 auto; }
.ide-side span { width:2.2em; height:2.2em; display:grid; place-items:center; border-radius:4px; }
.ide-side span.on { background:#dfeeee; box-shadow:inset 3px 0 0 #008184; }
.ide-panel { width:34%; min-width:12em; border-right:1px solid #e3e3e3; background:#fbfbfb; padding:.6em; font-size:.92em; flex:0 0 auto; }
.ide-panel h5 { margin:0 0 .5em; font-size:.95em; letter-spacing:.04em; color:#444; }
.ide-panel .search { border:1px solid #c5d1d1; background:#fff; padding:.3em .5em; border-radius:3px; margin-bottom:.6em; }
.ide-panel .item { border-bottom:1px solid #e5e5e5; padding:.5em 0; }
.ide-panel .item b { display:block; }
.ide-panel .item small { color:#666; display:block; margin:.2em 0; }
.ide-panel .ibtn { display:inline-block; margin-top:.3em; border:1px solid #008184; color:#008184; border-radius:3px; padding:.15em .8em; font-weight:700; font-size:.9em; }
.ide-panel .ibtn.fill { background:#008184; color:#fff; }
.ide-panel .inst { color:#008184; font-weight:700; font-size:.85em; }
.ide-main { flex:1; display:flex; flex-direction:column; min-width:0; }
.ide-tabs { display:flex; background:#f3f6f6; border-bottom:1px solid #e3e3e3; }
.ide-tabs span { padding:.35em 1em; background:#fff; border-right:1px solid #e3e3e3; border-top:2px solid #008184; font-size:.92em; }
.ide-editor { flex:1; background:#fff; font-family:Consolas, Menlo, monospace; font-size:.92em; padding:.4em 0; overflow:hidden; }
.ide-editor div { white-space:pre; padding-left:.5em; min-height:1.35em; }
.ide-editor div i { display:inline-block; width:2.2em; color:#9aa; font-style:normal; text-align:right; margin-right:1em; }
.ide-editor div.err { background:#fde2e2; }
.ide-editor div.err u { text-decoration:wavy underline #d00; }
.ide-editor .k { color:#00979d; } .ide-editor .t { color:#728e00; } .ide-editor .c { color:#95a5a6; } .ide-editor .s { color:#005c5f; } .ide-editor .n { color:#8a5a00; } .ide-editor .f { color:#d35400; }
.ide-bottom { border-top:1px solid #d5dede; background:#fff; height:9.5em; display:flex; flex-direction:column; }
.ide-bottom .bt { display:flex; align-items:center; gap:1em; padding:.25em .7em; background:#f3f6f6; font-size:.88em; border-bottom:1px solid #e3e3e3; }
.ide-bottom .bt b { border-bottom:2px solid #008184; }
.ide-bottom .bt .sp { margin-left:auto; display:flex; gap:.5em; align-items:center; }
.ide-bottom .bt .dd { border:1px solid #c5d1d1; background:#fff; padding:.05em .5em; border-radius:3px; }
.ide-bottom .out { flex:1; font-family:Consolas, Menlo, monospace; font-size:.88em; padding:.4em .7em; white-space:pre-wrap; overflow:hidden; color:#333; }
.ide-bottom .out .e { color:#d00; } .ide-bottom .out .g { color:#1a7f37; }
.ide-bottom .msg { display:flex; gap:.5em; padding:.3em .7em; border-bottom:1px solid #eee; font-size:.88em; }
.ide-bottom .msg .minput { color:#888; font-family:inherit; }
.ide-status { display:flex; gap:1.5em; align-items:center; padding:.25em .8em; background:#008184; color:#fff; font-size:.85em; }
.ide-status .r { margin-left:auto; }
.ide-dd { position:absolute; z-index:6; background:#fff; border:1px solid #b9c6c6; box-shadow:0 6px 18px rgba(0,0,0,.18); border-radius:4px; font-size:.95em; min-width:16em; }
.ide-dd div { padding:.45em .8em; display:flex; gap:.6em; align-items:center; white-space:nowrap; }
.ide-dd div.sel { background:#dfeeee; }
.ide-dd div.sep { border-top:1px solid #e3e3e3; color:#008184; font-weight:600; }
.ide-dd small { color:#777; margin-left:auto; padding-left:1em; }
.ide-toast { position:absolute; right:.8em; bottom:2.4em; z-index:7; background:#fff; border:1px solid #c5d1d1; border-left:4px solid #008184; box-shadow:0 4px 14px rgba(0,0,0,.18); padding:.5em .8em; border-radius:4px; min-width:13em; font-size:.92em; }
.ide-toast.err { border-left-color:#d00; }
.ide-toast .bar { height:.35em; background:#e3eeee; margin-top:.4em; border-radius:3px; overflow:hidden; }
.ide-toast .bar div { width:55%; height:100%; background:#008184; }
.ide-dlg { position:absolute; inset:0; background:rgba(0,0,0,.28); z-index:8; display:grid; place-items:center; }
.ide-dlg > div { background:#fff; border-radius:6px; width:78%; padding:1em 1.2em; box-shadow:0 8px 28px rgba(0,0,0,.3); font-size:.95em; }
.ide-dlg h5 { margin:0 0 .5em; font-size:1.05em; }
.ide-dlg .row { display:flex; justify-content:flex-end; gap:.5em; margin-top:.8em; flex-wrap:wrap; }
.ide-dlg .row span { border:1px solid #008184; color:#008184; padding:.25em .8em; border-radius:3px; font-weight:700; font-size:.88em; }
.ide-dlg .row span.fill { background:#008184; color:#fff; }
.plot-win { position:absolute; right:3%; top:16%; width:62%; z-index:7; }
.plot-win svg { display:block; width:100%; height:auto; background:#fff; }
.mini-board { display:flex; align-items:center; gap:.8rem; background:#fff; border-radius:10px; padding:.4rem .8rem; font-size:.95rem; }
.mini-board svg { width:110px; height:auto; flex:0 0 auto; direction:ltr; }
.blink-led { animation:blinkled 2s steps(1) infinite; }
@keyframes blinkled { 50% { fill:#3b3b3b; } }
.is-mac .os-w { display:none; }
body:not(.is-mac) .os-m { display:none; }
main[data-ide] code { direction:ltr; unicode-bidi:isolate; }
.keys { direction:ltr; unicode-bidi:isolate; display:inline-block; white-space:nowrap; }
.pair.one > figure > .mock { max-width:680px; margin:0 auto; }
@media (max-width: 600px) {
  .legend-t td.k { white-space:normal; }
  .legend-t td.k code { word-break:break-all; }
  .legend-t th, .legend-t td { padding:.4rem .45rem; font-size:.93rem; }
  .istep { padding:.8rem .7rem 1rem; }
}
.mock, .pair > figure { min-width:0; }
.ide-editor div { overflow:hidden; text-overflow:clip; }

/* ===== מבנה בסיסי של תוכנית ===== */
.prog-box { background:#fff; border:3px solid #0077cc; border-radius:16px; margin:2rem 0; box-shadow:8px 8px 0 #0b5c99, 8px 8px 16px rgba(0,0,0,.15); overflow:hidden; }
.prog-box > h2 { margin:0; padding:.7rem 1.2rem; background:#0077cc; color:#fff; font-size:1.5rem; display:flex; align-items:center; gap:.7rem; }
.prog-box > h2 .pb-n { background:#fff; color:#0077cc; width:2rem; height:2rem; border-radius:50%; display:grid; place-items:center; font-size:1.1rem; flex:0 0 auto; }
.prog-box.b2 { border-color:#1D9E75; box-shadow:8px 8px 0 #147a5a, 8px 8px 16px rgba(0,0,0,.15); }
.prog-box.b2 > h2 { background:#1D9E75; } .prog-box.b2 > h2 .pb-n { color:#1D9E75; }
.prog-box.b3 { border-color:#d9480f; box-shadow:8px 8px 0 #a8380b, 8px 8px 16px rgba(0,0,0,.15); }
.prog-box.b3 > h2 { background:#d9480f; } .prog-box.b3 > h2 .pb-n { color:#d9480f; }
.pb-body { padding:1rem 1.3rem 1.4rem; }
.pb-body h3 { color:#0b5c99; margin:1.4rem 0 .5rem; font-size:1.25rem; }
.pb-body code, .cmd code { direction:ltr; unicode-bidi:isolate; background:#eef3f7; padding:0 5px; border-radius:4px; font-family:Consolas, Menlo, monospace; }
.code-box pre code { background:none; padding:0; }
.kw { font-weight:800; color:#0b5c99; direction:ltr; unicode-bidi:isolate; font-family:Consolas, Menlo, monospace; font-size:1.05em; }
.pflow { display:flex; flex-wrap:wrap; align-items:stretch; justify-content:center; gap:.5rem; margin:1rem 0; }
.pflow .fs { flex:1 1 150px; max-width:220px; background:#f3f8fc; border:2px solid #9fc3e6; border-radius:12px; padding:.6rem .7rem; text-align:center; }
.pflow .fs b { display:block; color:#0b5c99; }
.pflow .fs small { color:#555; display:block; line-height:1.4; }
.pflow .fs.s { border-color:#0077cc; background:#e3f0fb; }
.pflow .fs.l { border-color:#1D9E75; background:#e6f6ee; position:relative; }
.pflow .fs.l::after { content:"↻"; position:absolute; top:-.9rem; left:-.6rem; background:#1D9E75; color:#fff; border-radius:50%; width:1.8rem; height:1.8rem; display:grid; place-items:center; font-size:1.1rem; animation:spinl 2.5s linear infinite; }
@keyframes spinl { to { transform:rotate(-360deg); } }
.pflow .ar { align-self:center; font-size:1.6rem; color:#9fb3c8; }
.zones { direction:ltr; border-radius:12px; overflow:hidden; margin:1rem 0; font-family:Consolas, Menlo, monospace; font-size:.92rem; }
.zone { display:flex; align-items:stretch; }
.zone pre { flex:1; margin:0; padding:.6rem .9rem; color:#e6eef5; background:#0e1a26; white-space:pre; overflow-x:auto; line-height:1.55; }
.zone .zl { direction:rtl; flex:0 0 9.5rem; padding:.6rem .7rem; color:#fff; font-family:"Segoe UI", Arial, sans-serif; font-size:.92rem; line-height:1.4; display:flex; align-items:center; }
.zone.z1 .zl { background:#7048e8; } .zone.z1 pre { border-left:6px solid #7048e8; }
.zone.z2 .zl { background:#0077cc; } .zone.z2 pre { border-left:6px solid #0077cc; }
.zone.z3 .zl { background:#1D9E75; } .zone.z3 pre { border-left:6px solid #1D9E75; }
.zone .cm { color:#8fa3b8; }
@media (max-width:600px) { .zone { flex-direction:column; } .zone .zl { flex-basis:auto; } }
.cmd { border:1px solid #dde7ef; border-inline-start:6px solid #1D9E75; border-radius:12px; padding:.8rem 1rem; margin:1rem 0; background:#fbfdfc; }
.prog-box.b3 .cmd { border-inline-start-color:#d9480f; }
.cmd h3 { margin:0 0 .4rem !important; display:flex; flex-wrap:wrap; gap:.6rem; align-items:baseline; }
.cmd h3 .nm { direction:ltr; unicode-bidi:isolate; font-family:Consolas, Menlo, monospace; color:#1a3a5c; }
.cmd h3 .what { font-size:.95rem; font-weight:600; color:#555; }
.syn { direction:ltr; text-align:left; background:#0e1a26; color:#ffd479; font-family:Consolas, Menlo, monospace; padding:.45rem .8rem; border-radius:8px; margin:.4rem 0 .6rem; overflow-x:auto; white-space:pre; }
.cmd ul { padding-inline-start:1.3rem; margin:.3rem 0; }
.cmd li { margin-bottom:.25rem; }
.cmd .code-box { margin-top:.6rem; }
.good-bad { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; margin:.6rem 0; }
@media (max-width:700px) { .good-bad { grid-template-columns:1fr; } }
.good-bad > div { border-radius:10px; padding:.5rem .7rem; }
.good-bad .g { background:#e6f6ee; border:2px solid #1D9E75; }
.good-bad .b { background:#fdecea; border:2px solid #c0392b; }
.good-bad pre { direction:ltr; text-align:left; margin:.3rem 0 0; font-family:Consolas, Menlo, monospace; white-space:pre-wrap; }
.pwm-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:.6rem 0; direction:ltr; }
.pwm { flex:1 1 110px; background:#f3f8fc; border-radius:10px; padding:.4rem; text-align:center; font-size:.85rem; }
.pwm svg { width:100%; height:34px; display:block; }
.pwm b { font-family:Consolas, Menlo, monospace; }
.runsim { display:grid; grid-template-columns:1.4fr 1fr; gap:1rem; margin:1rem 0; align-items:start; }
@media (max-width:760px) { .runsim { grid-template-columns:1fr; } }
.runsim .lines { direction:ltr; background:#0e1a26; border-radius:12px; padding:.5rem 0; font-family:Consolas, Menlo, monospace; font-size:.92rem; color:#e6eef5; }
.runsim .lines div { padding:.1rem .9rem; white-space:pre; border-left:4px solid transparent; transition:background .15s; }
.runsim .lines div.cur { background:#22405c; border-left-color:#f08c00; }
.runsim .panel-r { background:#f3f8fc; border-radius:12px; padding:.8rem 1rem; text-align:center; }
.runsim .cnt { display:flex; justify-content:center; gap:1rem; margin:.6rem 0; flex-wrap:wrap; }
.runsim .cnt div { background:#fff; border-radius:10px; padding:.4rem .8rem; min-width:7rem; }
.runsim .cnt b { display:block; font-size:1.6rem; }
.runsim .msg { min-height:3em; color:#333; }
.sim-led { width:46px; height:46px; border-radius:50%; margin:.3rem auto; background:#5a2a2a; border:3px solid #3b1b1b; transition:all .1s; }
.sim-led.on { background:#ff3b30; box-shadow:0 0 22px rgba(255,59,48,.8); border-color:#b71c1c; }
.runsim button { font:inherit; padding:.35rem 1rem; border-radius:8px; border:2px solid #0077cc; background:#fff; color:#0b5c99; font-weight:700; cursor:pointer; margin:.2rem; }
.runsim button.on { background:#0077cc; color:#fff; }
.cmp-t { width:100%; border-collapse:collapse; margin:.8rem 0; }
.cmp-t th, .cmp-t td { border:1px solid #dde7ef; padding:.4rem .6rem; text-align:right; vertical-align:top; }
.cmp-t th { background:#f3f8fc; color:#0b5c99; }
.cmp-t td.lc { direction:ltr; text-align:left; font-family:Consolas, Menlo, monospace; white-space:nowrap; }
@media (max-width:600px) { .cmp-t td.lc { white-space:normal; word-break:break-all; } }
@media (max-width:700px) { .pflow { flex-direction:column; align-items:center; } .pflow .fs { max-width:none; width:100%; flex:0 0 auto; } .pflow .ar { transform:rotate(-90deg); line-height:1; } }
@media (max-width:600px) { .legend-t .keys { white-space:normal; display:inline; } .legend-t td.k { font-size:.85rem; } }
@media (max-width:600px) { .legend-t td, .legend-t th { overflow-wrap:anywhere; } .legend-t td.k code { white-space:normal; } }

/* ===== הרכבת מכונית: חלקים ===== */
.parts-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:1.3rem; margin:1.5rem 0; }
.part-card { background:#fff; border:3px solid #0077cc; border-radius:16px; box-shadow:6px 6px 0 #0b5c99; overflow:hidden; display:flex; flex-direction:column; margin:0; }
.part-card button { all:unset; cursor:zoom-in; display:block; background:#fff; padding:.8rem; }
.part-card img { width:100%; height:190px; object-fit:contain; display:block; }
.part-card figcaption { background:#f3f8fc; border-top:2px solid #dbe8f4; padding:.6rem .9rem .8rem; flex:1; }
.part-card figcaption b { display:block; font-size:1.2rem; color:#1a3a5c; margin-bottom:.25rem; }
.part-card figcaption span { font-size:.95rem; color:#444; line-height:1.5; }
.part-card .pnum { display:inline-grid; place-items:center; width:1.7rem; height:1.7rem; border-radius:50%; background:#f08c00; color:#fff; font-weight:800; font-size:.95rem; margin-inline-end:.4rem; vertical-align:middle; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; flex-direction:column; gap:.8rem; z-index:1000; padding:1rem; cursor:zoom-out; }
.lightbox.open { display:flex; }
.lightbox img { max-width:92vw; max-height:80vh; background:#fff; border-radius:12px; padding:.6rem; }
.lightbox p { color:#fff; font-size:1.2rem; font-weight:700; margin:0; }
.asm-fig { margin:1rem auto; max-width:620px; background:#fff; border:2px solid #dde7ef; border-radius:14px; padding:.6rem; }
.asm-svg { width:100%; height:auto; display:block; }
.video-wrap { position:relative; width:100%; max-width:800px; margin:1rem auto; aspect-ratio:16/9; border-radius:14px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,.18); background:#000; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.yt-btn { display:inline-block; background:#d62828; color:#fff !important; text-decoration:none; font-weight:800; padding:.6rem 1.4rem; border-radius:30px; font-size:1.1rem; box-shadow:0 3px 0 #9b1c1c; }
.yt-btn:hover { background:#b71c1c; }
.asm-fig.wide-fig { max-width:900px; }
.istep h4 { color:#0b5c99; font-size:1.15rem; margin:1.3rem 0 .4rem; }
.wsw { display:inline-block; width:22px; height:8px; border-radius:4px; vertical-align:middle; margin-inline-end:.3rem; }
@media (max-width:760px) { .asm-fig.wide-fig { overflow-x:auto; -webkit-overflow-scrolling:touch; } .asm-fig.wide-fig svg { min-width:720px; } .asm-fig.wide-fig::before { content:"↔ גוללים הצידה כדי לראות את כל התרשים"; display:block; font-size:.85rem; color:#666; text-align:center; margin-bottom:.3rem; position:sticky; right:0; } }

/* ===== סימולציית מכונית ===== */
.carsim { display:grid; grid-template-columns:1.6fr 1fr; gap:1rem; margin:1rem 0; align-items:start; }
@media (max-width:820px) { .carsim { grid-template-columns:1fr; } }
.cs-arena { position:relative; background:#fff; border:2px solid #dde7ef; border-radius:14px; overflow:hidden; }
.cs-arena svg { display:block; width:100%; height:auto; }
.cs-state { position:absolute; top:.6rem; right:.6rem; background:#1a3a5c; color:#fff; font-weight:800; border-radius:20px; padding:.2rem .9rem; font-size:.95rem; }
.cs-side { background:#f3f8fc; border-radius:14px; padding:.8rem; }
.cs-pad { display:grid; grid-template-columns:repeat(3, 1fr); grid-template-areas:". up ." "rt st lt" ". dn ."; gap:.4rem; max-width:270px; margin:0 auto .8rem; direction:ltr; }
.cs-pad .up { grid-area:up; } .cs-pad .dn { grid-area:dn; } .cs-pad .lt { grid-area:rt; } .cs-pad .rt { grid-area:lt; } .cs-pad .st { grid-area:st; }
.cs-pad button { font:inherit; font-size:1.3rem; font-weight:800; border:2px solid #0077cc; background:#fff; color:#0b5c99; border-radius:12px; padding:.45rem .2rem .35rem; cursor:pointer; display:flex; flex-direction:column; align-items:center; line-height:1.1; box-shadow:0 3px 0 #0b5c99; }
.cs-pad button span { font-size:.85rem; margin-top:.2rem; }
.cs-pad button.st { border-color:#c0392b; color:#c0392b; box-shadow:0 3px 0 #8e2a20; }
.cs-pad button.on { background:#0077cc; color:#fff; }
.cs-pad button.st.on { background:#c0392b; color:#fff; }
.cs-pad button:active { transform:translateY(2px); box-shadow:none; }
.cs-pins { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; font-size:.92rem; }
.cs-pins th, .cs-pins td { padding:.3rem .5rem; border-bottom:1px solid #e5edf3; text-align:right; }
.cs-pins th { color:#0b5c99; background:#eef5fc; }
.cs-pins td[id] { font-family:Consolas, Menlo, monospace; font-weight:800; color:#868e96; direction:ltr; text-align:left; }
.cs-pins td.hi { color:#fff; background:#2f9e44; }
.cs-sides { display:flex; gap:.5rem; margin:.7rem 0; }
.cs-sides div { flex:1; background:#fff; border-radius:10px; padding:.4rem; text-align:center; font-size:.9rem; color:#555; }
.cs-sides b { display:block; font-size:1.1rem; color:#1a3a5c; }
.cs-code { background:#0e1a26; color:#ffd479; border-radius:8px; padding:.5rem .8rem; margin:0 0 .6rem; font-size:1rem; text-align:left; }
.cs-reset { font:inherit; border:1px solid #9fb3c8; background:#fff; border-radius:8px; padding:.3rem .8rem; cursor:pointer; color:#1a3a5c; }
@media (max-width:600px) { .cmp-t th, .cmp-t td { padding:.35rem .3rem; font-size:.85rem; } }
.cs-code code { background:none !important; color:inherit !important; padding:0; font-weight:700; }

/* ===== סימולציית ממסר ===== */
.rsim { background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,.07); padding:1rem; margin:1rem 0; }
.rs-ctrls { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:flex-end; margin-bottom:.8rem; }
.rs-group span { display:block; font-weight:700; color:#1a3a5c; margin-bottom:.3rem; font-size:.95rem; }
.seg { display:inline-flex; border:2px solid #0077cc; border-radius:12px; overflow:hidden; }
.seg button { font:inherit; font-weight:800; border:0; background:#fff; color:#0b5c99; padding:.4rem 1rem; cursor:pointer; }
.seg button + button { border-inline-start:2px solid #0077cc; }
.seg button.on { background:#0077cc; color:#fff; }
.rs-snd { font-size:.9rem; color:#555; display:flex; align-items:center; gap:.3rem; }
.rs-stage svg { width:100%; height:auto; display:block; }
.rs-status { margin-top:.6rem; background:#f3f3f3; border-radius:10px; padding:.6rem .9rem; line-height:1.7; font-size:1rem; }
.rs-status.ok { background:#e6f6ee; }
.rs-flow { stroke-dasharray:10 8; animation:rsflow .6s linear infinite; }
@keyframes rsflow { to { stroke-dashoffset:-18; } }
.opsim { background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,.07); padding:1rem; margin:1rem 0; }
.opsim svg { width:100%; height:auto; display:block; }
.lc2 { direction:ltr; unicode-bidi:isolate; font-family:Consolas, Menlo, monospace; font-weight:700; background:#eef3f7; padding:0 4px; border-radius:4px; }

/* ===== לוח הרחבה: תמונה + איור זה לצד זה ===== */
.board-duo { display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start; }
@media (max-width:800px) { .board-duo { grid-template-columns:1fr; } }
.board-duo figure { margin:0; }
.duo-cap { text-align:center; font-weight:700; color:#1a3a5c; margin-bottom:.4rem; }
#hl2 { fill:none; stroke:#ffd166; stroke-width:5; stroke-dasharray:14 7; pointer-events:none; display:none; animation:hlmove 1s linear infinite; filter:drop-shadow(0 0 6px rgba(255,209,102,.9)); }
.duo-photo .hot:hover, .duo-photo .hot:focus { fill-opacity:.28; }

/* ===== חיישן IR ===== */
.specbox { background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,.07); padding:1rem; margin:1rem 0; }
.specbox svg { width:100%; height:auto; display:block; }
.spec-zoom { margin-top:1rem; border-top:1px solid #e5edf3; padding-top:.8rem; }
.spec-row { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-bottom:.4rem; }
.spec-row input[type=range] { flex:1; min-width:200px; accent-color:#c2410c; direction:ltr; }
.spec-read { display:flex; gap:1rem; align-items:center; background:#f3f8fc; border-radius:12px; padding:.7rem 1rem; margin-top:.4rem; }
.spec-sw { width:70px; height:70px; border-radius:50%; flex:0 0 auto; border:3px solid #fff; box-shadow:0 0 0 2px #cbd5e1; }
.spec-big { font-size:1.25rem; font-weight:800; color:#1a3a5c; }
.spec-ex { color:#444; margin-top:.2rem; }
.irsim { background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,.07); padding:1rem; margin:1rem 0; }
.ir-stage { display:flex; gap:.5rem; align-items:center; direction:ltr; }
.ir-remote { flex:0 0 150px; background:linear-gradient(#2b2f36,#1b1e23); border-radius:22px; padding:1rem .7rem .9rem; box-shadow:0 6px 14px rgba(0,0,0,.25); }
.ir-led { width:18px; height:18px; border-radius:50%; background:#3a3f47; margin:0 auto .8rem; border:2px solid #555; transition:background .05s, box-shadow .05s; }
.ir-remote.cam .ir-led.on-cam { background:#d0bfff; box-shadow:0 0 18px 8px rgba(177,151,252,.9); animation:irflick .08s steps(2) infinite; }
@keyframes irflick { 50% { opacity:.55; } }
.ir-keys { display:grid; grid-template-columns:repeat(3,1fr); gap:.35rem; }
.ir-keys button { font:inherit; font-weight:800; font-size:.95rem; border:0; border-radius:50%; aspect-ratio:1; background:#e9ecef; color:#212529; cursor:pointer; box-shadow:0 2px 0 #868e96; padding:0; }
.ir-keys button:active { transform:translateY(2px); box-shadow:none; background:#ffd8a8; }
.ir-keys button[data-k="ok"] { background:#ffc078; }
.ir-scene { flex:1; min-width:0; height:auto; }
@keyframes irfly { from { transform:translateX(0); } to { transform:translateX(260px); } }
.ir-bottom { display:grid; grid-template-columns:2fr 1fr; gap:.8rem; margin-top:.8rem; }
@media (max-width:760px) { .ir-bottom { grid-template-columns:1fr; } .ir-stage { flex-direction:column; } .ir-remote { flex-basis:auto; width:170px; } }
.ir-scope svg { width:100%; height:auto; display:block; }
.ir-scope-h { font-weight:700; color:#1a3a5c; margin-bottom:.3rem; font-size:.95rem; }
.ir-serial pre { background:#0e1a26; color:#7dffb0; border-radius:8px; padding:.6rem .8rem; margin:0; min-height:110px; font-size:.9rem; text-align:left; }
@media (max-width:760px) { .ir-scene { width:100%; flex:0 0 auto; } .ir-remote { width:150px; padding:.7rem .5rem; } }
/* שלט שנראה כמו השלט מהערכה */
.ir-remote { background:linear-gradient(160deg,#2a2d31,#141619); border-radius:18px; padding:1rem .75rem 0; box-shadow:0 8px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); position:relative; }
.ir-led { width:14px; height:8px; border-radius:4px; background:#0b0c0e; border:1px solid #3a3f47; margin:0 auto .9rem; }
.ir-remote.cam .ir-led.on-cam { width:14px; height:8px; }
.ir-keys { gap:.45rem .5rem; }
.ir-keys button { background:#f8f9fa; color:#343a40; border:3px solid #2b2f33; box-shadow:0 0 0 2px #c9ccd0, 0 3px 4px rgba(0,0,0,.5); font-size:1rem; }
.ir-keys button.kr { background:#d6333a; color:#fff; }
.ir-keys button.kb { background:#2f5bd3; color:#fff; font-size:.8rem; }
.ir-keys button.kok { font-size:.75rem; }
.ir-keys button:active { transform:translateY(2px); box-shadow:0 0 0 2px #c9ccd0; background:#ffe8cc; color:#343a40; }
.ir-keys button.kr:active, .ir-keys button.kb:active { filter:brightness(1.25); background-color:inherit; }
.ir-keys button.kr:active { background:#e8590c; } .ir-keys button.kb:active { background:#4c6ef5; }
.ir-tab { height:16px; margin:.8rem -.75rem 0; background:linear-gradient(#f1f3f5,#dee2e6); border-radius:0 0 16px 16px; border-top:1px solid #adb5bd; }


/* ===== דף נגן MP3 ===== */
.mp3-page .mp3-bytes { display: inline-flex; gap: 3px; flex-wrap: wrap; font-family: Consolas, Menlo, monospace; font-style: normal; vertical-align: middle; }
.mp3-page .mp3-bytes i, .mp3-page i.leg, .mp3-anat li > i { font-style: normal; font-family: Consolas, Menlo, monospace; font-weight: 700; padding: 1px 6px; border-radius: 5px; font-size: .92rem; }
.mp3-page i.bs { background: #e9ecef; color: #495057; }
.mp3-page i.bl { background: #d0ebff; color: #1864ab; }
.mp3-page i.bc { background: #ffe8cc; color: #d9480f; }
.mp3-page i.bd { background: #d3f9d8; color: #2b8a3e; }
.mp3-page i.leg { margin-inline: 2px; }
.mp3-flow, .mp3-wire { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin: .8rem 0; }
.mp3-flow svg, .mp3-wire svg { width: 100%; height: auto; display: block; }
.mp3-wire { max-width: 640px; margin-inline: auto; }
.mp3-anat { background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.mp3-anat > .mp3-bytes i { font-size: 1.25rem; padding: 4px 10px; }
.mp3-anat ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.mp3-anat li { margin: .45rem 0; }
.mp3-page .mp3-spec { max-width: 520px; }
.mp3-sdgrid { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .mp3-sdgrid { grid-template-columns: 1fr; } }
.mp3-tree { background: #1e2a36; color: #e6eef5; border-radius: 12px; padding: .8rem 1rem; font-family: Consolas, Menlo, monospace; font-size: .95rem; line-height: 1.9; text-align: left; }
.mp3-tree .t-root { color: #ffd43b; font-weight: 700; }
.mp3-tree .t-dir { padding-left: 1.1rem; color: #74c0fc; font-weight: 700; }
.mp3-tree .t-file { padding-left: 2.4rem; }
.mp3-page .mp3-ok td.ok { color: #2b8a3e; font-weight: 800; text-align: center; }
.mp3-page .mp3-ok td.no { color: #c92a2a; font-weight: 800; text-align: center; }
.mp3-page .mp3-red { color: #c92a2a; font-weight: 700; }
.mp3-check { background: #fff; border-radius: 12px; padding: .9rem 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.mp3-check input { width: 100%; box-sizing: border-box; font: 1.05rem Consolas, Menlo, monospace; padding: .5rem .7rem; border: 2px solid #ced4da; border-radius: 8px; text-align: left; }
.mp3-check-out { margin-top: .6rem; padding: .5rem .7rem; border-radius: 8px; line-height: 1.9; }
.mp3-check-out.good { background: #ebfbee; color: #2b8a3e; }
.mp3-check-out.bad { background: #fff5f5; color: #c92a2a; }
.mp3-tablewrap { overflow-x: auto; }
.mp3-cmds td:nth-child(2) { white-space: nowrap; }
/* סימולציה */
.mp3-sim { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; align-items: stretch; margin: 1rem 0; }
@media (max-width: 900px) { .mp3-sim { grid-template-columns: 1fr; } }
.mp3-card, .mp3-dev, .mp3-mon { background: #fff; border-radius: 14px; padding: .9rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); min-width: 0; }
.mp3-card-h, .mp3-mon-h { font-weight: 800; margin-bottom: .5rem; }
.mp3-card-h small { font-weight: 400; color: #666; }
#simTree { background: #1e2a36; border-radius: 10px; padding: .6rem; text-align: left; font-family: Consolas, Menlo, monospace; }
#simTree .t-dir { color: #74c0fc; font-weight: 700; margin: .3rem 0 .1rem; }
#simTree .t-file { display: block; width: 100%; text-align: left; background: transparent; color: #e6eef5; border: 1px solid transparent; border-radius: 6px; padding: .35rem .5rem .35rem 1.3rem; font: inherit; font-size: .92rem; cursor: pointer; }
#simTree .t-file:hover { background: #2c3e50; }
#simTree .t-file.cur { background: #2b8a3e; border-color: #69db7c; }
#simTree .t-file small { color: #adb5bd; float: right; }
.mp3-dev { background: #d6333a; color: #fff; position: relative; }
.mp3-screen { background: #10202c; border-radius: 10px; padding: .7rem .8rem; position: relative; min-height: 120px; }
.mp3-led { position: absolute; top: .7rem; left: .7rem; width: 12px; height: 12px; border-radius: 50%; background: #2b3b2b; box-shadow: inset 0 0 2px #000; }
.mp3-led.on { background: #51cf66; box-shadow: 0 0 10px #51cf66; }
.mp3-now { font-weight: 800; font-size: 1.1rem; }
.mp3-file { font-family: Consolas, Menlo, monospace; color: #8ce99a; margin: .3rem 0 .5rem; text-align: left; overflow-wrap: anywhere; }
.mp3-prog { height: 6px; background: #2c3e50; border-radius: 3px; overflow: hidden; }
.mp3-prog div { height: 100%; width: 0; background: #51cf66; }
.mp3-vol { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .9rem; }
.mp3-volbar { flex: 1; height: 8px; background: #2c3e50; border-radius: 4px; overflow: hidden; }
.mp3-volbar div { height: 100%; background: #ffd43b; }
.mp3-btns { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: .7rem; }
.mp3-btns button { font: inherit; font-size: 1.15rem; min-width: 46px; padding: .35rem .6rem; border-radius: 10px; border: 0; background: #fff; color: #222; cursor: pointer; box-shadow: 0 2px 0 #9b1c22; }
.mp3-btns button:active { transform: translateY(2px); box-shadow: none; }
.mp3-snd { display: flex; align-items: center; gap: .3rem; font-size: .95rem; cursor: pointer; }
.mp3-spk { width: 70px; height: 70px; margin: .8rem auto 0; border-radius: 50%; background: radial-gradient(circle, #b8902f 0 30%, #d4a944 31% 100%); position: relative; border: 3px solid #8a6d1f; }
.mp3-spk span { position: absolute; inset: -3px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; opacity: 0; }
.mp3-spk.on span { animation: mp3wave 1.2s infinite; }
.mp3-spk.on span:nth-child(2) { animation-delay: .4s; }
.mp3-spk.on span:nth-child(3) { animation-delay: .8s; }
@keyframes mp3wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.mp3-log { background: #0e1a26; border-radius: 10px; padding: .6rem; min-height: 150px; display: flex; flex-direction: column; gap: .35rem; }
.mp3-exp { margin-top: .6rem; background: #f1f3f5; border-radius: 8px; padding: .5rem .7rem; min-height: 2.5rem; line-height: 1.7; }
.mp3-page .mp3-keys { max-width: 560px; }
.mp3-transport { direction: ltr; }
.mp3-log { align-items: flex-start; direction: ltr; }

/* ===== דפי מטריצות לדים ===== */
.lm-page .lm-photo { text-align: center; margin: 1rem 0; }
.lm-page .lm-photo img { max-width: 560px; width: 100%; border-radius: 12px; background: #fff; }
.lm-page .lm-photo figcaption { color: #666; font-size: .92rem; margin-top: .3rem; }
.lm-sim { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.lm-ctrl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .6rem; }
.lm-ctrl button { font: inherit; padding: .35rem .9rem; border-radius: 8px; border: 0; background: #0077cc; color: #fff; cursor: pointer; }
.lm-ctrl label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.lm-status { margin-bottom: .7rem; }
.lm-boards { display: flex; gap: .8rem; align-items: center; justify-content: center; overflow-x: auto; padding-bottom: .3rem; }
.lm-board { display: grid; gap: 3px; background: #111; padding: 8px; border-radius: 8px; position: relative; flex: 0 0 auto; }
.lm-blabel { position: absolute; top: -1.5rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: #555; direction: rtl; }
.lm-boards.multi { padding-top: 1.6rem; }
.lm-led { width: 30px; height: 30px; border-radius: 4px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font: 700 10px Consolas, Menlo, monospace; color: transparent; transition: background .15s; }
.lm-boards.nums .lm-led { color: #888; }
.lm-led.on { background: #2f9e44; box-shadow: 0 0 6px #51cf66; }
.lm-boards.nums .lm-led.on { color: #fff; }
.lm-led.cur { background: #8ce99a; box-shadow: 0 0 12px #b2f2bb; }
.lm-boards.nums .lm-led.cur { color: #0b3d16; }
.lm-link { flex: 0 0 auto; font: 700 .8rem Consolas, Menlo, monospace; color: #e8590c; white-space: nowrap; }
.lm-page h1 span { font-size: .7em; color: #0077cc; }
@media (max-width: 600px) { .lm-led { width: 26px; height: 26px; font-size: 9px; } }
/* 32x8: לדים קטנים יותר */
.lm-page.lm-wide .lm-led { width: 24px; height: 24px; font-size: 8px; }
@media (max-width: 900px) { .lm-page.lm-wide .lm-led { width: 20px; height: 20px; font-size: 7px; } }

/* ===== דף תצוגת 7 מקטעים ===== */
.sg-page h1 span { font-size: .7em; color: #0077cc; }
.sg-page .sg-seg { fill: #2a0d0d; transition: fill .1s; }
.sg-page .sg-seg.on { fill: #ff2e2e; filter: drop-shadow(0 0 3px #ff4d4d); }
.sg-page .sg-lab { fill: #777; font: 700 15px Consolas, Menlo, monospace; }
.sg-page .sg-lab.on { fill: #ffd43b; }
.sg-learn { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.sg-learn > div { flex: 1; min-width: 220px; }
.sg-one { width: 170px; height: auto; flex: 0 0 auto; }
.sg-keys { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.sg-keys button { font: 700 1.2rem Consolas, Menlo, monospace; width: 44px; height: 44px; border-radius: 10px; border: 2px solid #ced4da; background: #fff; cursor: pointer; }
.sg-keys button.cur { background: #e03131; border-color: #e03131; color: #fff; }
.sg-which { margin-top: .8rem; font-size: 1.05rem; }
.sg-sim { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); text-align: center; }
.sg-ctrl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .8rem; }
.sg-ctrl button { font: inherit; padding: .35rem .9rem; border-radius: 8px; border: 0; background: #0077cc; color: #fff; cursor: pointer; }
.sg-ctrl label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.sg-four { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }
.sg-now { margin-top: .7rem; }
.sg-lines td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .sg-lines td:first-child { white-space: normal; } }

/* ===== דף מסך LCD 1602A ===== */
.lc-page h1 span { font-size: .75em; color: #0077cc; }
.lc-page .lc-fig { text-align: center; margin: 1rem 0; }
.lc-page .lc-fig img { max-width: 520px; width: 100%; border-radius: 10px; }
.lc-page .lc-fig figcaption { color: #666; font-size: .92rem; margin-top: .3rem; }
.lc-flow { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin: .8rem 0; }
.lc-flow svg { width: 100%; height: auto; display: block; }
.lc-pins td:nth-child(2) { white-space: nowrap; }
.lc-noheb { display: flex; gap: 1.2rem; align-items: center; background: #fff5f5; border: 2px solid #e03131; border-radius: 14px; padding: 1rem 1.2rem; }
.lc-noheb p { margin: .3rem 0; }
.lc-noheb-ico { flex: 0 0 auto; background: #1c3fd1; color: #fff; font: 700 1.4rem Consolas, Menlo, monospace; padding: .6rem 1rem; border-radius: 8px; border: 6px solid #2f9e44; }
@media (max-width: 600px) { .lc-noheb { flex-direction: column; } }
.lc-sim { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.lc-ctrl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .8rem; }
.lc-ctrl button { font: inherit; padding: .35rem .9rem; border-radius: 8px; border: 0; background: #0077cc; color: #fff; cursor: pointer; }
.lc-ctrl input { font: 1rem Consolas, Menlo, monospace; padding: .35rem .6rem; border: 2px solid #ced4da; border-radius: 8px; width: 14rem; max-width: 60vw; }
.lc-screen-wrap { background: #2f9e44; border-radius: 12px; padding: 14px; max-width: 640px; margin: 0 auto; }
.lc-screen { background: #1c3fd1; border: 8px solid #111; border-radius: 4px; padding: 10px; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.lc-cell { aspect-ratio: 5 / 8; background: rgba(255,255,255,.07); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 clamp(.8rem, 3.4vw, 1.6rem) Consolas, Menlo, monospace; text-shadow: 0 0 4px rgba(255,255,255,.6); }
.lc-cell.bad { color: #ffd43b; }
.lc-now { margin-top: .7rem; text-align: center; }
.lc-warn { background: #fff4e6; color: #d9480f; border-radius: 8px; padding: .5rem .8rem; }
.lc-page pre.lc-one { background: #0e1a26; color: #8ce99a; padding: .7rem 1rem; border-radius: 10px; overflow-x: auto; }
.lc-lines td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .lc-lines td:first-child, .lc-pins td:nth-child(2) { white-space: normal; } }
.mp3-page .mp3-lib td:first-child { white-space: nowrap; width: 1%; }
@media (max-width: 600px) { .mp3-page .mp3-lib td:first-child { white-space: normal; } }

/* ===== פרויקט נגן מוזיקה ===== */
.mp-page .mp-wire { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow-x: auto; }
.mp-page .mp-wire svg { width: 100%; min-width: 620px; height: auto; display: block; }
.mp-page .mp-tables { display: flex; flex-wrap: wrap; gap: 1rem; }
.mp-page .mp-tables table { flex: 1 1 200px; margin: 0; }
.mp-page .mp-tree { background: #1e2a36; color: #e6eef5; border-radius: 12px; padding: .8rem 1rem; font-family: Consolas, Menlo, monospace; line-height: 1.8; text-align: left; max-width: 320px; }
.mp-page pre.mp-one { background: #0e1a26; color: #8ce99a; padding: .6rem .9rem; border-radius: 8px; overflow-x: auto; margin: .6rem 0; }
.mp-page .mp-lines td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .mp-page .mp-lines td:first-child { white-space: normal; } }

/* ===== ESP32 מול UNO ===== */
.es-page .es-tablewrap { overflow-x: auto; }
.es-page .es-cmp td:first-child { font-weight: 700; white-space: nowrap; }
.es-page .es-cmp td:nth-child(3) { background: #f3fbf4; }
.es-page .es-card { background: #fff; border-radius: 14px; padding: .9rem 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin: 1rem 0; }
.es-page .es-card h3 { margin-top: .2rem; }
.es-page .es-card ul { margin: .4rem 0; }
.es-page .es-warn { border: 2px solid #e03131; background: #fff5f5; }
.es-page .es-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.es-page .es-two .es-card { margin: 0; }
@media (max-width: 700px) { .es-page .es-two { grid-template-columns: 1fr; } .es-page .es-cmp td:first-child { white-space: normal; } }

/* ===== ESP32: התקנה ===== */
.e2-page .e2-win { background: #fff; border: 1px solid #ced4da; border-radius: 10px; overflow: hidden; max-width: 620px; margin: 1rem auto; box-shadow: 0 2px 10px rgba(0,0,0,.08); text-align: left; font-family: Segoe UI, Arial, sans-serif; }
.e2-page .e2-bar { background: #e9ecef; padding: .45rem .8rem; font-weight: 700; font-size: .9rem; }
.e2-page .e2-body { padding: .8rem; font-size: .88rem; }
.e2-page .e2-row { display: flex; gap: .6rem; align-items: center; margin: .35rem 0; flex-wrap: wrap; }
.e2-page .e2-row > span:first-child { min-width: 11rem; color: #333; }
.e2-page .e2-field { flex: 1; border: 1px solid #ced4da; border-radius: 4px; padding: .25rem .5rem; background: #f8f9fa; color: #555; overflow-wrap: anywhere; }
.e2-page .e2-small { flex: 0 0 6rem; }
.e2-page .e2-url { color: #0b7285; font-weight: 600; background: #fff; }
.e2-page .e2-hl { outline: 3px solid #f08c00; outline-offset: 3px; border-radius: 4px; }
.e2-page .e2-btns { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .7rem; }
.e2-page .e2-btn { display: inline-block; border: 1px solid #00878f; color: #00878f; border-radius: 4px; padding: .2rem .7rem; font-size: .8rem; font-weight: 700; }
.e2-page .e2-btn.e2-ok { background: #00878f; color: #fff; }
.e2-page .e2-search { border: 1px solid #ced4da; border-radius: 4px; padding: .3rem .6rem; margin-bottom: .6rem; }
.e2-page .e2-pkg { border-top: 1px solid #e9ecef; padding: .6rem .3rem; position: relative; }
.e2-page .e2-pkg .e2-btn { margin-top: .4rem; }
.e2-page .e2-x, .e2-page .e2-v { position: absolute; right: .5rem; top: .6rem; font-weight: 800; direction: rtl; }
.e2-page .e2-x { color: #c92a2a; } .e2-page .e2-v { color: #2b8a3e; }
.e2-page .e2-menu div { padding: .3rem .5rem; }
.e2-page .e2-sub { color: #0b7285; margin-left: .5rem; }
.e2-page .e2-out { background: #0e1a26; color: #c3fae8; font-family: Consolas, Menlo, monospace; font-size: .85rem; border-radius: 10px; padding: .8rem 1rem; text-align: left; line-height: 1.7; max-width: 620px; margin: .8rem auto; overflow-x: auto; }
/* ===== ESP32: מפת פינים ===== */
.pm-page h1 span { font-size: .6em; color: #666; }
.pm-page .pm-names li { margin: .3rem 0; }
.pm-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.pm-filters button { font: inherit; padding: .3rem .8rem; border-radius: 20px; border: 2px solid #0077cc; background: #fff; color: #0077cc; cursor: pointer; }
.pm-filters button.on { background: #0077cc; color: #fff; }
.pm-wrap { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .pm-wrap { grid-template-columns: 1fr; } }
.pm-board { background: #fff; border-radius: 14px; padding: .6rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.pm-svg { width: 100%; height: auto; display: block; }
.pm-pin { cursor: pointer; }
.pm-pin .pm-dot { stroke: #fff; stroke-width: 2; }
.pm-pin[data-cat="safe"] .pm-dot { fill: #2f9e44; }
.pm-pin[data-cat="caution"] .pm-dot { fill: #f59f00; }
.pm-pin[data-cat="input"] .pm-dot { fill: #1c7ed6; }
.pm-pin[data-cat="avoid"] .pm-dot { fill: #e03131; }
.pm-pin[data-cat="power"] .pm-dot, .pm-pin[data-cat="ctrl"] .pm-dot { fill: #868e96; }
.pm-pin .pm-lab { fill: #222; }
.pm-pin.sel .pm-dot { stroke: #ffd43b; stroke-width: 5; }
.pm-pin.sel .pm-lab { fill: #d9480f; }
.pm-pin.dim { opacity: .18; }
.pm-pin:focus { outline: none; } .pm-pin:focus .pm-dot { stroke: #ffd43b; stroke-width: 4; }
.pm-side { position: sticky; top: 1rem; }
.pm-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .7rem; font-size: .92rem; }
.pm-page i[class^="c-"] { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-inline-end: .3rem; }
.pm-page .c-safe { background: #2f9e44; } .pm-page .c-caution { background: #f59f00; } .pm-page .c-input { background: #1c7ed6; } .pm-page .c-avoid { background: #e03131; } .pm-page .c-power { background: #868e96; }
.pm-info { background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); min-height: 180px; }
.pm-info h3 { margin: 0 0 .3rem; text-align: right; }
.pm-info .pm-cat { font-weight: 800; margin: 0 0 .5rem; }
.c-safe-t { color: #2b8a3e; } .c-caution-t { color: #d9480f; } .c-input-t { color: #1864ab; } .c-avoid-t { color: #c92a2a; } .c-power-t, .c-ctrl-t { color: #495057; }
.pm-sum td:nth-child(2) { white-space: nowrap; }
@media (max-width: 600px) { .pm-sum td:nth-child(2) { white-space: normal; } }
/* ===== ESP32: Blink ===== */
.bk-sim { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.bk-svg { width: 300px; max-width: 100%; height: auto; flex: 0 0 auto; }
.bk-ctl { flex: 1; min-width: 220px; }
.bk-ctl label { display: block; margin-top: .8rem; }
.bk-ctl input[type=range] { width: 100%; }
.bk-state { font-size: 1.05rem; }
.bk-wire { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); max-width: 560px; margin: .8rem auto; }
.bk-wire svg { width: 100%; height: auto; display: block; }
.bk-lines td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .bk-lines td:first-child { white-space: normal; } }
.bk-page h1 span { font-size: .7em; color: #0077cc; }
/* ===== ESP32: תרגול ===== */
.xp-page .xp-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; }
.xp-page .xp-flow > div { background: #fff; border-radius: 12px; padding: .7rem .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.07); border-top: 4px solid #0077cc; }
.xp-sim { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.xp-sim.xp-col { flex-direction: column; }
.xp-phone { width: 200px; background: #1d1d1d; border-radius: 26px; padding: 14px 10px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.25); flex: 0 0 auto; }
.xp-notch { width: 60px; height: 6px; background: #444; border-radius: 4px; margin: 0 auto 8px; }
.xp-screen { background: #fff; border-radius: 14px; min-height: 280px; overflow: hidden; }
.xp-web { text-align: center; padding: .4rem .5rem .8rem; font-family: Arial, sans-serif; }
.xp-web h4 { margin: .5rem 0; font-size: 1.1rem; }
.xp-web p { margin: .3rem 0; }
.xp-url { background: #f1f3f5; border-radius: 8px; font-size: .75rem; padding: .2rem; color: #555; }
.xp-web button { font: inherit; font-size: 1.1rem; font-weight: 800; color: #fff; border: 0; border-radius: 10px; width: 72px; padding: .7rem 0; margin: .4rem .2rem; cursor: pointer; }
.xp-web .xp-on { background: #2f9e44; } .xp-web .xp-off { background: #e03131; }
.xp-web button:active { transform: scale(.95); }
.xp-big { font-size: 2rem; font-weight: 800; margin: 0 0 .6rem !important; }
.xp-sm { font-size: .9rem; color: #555; margin: .2rem 0; }
.xp-board { width: 240px; max-width: 100%; height: auto; flex: 0 0 auto; }
.xp-arrow { font-family: Consolas, Menlo, monospace; font-weight: 700; color: #d9480f; min-width: 110px; text-align: center; }
.xp-fly { animation: xpfly .5s ease-out; }
@keyframes xpfly { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.xp-ctl { flex: 1; min-width: 220px; max-width: 360px; }
.xp-ctl label { display: block; margin: .5rem 0; }
.xp-ctl input[type=range] { width: 100%; }
.xp-ctl.xp-row { max-width: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; justify-content: center; }
.xp-ctl.xp-row label { margin: 0; }
.xp-log { background: #0e1a26; color: #c3fae8; font-family: Consolas, Menlo, monospace; font-size: .85rem; border-radius: 8px; padding: .5rem .7rem; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.xp-wire { background: #fff; border-radius: 14px; padding: .8rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); max-width: 560px; margin: .8rem auto; }
.xp-wire svg { width: 100%; height: auto; display: block; }
.xp-lines td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .xp-lines td:first-child { white-space: normal; word-break: break-word; } }
.xp-mini pre { padding: .6rem 1rem; }
.xp-y { color: #ffd43b; }
.xp-try li { margin: .4rem 0; }
.xp-7seg { width: 320px; max-width: 100%; height: auto; }
.xp-term { display: flex; flex-direction: column; height: 280px; font-family: Consolas, Menlo, monospace; font-size: .8rem; }
.xp-tbar { background: #1971c2; color: #fff; padding: .35rem .5rem; font-family: Arial, sans-serif; font-weight: 700; font-size: .8rem; }
.xp-tlog { flex: 1; padding: .4rem .5rem; overflow: hidden; text-align: left; }
.xp-tinfo { color: #2b8a3e; } .xp-tout { color: #1971c2; } .xp-tin { color: #333; }
.xp-macros { display: flex; gap: .3rem; padding: .4rem; border-top: 1px solid #dee2e6; }
.xp-macros button { flex: 1; font: inherit; font-weight: 700; padding: .5rem 0; border: 1px solid #1971c2; border-radius: 6px; background: #e7f5ff; cursor: pointer; }
.xp-touch { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.xp-pad { user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; background: linear-gradient(135deg, #e9ecef, #ced4da); border: 3px dashed #868e96; border-radius: 14px; padding: 1.4rem 1rem; width: 230px; text-align: center; font-weight: 700; }
.xp-pad.on { background: linear-gradient(135deg, #ffe8cc, #ffd8a8); border-color: #f08c00; }
.xp-cv { width: 100%; max-width: 560px; height: auto; border-radius: 10px; border: 1px solid #dee2e6; }
.xp-leg { margin-inline-start: 1rem; } .xp-leg i { display: inline-block; width: 18px; height: 4px; vertical-align: middle; margin: 0 .3rem; }
.xp-l1 { background: #1971c2; } .xp-l2 { background: #e03131; }
.xp-now { width: 100%; max-width: 600px; height: auto; }
.xp-hold { user-select: none; -webkit-user-select: none; touch-action: none; font: inherit; font-weight: 800; padding: .7rem 1.2rem; border-radius: 12px; border: 0; background: #e03131; color: #fff; cursor: pointer; }
.xp-hold.on { background: #a61e1e; transform: scale(.97); }
/* ===== ESP32: לפני שבונים פרויקט ===== */
.bf-page .bf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .bf-page .bf-two { grid-template-columns: 1fr; } }
.bf-page .bf-card { background: #fff; border-radius: 14px; padding: .8rem 1.1rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.bf-page .bf-card h3 { margin: .2rem 0 .4rem; }
.bf-page .bf-green { border-top: 6px solid #2f9e44; } .bf-page .bf-red { border-top: 6px solid #e03131; }
.bf-page .bf-formula { text-align: center; font-size: 1.3rem; font-weight: 700; color: #0b5c99; }
.bf-page .bf-div { width: 360px; max-width: 100%; height: auto; }
.bf-page .bf-meter { background: #f1f3f5; border-radius: 12px; padding: .8rem 1rem; text-align: center; margin-top: .6rem; }
.bf-page .bf-meter > b { display: block; font-size: 2rem; color: #0b5c99; margin: .2rem 0; }
.bf-page .bf-big { min-width: 230px; }
.bf-page .bf-ok { color: #2b8a3e; font-weight: 700; } .bf-page .bf-mid { color: #d9480f; font-weight: 700; } .bf-page .bf-no { color: #c92a2a; font-weight: 700; }
.bf-page .bf-comp td:nth-child(2) { white-space: nowrap; }
@media (max-width: 600px) { .bf-page .bf-comp td:nth-child(2) { white-space: normal; } }
.bf-page .bf-warn2 { background: #fff9db; border-color: #fab005; }
.bf-page .bf-boards { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: flex-end; }
.bf-page .bf-boards figure { margin: 0; text-align: center; max-width: 220px; }
.bf-page .bf-boards figcaption { font-size: .92rem; }
.bf-page .bf-bsvg { height: auto; display: block; margin: 0 auto; }
.bf-page .bf-boards figure:nth-child(1) .bf-bsvg { width: 150px; } .bf-page .bf-boards figure:nth-child(2) .bf-bsvg { width: 150px; } .bf-page .bf-boards figure:nth-child(3) .bf-bsvg { width: 110px; }
.bf-page .bf-cmp td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .bf-page .bf-cmp td:first-child { white-space: normal; } .bf-page .bf-cmp { font-size: .85rem; } }
.bf-page .bf-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .4rem 1rem; width: 100%; max-width: 700px; }
.bf-page .bf-checks label { cursor: pointer; }
.bf-page .bf-pick p { margin: 0; font-weight: 700; }
/* ===== פרוטוקולי תקשורת ===== */
.pt-page .pt-nav { text-align: center; margin-top: 32px; line-height: 2; }
.pt-page .pt-in { width: 3rem; font: inherit; font-size: 1.2rem; text-align: center; padding: .2rem; }
.pt-page .pt-num { width: 5.5rem; font: inherit; padding: .2rem; }
.pt-page .pt-btn { font: inherit; font-weight: 700; padding: .45rem .9rem; border-radius: 10px; border: 2px solid #0b5c99; background: #e7f5ff; color: #0b5c99; cursor: pointer; }
.pt-page .pt-btn.on, .pt-page .pt-btn:active { background: #0b5c99; color: #fff; }
.pt-page .pt-btn2 { border-color: #868e96; color: #495057; background: #f1f3f5; }
.pt-page .pt-wave { width: 100%; max-width: 700px; height: auto; background: #fff; }
.pt-page .pt-cv { max-width: 640px; }
.pt-page .pt-res { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; align-items: center; font-size: 1.1rem; }
.pt-page .pt-res b { font-size: 1.6rem; color: #0b5c99; }
.pt-page .pt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pt-page .pt-cards .bf-card { border-top: 5px solid #0b5c99; }
.pt-page .pt-cmp td:first-child { white-space: nowrap; font-weight: 700; }
.pt-page .pt-pins td:first-child { white-space: nowrap; }
.pt-page .pt-sp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; max-width: 700px; }
@media (max-width: 600px) { .pt-page .pt-sp { grid-template-columns: 1fr; } }
.pt-page .pt-sp h4 { margin: .2rem 0 .5rem; }
.pt-page .pt-w { position: relative; height: 18px; border-bottom: 3px solid #adb5bd; margin: 4px 0; overflow: hidden; direction: ltr; }
.pt-page .pt-w1 { height: 34px; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 2px; }
.pt-page .pt-bit { display: inline-block; font-family: Consolas, monospace; font-weight: 800; background: #fff3bf; color: #333; border-radius: 4px; padding: 0 5px; font-size: .85rem; }
.pt-page .pt-wires8 .pt-bit { position: absolute; left: 0; top: 0; }
.pt-page .pt-wires8 .pt-bit.go { animation: ptpar .6s forwards; }
@keyframes ptpar { from { left: 0; } to { left: calc(100% - 22px); } }
.pt-page .pt-w1 .pt-bit.go { animation: ptin .4s; }
@keyframes ptin { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.pt-page .pt-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .5rem; width: 100%; max-width: 760px; }
.pt-page .pt-choose button { font: inherit; text-align: right; padding: .6rem .8rem; border-radius: 10px; border: 2px solid #dee2e6; background: #fff; cursor: pointer; }
.pt-page .pt-choose button.on { border-color: #0b5c99; background: #e7f5ff; font-weight: 700; }
.pt-page .pt-legend { font-size: .85rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; }
.pt-page .pt-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-inline-end: .3rem; }
.pt-page .pt-devs { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pt-page .pt-dev { width: 150px; text-align: center; border-radius: 12px; padding: .5rem; background: #e7f5ff; border: 3px solid #a5d8ff; display: flex; flex-direction: column; gap: .15rem; transition: .2s; }
.pt-page .pt-dev span { font-family: Consolas, monospace; font-weight: 800; color: #0b5c99; }
.pt-page .pt-dev small { color: #555; }
.pt-page .pt-dev.yes { background: #d3f9d8; border-color: #2f9e44; } .pt-page .pt-dev.yes small { color: #2b8a3e; font-weight: 800; }
.pt-page .pt-dev.no { opacity: .5; }
.pt-page .pt-spi { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; direction: ltr; }
.pt-page .pt-reg { background: #f8f9fa; border-radius: 12px; padding: .5rem .7rem; margin: .3rem 0; text-align: center; direction: rtl; }
.pt-page .pt-reg h4 { margin: 0 0 .4rem; font-size: .95rem; } .pt-page .pt-reg small { color: #2b8a3e; }
.pt-page .pt-reg.off { opacity: .45; } .pt-page .pt-reg.off small { color: #868e96; }
.pt-page .pt-cells { display: flex; gap: 3px; direction: ltr; justify-content: center; }
.pt-page .pt-cells span { width: 26px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-family: Consolas, monospace; font-weight: 800; background: #fff; border: 2px solid #ced4da; border-radius: 5px; }
.pt-page .pt-cells span.hl { border-color: #e8590c; background: #fff4e6; }
.pt-page .pt-mid { text-align: center; font-family: Consolas, monospace; font-weight: 700; min-width: 150px; direction: ltr; }
.pt-page .pt-mid > div { margin: .3rem 0; }
.pt-page .pt-ow { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; padding-top: 16px; width: 100%; }
.pt-page .pt-owline { position: absolute; top: 6px; left: 5%; right: 5%; height: 5px; background: #f08c00; border-radius: 3px; }
.pt-page .pt-ows { position: relative; width: 190px; text-align: center; background: #f8f9fa; border: 3px solid #dee2e6; border-radius: 12px; padding: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.pt-page .pt-ows::before { content: ''; position: absolute; top: -13px; left: 50%; width: 4px; height: 13px; background: #f08c00; }
.pt-page .pt-ows.f { border-color: #74c0fc; } .pt-page .pt-ows.hl { border-color: #2f9e44; background: #d3f9d8; }
.pt-page .pt-ows code { font-size: .8rem; } .pt-page .pt-ows b { color: #c92a2a; min-height: 1.2em; }
.pt-page .pt-chip { background: #1d1d1d; color: #fff; border-radius: 6px 6px 14px 14px; padding: .3rem; font-weight: 800; font-size: .85rem; }
.pt-page .pt-cant { overflow-x: auto; max-width: 100%; }
.pt-page .pt-cant table { border-collapse: collapse; direction: ltr; margin: 0 auto; }
.pt-page .pt-cant th, .pt-page .pt-cant td { border: 1px solid #dee2e6; padding: .25rem .45rem; text-align: center; font-family: Consolas, monospace; min-width: 22px; }
.pt-page .pt-cant th { background: #f1f3f5; font-family: inherit; white-space: nowrap; direction: rtl; }
.pt-page .pt-cant td.lost { color: #adb5bd; } .pt-page .pt-cant td.lostp { background: #ffe3e3; color: #c92a2a; font-weight: 800; }
.pt-page .pt-cant tr.busr td { background: #fff4e6; font-weight: 800; }
.pt-page .pt-busw { max-width: 700px; }
.pt-page .pt-cres > b { font-size: 1.15rem; }
.pt-page .pt-nowb { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pt-page .pt-nb { width: 170px; text-align: center; border-radius: 12px; padding: .5rem; background: #f1f3f5; border: 3px solid #ced4da; display: flex; flex-direction: column; gap: .15rem; transition: .2s; }
.pt-page .pt-nb code { font-size: .8rem; } .pt-page .pt-nb small { min-height: 1.2em; font-weight: 800; }
.pt-page .pt-nb.send { border-color: #f08c00; background: #fff4e6; } .pt-page .pt-nb.got { border-color: #2f9e44; background: #d3f9d8; color: #2b8a3e; }
.pt-page .pt-nb.off { opacity: .4; background: #dee2e6; }
.pt-page .pt-bytes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pt-page .pt-bytes span { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-family: Consolas, monospace; font-weight: 800; border-radius: 6px; border: 2px solid; margin-bottom: 16px; }
.pt-page .pt-bytes em { position: absolute; top: 40px; left: 0; font-size: .7rem; font-style: normal; color: #555; white-space: nowrap; }
.pt-page .pt-bytes .i { border-color: #1971c2; background: #e7f5ff; } .pt-page .pt-bytes .f { border-color: #e8590c; background: #fff4e6; }
.pt-page .pt-bytes .b { border-color: #2f9e44; background: #d3f9d8; } .pt-page .pt-bytes .p { border-color: #ced4da; background: #f1f3f5; color: #adb5bd; }
.pt-wlintro { max-width: 900px; margin: 0 auto 1.5rem; }
.pt-wlintro > p { text-align: center; font-size: 1.05rem; }
.pt-wlintro .pt-cmp td:first-child { white-space: nowrap; font-weight: 700; }
@media (max-width: 600px) { .pt-wlintro .cmp-t { font-size: .85rem; } .pt-wlintro .pt-cmp td:first-child { white-space: normal; } }
