/* 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:#E61933;--green-light:#FE233E;
  --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;
  --orange-bg:#FDF0E7;--orange-text:#7A3A0A;
  --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:'Vazirmatn',Tahoma,sans-serif;background:#F3F4F1;color:var(--text-primary);-webkit-font-smoothing:antialiased;line-height:1.6;padding-bottom:env(safe-area-inset-bottom)}
.tool-body .page {;margin:0 auto;min-height:100vh;background:var(--bg-card);box-shadow:0 0 40px rgba(0,0,0,0.06)}
.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}.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;margin-bottom:6px;line-height:1.4}
.tool-body .tool-sub {font-size:13.5px;color:var(--text-secondary);margin-bottom:1.75rem;line-height:1.8}

.tool-body .steps-nav {display:flex;gap:4px;margin-bottom:1.75rem}
.tool-body .step-dot {flex:1;height:4px;border-radius:4px;background:#EDEDE8;transition:background 0.3s}
.tool-body .step-dot.active {background:var(--green-light)}.tool-body .step-dot.done {background:var(--green)}
.tool-body .step-label {font-size:12px;color:var(--text-secondary);margin-bottom:1rem}

.tool-body .section-card {background:#F8F9F6;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:16px;margin-bottom:1rem;display:none}
.tool-body .section-card.active {display:block;animation:fadeIn 0.3s ease}
@keyframes fadeIn {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:translateY(0)}}
.tool-body .section-icon {width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;margin-bottom:10px}
.tool-body .section-title {font-size:15px;font-weight:700;margin-bottom:4px}
.tool-body .section-desc {font-size:12.5px;color:var(--text-secondary);line-height:1.7;margin-bottom:14px}

.tool-body .input-group {margin-bottom:12px}
.tool-body .input-label {font-size:12.5px;color:var(--text-secondary);margin-bottom:6px;display:block;font-weight:500}
.tool-body .input-row {display:flex;align-items:center;gap:6px}
.tool-body .inp {flex:1;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:13px;font-size:16px;font-family:'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 .inp-suffix {font-size:12.5px;color:var(--text-secondary);font-weight:500;white-space:nowrap;background:#F0F0EC;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:13px 10px;flex-shrink:0}
.tool-body .field-error {font-size:12px;color:var(--danger-text);margin-top:5px;display:none}.tool-body .field-error.show {display:block}

.tool-body .auto-chip {border-radius:var(--radius-md);padding:10px 13px;display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.tool-body .auto-chip.ok {background:var(--good-bg)}.tool-body .auto-chip.ok .auto-chip-label {color:var(--good-text)}.tool-body .auto-chip.ok .auto-chip-value {color:var(--good-sub)}
.tool-body .auto-chip.warn {background:var(--warn-bg)}.tool-body .auto-chip.warn .auto-chip-label {color:var(--warn-text)}.tool-body .auto-chip.warn .auto-chip-value {color:var(--warn-sub)}
.tool-body .auto-chip.danger {background:var(--danger-bg)}.tool-body .auto-chip.danger .auto-chip-label {color:var(--danger-text)}.tool-body .auto-chip.danger .auto-chip-value {color:var(--danger-sub)}
.tool-body .auto-chip-label {font-size:12px}.tool-body .auto-chip-value {font-size:13px;font-weight:700;direction:ltr}

.tool-body .q-text {font-size:13.5px;font-weight:700;color:var(--text-primary);line-height:1.6;margin-bottom:10px;margin-top:14px}
.tool-body .options {display:flex;flex-direction:column;gap:7px;margin-bottom:4px}
.tool-body .option {border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:11px 13px;cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary);background:#fff;text-align:right;font-family:'Vazirmatn',sans-serif;width:100%;transition:all 0.15s;display:flex;align-items:center;gap:10px;line-height:1.5}
.tool-body .option.selected {border-color:var(--green-light);background:#EAF3DE;color:var(--green)}
.tool-body .option-bullet {width:17px;height:17px;border-radius:50%;border:1.5px solid var(--border-strong);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all 0.15s}
.tool-body .option.selected .option-bullet {background:var(--green);border-color:var(--green)}
.tool-body .option.selected .option-bullet::after {content:'';width:6px;height:6px;border-radius:50%;background:#fff}

.tool-body .nav-row {display:flex;gap:8px;margin-top:1.25rem}
.tool-body .nav-btn {flex:1;padding:14px;border-radius:var(--radius-md);font-size:14.5px;font-weight:700;font-family:'Vazirmatn',sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;border:none;transition: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.4;pointer-events:none}

/* result */
.tool-body .result {display:none}.tool-body .result.show {display:block;animation:fadeIn 0.35s ease}

.tool-body .status-hero {border-radius:var(--radius-lg);padding:24px 20px;text-align:center;margin-bottom:1.25rem}
.tool-body .status-hero-icon {width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:28px;color:#fff}
.tool-body .status-hero-label {font-size:12.5px;color:rgba(255,255,255,0.8);margin-bottom:6px}
.tool-body .status-hero-title {font-size:20px;font-weight:700;color:#fff;margin-bottom:10px;line-height:1.35}
.tool-body .status-hero-body {font-size:13px;color:rgba(255,255,255,0.85);line-height:1.85}
.tool-body .s-crisis {background:linear-gradient(135deg,#7B1D1D,#D85A30)}
.tool-body .s-weak {background:linear-gradient(135deg,#7A3A0A,#C47A1E)}
.tool-body .s-mid {background:linear-gradient(135deg,#5A4A00,#B8971A)}
.tool-body .s-good {background:linear-gradient(135deg,#1B4D0A,#3B8A12)}

/* dimension cards */
.tool-body .dim-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:1.25rem}
.tool-body .dim-card {border-radius:var(--radius-md);padding:13px 12px;position:relative;overflow:hidden}
.tool-body .dim-card.ok {background:var(--good-bg)}.tool-body .dim-card.warn {background:var(--warn-bg)}.tool-body .dim-card.danger {background:var(--danger-bg)}.tool-body .dim-card.orange {background:var(--orange-bg)}
.tool-body .dim-card-icon {font-size:20px;margin-bottom:6px}
.tool-body .dim-card-label {font-size:11px;font-weight:600;margin-bottom:3px}
.tool-body .dim-card.ok .dim-card-label {color:var(--good-text)}.tool-body .dim-card.warn .dim-card-label {color:var(--warn-text)}.tool-body .dim-card.danger .dim-card-label {color:var(--danger-text)}.tool-body .dim-card.orange .dim-card-label {color:var(--orange-text)}
.tool-body .dim-card-status {font-size:13px;font-weight:700}
.tool-body .dim-card.ok .dim-card-status {color:var(--good-sub)}.tool-body .dim-card.warn .dim-card-status {color:var(--warn-sub)}.tool-body .dim-card.danger .dim-card-status {color:var(--danger-sub)}.tool-body .dim-card.orange .dim-card-status {color:var(--orange-text)}
.tool-body .dim-card-sub {font-size:11px;margin-top:3px;opacity:0.8}
.tool-body .dim-card.ok .dim-card-sub {color:var(--good-text)}.tool-body .dim-card.warn .dim-card-sub {color:var(--warn-text)}.tool-body .dim-card.danger .dim-card-sub {color:var(--danger-text)}.tool-body .dim-card.orange .dim-card-sub {color:var(--orange-text)}

/* risk band */
.tool-body .risk-band {border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem;display:flex;gap:12px;align-items:flex-start}
.tool-body .risk-band i {font-size:20px;margin-top:2px;flex-shrink:0}
.tool-body .risk-band-body {flex:1}
.tool-body .risk-band-title {font-size:13px;font-weight:700;margin-bottom:6px}
.tool-body .risk-band-text {font-size:12.5px;line-height:1.85}
.tool-body .risk-band-q {font-size:12.5px;margin-top:10px;font-style:italic;padding-top:10px;border-top:1px solid rgba(0,0,0,0.08)}
.tool-body .risk-band.danger {background:var(--danger-bg);color:var(--danger-text)}
.tool-body .risk-band.warn {background:var(--warn-bg);color:var(--warn-text)}
.tool-body .risk-band.orange {background:var(--orange-bg);color:var(--orange-text)}

/* pipeline visual */
.tool-body .pipeline-box {background:#F4F4F1;border-radius:var(--radius-lg);padding:14px;margin-bottom:1.25rem}
.tool-body .pipeline-title {font-size:13px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tool-body .pipeline-title i {color:var(--green);font-size:15px}
.tool-body .pipeline-rows {display:flex;flex-direction:column;gap:8px}
.tool-body .pipeline-row {display:flex;justify-content:space-between;align-items:center;font-size:12.5px}
.tool-body .pipeline-row span:first-child {color:var(--text-secondary)}.tool-body .pipeline-row span:last-child {font-weight:700;direction:ltr}

.tool-body .tool-heading {display:flex;align-items:flex-start;gap:12px;margin-bottom:1.75rem}

.tool-body .tool-heading-copy {min-width:0;flex:1}
.tool-body .tool-title {font-size:19px;font-weight:700;margin-bottom:5px;line-height:1.45}
.tool-body .tool-sub {font-size:13.5px;color:var(--text-secondary);margin-bottom:0;line-height:1.8}

.tool-body .next-steps {background:#F4F4F1;border-radius:var(--radius-lg);padding:18px;margin-bottom:1.25rem}
.tool-body .next-steps-title {font-size:15px;font-weight:800;color:#C92A2A;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tool-body .next-steps-title i {color:#C92A2A;font-size:18px}
.tool-body .next-steps ul {list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
.tool-body .next-steps li {font-size:12.5px;line-height:1.9;display:flex;flex-direction:row;align-items:flex-start;gap:9px;color:var(--text-primary);direction:rtl;text-align:right}
.tool-body .next-steps li::before {content:none}
.tool-body .next-steps li .step-num {width:24px;height:24px;min-width:24px;border-radius:50%;background:#E61933;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;line-height:1;margin-top:1px}
.tool-body .next-steps li .step-copy {flex:1;min-width:0}
.tool-body .next-steps li strong {font-size:12.5px;display:block}
.tool-body .next-steps li span {color:var(--text-secondary);display:block}
@media(max-width:360px) {
  .tool-body .tool-heading {gap:10px;margin-bottom:22px}
  .tool-body .tool-thumb {width:40px;height:40px;border-radius:12px}
  .tool-body .tool-title {font-size:19px}
  .tool-body .tool-sub {font-size:13px}
  .tool-body .next-steps-title {font-size:14px}
  .tool-body .next-steps li {font-size:12.5px}
}

.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;border-radius:var(--radius-md);cursor:pointer;font-family:'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}
.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));position:relative;animation:slideUp 0.25s ease}
@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-close {position:absolute;top:14px;left:14px;background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:6px}
.tool-body .pdf-render-area {position:fixed;left:-9999px;top:0}
@media(max-width:360px) {.tool-body .w {padding:1.25rem 1rem 2rem}}

/* ===== Mobile-first refinements ===== */
.tool-body {width:100%;max-width:100%;overflow-x:hidden}
.tool-body {min-width:0}
.tool-body .container {width:100%;max-width:100%;box-sizing:border-box;padding-left:16px;padding-right:16px}
.tool-body .tool-heading {gap:10px;margin-bottom:22px}
.tool-body .tool-thumb {width:42px;height:42px;border-radius:12px}
.tool-body .tool-title {font-size:18px;line-height:1.55}
.tool-body .tool-sub {font-size:13px;line-height:1.9}
.tool-body .card {width:100%;box-sizing:border-box}
.tool-body .question-card {padding:18px 16px}
.tool-body .option {width:100%;box-sizing:border-box;padding:13px 12px}
.tool-body .option-label {font-size:13px;line-height:1.8}
.tool-body .progress {margin-left:0;margin-right:0}
.tool-body .result-card {padding:18px 15px}
.tool-body .result-title {font-size:19px;line-height:1.65}
.tool-body .result-body {font-size:13px;line-height:2}
.tool-body .result-grid {grid-template-columns:1fr 1fr;gap:8px}
.tool-body .result-metric {padding:11px 9px}
.tool-body .result-metric .value {font-size:14px}
.tool-body .result-metric .label {font-size:10.5px;line-height:1.7}
.tool-body .next-steps {padding:16px 14px}
.tool-body .next-steps-title {font-size:14px}
.tool-body .next-steps li {font-size:12.5px;line-height:1.95}
.tool-body .next-steps li .step-num {width:23px;height:23px;min-width:23px}
.tool-body .next-steps li strong {font-size:12.5px}
.tool-body .next-steps li span {font-size:12px}
.tool-body .actions {display:flex;flex-direction:column;gap:9px}
.tool-body .actions .btn {width:100%;box-sizing:border-box}
.tool-body .btn {min-height:46px;padding:11px 14px}
.tool-body .small-note {font-size:11.5px;line-height:1.9}
.tool-body .footer {font-size:10.5px;line-height:1.8;padding-bottom:24px}

@media(max-width:480px) {
  .tool-body .container {padding-left:13px;padding-right:13px}
  .tool-body .tool-heading {align-items:flex-start}
  .tool-body .tool-thumb {width:40px;height:40px;font-size:12px}
  .tool-body .tool-title {font-size:17px}
  .tool-body .tool-sub {font-size:12.5px}
  .tool-body .question-card {padding:16px 13px}
  .tool-body .question-title {font-size:15px;line-height:1.8}
  .tool-body .question-help {font-size:11.5px;line-height:1.8}
  .tool-body .option {padding:12px 10px}
  .tool-body .result-grid {grid-template-columns:1fr}
  .tool-body .result-metric {display:flex;align-items:center;justify-content:space-between;gap:10px}
  .tool-body .result-metric .label {order:2;text-align:left}
  .tool-body .result-metric .value {order:1}
}

@media(max-width:360px) {
  .tool-body .container {padding-left:10px;padding-right:10px}
  .tool-body .tool-title {font-size:16px}
  .tool-body .tool-sub {font-size:12px}
  .tool-body .question-card {padding:14px 11px}
  .tool-body .option-label {font-size:12.5px}
  .tool-body .next-steps li {gap:7px}
}

/* ===== Mobile PDF capture: A4 page is isolated from screen styles ===== */
.tool-body #pdf-render-area {
  width:700px!important;
  max-width:none!important;
  overflow:visible!important;
}

/* ===== Dashboard result ===== */
.tool-body .sales-dashboard {margin-top:14px}
.tool-body .dashboard-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.tool-body .dashboard-card {background:#fff;border:1px solid #E7E7E2;border-radius:12px;padding:11px;min-width:0}
.tool-body .dashboard-label {font-size:10.5px;color:#666;line-height:1.7}
.tool-body .dashboard-value {font-size:16px;font-weight:900;line-height:1.55;margin-top:2px}
.tool-body .dashboard-three {display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tool-body .dashboard-status {background:#fff;border:1px solid #E7E7E2;border-radius:12px;padding:10px;min-width:0}
.tool-body .status-line {font-size:12.5px;font-weight:900;margin-top:3px}
.tool-body .status-note {font-size:10px;color:#666;line-height:1.7;margin-top:3px}
.tool-body .status-good {color:#27500A}.tool-body .status-mid {color:#633806}.tool-body .status-weak, .tool-body .status-danger {color:#B42318}.tool-body .status-unknown {color:#666}
.tool-body .dashboard-disclaimer {font-size:9.5px;color:#777;line-height:1.7;margin-top:9px}
.tool-body .managerial-insight {margin-top:12px;background:#F7F7F4;border-right:4px solid #D92D20;border-radius:12px;padding:13px 14px}
.tool-body .managerial-title {font-size:13px;font-weight:900;color:#C92A2A;margin-bottom:5px}
.tool-body #managerial-insight-text {font-size:12.5px;line-height:2;color:#3F3F3B}
.tool-body .curiosity-note {display:flex;align-items:flex-start;gap:7px;margin-top:9px;padding:9px 10px;border-radius:10px;background:#FAECE7;color:#712B13;font-size:11px;line-height:1.8}
.tool-body .curiosity-dot {width:6px;height:6px;border-radius:50%;background:#E61933;flex:0 0 6px;margin-top:7px}
@media(max-width:480px) {
 .tool-body .dashboard-three {grid-template-columns:1fr}
 .tool-body .dashboard-status {display:grid;grid-template-columns:92px 1fr;column-gap:7px;align-items:start}
 .tool-body .dashboard-status .dashboard-label {grid-row:1 / span 2}
 .tool-body .dashboard-status .status-line {margin-top:0}
 .tool-body .dashboard-status .status-note {grid-column:2}
}

.tool-body .tool-heading {display:flex;align-items:flex-start;gap:10px;margin-bottom:22px}
.tool-body .tool-thumb {width:42px;height:42px;border-radius:12px;background:#E61933;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex:0 0 42px}
.tool-body .tool-heading-copy {min-width:0;flex:1}
.tool-body .tool-heading-copy .tool-title {font-size:18px;font-weight:800;line-height:1.55;margin:0 0 4px}
.tool-body .tool-heading-copy .tool-sub {font-size:13px;color:var(--text-secondary);line-height:1.9;margin:0}

@media(max-width:480px) {
  .tool-body #dash-time {font-size:15px!important;white-space:nowrap}
}

/* ===== Result as a separate full-screen page ===== */
.tool-body #result {display:none!important;position:fixed!important;inset:0!important;z-index:1000!important;width:100%!important;height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;background:var(--bg,#F7F7F4)!important;padding:0!important;box-sizing:border-box!important}
.tool-body #result.result-page-open {display:block!important}
.tool-body #result .result-page-shell {width:100%;min-height:100%;box-sizing:border-box;padding:14px 0 32px}
.tool-body #result .result-page-topbar {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.tool-body #result .result-page-label {font-size:12px;color:var(--text-secondary,#666)}
.tool-body #result .result-back {border:1px solid var(--border,#E7E7E2);background:#fff;color:var(--text-primary,#1A1A18);border-radius:10px;min-height:40px;padding:8px 12px;font-family:inherit;font-size:12px;cursor:pointer}
.tool-body body.result-page-active {overflow:hidden!important}
@media(max-width:480px) {.tool-body #result .result-page-shell {padding:10px 0 28px}.tool-body #result .result-page-label {font-size:11px}.tool-body #result .result-back {min-height:42px}}

/* ===== Dashboard diagnostic cards: same visual weight as main KPI cards ===== */
.tool-body .dashboard-three {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:8px;
}
.tool-body .dashboard-status {
  background:#F7F7F4;
  border:1px solid #E7E7E2;
  border-radius:13px;
  padding:12px;
  min-width:0;
  min-height:88px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.tool-body .dashboard-status .dashboard-label {
  font-size:10.5px;
  color:#666;
  line-height:1.7;
}
.tool-body .dashboard-status .status-line {
  font-size:17px;
  font-weight:900;
  line-height:1.5;
  margin-top:4px;
}
.tool-body .dashboard-status .status-note {
  font-size:10.5px;
  color:#666;
  line-height:1.7;
  margin-top:3px;
}
@media(max-width:480px) {
  .tool-body .dashboard-three {grid-template-columns:1fr!important}
  .tool-body .dashboard-status {
    min-height:76px;
    display:grid!important;
    grid-template-columns:105px 1fr!important;
    grid-template-rows:auto auto!important;
    column-gap:8px;
    align-items:center;
  }
  .tool-body .dashboard-status .dashboard-label {
    grid-row:1 / span 2;
    font-size:11px;
  }
  .tool-body .dashboard-status .status-line {
    font-size:17px!important;
    margin-top:0!important;
  }
  .tool-body .dashboard-status .status-note {
    grid-column:2;
    font-size:10.5px;
    margin-top:0;
  }
}

/* ===== 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:#E61933;box-shadow:0 0 0 3px rgba(230,25,51,.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:#E61933;
  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}
@media(max-width:480px) {.tool-body .dashboard-subvalue {font-size:10px}}

/* ===== KASBMAN UI/UX brand system ===== */
.tool-body .eco-header {padding:0 0 15px;margin:0 0 18px;border-bottom:1px solid var(--border)}
.tool-body .eco-header-brand-row {display:flex;align-items:center;justify-content:flex-start;gap:12px;direction:rtl;min-width:0}
.tool-body .eco-header-logo {width:54px;height:33px;object-fit:contain;object-position:center;display:block;flex:0 0 auto}
.tool-body .eco-header-brand-block {direction:rtl;text-align:right;min-width:0}
.tool-body .eco-header-brand {font-size:19px;font-weight:900;line-height:1.35;color:var(--text-primary)}
.tool-body .eco-header-tagline {font-size:11.5px;color:var(--text-secondary);margin-top:2px;line-height:1.5}
.tool-body .page-tool-title {font-size:20px;font-weight:850;line-height:1.55;margin:0 0 5px;color:var(--text-primary)}
.tool-body .page-tool-sub {font-size:13px;color:var(--text-secondary);line-height:1.9;margin:0 0 18px}
.tool-body .result-eco-header {margin-bottom:16px}
.tool-body .result-page-topbar {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.tool-body .result-page-label {font-size:12.5px;color:var(--text-secondary);font-weight:700}
.tool-body .result-back {border:1px solid var(--border-strong);background:#fff;color:var(--text-secondary);border-radius:10px;padding:9px 12px;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.tool-body .result-back:hover {background:#F7F7F4}
.tool-body .section-card {background:#fff}
.tool-body .option {min-height:48px;align-items:flex-start;line-height:1.8}
.tool-body .option-bullet {margin-top:2px}
.tool-body .nav-row {position:relative}
@media(max-width:480px) {
  .tool-body .w {padding:1.15rem 1rem 2rem}
  .tool-body .eco-header {padding-bottom:12px;margin-bottom:15px}
  .tool-body .eco-header-logo {width:48px;height:30px}
  .tool-body .eco-header-brand {font-size:18px}
  .tool-body .eco-header-tagline {font-size:10.5px}
  .tool-body .page-tool-title {font-size:17px}
  .tool-body .page-tool-sub {font-size:12.5px;margin-bottom:15px}
  .tool-body .result-page-topbar {align-items:stretch}
  .tool-body .result-back {width:100%;min-height:44px}
  .tool-body .option {min-height:50px;padding:12px 11px;font-size:12.5px}
  .tool-body .nav-btn {min-height:48px}
}
@media(max-width:360px) {
  .tool-body .eco-header-brand {font-size:17px}
  .tool-body .eco-header-logo {width:44px;height:28px}
  .tool-body .page-tool-title {font-size:16px}
  .tool-body .page-tool-sub {font-size:12px}
}

/* ===== KASBMAN visual brand layer ===== */
.tool-body {
  --green:#1976D2;
  --green-light:#0D47A1;
  --bg-card:#FFFFFF;
  --text-primary:#172033;
  --text-secondary:#5B6575;
  --text-tertiary:#8791A1;
  --border:rgba(13,71,161,0.12);
  --border-strong:rgba(13,71,161,0.22);
}
.tool-body {background:#F1F3F6}
.tool-body {font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif}
.tool-body .page {background:#FFFFFF;box-shadow:0 12px 40px rgba(13,71,161,0.07)}
.tool-body .eco-header {border-bottom-color:rgba(13,71,161,0.14)}
.tool-body .eco-header-brand {color:#0D47A1}
.tool-body .eco-header-tagline {color:#5B6575}
.tool-body .eco-header-logo {width:48px;height:48px;object-fit:contain}
.tool-body .option {font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif;background:#FFFFFF;border-color:rgba(13,71,161,0.18)}
.tool-body .option:hover {border-color:#64B5F6;background:#F7FAFF}
.tool-body .option.selected {border-color:#1976D2;background:#EAF3FF;color:#0D47A1}
.tool-body .option.selected .option-bullet {background:#1976D2;border-color:#1976D2}
.tool-body .step-dot {background:#E4EAF2}
.tool-body .step-dot.active {background:#1976D2}
.tool-body .step-dot.done {background:#0D47A1}
.tool-body .act-btn {font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif;border-color:rgba(13,71,161,0.2)}
.tool-body .act-btn.primary {background:#1976D2;border-color:#1976D2}
.tool-body .act-btn.primary:hover {background:#0D47A1}
.tool-body .btn {font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif}
.tool-body button.primary, .tool-body .btn.primary {background:#1976D2!important;border-color:#1976D2!important}
.tool-body button.primary:hover, .tool-body .btn.primary:hover {background:#0D47A1!important}
.tool-body .watermark span {color:#1976D2}
.tool-body .result-domain {margin-top:6px;text-align:center;font-size:12px;font-weight:800;color:#0D47A1;direction:ltr}
.tool-body .next-steps {background:#F7F9FC}
.tool-body .next-steps-title {color:#0D47A1}
.tool-body .next-steps-title i {color:#1976D2}
.tool-body .dashboard-card, .tool-body .dashboard-status {border-color:#E0E7F0}
.tool-body .managerial-insight {border-right-color:#F2B705}
@media(max-width:480px) {.tool-body .eco-header-logo {width:44px;height:44px}}
@media(max-width:360px) {.tool-body .eco-header-logo {width:40px;height:40px}}
/* the note under the funnel section's title (step 3) */
.tool-body .funnel-note {display:flex;gap:10px;align-items:flex-start;background:#F4F8FE;border:1px solid rgba(25,118,210,0.22);border-right:3px solid #1976D2;border-radius:10px;padding:10px 12px;margin-bottom:16px;font-size:12.5px;line-height:1.9;color:var(--text-primary)}
.tool-body .funnel-note>i {color:#1976D2;font-size:17px;flex-shrink:0;margin-top:3px}
.tool-body .funnel-note .kb-info-link {font-size:12.5px;padding:0 .25rem}
.tool-body .input-label .kb-info-link {font-size:12px;padding:0 .25rem;margin-inline-start:4px}
