/* Process mapping tool. Reuses .calc, .result, .field and .hint from site.css. */
.pm-settings .fields{grid-template-columns:2fr 1fr 1fr 1fr}
.pm-step{border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;margin:0 0 12px;background:#fff}
.pm-step legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pm-step-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.pm-num{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:var(--night);color:#fff;font:600 14px var(--heading)}
.pm-step-head .pm-text{flex:1;min-width:0}
.pm-step-head .pm-text input{width:100%;font:600 17px var(--heading);border:0;border-bottom:1px dashed #94a3b8;padding:4px 0;background:transparent;color:var(--ink)}
.pm-tools{display:flex;gap:4px}
.pm-tools button{min-width:36px;min-height:36px;border:1px solid var(--line);background:#fff;border-radius:6px;cursor:pointer;font:600 14px var(--sans);color:var(--ink)}
.pm-tools button:hover:not(:disabled){background:var(--sky)}
.pm-tools button:disabled{opacity:.35;cursor:default}
.pm-step .fields{display:grid;grid-template-columns:1.2fr 1.6fr 1fr .7fr;gap:12px;align-items:end}
.pm-step .field input,.pm-step .field select,.pm-settings .field input{width:100%}
.pm-step .pm-check{display:flex;gap:8px;align-items:center;grid-column:1/-1;font-size:14px;color:var(--muted)}
.pm-step .pm-check input{width:18px;height:18px}
.pm-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.pm-actions .button{min-height:44px;padding:10px 16px;font-size:15px}
.pm-file{position:relative;overflow:hidden}
.pm-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.pm-status{min-height:1.4em;font-size:14px;color:var(--ok);margin:8px 0 0}
.pm-map{border:1px solid var(--line);border-radius:14px;background:var(--pale);padding:18px;overflow-x:auto}
.pm-map svg{display:block;width:100%;max-width:680px;height:auto;margin:0 auto}
.pm-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0 0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.pm-legend li{display:flex;gap:6px;align-items:center}
.pm-legend i{display:inline-block;width:14px;height:14px;border-radius:3px;border:1.5px solid}
.pm-table-wrap{overflow-x:auto;margin-top:18px;border:1px solid var(--line);border-radius:var(--r)}
.pm-table{width:100%;border-collapse:collapse;font-size:14px;min-width:760px}
.pm-table th,.pm-table td{padding:10px 12px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}
.pm-table thead th{background:var(--pale);font-weight:600;color:var(--ink);white-space:nowrap}
.pm-table td:nth-child(5),.pm-table td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
.pm-fit{display:inline-block;padding:3px 8px;border-radius:4px;font-weight:600;font-size:12px;white-space:nowrap;border:1px solid}
.pm-fit-high{background:#f0fdf4;color:#15803d;border-color:#86c79a}
.pm-fit-medium{background:#eff6ff;color:#1d4ed8;border-color:#93b4ed}
.pm-fit-low{background:#fffbeb;color:#b45309;border-color:#e2c08d}
.pm-fit-person{background:#f5f3ff;color:#6d28d9;border-color:#c4b5fd}
.pm-fit-none{background:#f8fafc;color:#475569;border-color:#cbd5e1}
.pm-weights{width:100%;border-collapse:collapse;font-size:15px;margin:12px 0}
.pm-weights th,.pm-weights td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left}
.pm-weights td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.result .pm-bridge{color:#c8d1de}
@media (max-width:1100px){.pm-settings .fields{grid-template-columns:1fr 1fr}.pm-step .fields{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.pm-settings .fields,.pm-step .fields{grid-template-columns:1fr}.pm-step-head{flex-wrap:wrap}.pm-step-head .pm-text{flex-basis:calc(100% - 40px)}.pm-tools{margin-left:auto}}
@media print{.pm-step .pm-tools,.pm-actions,.pm-check{display:none}.pm-map{background:#fff;border:1pt solid #000}.pm-table{min-width:0}}
