/* כלים לעיצוב גרפי · אליעזר כהנא — עיצוב משותף לכל הכלים (אותם צבעים ורכיבים כמו בטפסים של האתר) */
:root{--bg:#f4f5f7;--panel:#fff;--soft:#f8f9fb;--ink:#0f172a;--text:#334155;--dim:#6b7280;--line:#e3e6eb;
  --navy:#1e3a5f;--navy2:#16304f;--navy-soft:#eef2f7;--tile:#f1f4f8;--green:#15803d;--green-soft:#ecfdf3;
  --red:#b42318;--red-soft:#fef3f2;--amber:#b54708;--amber-soft:#fffaeb;
  --shadow:0 1px 2px rgba(16,24,40,.05),0 8px 28px rgba(16,24,40,.06)}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;font-family:Heebo,Arial,sans-serif;color:var(--ink);background:var(--bg);display:flex;flex-direction:column;min-height:100vh;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);-webkit-text-size-adjust:100%}
[hidden]{display:none !important}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
a{color:var(--navy)}
header{display:flex;justify-content:center;padding:26px 16px 18px}
header a{display:inline-block;border-radius:12px}
header img{height:58px;width:auto;display:block}
main{flex:1;display:flex;justify-content:center;padding:0 16px 40px}
.wrap{width:100%;max-width:920px;min-width:0}
.wrap.narrow{max-width:640px}

/* פירורי לחם */
.crumb{display:flex;align-items:center;gap:4px;margin:0 0 12px;font-size:13.5px}
.crumb a{display:inline-flex;align-items:center;gap:4px;color:var(--navy);font-weight:600;text-decoration:none;padding:5px 8px;margin:-5px -8px;border-radius:8px}
.crumb a:hover{background:var(--navy-soft)}
.crumb svg{width:16px;height:16px}

/* כרטיס */
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.card+.card{margin-top:14px}
.chead{display:flex;align-items:center;gap:12px;padding:16px 20px 14px;border-bottom:1px solid var(--line)}
.tile{width:38px;height:38px;border-radius:10px;background:var(--tile);color:var(--navy);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chead h1{display:block;font-size:17px;font-weight:800;line-height:1.3;margin:0}
.chead small{display:block;font-size:12.5px;color:var(--dim)}
.chead .end{margin-inline-start:auto;display:flex;gap:8px;align-items:center}
.body{padding:22px}
@media (max-width:480px){.body{padding:18px 16px}.chead{padding:14px 16px 12px}}
.sub{color:var(--dim);font-size:14.5px;margin:0 0 18px;line-height:1.6}
h2{font-size:15px;font-weight:800;margin:0 0 10px}

/* אזור העלאה */
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;
  border:1.5px dashed #c7cfdb;border-radius:12px;background:var(--soft);padding:38px 18px;cursor:pointer;transition:border-color .15s,background .15s}
.drop:hover,.drop.over{border-color:var(--navy);background:var(--navy-soft)}
.drop .tile{width:52px;height:52px;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06)}
.drop .tile svg{width:26px;height:26px}
.drop b{font-size:16px;font-weight:700}
.drop small{color:var(--dim);font-size:13px}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.drop.slim{flex-direction:row;padding:14px 16px;gap:12px;text-align:start;justify-content:flex-start}
.drop.slim .tile{width:38px;height:38px;border-radius:10px}
.drop.slim .tile svg{width:20px;height:20px}
.drop.slim b{font-size:14.5px}
.drop.has{border-style:solid;border-color:var(--navy);background:var(--navy-soft)}

/* כפתורים */
.go{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:var(--navy);color:#fff;font:inherit;font-size:15px;font-weight:700;border-radius:10px;padding:12px 20px;cursor:pointer;transition:background .15s;text-decoration:none;white-space:nowrap}
.go svg{width:18px;height:18px}
.go:hover{background:var(--navy2)}.go:disabled{opacity:.55;cursor:default}
.go.wide{width:100%}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:#fff;color:var(--navy);font:inherit;font-size:14px;font-weight:700;border-radius:10px;padding:10px 15px;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap;text-decoration:none}
.btn svg{width:17px;height:17px}
.btn:hover{background:var(--navy-soft);border-color:#c9d3e0}.btn:disabled{opacity:.5;cursor:default}
.btn.sm{font-size:13px;padding:7px 11px;border-radius:9px}
.btn.ghost{border-color:transparent;background:none}
.btn.ghost:hover{background:var(--navy-soft)}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* בחירה מקטעית (כמו כפתורי הבחירה בטפסים) */
.seg{display:flex;flex-wrap:wrap;gap:8px}
.seg button{flex:1 1 0;min-width:max-content;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:600;border-radius:10px;padding:10px 12px;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.seg button svg{width:17px;height:17px;color:var(--navy)}
.seg button:hover{border-color:#b9c3d1}
.seg button.on{border-color:var(--navy);background:var(--navy-soft);box-shadow:inset 0 0 0 1px var(--navy)}
.seg button small{font-weight:400;color:var(--dim);font-size:12px}

/* שדות */
label.f,.lab{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13.5px;font-weight:700;color:var(--text);margin:0 0 7px}
.lab output,.lab .val{font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums;background:var(--navy-soft);border-radius:99px;padding:1px 9px;font-size:12.5px}
.in{width:100%;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;padding:10px 12px;outline:0;background:var(--soft);color:var(--ink);transition:border-color .15s,box-shadow .15s,background .15s}
.in:focus{border-color:var(--navy);background:#fff;box-shadow:0 0 0 3px rgba(30,58,95,.1)}
.in.ltr{direction:ltr;text-align:right}
.fld{margin-bottom:16px}
.fld:last-child{margin-bottom:0}
.hint{font-size:12.5px;color:var(--dim);margin-top:6px;line-height:1.5}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:22px;background:none;margin:0;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:var(--navy-soft)}
input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:var(--navy-soft)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid var(--navy);margin-top:-8px;box-shadow:0 1px 3px rgba(16,24,40,.15)}
input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid var(--navy)}
input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(30,58,95,.18)}
.check{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--text);cursor:pointer;user-select:none}
.check input{width:17px;height:17px;accent-color:var(--navy);margin:0}

/* פריסת כלי: אזור תצוגה + הגדרות */
.work{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0}
.work .stage{min-width:0;padding:18px;background:var(--soft);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.work .side{padding:18px}
@media (max-width:760px){.work{grid-template-columns:1fr}.work .stage{border-inline-end:0;border-bottom:1px solid var(--line);padding:14px}.work .side{padding:16px}}
.checker{background-color:#fff;background-image:linear-gradient(45deg,#eceff3 25%,transparent 25%),linear-gradient(-45deg,#eceff3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eceff3 75%),linear-gradient(-45deg,transparent 75%,#eceff3 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.view{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:260px}
.view img,.view canvas,.view svg{max-width:100%;max-height:62vh;display:block}
.tag{position:absolute;top:8px;inset-inline-start:8px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;font-weight:600;border-radius:99px;padding:3px 10px;pointer-events:none}

/* קובץ שנבחר */
.file{display:flex;align-items:center;gap:10px;font-size:14px;min-width:0}
.file b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.file small{color:var(--dim);white-space:nowrap}

/* הודעות */
.msg{font-size:13.5px;color:var(--red);text-align:center;margin-top:10px}
.msg:empty{display:none}
.note{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.6;color:var(--text);background:var(--navy-soft);border-radius:10px;padding:10px 13px}
.note svg{width:18px;height:18px;color:var(--navy);margin-top:2px}
.busy{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--dim);font-size:14px;padding:30px 0}
.spin{width:20px;height:20px;border:2.5px solid var(--navy-soft);border-top-color:var(--navy);border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.step{animation:in .28s ease}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* שורת הבטחות */
.trust{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;margin-top:18px;color:var(--dim);font-size:13px}
.trust span{display:inline-flex;align-items:center;gap:6px}
.trust svg{width:16px;height:16px;color:var(--navy)}
.more{margin-top:26px}
.more h2{font-size:14px;color:var(--dim);font-weight:700;text-align:center;margin-bottom:12px}

/* כרטיסי כלים (דף הכלים וכלים נוספים) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tool{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.tool:hover{border-color:#b9c3d1;box-shadow:var(--shadow);transform:translateY(-1px)}
.tool .tile{width:42px;height:42px;border-radius:11px}
.tool b{display:block;font-size:15.5px;font-weight:800;margin-bottom:3px}
.tool .d{display:block;font-size:13.5px;color:var(--dim);line-height:1.5}
.grid.mini{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.grid.mini .tool{padding:11px 13px;align-items:center}
.grid.mini .tool .tile{width:34px;height:34px}
.grid.mini .tool b{font-size:14px;margin:0}
.grid.mini .tool .d{display:none}

footer{text-align:center;padding:16px;font-size:13px;color:#9aa0a6}
footer a{color:#9aa0a6;text-decoration:none}footer a:hover{color:var(--navy)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:480px){.chead small{font-size:12px;line-height:1.4}.actions .btn,.exp .btn{flex:1 1 auto}}
.legal{text-align:center;font-size:12.5px;color:var(--dim);margin:14px auto 0;max-width:640px;line-height:1.6}
.legal a{color:var(--navy);font-weight:600}
/* דף טקסט (תנאי שימוש) */
.doc{padding:26px 28px 30px;line-height:1.8}
.doc h1{font-size:24px;font-weight:800;margin:0 0 4px}
.doc .upd{color:var(--dim);font-size:13px;margin-bottom:18px}
.doc h2{font-size:16px;color:var(--navy);margin:24px 0 6px}
.doc p,.doc li{font-size:15px;color:var(--text);margin:0 0 8px}
.doc ul{padding-inline-start:20px;margin:0 0 8px}
.doc .box{background:var(--navy-soft);border-radius:10px;padding:12px 16px;margin:0 0 8px}
@media (max-width:480px){.doc{padding:20px 16px 24px}}
.gate{text-align:center;padding:34px 22px 28px}
.gate .tile{width:56px;height:56px;border-radius:16px;margin:0 auto 14px}
.gate .tile svg{width:26px;height:26px}
.gate h1{font-size:22px;font-weight:800;margin:0 0 8px}
.gate .sub{max-width:440px;margin:0 auto 20px}
.crumb .home{margin-inline-start:auto}
