/* Imported from the standalone index.html by
   app/bin/import_tool_html.php. Every selector is scoped to .tool-body so
   the tool cannot restyle the shared header and footer, and its custom
   properties cannot leak out of its own subtree. Edit this file, not the
   original document. */

.tool-body {
  --green:#1976D2;
  --green-light:#1976D2;
  --bg-page:#F3F4F1;
  --bg-card:#FFFFFF;
  --text-primary:#1A1A18;
  --text-secondary:#5F5E5A;
  --text-tertiary:#888780;
  --border:rgba(0,0,0,0.09);
  --border-strong:rgba(0,0,0,0.16);
  --danger-bg:#FAECE7; --danger-text:#712B13; --danger-sub:#993C1D;
  --warn-bg:#FAEEDA; --warn-text:#633806; --warn-sub:#854F0B;
  --good-bg:#EAF3DE; --good-text:#27500A; --good-sub:#3B6D11;
  --radius-md:10px; --radius-lg:16px;
}
.tool-body * {box-sizing:border-box;margin:0;padding:0}
.tool-body {height:100%}
.tool-body {
  font-family:'IRANYekan','IranYekan','Vazirmatn',Tahoma,sans-serif;
  background:var(--bg-page);
  color:var(--text-primary);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  padding-bottom:env(safe-area-inset-bottom);
}

.tool-body .w {padding:1.5rem 1.25rem 2.5rem}

.tool-body .brand {display:flex;align-items:center;gap:10px;margin-bottom:1.75rem;padding-bottom:1.25rem;border-bottom:1px solid var(--border)}
.tool-body .brand-logo {width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--green-light),var(--green));display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;flex-shrink:0}
.tool-body .brand-name {font-size:16px;font-weight:700;color:var(--text-primary)}
.tool-body .brand-sub {font-size:12.5px;color:var(--text-secondary);margin-top:1px}

.tool-body .tool-title {font-size:19px;font-weight:700;color:var(--text-primary);margin-bottom:6px;line-height:1.45}
.tool-body .tool-sub {font-size:13.5px;color:var(--text-secondary);margin-bottom:1.5rem;line-height:1.8}

.tool-body .progress-wrap {margin-bottom:1.75rem}
.tool-body .progress-track {height:6px;background:#EDEDE8;border-radius:6px;overflow:hidden}
.tool-body .progress-fill {height:100%;background:linear-gradient(90deg,var(--green-light),var(--green));border-radius:6px;width:0%;transition:width 0.35s ease}
.tool-body .progress-label {font-size:12px;color:var(--text-secondary);margin-top:8px;display:flex;justify-content:space-between}

.tool-body .q-step {display:none}
.tool-body .q-step.active {display:block;animation:fadeIn 0.3s ease}
@keyframes fadeIn {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:translateY(0)}}
.tool-body .q-icon {width:46px;height:46px;border-radius:14px;background:var(--green-light);display:none;align-items:center;justify-content:center;color:#fff;font-size:21px;margin-bottom:1rem}
.tool-body .q-title {font-size:17px;font-weight:700;margin-bottom:1.25rem;line-height:1.55}

.tool-body .opt {
  display:flex;align-items:center;gap:12px;border:1.5px solid var(--border-strong);border-radius:var(--radius-lg);
  padding:14px 16px;margin-bottom:10px;cursor:pointer;transition:border-color 0.15s, background 0.15s;background:#fff;
}
.tool-body .opt:active {transform:scale(0.99)}
.tool-body .opt.selected {border-color:var(--green-light);background:#F2FAF6}
.tool-body .opt-radio {width:20px;height:20px;border-radius:50%;border:2px solid var(--border-strong);flex-shrink:0;position:relative;transition:border-color 0.15s}
.tool-body .opt.selected .opt-radio {border-color:var(--green-light)}
.tool-body .opt.selected .opt-radio::after {content:'';position:absolute;inset:3px;border-radius:50%;background:var(--green-light)}
.tool-body .opt-text {font-size:14px;font-weight:500;line-height:1.6}

.tool-body .nav-row {display:flex;gap:8px;margin-top:1.5rem}
.tool-body .nav-btn {
  flex:1;padding:14px;border-radius:var(--radius-md);font-size:14.5px;font-weight:700;font-family:'IRANYekan','IranYekan','Vazirmatn',sans-serif;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;border:none;transition:opacity 0.15s, transform 0.1s;
}
.tool-body .nav-btn:active {transform:scale(0.98)}
.tool-body .nav-btn.next {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;box-shadow:0 4px 14px rgba(15,110,86,0.28)}
.tool-body .nav-btn.back {background:#F4F4F1;color:var(--text-secondary);flex:0 0 90px}
.tool-body .nav-btn:disabled {opacity:0.45;pointer-events:none}

.tool-body .result {display:none}
.tool-body .result.show {display:block;animation:fadeIn 0.35s ease}
.tool-body .divider {border:none;border-top:1px solid var(--border);margin:1.25rem 0}

.tool-body .verdict-hero {border-radius:var(--radius-lg);padding:22px 20px;text-align:center;margin-bottom:1.25rem}
.tool-body .verdict-hero-icon {width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:26px;color:#fff}
.tool-body .verdict-hero-title {font-size:19px;font-weight:700;margin-bottom:8px}
.tool-body .verdict-hero-body {font-size:13.5px;line-height:1.85}

.tool-body .v-danger {background:var(--danger-bg);color:var(--danger-text)} .tool-body .v-danger .verdict-hero-icon {background:#D85A30}
.tool-body .v-warn {background:var(--warn-bg);color:var(--warn-text)} .tool-body .v-warn .verdict-hero-icon {background:#BA7517}
.tool-body .v-ok {background:var(--good-bg);color:var(--good-text)} .tool-body .v-ok .verdict-hero-icon {background:#639922}

.tool-body .breakdown-title {font-size:13px;font-weight:700;color:var(--text-secondary);margin-bottom:10px}
.tool-body .breakdown {display:flex;flex-direction:column;gap:8px;margin-bottom:1.25rem}
.tool-body .bd-row {display:flex;align-items:center;gap:10px;background:#F4F4F1;border-radius:var(--radius-md);padding:10px 12px}
.tool-body .bd-icon {width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;flex-shrink:0}
.tool-body .bd-text {flex:1;font-size:12.5px}
.tool-body .bd-q {color:var(--text-secondary);margin-bottom:2px}
.tool-body .bd-a {font-weight:600;color:var(--text-primary)}

.tool-body .next-steps {background:#F4F4F1;border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .next-steps-title {font-size:13px;font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.tool-body .next-steps-title i {color:var(--green);font-size:16px}
.tool-body .next-steps ul {list-style:none;display:flex;flex-direction:column;gap:8px}
.tool-body .next-steps li {font-size:12.5px;line-height:1.8;display:block;gap:8px;color:var(--text-primary)}
.tool-body .next-steps li::before {content:'';display:none}

.tool-body .actions {display:flex;gap:8px;flex-wrap:wrap}
.tool-body .act-btn {
  flex:1;min-width:120px;border:1.5px solid var(--border-strong);background:#fff;color:var(--text-secondary);
  font-size:13.5px;font-weight:600;padding:12px 12px;border-radius:var(--radius-md);cursor:pointer;
  font-family:'IRANYekan','IranYekan','Vazirmatn',sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;
  transition:background 0.15s;
}
.tool-body .act-btn:active {background:#F4F4F1}
.tool-body .act-btn.primary {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;border-color:transparent}

.tool-body .watermark {text-align:center;font-size:12px;color:var(--text-secondary);margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}
.tool-body .watermark span {color:var(--green);font-weight:700}

.tool-body .toast {
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--text-primary);color:#fff;padding:10px 18px;border-radius:30px;font-size:13px;
  opacity:0;pointer-events:none;transition:opacity 0.25s, transform 0.25s;z-index:50;
}
.tool-body .toast.show {opacity:1;transform:translateX(-50%) translateY(0)}

.tool-body .modal-overlay {
  position:fixed;inset:0;background:rgba(20,20,18,0.55);display:none;
  align-items:flex-end;justify-content:center;z-index:100;padding:0;
}
.tool-body .modal-overlay.show {display:flex;animation:fadeIn 0.2s ease}
.tool-body .modal-sheet {
  background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;
  padding:1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  animation:slideUp 0.25s ease;position:relative;
}
@keyframes slideUp {from {transform:translateY(100%)}to {transform:translateY(0)}}
.tool-body .modal-title {font-size:16px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.tool-body .modal-title i {color:var(--green);font-size:19px}
.tool-body .modal-sub {font-size:13px;color:var(--text-secondary);line-height:1.8;margin-bottom:1.25rem}
.tool-body .modal-actions {display:flex;gap:8px;margin-top:1.25rem}
.tool-body .modal-actions .act-btn {margin:0}
.tool-body .modal-close {position:absolute;top:14px;left:14px;background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:6px}
.tool-body .field-error {font-size:12px;color:var(--danger-text);margin-top:6px;display:none}
.tool-body .field-error.show {display:block}

.tool-body .inp {
  flex:1;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);
  padding:13px 14px;font-size:16px;font-family:'IRANYekan','IranYekan','Vazirmatn',sans-serif;color:var(--text-primary);
  background:#fff;direction:ltr;text-align:left;width:100%;
  -webkit-appearance:none;appearance:none;
  transition:border-color 0.15s, box-shadow 0.15s;
}
.tool-body .inp:focus {outline:none;border-color:var(--green-light);box-shadow:0 0 0 3px rgba(29,158,117,0.12)}
.tool-body .input-label {font-size:13px;color:var(--text-secondary);margin-bottom:8px;display:block;font-weight:500}

.tool-body .pdf-render-area {position:fixed;left:-9999px;top:0}

@media (max-width:360px) { .tool-body .w {padding:1.25rem 1rem 2rem} }

/* ===== PDF phone gate ===== */
.tool-body .pdf-phone-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:3000;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-sizing:border-box;
}
.tool-body .pdf-phone-modal.open {display:flex}
.tool-body .pdf-phone-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
}
.tool-body .pdf-phone-card {
  position:relative;
  z-index:1;
  width:min(420px,100%);
  box-sizing:border-box;
  background:#fff;
  border-radius:18px;
  padding:22px 20px 20px;
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  direction:rtl;
  text-align:right;
}
.tool-body .pdf-phone-close {
  position:absolute;
  left:12px;
  top:10px;
  width:32px;
  height:32px;
  border:0;
  background:#F4F4F1;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.tool-body .pdf-phone-title {
  font-size:18px;
  font-weight:900;
  margin-bottom:7px;
  padding-left:35px;
}
.tool-body .pdf-phone-text {
  font-size:12.5px;
  line-height:1.9;
  color:#666;
  margin-bottom:14px;
}
.tool-body .pdf-phone-label {
  display:block;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.tool-body .pdf-phone-input {
  width:100%;
  height:48px;
  box-sizing:border-box;
  border:1px solid #D8D8D2;
  border-radius:11px;
  padding:10px 12px;
  font-family:inherit;
  font-size:16px;
  direction:ltr;
  text-align:left;
  outline:none;
}
.tool-body .pdf-phone-input:focus {border-color:#1976D2;box-shadow:0 0 0 3px rgba(25,118,210,.10)}
.tool-body .pdf-phone-error {
  min-height:22px;
  color:#C92A2A;
  font-size:11.5px;
  line-height:1.8;
  margin-top:5px;
}
.tool-body .pdf-phone-submit {
  width:100%;
  min-height:46px;
  border:0;
  border-radius:11px;
  background:#1976D2;
  color:#fff;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  margin-top:4px;
}
.tool-body .pdf-phone-submit:active {transform:translateY(1px)}

.tool-body .dashboard-subvalue {font-size:10px;color:#666;line-height:1.7;margin-top:2px}

/* ===== Intent Lead modal ===== */
.tool-body .intent-lead-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:3100;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-sizing:border-box;
}
.tool-body .intent-lead-modal.open {display:flex}
.tool-body .intent-lead-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
}
.tool-body .intent-lead-card {
  position:relative;
  z-index:1;
  width:min(420px,100%);
  box-sizing:border-box;
  background:#fff;
  border-radius:18px;
  padding:22px 20px 20px;
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  direction:rtl;
  text-align:right;
}
.tool-body .intent-lead-close {
  position:absolute;
  left:12px;
  top:10px;
  width:32px;
  height:32px;
  border:0;
  background:#F4F4F1;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.tool-body .intent-lead-title {
  font-size:18px;
  font-weight:900;
  margin-bottom:7px;
  padding-left:35px;
}
.tool-body .intent-lead-text {
  font-size:12.5px;
  line-height:1.9;
  color:#666;
  margin-bottom:14px;
}
.tool-body .intent-lead-label {
  display:block;
  font-size:12px;
  font-weight:800;
  margin:10px 0 6px;
}
.tool-body .intent-lead-input {
  width:100%;
  height:48px;
  box-sizing:border-box;
  border:1px solid #D8D8D2;
  border-radius:11px;
  padding:10px 12px;
  font-family:inherit;
  font-size:16px;
  outline:none;
}
.tool-body .intent-lead-input.mobile {
  direction:ltr;
  text-align:left;
}
.tool-body .intent-lead-input:focus {
  border-color:#1976D2;
  box-shadow:0 0 0 3px rgba(25,118,210,.10);
}
.tool-body .intent-lead-error {
  min-height:22px;
  color:#C92A2A;
  font-size:11.5px;
  line-height:1.8;
  margin-top:5px;
}
.tool-body .intent-lead-submit {
  width:100%;
  min-height:46px;
  border:0;
  border-radius:11px;
  background:#1976D2;
  color:#fff;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  margin-top:8px;
}
.tool-body .intent-lead-submit:disabled {opacity:.55;cursor:wait}

@media(max-width:480px) {.tool-body .dashboard-subvalue {font-size:10px}}

/* Result screen — four-dimension vertical chart */
.tool-body .result-dim-chart {
  margin-top:18px;
  padding:18px 16px 12px;
  background:#fff;
  border:1px solid #E7E7E2;
  border-radius:16px;
  direction:rtl;
}
.tool-body .result-dim-chart .chart-title {
  font-size:14px;
  font-weight:900;
  margin-bottom:14px;
  color:#171717;
}
.tool-body .result-dim-chart .chart-area {
  position:relative;
  height:220px;
  padding:0 18px 42px 38px;
  direction:ltr;
}
.tool-body .result-dim-chart .chart-grid {
  position:absolute;
  left:38px;
  right:18px;
  top:4px;
  height:155px;
  border-top:1px solid #D1D5DB;
  border-bottom:1px solid #D1D5DB;
  background:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 38px,
    #E5E7EB 38px,
    #E5E7EB 39px
  );
}
.tool-body .result-dim-chart .chart-scale {
  position:absolute;
  left:0;
  top:-3px;
  height:165px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  font-size:8px;
  color:#9CA3AF;
  direction:rtl;
}
.tool-body .result-dim-chart .chart-columns {
  position:absolute;
  left:38px;
  right:18px;
  top:4px;
  height:198px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:end;
  direction:ltr;
}
.tool-body .result-dim-chart .chart-column {
  height:198px;
  position:relative;
  min-width:0;
}
.tool-body .result-dim-chart .chart-value {
  position:absolute;
  left:50%;
  bottom:39px;
  transform:translateX(-50%);
  font-size:10px;
  font-weight:900;
  color:#171717;
  white-space:nowrap;
  direction:rtl;
}
.tool-body .result-dim-chart .chart-bar {
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:32px;
  max-width:55%;
  border-radius:7px 7px 2px 2px;
}
.tool-body .result-dim-chart .chart-label {
  position:absolute;
  left:50%;
  bottom:-40px;
  transform:translateX(-50%);
  width:100%;
  font-size:10px;
  font-weight:800;
  color:#4B5563;
  text-align:center;
  line-height:1.35;
  direction:rtl;
}



/* Business Survival Stress Test */
.tool-body .hero {padding:4px 0 18px}.tool-body .hero h1 {font-size:27px;line-height:1.45;font-weight:800}.tool-body .hero p {color:var(--text-secondary);font-size:13px;line-height:2;margin-top:8px}
.tool-body .section {margin-top:18px}.tool-body .section-title {font-size:15px;font-weight:800;margin-bottom:10px}
.tool-body .card {background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;margin-top:12px}
.tool-body .grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tool-body .field {display:flex;flex-direction:column;gap:7px}.tool-body .field.full {grid-column:1/-1}
.tool-body .label {font-size:12px;font-weight:800}.tool-body .hint {font-size:10.5px;color:var(--text-tertiary);line-height:1.8}
.tool-body .input {width:100%;height:46px;border:1px solid var(--border-strong);border-radius:10px;background:#fff;padding:0 12px;font-family:inherit;font-size:14px;color:var(--text-primary);outline:none}
.tool-body .input:focus {border-color:var(--green);box-shadow:0 0 0 3px rgba(25,118,210,.08)}.tool-body .input[data-kb-number] {direction:ltr;text-align:right}
.tool-body .choice-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tool-body .choice {position:relative}.tool-body .choice input {position:absolute;opacity:0;pointer-events:none}
.tool-body .choice label {display:flex;align-items:center;justify-content:center;min-height:45px;padding:8px 9px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:11.5px;font-weight:600;text-align:center;cursor:pointer}
.tool-body .choice input:checked+label {border-color:var(--green);background:#EAF3FF;box-shadow:0 0 0 2px rgba(25,118,210,.08)}
.tool-body .actions {display:flex;gap:10px;margin-top:18px}.tool-body .btn {border:0;border-radius:11px;min-height:48px;padding:0 18px;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
.tool-body .btn.primary {background:var(--green);color:#fff;flex:1}.tool-body .btn.secondary {background:#F4F4F1;color:var(--text-primary)}
.tool-body .note {background:#F8F8F5;border:1px solid var(--border);border-radius:10px;padding:11px 12px;color:var(--text-secondary);font-size:11px;line-height:1.9;margin-top:12px}
.tool-body .result {display:none}.tool-body .result.show {display:block}.tool-body .metric-main {background:#FFF7F8;border:1px solid rgba(230,25,51,.16);border-radius:16px;padding:18px;text-align:center}
.tool-body .metric-main .eyebrow {font-size:11px;color:var(--text-secondary);font-weight:700}.tool-body .metric-main .value {font-size:30px;font-weight:900;color:var(--danger-text);margin:5px 0}.tool-body .metric-main.stable {background:var(--good-bg);border-color:rgba(15,110,86,.18)}.tool-body .metric-main.stable .value {color:var(--green) !important}.tool-body .metric-main .sub {font-size:11px;color:var(--text-secondary);line-height:1.9}
.tool-body .metrics {display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.tool-body .metric {background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px}.tool-body .metric .k {font-size:10px;color:var(--text-tertiary)}.tool-body .metric .v {font-size:16px;font-weight:900;margin-top:3px}
.tool-body .table-wrap {overflow:hidden;margin-top:10px}.tool-body table {width:100%;border-collapse:collapse;table-layout:fixed;min-width:0}.tool-body th, .tool-body td {padding:8px 5px;border-bottom:1px solid var(--border);font-size:10.5px;text-align:right;white-space:normal;line-height:1.65}.tool-body th:nth-child(1), .tool-body td:nth-child(1) {width:28%}.tool-body th:nth-child(2), .tool-body td:nth-child(2) {width:32%}.tool-body th:nth-child(3), .tool-body td:nth-child(3) {width:40%}.tool-body th {font-weight:800;color:var(--text-secondary);background:#FAFAF8}
.tool-body .flag {padding:11px 12px;border-radius:11px;margin-top:8px;font-size:11px;line-height:1.8}.tool-body .flag.warn {background:var(--warn-bg);color:var(--warn-text)}.tool-body .flag.good {background:var(--good-bg);color:var(--good-text)}.tool-body .flag.danger {background:var(--danger-bg);color:var(--danger-text)}
.tool-body .result-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.tool-body .modal-overlay {display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;align-items:center;justify-content:center;padding:18px}
.tool-body .modal-card {width:min(420px,100%);background:#fff;border-radius:16px;padding:18px;position:relative;box-shadow:0 18px 60px rgba(0,0,0,.2)}
@media(max-width:700px) {.tool-body .grid {grid-template-columns:1fr}.tool-body .choice-grid {grid-template-columns:1fr 1fr}.tool-body .metrics {grid-template-columns:1fr}.tool-body .result-actions {grid-template-columns:1fr}.tool-body .hero h1 {font-size:23px}}
@media(max-width:430px) {.tool-body .choice-grid {grid-template-columns:1fr}.tool-body .table-wrap th, .tool-body .table-wrap td {padding:7px 3px;font-size:9.5px}.tool-body .table-wrap th:nth-child(1), .tool-body .table-wrap td:nth-child(1) {width:27%}.tool-body .table-wrap th:nth-child(2), .tool-body .table-wrap td:nth-child(2) {width:33%}.tool-body .table-wrap th:nth-child(3), .tool-body .table-wrap td:nth-child(3) {width:40%}}

.tool-body .brand {direction:rtl;justify-content:flex-start}
.tool-body .brand-logo.image-logo {background:#fff;border:0;border-radius:0;width:74px;height:42px}
.tool-body .brand-logo.image-logo img {display:block;width:74px;height:auto;max-height:42px;object-fit:contain}
.tool-body .brand-name {font-size:18px}
.tool-body .brand-sub {font-size:12.5px}
.tool-body .page.result-mode .hero, .tool-body .page.result-mode #stress-form {display:none}
.tool-body .page.result-mode .result {display:block}
.tool-body .question-nav {display:flex;gap:8px;margin-top:16px}
.tool-body .question-nav .btn {flex:1}
.tool-body .step-meta {font-size:11px;color:var(--text-secondary);font-weight:700;margin-bottom:10px}
.tool-body .form-step-hidden {display:none!important}
@media(max-width:430px) {
  .tool-body .brand-logo.image-logo {width:64px;height:38px}
  .tool-body .brand-logo.image-logo img {width:64px;max-height:38px}
  .tool-body .brand-name {font-size:17px}
  .tool-body .opt {align-items:flex-start}
  .tool-body .opt-text {font-size:13px}
}


.tool-body #intentLeadModal {display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:2200;align-items:center;justify-content:center;padding:18px}
.tool-body #intentLeadModal.open {display:flex}
.tool-body #intentLeadModal .intent-card {width:min(420px,100%);background:#fff;border-radius:16px;padding:20px;position:relative;box-shadow:0 18px 60px rgba(0,0,0,.2);direction:rtl;text-align:right}
.tool-body #intentLeadModal .intent-close {position:absolute;left:12px;top:10px;border:0;background:#F4F4F1;border-radius:50%;width:32px;height:32px;font-size:20px;cursor:pointer}
.tool-body #intentLeadModal .intent-title {font-size:18px;font-weight:900;margin-bottom:7px;padding-left:35px}
.tool-body #intentLeadModal .intent-text {font-size:12.5px;line-height:1.9;color:#666;margin-bottom:14px}
.tool-body #intentLeadModal .intent-label {display:block;font-size:12px;font-weight:800;margin:10px 0 6px}
.tool-body #intentLeadModal .intent-input {width:100%;height:48px;box-sizing:border-box;border:1px solid #D8D8D2;border-radius:11px;padding:10px 12px;font-family:inherit;font-size:16px;outline:none}
.tool-body #intentLeadModal .intent-input.mobile {direction:ltr;text-align:left}
.tool-body #intentLeadModal .intent-input:focus {border-color:#1976D2;box-shadow:0 0 0 3px rgba(25,118,210,.10)}
.tool-body #intentLeadModal .intent-error {min-height:22px;color:#C92A2A;font-size:11.5px;line-height:1.8;margin-top:5px}
.tool-body #intentLeadModal .intent-submit {width:100%;min-height:46px;border:0;border-radius:11px;background:#1976D2;color:#fff;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;margin-top:8px}
.tool-body #intentLeadModal .intent-submit:disabled {opacity:.55;cursor:wait}
.tool-body #leadToast {display:none;position:fixed;right:50%;transform:translateX(50%);bottom:24px;z-index:2300;background:#0F6E56;color:#fff;border-radius:11px;padding:12px 16px;font-size:12px;font-weight:700;box-shadow:0 10px 35px rgba(0,0,0,.18)}
.tool-body #leadToast.show {display:block}

/* ===== KASBMAN RESKIN — visual layer only ===== */
.tool-body {overflow-x:hidden}
.tool-body {background:#F1F3F6}
.tool-body .page {width:min(100%,760px);background:#fff;overflow:hidden}
.tool-body .w {padding:0 1.25rem 2.5rem}
.tool-body .brand {
  direction:rtl;justify-content:flex-start;gap:12px;
  margin:0 -1.25rem 1.5rem;
  padding:1.15rem 1.25rem 1rem;
  background:#fff;border-bottom:1px solid var(--border);
}
.tool-body .brand-logo.image-logo {
  width:48px;height:48px;
  border-radius:12px;background:#fff;border:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;flex:0 0 auto;
}
.tool-body .brand-logo.image-logo img {
  display:block;width:46px;height:46px;
  max-height:46px;object-fit:contain;
}
.tool-body .brand-name {font-size:18px;font-weight:800;line-height:1.35}
.tool-body .brand-sub {font-size:12px;color:var(--text-secondary);margin-top:1px;line-height:1.5}
.tool-body .hero h1 {font-size:24px;font-weight:800;line-height:1.5}
.tool-body .hero p {font-size:13px;line-height:1.9}
.tool-body .card {border:1.5px solid var(--border);box-shadow:none}
.tool-body .btn.primary, .tool-body .nav-btn.next, .tool-body .act-btn.primary {background:linear-gradient(135deg,#64B5F6,#1976D2)}
.tool-body .choice input:checked+label {border-color:#1976D2;background:#EAF3FF;box-shadow:0 0 0 2px rgba(25,118,210,.08)}
.tool-body .progress-fill {background:linear-gradient(90deg,#64B5F6,#1976D2)}
.tool-body .next-steps-title i, .tool-body .watermark span {color:#1976D2}
.tool-body .metric-main.stable .value {color:#1976D2 !important}

/* Aban edits: a label with its «توضیح بیشتر» link, and the always-visible Runway note. */
.tool-body .label-row {display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;min-height:18px}
.tool-body .label-row .kb-info-link {font-size:11.5px;padding:0 .25rem}
.tool-body .runway-note {margin:0;font-size:12px;line-height:1.9;color:var(--text-secondary)}
.tool-body .runway-note .kb-info-link {font-size:11.5px;white-space:nowrap}
