
/* Concept 18: slide content only; presentation and editing remain in shared shell. */
.pc-slide .slide-content{gap:9px}
.pc-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);gap:12px;flex:1;min-height:0}
.pc-chart,.pc-case{border:1px solid #d1dfee;background:#f7fbff;border-radius:14px;padding:8px 12px;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center}
.pc-plot{display:block;width:100%;height:clamp(180px,21vw,268px);max-height:268px;user-select:none;-webkit-user-select:none}
.pc-plot .pc-axis{stroke:#b5c6d9;stroke-width:1.5}
.pc-plot .pc-mesh{stroke:#e4ecf5;stroke-width:1}
.pc-plot .pc-label{font-size:17px;fill:#51708f;font-weight:750}
.pc-plot .pc-center{stroke:#fff;stroke-width:3.8;cursor:grab}
.pc-plot .pc-center:active{cursor:grabbing}
.pc-plot .pc-point{stroke:#fff;stroke-width:1.3}
.pc-plot .pc-seg{stroke:#95aac2;stroke-width:3;stroke-dasharray:6 5}
#pc-proto-plot{touch-action:none}
.pc-chart-caption{text-align:center;color:#56718e;font-size:15px;line-height:1.3;margin-top:5px}
.pc-side{justify-content:space-evenly;gap:9px;padding:15px 17px}
.pc-side strong{font-size:19px}
.pc-side p{font-size:16px;line-height:1.34}
.pc-side p strong{display:inline;font-size:inherit}
.pc-key-row{display:grid;grid-template-columns:18px 1fr auto;gap:6px 8px;align-items:center;border:1px solid #d7e3f0;border-radius:11px;background:white;padding:8px 12px;font-size:16px;color:#34516f}
.pc-key-row b{font-size:16px}
.pc-key-row span{font-size:16px;font-weight:800;color:#245d9c}
.pc-dot{width:14px;height:14px;border-radius:50%;display:inline-block}
.pc-a{background:#2878bc}.pc-b{background:#e09b38}.pc-c{background:#32a080}
.pc-mini-def{display:grid;gap:3px;border-top:1px solid #e0e9f3;padding-top:7px}
.pc-mini-def b{font-size:16px;color:#225789}.pc-mini-def span{font-size:15px;color:#506982;line-height:1.24}
.pc-button{border:1px solid #236bb0;border-radius:10px;background:#236bb0;color:white;cursor:pointer;padding:8px 12px;font:inherit;font-size:16px;font-weight:850;line-height:1.16;white-space:normal}
.pc-button:hover{filter:brightness(.95)}
.pc-button:disabled{opacity:.56;cursor:default}
.pc-button.pc-subtle{background:white;color:#255d99;border-color:#adc7e3}
.pc-step-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:9px 11px;border:1px solid #d7e3ef;background:white;border-radius:10px}
.pc-step-row b{color:#225f9c;font-size:17px;flex:none}.pc-step-row span{font-size:16px;color:#46627f}
.pc-step-row.pc-current{background:#dceeff;border-color:#72a8dd}
.pc-status{padding:9px 10px;border:1px solid #d7e3ef;border-radius:10px;background:#fff;color:#315879;font-size:16px;line-height:1.25;min-height:60px;display:flex;align-items:center}
.pc-actions{display:flex;flex-wrap:wrap;gap:6px}
.pc-actions .pc-button{flex:1 1 110px}
.pc-twin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;flex:1;min-height:0}
.pc-case{justify-content:space-between;padding:10px 12px}
.pc-case-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#254d7d}
.pc-case-head strong{font-size:19px;line-height:1.2}
.pc-case-head span{color:#55708d;font-size:15px;font-weight:750;white-space:nowrap}
.pc-mini-plot{height:clamp(160px,18.7vw,232px);max-height:232px}
.pc-twin-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:38px}
.pc-twin-actions span{font-size:16px;color:#446581;line-height:1.25;flex:1}
.pc-slide .takeaway{font-size:clamp(18px,1.65vw,22px)}
@media (min-width:901px) and (max-width:1024px){
 .pc-slide .slide-content{gap:5px}
 .pc-grid,.pc-twin{gap:7px}
 .pc-chart,.pc-case{padding:5px 8px}
 .pc-plot{height:175px}
 .pc-mini-plot{height:158px}
 .pc-chart-caption{font-size:14px;margin-top:2px}
 .pc-side{padding:8px 10px;gap:5px}
 .pc-side strong{font-size:17px}
 .pc-mini-def{gap:0;padding-top:4px}
 .pc-mini-def span{font-size:14px}
 .pc-key-row{padding:5px 8px;gap:3px 6px}
 .pc-step-row{padding:4px 7px;gap:4px}
 .pc-status{padding:5px 8px;min-height:48px;line-height:1.2}
 .pc-button{padding:6px 9px}
 .pc-case-head strong{font-size:17px}
 .pc-twin-actions{min-height:31px}
}
@media(max-width:900px){
 .pc-grid,.pc-twin{grid-template-columns:1fr}
 .pc-chart,.pc-case{min-height:0}
 .pc-plot{height:240px;max-height:none}
 .pc-mini-plot{height:215px}
 .pc-chart-caption{font-size:15px}
 .pc-case-head strong{font-size:18px}
 .pc-side{padding:13px}
}

/* DM18 concept revision: interactive definitions and visible step-by-step centroid arithmetic. */
.pc-chart-heading{font-size:17px;font-weight:850;line-height:1.25;color:#245380;text-align:center;margin-bottom:2px}
.pc-definition{display:grid;gap:5px;border:1px solid #cfdfef;background:#fff;border-radius:11px;padding:10px 12px}
.pc-definition strong{color:#1c5c9b;font-size:18px}
.pc-definition p{font-size:16px;line-height:1.32;color:#3f5774;margin:0}
.pc-definition p strong{font-size:inherit;color:#1b639d}
.pc-side .pc-definition{flex:0 0 auto}
.pc-k-actions{justify-content:center;align-items:center;gap:8px}
.pc-option-label{font-size:16px;font-weight:850;color:#315475}
.pc-info-chip{border:1px solid #c8dbed;background:#eaf4ff;color:#225c96;border-radius:9px;padding:8px 10px;font-size:15px;font-weight:800}
.pc-k-legend{display:grid;grid-template-columns:60px 1fr;gap:8px;align-items:center;border:1px solid #d6e2f0;background:white;border-radius:11px;padding:9px 12px}
.pc-k-legend b{color:#2365a4;font-size:17px}
.pc-k-legend span{color:#435e7b;font-size:16px;line-height:1.27}
.pc-k-actions .pc-button[data-k]{min-width:82px}
.pc-k-actions .pc-button.selected{background:#236bb0;border-color:#236bb0;color:white}
.pc-stage-strip{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pc-stage-strip span{border:1px solid #d5e3f0;background:#fff;border-radius:9px;padding:7px 4px;font-size:15px;text-align:center;color:#536d8b;font-weight:850}
.pc-stage-strip span.active{background:#dceeff;border-color:#7bacdb;color:#1b619f}
.pc-iter-side{justify-content:space-between}
.pc-iter-metric{font-size:16px;font-weight:750;line-height:1.3;color:#315777;border-left:4px solid #6da1d0;background:#fff;padding:9px 11px;border-radius:7px;min-height:58px;display:flex;align-items:center}
.pc-iter-side .pc-definition{padding:10px 12px}
.pc-iter-side .pc-definition p{font-size:16px}
.pc-iter-side .pc-actions{display:grid;grid-template-columns:1.2fr 1fr 0.65fr}
.pc-iter-side .pc-actions .pc-button{padding:9px 7px;font-size:15px}
.pc-plot .pc-old-center{stroke:#698bad;fill:#ffffff;stroke-width:3;stroke-dasharray:4 3}
.pc-plot .pc-movement{stroke:#37669d;stroke-width:3.5;stroke-linecap:round}
.pc-plot .pc-focus-dot{stroke:#173e71;stroke-width:4}
.pc-plot .pc-changed-ring{stroke:#d44e55;stroke-width:4;fill:none}
.pc-plot .pc-dist-line{stroke-width:2.4;stroke-dasharray:5 5}
.pc-plot .pc-dist-tag{font-size:15px;fill:#355478;font-weight:850;paint-order:stroke;stroke:white;stroke-width:4}
.pc-plot .pc-flow-tag{font-size:16px;fill:#204d7c;font-weight:850;paint-order:stroke;stroke:white;stroke-width:5}
@media (min-width:901px) and (max-width:1024px){
 .pc-chart-heading{font-size:16px}
 .pc-definition{gap:3px;padding:6px 8px}
 .pc-definition strong{font-size:16px}
 .pc-definition p{font-size:15.5px;line-height:1.22}
 .pc-k-legend{gap:4px;padding:5px 8px;grid-template-columns:55px 1fr}
 .pc-k-legend b,.pc-k-legend span{font-size:15px}
 .pc-k-actions{gap:5px}
 .pc-info-chip{padding:5px 7px;font-size:14px}
 .pc-k-actions .pc-button[data-k]{min-width:70px}
 .pc-stage-strip{gap:4px}
 .pc-stage-strip span{padding:4px 3px;font-size:14px}
 .pc-iter-side .pc-definition{padding:6px 8px}
 .pc-iter-metric{min-height:43px;padding:5px 7px;font-size:15px}
 .pc-iter-side .pc-actions .pc-button{padding:5px 4px;font-size:14px}
}
@media(max-width:900px){
 .pc-chart-heading{font-size:17px}
 .pc-plot{height:245px}
 .pc-iter-side .pc-actions{grid-template-columns:repeat(3,1fr)}
}

/* DM18 refined prototype marker and slide-5 action contrast. */
.pc-plot .pc-center{
 stroke:#ffffff;
 stroke-width:3.2;
 stroke-linejoin:round;
 filter:drop-shadow(0 1px 2px rgba(16,42,78,.32));
}
.pc-slide .pc-twin-actions #pc-seed-run,
.pc-slide .pc-twin-actions #pc-seed-run:hover,
.pc-slide .pc-twin-actions #pc-seed-run:focus-visible{
 background:#155d9e;
 border:2px solid #155d9e;
 color:#ffffff !important;
 -webkit-text-fill-color:#ffffff;
 font-weight:900;
 opacity:1;
}
.pc-slide .pc-twin-actions #pc-seed-run:focus-visible{outline:3px solid #f0bb54;outline-offset:2px}

/* Cluster-A arithmetic replaces the old objective-function slide. */
.pc-iter-calculation[hidden], .pc-iter-metric[hidden] { display:none !important; }
.pc-iter-calculation {
 display:grid;
 gap:5px;
 padding:8px 10px;
 background:#eef7ff;
 border:1px solid #a9cbe9;
 border-left:4px solid #2b79bd;
 border-radius:9px;
 font-size:16px;
 line-height:1.24;
 color:#30516f;
}
.pc-iter-calculation strong {font-size:17px;color:#17598e}
.pc-calc-members {line-height:1.35}
.pc-calc-formula {
 font-variant-numeric:tabular-nums;
 color:#245a8c;
 font-weight:800;
 white-space:normal;
}
.pc-calc-result {
 color:#167457;
 font-weight:850;
 border-top:1px solid #bdd5eb;
 padding-top:5px;
}
.pc-plot .pc-member-ring{stroke:#1467b3;stroke-width:2.7;fill:none;pointer-events:none}
@media (min-width:901px) and (max-width:1024px) {
 .pc-iter-calculation{gap:3px;padding:5px 7px;font-size:16px;line-height:1.14}
 .pc-iter-calculation strong{font-size:16px}
 .pc-calc-result{padding-top:3px}
}

/* DM18 — alternatives to K-means, one compact worked comparison. */
.pc-alternatives-content{gap:7px}
.pc-alt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1;min-height:0}
.pc-alt-case{border:1px solid #cbddef;background:#f6faff;border-radius:13px;padding:8px 11px;display:flex;flex-direction:column;min-height:0;min-width:0;justify-content:space-between}
.pc-alt-header{display:flex;align-items:baseline;gap:12px}
.pc-alt-header strong{font-size:20px;font-weight:900;color:#1d528b}
.pc-alt-header span{font-size:16px;font-weight:800;color:#627f9f}
.pc-alt-plot{width:100%;height:clamp(155px,17vw,212px);max-height:212px;margin:0 auto}
.pc-alt-medoid-plot .pc-center{fill:#db8a2d}
.pc-alt-medoid-ring{stroke:#c77b16;stroke-width:2.5;stroke-dasharray:5 4;fill:none;pointer-events:none}
.pc-alt-rule{display:flex;flex-direction:column;gap:2px;background:#fff;border:1px solid #d9e5f1;border-radius:9px;padding:7px 10px}
.pc-alt-rule b{font-size:17px;font-weight:850;color:#1e588b}
.pc-alt-rule span{font-size:16px;line-height:1.26;color:#45627d}
.pc-alt-rule strong{font-size:inherit;color:#1b5a94}
.pc-alt-position{font-size:16px;font-weight:850;color:#205c96;text-align:center;padding-top:3px;font-variant-numeric:tabular-nums}
.pc-alt-controls{display:flex;align-items:center;gap:13px;min-height:40px}
.pc-alt-controls .pc-button{flex:0 0 auto;min-width:200px;white-space:nowrap}
.pc-alt-controls span{font-size:16px;color:#385b7d;line-height:1.22;flex:1}
.pc-alt-extension{border:1px solid #d0e1f1;border-radius:9px;background:#ecf5ff;padding:6px 11px;color:#375d83;font-size:16px;line-height:1.25}
.pc-alt-extension b{color:#246096;font-size:16px}
.pc-alt-axis-label{font-size:15px;fill:#526f8d;font-weight:850}
.pc-alt-old-center{fill:#fff;stroke:#2b79bd;stroke-width:3;stroke-dasharray:4 3}
.pc-alt-delta{stroke:#277bbd;stroke-width:3;stroke-dasharray:5 4}
.pc-alt-added-ring{fill:none;stroke:#d65f55;stroke-width:3}
.pc-alt-added-label{fill:#a3433b;font-size:16px;font-weight:850;paint-order:stroke;stroke:white;stroke-width:4}
@media (min-width:901px) and (max-width:1080px){
 .pc-alt-grid{gap:8px}
 .pc-alt-case{padding:5px 8px}
 .pc-alt-plot{height:clamp(134px,15vw,170px)}
 .pc-alt-rule{padding:5px 8px}
 .pc-alt-header strong{font-size:18px}
 .pc-alt-rule b{font-size:16px}
 .pc-alt-rule span{font-size:16px;line-height:1.15}
 .pc-alt-extension{padding:5px 8px}
}
@media (max-width:900px){
 .pc-alt-grid{grid-template-columns:1fr}
 .pc-alt-plot{height:225px;max-height:225px}
 .pc-alt-controls{flex-wrap:wrap}
 .pc-alt-controls .pc-button{min-width:0}
}
