.tool-root{direction:rtl;background:linear-gradient(180deg,#f7fbff,#eef5ff);padding:12px;border-radius:14px}
.friendly-panel-toggle{border-radius:12px;background:linear-gradient(90deg,#2563eb,#38bdf8);border:none;color:#fff;box-shadow:0 10px 25px rgba(37,99,235,.25)}
.mobile-panel-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:1050;display:none;backdrop-filter:blur(5px)}
.mobile-panel-dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,95%);max-height:90vh;overflow:auto;background:#ffffff;border:1px solid #dbeafe;border-radius:16px;padding:14px;color:#0f172a;box-shadow:0 30px 80px rgba(2,6,23,.22)}
.ai-card{border-radius:14px;border:1px solid #dbeafe;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.ai-card-header{background:linear-gradient(90deg,#2563eb,#38bdf8);color:#fff;border-radius:14px 14px 0 0;padding:10px 14px;font-weight:700}
.ai-card-body{padding:14px;background:#f8fbff}
.ai-tab-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.ai-tab-btn{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:10px;padding:6px 12px;cursor:pointer;transition:.2s}
.ai-tab-btn:hover{background:#dbeafe}
.ai-tab-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}
.ai-tab-pane{display:none}
.ai-tab-pane.active{display:block}
.panel-scroll{max-height:240px;overflow:auto}
.small-muted{font-size:12px;color:#64748b}
.url-break{word-break:break-all}
.main-index{direction:rtl}
.input-rtl{direction:rtl}
.input-ltr{direction:ltr}
.textarea-rtl{direction:rtl;resize:vertical}
.rounded-soft{border-radius:12px}
.links-section{display:none;margin-top:15px}
.link-item{margin-bottom:10px}
.submit-strong{margin-top:15px;font-weight:700}
.loading-area{display:none}
.progress-20{height:20px}
.progress-zero{width:0%}
.content-body{background:#fff;line-height:2.1;font-size:17px;direction:rtl;text-align:right;border:1px solid #e2e8f0;border-radius:12px}
.history-modal-body{max-height:65vh;overflow:auto;line-height:2;background:#fff;color:#0f172a;padding:12px;border-radius:10px;border:1px solid #e2e8f0}
.anchor-select{min-height:170px}
.project-alert{border-radius:12px;background:#f8fafc}
.panel-item{border:1px solid #dbeafe;border-radius:10px;background:#fff;padding:10px;margin-bottom:8px}
.panel-form .form-control{background:#fff;border:1px solid #bfdbfe;color:#0f172a}
.panel-form .form-control::placeholder{color:#94a3b8}
.link-tag-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.link-tag-btn{border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af;border-radius:999px;padding:6px 12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.link-tag-remove{border:none;background:#ef4444;color:#fff;width:24px;height:24px;border-radius:999px;line-height:24px;font-size:18px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.ajax-status{font-size:12px;color:#64748b;margin-top:8px}
.project-anchor-picker{display:flex;flex-wrap:wrap;gap:8px;max-height:200px;overflow:auto;padding:6px;border:1px solid #dbeafe;border-radius:10px;background:#fff}
.project-anchor-btn{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:6px 12px;cursor:pointer;transition:.15s}
.project-anchor-btn.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 6px 14px rgba(37,99,235,.25)}
@media (max-width:768px){.mobile-panel-dialog{width:96%;padding:10px}}
