/* ✨ שיעור מנושא */
.tp-form .tp-row{display:flex;flex-wrap:wrap;gap:10px}.tp-form .tp-row>div{flex:1 1 140px}.tp-form .tp-f1{flex:3 1 240px}
.tp-form input[type=text],.tp-form select{font-size:18px;min-height:48px}
.btn.tp-go,.btn.tp-make{display:block;width:100%;font-size:21px;padding:15px 18px;margin-top:14px;border-radius:14px;background:linear-gradient(135deg,var(--p,#1f3a73),var(--p2,#2b4f96));color:#fff;border:0;box-shadow:0 6px 18px rgba(0,0,0,.18);cursor:pointer}
.btn.tp-make{background:linear-gradient(135deg,#7b3fe4,#c2389b);font-size:23px;padding:18px}
.btn.tp-go:disabled{opacity:.7}
.tp-chips{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:14px}
.chip{border:1px solid #c9d2e3;background:#fff;border-radius:999px;padding:5px 11px;font:inherit;font-size:14px;cursor:pointer;color:#1d2a44}.chip:hover{background:#eef3ff}
.tp-info{border-radius:12px;padding:12px 14px;margin:16px 0;font-size:15.5px;line-height:1.6}.tp-info.ok{background:#e9f7ec;border:1px solid #9fd3a9}.tp-info.warn{background:#fff6e5;border:1px solid #f0c674}
.tp-sug{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tp-card h2,.tp-pk h2{margin-top:0}.tp-card h2 small,.tp-panel h2 small{font-weight:400;font-size:14px;opacity:.75}
.tp-sum{background:#f4f6fb;border-radius:10px;padding:8px 12px;font-size:15px}
.tp-h2{margin:22px 0 8px}
.tp-stage{border-inline-start:6px solid var(--a,#8cc63f)}
.tp-sh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:17px}.tp-sh b{flex:1 1 auto}
.tp-no{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--p,#1f3a73);color:#fff;font-weight:800}
.tp-min{display:flex;align-items:center;gap:4px;font-weight:600;margin:0}.tp-min input{width:64px;min-height:38px;text-align:center}
.tp-addons{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:10px 0 14px}
.tp-ad{display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;border:1px solid #d6dbe4;border-radius:12px;padding:10px;background:#fff;cursor:pointer;font-weight:400}
.tp-ad input{grid-row:1/3;width:22px;height:22px}.tp-ad .ic{font-size:24px;grid-row:1/3}.tp-ad small{grid-column:3;font-size:13px;opacity:.8}.tp-ad.off{opacity:.55;cursor:default}
.tp-ad.sim{grid-template-columns:auto 1fr;background:#f6f9ff;cursor:default}.tp-ad.sim small{grid-column:2}
.tp-all{font-size:17px}.tp-mk-note{font-size:14px;margin:8px 0 0}
.tp-how ul{margin:8px 0 0;padding-inline-start:20px;line-height:1.7}
.tp-panel{background:linear-gradient(135deg,#f6f0ff,#eef6ff);border:2px solid #b9a3f0;border-radius:16px;padding:14px 16px;margin:14px 0}
.tp-panel h2{margin:0 0 4px}.tp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin-top:10px}
.tp-go{display:flex;flex-direction:column;gap:2px;background:#fff;border:1px solid #d3c6f5;border-radius:12px;padding:10px 12px;text-decoration:none;color:#1d2a44;min-height:72px}
.tp-go .ic{font-size:24px}.tp-go small{font-size:13px;opacity:.85}.tp-go.main{background:#7b3fe4;color:#fff;border-color:#7b3fe4}.tp-go:hover{box-shadow:0 3px 10px rgba(0,0,0,.12)}
.tp-miss{font-size:14px;margin:10px 0 0}
.tp-quick{display:flex;flex-direction:column;gap:6px;background:linear-gradient(135deg,#f6f0ff,#eef6ff);border:2px dashed #b9a3f0;border-radius:14px;padding:12px 14px;margin:12px 0}
.tp-quick>b{font-size:18px}.tp-quick>span{font-size:14.5px}.tp-qrow{display:flex;flex-wrap:wrap;gap:8px}.tp-qrow input{flex:3 1 200px;min-height:44px;font-size:17px}.tp-qrow select{flex:1 1 110px;min-height:44px}.tp-qrow .btn{flex:1 1 170px;min-height:44px}
.card.tool.topic-hero{grid-column:1/-1;background:linear-gradient(135deg,#7b3fe4,#c2389b);color:#fff;border:0}
.card.tool.topic-hero h3,.card.tool.topic-hero p,.card.tool.topic-hero .go{color:#fff}
.topic-cta{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#7b3fe4,#c2389b);color:#fff;border-radius:16px;padding:16px 18px;margin:14px 0;text-decoration:none;box-shadow:0 6px 18px rgba(123,63,228,.25)}
.topic-cta .ic{font-size:34px}.topic-cta b{display:block;font-size:20px}.topic-cta small{display:block;font-size:14.5px;opacity:.95}.topic-cta .go2{margin-inline-start:auto;font-weight:800;white-space:nowrap;background:rgba(255,255,255,.2);padding:8px 12px;border-radius:10px}
@media(max-width:560px){.topic-cta{flex-wrap:wrap}.topic-cta .go2{margin-inline-start:0}}
.lp-credit{text-align:center;font-weight:600;color:#3d4a5c;border-top:1px solid #d6dbe4;margin-top:16px;padding-top:10px}
@media print{.tp-panel,.tp-quick,.topic-cta{display:none!important}}
.tp-info,.tp-card,.tp-stage,.tp-panel,.tp-quick,#preview,.lp h1{overflow-wrap:anywhere;word-break:break-word}

/* live AI (v9) */
.tp-big{font-size:1.15rem;font-weight:800;color:var(--navy,#1f3a68)}
#tpTopic{width:100%;font-size:1.05rem;resize:vertical;min-height:3.2em;box-sizing:border-box}
.tp-gob{display:flex;align-items:flex-end}.tp-gob .tp-go{width:100%}
.tp-ainote{margin:8px 0 0;font-size:.92rem;font-weight:600}.tp-ainote.on{color:#2c7a2c}.tp-ainote.off{color:#6b7280}
.tp-info .tp-ainote{margin:0 0 6px}
.tp-bank{margin-top:6px}
.tp-wait{font-size:1.05rem}
.tp-dots{display:inline-flex;gap:4px;vertical-align:middle;margin-inline-start:6px}.tp-dots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.3;animation:tpd 1.2s infinite}.tp-dots i:nth-child(2){animation-delay:.2s}.tp-dots i:nth-child(3){animation-delay:.4s}
@keyframes tpd{0%,100%{opacity:.25}50%{opacity:1}}
.tp-chat h2{margin:0 0 8px}.tp-chat h2 small{font-size:.8rem;font-weight:500;color:#6b7280}
.tp-msgs{max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:6px 2px;margin-bottom:8px}
.tp-m{padding:9px 12px;border-radius:14px;max-width:88%;line-height:1.5;overflow-wrap:anywhere}
.tp-m.u{align-self:flex-start;background:#e8f0ff;border:1px solid #c9d8f7}
.tp-m.a{align-self:flex-end;background:#f6f7f9;border:1px solid #e3e6ea}
.tp-cin{display:flex;gap:8px;align-items:stretch}.tp-cin textarea{flex:1;min-width:0;resize:vertical}
.tp-ref{margin-top:8px;width:100%}
.tp-lib summary,.tp-how summary{cursor:pointer;font-weight:700}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:600px){.tp-cin{flex-direction:column}.tp-m{max-width:96%}}
