.histology-hero{display:flex;justify-content:space-between;align-items:center;gap:32px;background:#edf3eb;border:1px solid #d9e5d6;border-radius:18px;padding:28px;margin:24px 0}.histology-hero h2{font-size:27px;margin:8px 0}.histology-hero p{max-width:540px;line-height:1.7;color:#42594d}.histology-counts{display:flex;gap:26px}.histology-counts span{display:grid;gap:6px;color:#4c6053}.histology-counts strong{font-size:32px;color:#244b37}.histology-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:28px}
.histology-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px}.histology-block{background:#fff;border:1px solid #dbe5dd;border-radius:16px;padding:22px;min-width:0;overflow-wrap:anywhere}.histology-block header,.histology-editor header,.histology-component header{display:flex;gap:14px;justify-content:space-between;align-items:center}.histology-block h3{margin:8px 0 18px}.block-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f3ead7;border:8px solid #ece2ca;border-radius:14px;padding:10px;margin:10px 0 18px}.block-position{display:flex;flex-direction:column;gap:8px;background:#fdfaf4;border:1px solid #d7c8ac;border-radius:11px;padding:14px;min-width:0}.block-position strong{color:#755138}.block-position small{line-height:1.5;color:#6a6257}
.histology-bench{margin-top:40px}.histology-bench label,.histology-editor label{display:block;font-size:13px;font-weight:600;color:#42594d;line-height:1.6}.histology-bench select,.histology-editor input:not([type=checkbox]),.histology-editor select,.histology-editor textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:7px 0 16px}.histology-editor input[type=datetime-local]{appearance:none}.section-ribbon{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 20px;margin-bottom:16px;max-width:100%}.section-tile{min-width:110px;flex:0 0 110px;border:1px solid #c9d6cf;background:#fff;border-radius:12px;padding:16px 10px;display:flex;flex-direction:column;gap:9px;text-align:center;color:#435950;cursor:pointer}.section-tile strong{font-size:28px}.section-tile.present{background:#e4f2e8;border-color:#6f9d7b}.section-tile.absent{background:#f0f1f1}.section-tile.damaged{border-top:5px solid #bc8b36}.section-tile.lost{border-top:5px solid #986b62;background:#f2eae7}.section-tile:disabled{cursor:default;opacity:1}.section-tile:focus-visible{outline:3px solid #2a6d54;outline-offset:2px}.histology-evidence{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.histology-evidence article{padding:20px;background:#fff;border:1px solid #dbe5dd;border-radius:12px;overflow-wrap:anywhere}.histology-evidence header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.histology-evidence small{color:#66756a;line-height:1.7}
.histology-editor{background:#fff;border:1px solid #d1dfd5;box-shadow:0 10px 25px #20453608;border-radius:18px;padding:28px;margin-bottom:32px}.histology-editor fieldset{border:0;padding:0;min-width:0}.histology-editor footer{display:flex;justify-content:space-between;gap:24px;align-items:center;border-top:1px solid #dbe5dd;padding-top:22px}.histology-component,.histology-cut,.cut-builder{border:1px solid #dce5df;border-radius:14px;padding:20px;margin:16px 0}.histology-component header{margin-bottom:18px}.cut-builder{background:#f4f7f4}.histology-cut summary{font-weight:600;color:#395846;cursor:pointer;line-height:1.7}.histology-editor .histology-confirm{display:flex;align-items:flex-start;gap:12px;margin:26px 0}.histology-confirm input{width:20px;height:20px;flex-shrink:0;accent-color:#32795e}.histology-context{padding:16px;background:#edf3eb;border-radius:10px}.histology-editor .procedure-reader{margin:20px 0}.histology-editor .procedure-content{white-space:pre-wrap}#histologyError:not(:empty){background:#fff0e4;color:#883b20;border-radius:10px;padding:16px;margin:20px 0;line-height:1.7}
@media(max-width:700px){.histology-hero{flex-direction:column;align-items:stretch;padding:20px;gap:16px}.histology-counts{justify-content:space-between}.histology-hero h2{font-size:24px}.histology-editor{padding:18px}.histology-editor header,.histology-editor footer{flex-direction:column;align-items:stretch}.histology-component,.histology-cut,.cut-builder{padding:14px}.histology-toolbar{align-items:stretch;flex-direction:column}.block-map{padding:7px;border-width:5px;gap:7px}.block-position{padding:10px}.histology-block{padding:16px}.histology-editor h2{font-size:22px}.histology-editor .production-grid{margin:14px 0}}

.cut-condition-record{padding:18px;border:1px solid #ddceba;background:#fbf5eb;border-radius:12px;margin:20px 0;line-height:1.7}.cut-condition-record summary{cursor:pointer;font-weight:600}.cut-condition-record p{margin:16px 0}
