.tool-form {color:var(--ink,#203a34);min-width:min(24rem,72vw);max-width:100%;font:inherit}
.tool-form * {box-sizing:border-box}
.tool-form [hidden] {display:none!important}
.tool-fields,.tool-field,.tool-section {display:grid;gap:.7rem}
.tool-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:.65rem;align-items:start}
.tool-field {gap:.24rem;min-width:0;font-size:.84rem}
.tool-field>span,.tool-section>legend {font-weight:600}
.tool-form input:not([type=checkbox]):not([type=range]),.tool-form select {border:1px solid #afc1b7;border-radius:5px;background:#fff;color:#192e29;font:inherit;padding:.43rem .53rem;min-width:0;width:100%;min-height:2rem}
.tool-form .tool-check {display:inline-flex;align-items:center;gap:.38rem;font-size:.88rem;cursor:pointer}
.tool-form input[type=checkbox],.tool-form input[type=range] {accent-color:#1b6657}
.tool-section {border:1px solid #d4dfd8;border-radius:7px;padding:.75rem;min-width:0}
.tool-section>legend {font-size:.86rem;padding:0 .3rem}
.tool-caption,.tool-error {font-size:.84rem;line-height:1.44;margin:.1rem 0}
.tool-error {color:#9a302a;margin-top:.65rem}
.tool-buttons,.tool-footer,.tool-bar-row {display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.tool-footer {justify-content:flex-end;border-top:1px solid #dce4dd;padding-top:.75rem;margin-top:.95rem}
.tool-form .tool-button {font:inherit;border-radius:5px;border:1px solid #afc1b7;background:#fff;color:#183b32;padding:.43rem .68rem;cursor:pointer;white-space:normal;min-height:2rem}
.tool-form .tool-button:hover {background:#edf5ef}
.tool-form .tool-primary {background:#195c4d;color:white;border-color:#195c4d}
.tool-form .tool-primary:hover {background:#104b3d}
.tool-form .tool-danger {color:#96352f}
.tool-form button:disabled {opacity:.45;cursor:default}
.tool-text-sample {background:#fff;border:1px solid #dae3dc;border-radius:5px;padding:.6rem;min-height:3.7rem;overflow-wrap:anywhere}
.tool-range {border:1px solid #d4dfd8;border-radius:6px;background:white;padding:.5rem .7rem;font-size:.9rem}
.tool-range>summary {cursor:pointer;font-weight:600}
.tool-bar-list {overflow:auto;max-height:27vh;display:grid;gap:.5rem;margin-top:.65rem}
.tool-bar-row {padding-left:.6rem}
.tool-part {font-weight:650}
.tool-line {color:#465b51}
.tool-slider {display:flex;align-items:center;gap:.55rem}
.tool-slider input {min-width:2rem;flex:auto}
.tool-slider output {width:3em;text-align:right}
