/* SOCE v1.2.22: isolated chemistry and environment calculator styling. */
.soce-phase23 { box-sizing: border-box; color: #18334e; }
.soce-phase23 *, .soce-phase23 *::before, .soce-phase23 *::after { box-sizing: border-box; }
.soce-phase23 .soce-p23-intro { padding: 12px 15px; margin: 0 0 15px; background: #f2f8fb; border-left: 4px solid #2c7493; border-radius: 9px; font-size: .91rem; line-height: 1.65; color: #35576c; }
.soce-phase23 .soce-p23-form { display: block; padding: 4px 0 8px; }
.soce-phase23 .soce-p23-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.soce-phase23 .soce-p23-field { display: flex; flex-direction: column; min-width: 0; margin: 0; gap: 7px; color: #2b465b; font-size: .91rem; font-weight: 600; }
.soce-phase23 .soce-p23-field input { font-family: inherit; display: block; width: 100%; max-width: 100%; min-width: 0; color: #142b41; background: #fff; border: 1px solid #bdd1dd; border-radius: 9px; padding: 11px 12px; line-height: 1.5; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.soce-phase23 .soce-p23-field input:focus { border-color: #2682a9; outline: 2px solid transparent; box-shadow: 0 0 0 3px #c7eaf6; }
.soce-phase23 .soce-p23-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.soce-phase23 .soce-p23-actions button { cursor: pointer; font-weight: 700; font-size: .95rem; border: 1px solid #226c90; border-radius: 9px; padding: 11px 18px; background: #236d92; color: #fff; }
.soce-phase23 .soce-p23-actions .soce-p23-reset { color: #236d92; background: #f4f9fc; }
.soce-phase23 .soce-p23-actions button:hover { filter: brightness(.94); }
.soce-phase23 .soce-p23-actions button:focus-visible { outline: 3px solid #f8ae3d; outline-offset: 2px; }
.soce-phase23 .soce-p23-result { width: 100%; max-width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #edf7f1; color: #145339; border: 1px solid #b4dcc4; border-radius: 11px; padding: 14px 16px; font-size: .93rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; min-height: 64px; }
.soce-phase23 .soce-p23-result.soce-p23-error { background: #fff4f3; color: #9b2828; border-color: #eec1ba; }
.soce-phase23 .soce-p23-note { color: #536875; font-size: .875rem; line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 600px) {
 .soce-phase23 .soce-p23-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
 .soce-phase23 .soce-p23-actions button { flex: 1 1 120px; }
 .soce-phase23 .soce-p23-intro { padding: 11px 12px; }
 .soce-phase23 .soce-p23-result { font-size: .86rem; }
}
