#modalContent.hec-clean-detail{padding:16px 18px 20px;color:#1b2330}
.hec-detail-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px;font-weight:700;color:#5e6876}
.hec-detail-header button{background:transparent;border:0;font-size:24px;min-width:44px;min-height:44px;padding:4px;color:#1b2330}
.hec-clean-detail .hec-detail-gallery{margin:0 0 12px}
.hec-clean-detail .hec-detail-gallery[hidden]{display:none}
.hec-clean-detail .hec-gallery-image{max-height:220px;background:#fff}
.hec-clean-detail .hec-gallery-controls[hidden]{display:none}
.hec-detail-title{display:flex;align-items:flex-start;gap:12px;margin:8px 0 16px}
.hec-detail-title h2{flex:1;min-width:0;margin:0;font-size:clamp(20px,5.3vw,26px);line-height:1.25;overflow-wrap:anywhere}
#modalContent.hec-clean-detail .detail-favorite-btn{flex:none;margin:0;padding:0;min-width:44px;min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:#697384!important;font-size:30px!important}
#modalContent.hec-clean-detail .detail-favorite-btn.is-favorite{color:#b58b00!important}
#modalContent.hec-clean-detail .hec-detail-category{padding:0!important;margin:0 0 16px!important;border:0!important;background:transparent!important}
.hec-detail-category label{font-size:13px;color:#586273}
.hec-detail-category select{margin-top:5px}
.hec-detail-category p:empty{display:none}
.hec-clean-detail .detail{display:grid!important;gap:10px;margin:12px 0 16px}
.hec-clean-detail .detail>div{display:grid;grid-template-columns:minmax(90px,.9fr) minmax(0,1.4fr);gap:12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.hec-clean-detail .detail b{min-width:0;font-weight:500;color:#657080}
.hec-clean-detail .hec-visible-loan{padding:10px;background:#fff4cb;border-radius:8px}
.hec-extra-details,.hec-attachment-row{border:1px solid #dce1e7;border-radius:12px;margin:12px 0;background:#fff}
.hec-extra-details>summary{padding:14px;cursor:pointer;font-size:15px}
.hec-extra-details>.detail{padding:0 14px;margin-top:0}
.hec-attachment-row>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;list-style:none;padding:14px;min-height:52px;cursor:pointer;font-size:15px}
.hec-attachment-row>summary::-webkit-details-marker{display:none}
.hec-attachment-action{font-size:13px;color:#626d7d}
.hec-manual-row{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:10px;min-height:52px;font-size:15px}
#modalContent.hec-clean-detail .hec-manual-row button,#modalContent.hec-clean-detail .hec-receipt-view{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0!important;color:#566274!important;font-size:13px!important;min-height:32px}
.hec-receipt-options .receipt-panel{margin:0!important;padding:8px 14px 14px!important;border:0!important;background:transparent!important}
.hec-receipt-options .receipt-panel h3,.hec-receipt-options .receipt-panel>p:not([role]){display:none}
.hec-receipt-options .controls{display:grid;grid-template-columns:1fr;gap:8px}
.hec-detail-footer{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;margin:18px 0 0;align-items:start}
.hec-detail-footer>button{min-height:48px;font-size:15px}
.hec-more-actions{position:relative;min-width:0}
.hec-more-actions>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:48px;padding:8px;border:1px solid #7f8996;border-radius:10px;font-size:14px;font-weight:600;background:#fff;color:#2c3441;text-align:center}
.hec-more-actions>summary::-webkit-details-marker{display:none}
.hec-more-actions>div{display:grid;gap:8px;padding-top:10px}
.hec-more-actions button{font-size:13px;min-height:44px;width:100%;white-space:normal;margin:0}
@media(max-width:360px){#modalContent.hec-clean-detail{padding:12px}.hec-clean-detail .detail>div{font-size:13px;grid-template-columns:85px minmax(0,1fr)}}

/* Consistent theme surfaces for item details, editors, and manual screens. */
body.hec-v3 #modal{background:#171d26;color:#f1f4f8;border:1px solid var(--hec-accent,#d3222a);color-scheme:dark}
body.hec-v3 #modalContent{color:#f1f4f8;background:#171d26}
body.hec-v3 #modalContent h2,body.hec-v3 #modalContent h3{color:#f5f7fa}
body.hec-v3 #modalContent label,body.hec-v3 #modalContent .detail b,body.hec-v3 #modalContent .hec-detail-header{color:#bfc8d5}
body.hec-v3 #modalContent input:not([type="checkbox"]):not([type="file"]),body.hec-v3 #modalContent textarea,body.hec-v3 #modalContent select{
 background:#222b38!important;color:#f5f7fa!important;border:1px solid var(--hec-accent,#d3222a)!important;border-radius:9px;color-scheme:dark;
}
body.hec-v3 #modalContent input:focus-visible,body.hec-v3 #modalContent textarea:focus-visible,body.hec-v3 #modalContent select:focus-visible,body.hec-v3 #modalContent button:focus-visible,body.hec-v3 #modalContent summary:focus-visible{outline:2px solid var(--hec-accent-light,#f04a52);outline-offset:3px}
body.hec-v3 #modalContent .hec-detail-category{color:#eef2f8!important;background:transparent!important}
body.hec-v3 #modalContent .hec-detail-category label{color:#bdc7d6}
body.hec-v3 #modalContent .hec-detail-header button,body.hec-v3 #modalContent .hec-manual-header button{background:transparent;color:#edf2f8;border:0;box-shadow:none}
body.hec-v3 #modalContent .detail-favorite-btn{color:var(--hec-accent-light,#f04a52)!important}
body.hec-v3 #modalContent .detail-favorite-btn.is-favorite{color:var(--hec-accent,#d3222a)!important}
body.hec-v3 #modalContent .hec-extra-details,body.hec-v3 #modalContent .hec-attachment-row{background:#222b38;color:#f2f5f9;border-color:#4a586c}
body.hec-v3 #modalContent .hec-extra-details[open],body.hec-v3 #modalContent .hec-receipt-options[open]{border-color:var(--hec-accent,#d3222a)}
body.hec-v3 #modalContent .hec-extra-details[open]>summary,body.hec-v3 #modalContent .hec-receipt-options[open]>summary{background:var(--hec-accent-tint,#302126);border-radius:11px 11px 0 0;color:var(--hec-accent-light,#f04a52)}
body.hec-v3 #modalContent .hec-attachment-action,body.hec-v3 #modalContent .hec-manual-row button,body.hec-v3 #modalContent .hec-receipt-view{color:var(--hec-accent-light,#f04a52)!important}
body.hec-v3 #modalContent .hec-receipt-options .receipt-panel{color:#f1f4f8;background:transparent!important}
body.hec-v3 #modalContent button:not(.primary){background:#2a3545;color:#eef2f8;border-color:#56647a}
body.hec-v3 #modalContent button.primary{background:var(--hec-accent,#d3222a)!important;color:var(--hec-accent-contrast,#fff)!important;border:1px solid var(--hec-accent-light,#f04a52)}
body.hec-v3 #modalContent .hec-visible-loan{background:var(--hec-accent-tint,#302126);color:#f1f4f8;border:1px solid var(--hec-accent,#d3222a)}
body.hec-v3 #modalContent .hec-more-actions>summary{background:#222b38;color:var(--hec-accent-light,#f04a52);border-color:var(--hec-accent,#d3222a)}
body.hec-v3 #modalContent .hec-action-list{display:grid;grid-column:1/-1;gap:0;padding:0;border:1px solid #4a586c;border-radius:12px;overflow:hidden;background:#222b38}
body.hec-v3 #modalContent .hec-action-list[hidden]{display:none}
body.hec-v3 #modalContent .hec-action-list button{display:block;min-height:46px;padding:12px 14px;text-align:left;border:0;border-bottom:1px solid #435166;border-radius:0;box-shadow:none;font-size:14px;background:transparent;color:#eef2f8;width:100%;margin:0}
body.hec-v3 #modalContent .hec-action-list button:last-child{border-bottom:0}
body.hec-v3 #modalContent .hec-action-list button:hover{background:var(--hec-accent-tint,#302126)}
body.hec-v3 #modalContent .hec-manual-view{padding:6px 0;background:transparent;color:#f1f4f8}
.hec-manual-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#bec8d6;font-size:14px;font-weight:700}
.hec-manual-header button{font-size:24px;min-width:44px;min-height:44px;padding:5px}
.hec-manual-view h2{font-size:22px;line-height:1.3;margin:16px 0 24px;overflow-wrap:anywhere}
.hec-manual-view #manual-open{display:block;width:100%;min-height:48px;font-size:16px;border-radius:10px}
.hec-manual-view #manual-download{display:block;width:fit-content;margin:18px auto 5px;color:var(--hec-accent-light,#f04a52);font-size:14px;text-decoration:underline;text-underline-offset:3px}
