.inventory-workspace{font-size:17px;min-width:0;max-width:100%}.inventory-workspace *{box-sizing:border-box}.inventory-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.inventory-controls label{display:flex;flex-direction:column;gap:6px;font-size:14px;flex:1 1 190px;min-width:0}.inventory-controls input,.inventory-controls select,.inventory-controls button{font:inherit;font-size:17px;min-height:44px;width:100%;min-width:0}.inventory-controls>button{width:auto}.inventory-note{font-size:14px;color:#59666f;line-height:1.6;overflow-wrap:anywhere}.inventory-cards{display:grid;gap:16px}.inventory-card{background:white;border:1px solid #dde3e8;border-radius:12px;padding:18px;min-width:0;overflow-wrap:anywhere}.inventory-card header{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}.inventory-card h3{font-size:17px;margin:0 0 12px;line-height:1.5;min-width:0}.inventory-card h4,.inventory-card h5{font-size:14px;margin:12px 0}.inventory-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.inventory-fields>div{min-width:0}.inventory-fields dt{font-size:14px;color:#59666f}.inventory-fields dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px}.inventory-quality{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.inventory-quality>div{background:#f3f6f7;border-radius:8px;padding:12px;min-width:0}.inventory-quality span{display:block;font-size:14px}.inventory-quality strong{display:block;margin-top:6px;font-size:17px;overflow-wrap:anywhere}.inventory-warning{font-size:14px;color:#805512;background:#fff8e8;padding:12px 12px 12px 28px;border-radius:8px;line-height:1.6;overflow-wrap:anywhere}.inventory-details{margin-top:14px;border-top:1px solid #e5e9ed}.inventory-details summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px;overflow-wrap:anywhere}.inventory-detail-scroll{max-height:65vh;overflow:auto;overscroll-behavior:contain;padding:0 8px 8px 0}.inventory-detail-group,.inventory-subrow{border-top:1px solid #e5e9ed;padding-top:6px}.inventory-empty{padding:24px;background:white;border:1px dashed #cbd5dd;border-radius:10px;font-size:17px;line-height:1.6}.inventory-legacy-note{font-size:14px;line-height:1.6;padding:14px;background:#fff8e8;overflow-wrap:anywhere}@media(max-width:540px){.inventory-card{padding:14px}.inventory-quality{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-fields{grid-template-columns:minmax(0,1fr)}.inventory-controls>button{width:100%}.inventory-detail-scroll{max-height:60vh}}
.inventory-editor{box-sizing:border-box;width:min(900px,calc(100% - 20px));max-width:calc(100% - 20px);max-height:90dvh;padding:0;border:1px solid #dde3e8;border-radius:16px;background:#fff;overflow:hidden;font-size:17px}.inventory-editor[open]{display:flex;flex-direction:column}.inventory-editor::backdrop{background:rgba(0,0,0,.35)}.inventory-editor>header{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:16px;border-bottom:1px solid #dde3e8;flex-shrink:0}.inventory-editor h2{font-size:20px;margin:0}.inventory-editor h3{font-size:17px}.inventory-editor-scroll{padding:16px;overflow:auto;overscroll-behavior:contain;min-height:0;overflow-wrap:anywhere}.inventory-editor button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.inventory-editor label{display:grid;gap:6px;font-size:14px;margin:10px 0;min-width:0}.inventory-editor input,.inventory-editor select,.inventory-editor textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:17px;min-height:44px;padding:10px;border:1px solid #cbd5dd;border-radius:8px}.inventory-editor textarea{min-height:90px;resize:vertical}.inventory-editor fieldset{border:1px solid #dde3e8;border-radius:10px;min-width:0;margin:14px 0;padding:12px}.inventory-editor legend{font-size:17px;overflow-wrap:anywhere}.inventory-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.inventory-editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.inventory-editor .inventory-check{display:flex;align-items:start;gap:10px;min-height:44px}.inventory-check input{width:24px;min-height:24px;flex-shrink:0}.inventory-editor [role=alert]{color:#b42318;white-space:pre-wrap;font-size:14px}.inventory-editor [role=status]{font-size:14px}.inventory-editor [hidden]{display:none!important}@media(max-width:600px){.inventory-editor-grid{grid-template-columns:minmax(0,1fr)}.inventory-editor-scroll,.inventory-editor>header{padding:12px}.inventory-editor fieldset{padding:10px}}
.inventory-editor summary{min-height:44px;display:flex;align-items:center;font-size:14px;cursor:pointer;overflow-wrap:anywhere}
