/* Scoped only to the local catalog preparation tool. Shared layout is unchanged. */
.dh-cp-page { max-width: 1040px; margin-inline: auto; color: #173b30; overflow-wrap: anywhere; }
.dh-cp-page *, .dh-cp-page *::before, .dh-cp-page *::after { box-sizing: border-box; }
.dh-cp-page [hidden] { display: none !important; }
.dh-cp-intro { margin: 24px 0; max-width: 840px; }
.dh-cp-intro h1 { margin: 8px 0 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.22; }
.dh-cp-page p, .dh-cp-page li, .dh-cp-page dd { line-height: 1.7; }
.dh-cp-page h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.4; margin: 0 0 12px; }
.dh-cp-page h3 { font-size: 1.1rem; line-height: 1.5; }
.dh-cp-notice { background: #fff8e8; border: 1px solid #dfc277; border-inline-start: 5px solid #b16c0e; border-radius: 14px; padding: 20px; margin: 20px 0; }
.dh-cp-notice p:last-child { margin-bottom: 0; }
.dh-cp-section { padding: 24px; margin: 22px 0; min-width: 0; }
.dh-cp-details { border-top: 1px solid #cddbd4; margin-top: 24px; padding-top: 10px; }
.dh-cp-details summary { min-height: 44px; padding: 10px 2px; cursor: pointer; font-weight: 700; }
.dh-cp-fields { margin: 12px 0; }
.dh-cp-fields > div, .dh-cp-preview-card dl > div { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 12px; border-top: 1px solid #dce5df; padding: 12px 0; }
.dh-cp-fields dt, .dh-cp-preview-card dt { font-weight: 700; }
.dh-cp-fields dd, .dh-cp-preview-card dd { margin: 0; min-width: 0; white-space: pre-wrap; }
.dh-cp-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.dh-cp-category-list li { border: 1px solid #dce5df; border-radius: 8px; padding: 12px; min-width: 0; }
.dh-cp-category-list li span { display: block; font-size: .9rem; color: #3f5f51; user-select: all; }
.dh-cp-file-label { display: block; font-weight: 700; margin-bottom: 10px; }
.dh-cp-page input[type="file"] { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #9ab6a7; padding: 10px; border-radius: 8px; font-size: 16px; color: #173b30; background: #fff; }
.dh-cp-page input[type="file"]::file-selector-button { white-space: normal; max-width: 100%; padding: 10px; border: 0; background: #e6f1ea; color: #173b30; border-radius: 5px; margin-right: 12px; cursor: pointer; }
.dh-cp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 16px 0; }
.dh-cp-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #07633a; text-decoration: underline; }
.dh-cp-page button { min-height: 44px; max-width: 100%; white-space: normal; font-size: 1rem; line-height: 1.5; }
.dh-cp-secondary { border: 1px solid #658974; background: #fff; color: #174c32; border-radius: 8px; padding: 11px 18px; cursor: pointer; }
.dh-cp-page button:disabled, .dh-cp-page input:disabled { opacity: .6; cursor: not-allowed; }
.dh-cp-page :is(a, button, input, summary):focus-visible { outline: 3px solid #b56b0a; outline-offset: 3px; }
#dh-cp-status { font-weight: 700; border-inline-start: 4px solid #29834e; padding-inline-start: 12px; margin-top: 20px; }
.dh-cp-issues { padding-inline-start: 24px; }
.dh-cp-issues li { margin: 8px 0; }
.dh-cp-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dh-cp-preview-card { min-width: 0; padding: 18px; border: 1px solid #c5d8cd; border-radius: 12px; background: #f6faf7; }
.dh-cp-preview-card h3 { margin: 0 0 12px; }
.dh-cp-preview-card dl { margin: 0; }
.dh-cp-rights { border: 0; padding: 0; min-width: 0; }
.dh-cp-rights label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 44px; line-height: 1.7; cursor: pointer; }
.dh-cp-rights input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 4px 0 0; accent-color: #12723d; }
.dh-cp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
    .dh-cp-section, .dh-cp-notice { padding: 16px; border-radius: 12px; }
    .dh-cp-fields > div, .dh-cp-preview-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .dh-cp-category-list { grid-template-columns: minmax(0, 1fr); }
    .dh-cp-preview-card { padding: 12px; }
    .dh-cp-actions { align-items: stretch; flex-direction: column; }
    .dh-cp-actions button { width: 100%; }
}
