.material-library, .material-collection { font-size: 16px; line-height: 1.6; }
.material-library { margin: 0 0 18px; border: 1px solid #dce3ed; border-radius: 12px; background: #fff; color: #26354b; }
.material-library summary { padding: 14px 16px; min-height: 48px; box-sizing: border-box; cursor: pointer; font-size: 18px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.material-library__body, .material-collection { padding: 16px; }
.material-library__body { display: grid; gap: 14px; max-width: 760px; }
.material-library__body label { display: grid; gap: 8px; font-size: 16px; line-height: 1.5; font-weight: 600; min-width: 0; }
.material-library input, .material-library select, .material-collection input { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px; border: 1px solid #ccd5e1; border-radius: 8px; background: #fff; color: #26354b; font: inherit; line-height: 1.5; }
.material-library__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.material-library button, .material-collection button { min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 14px; border: 1px solid #cbd8ea; border-radius: 8px; background: #f4f7fc; color: #174a99; font: inherit; line-height: 1.5; font-weight: 600; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.material-library button:disabled, .material-collection button:disabled { opacity: .55; cursor: wait; }
.material-library a, .material-collection a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; box-sizing: border-box; padding: 6px 0; color: #174a99; text-decoration: underline; overflow-wrap: anywhere; }
.material-library__notice, .material-library__status { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.material-library__notice { color: #546477; font-size: 15px; line-height: 1.65; }
.material-library__status { min-height: 1.6em; font-size: 16px; line-height: 1.6; }
.material-library [hidden], .material-collection [hidden] { display: none !important; }
.material-collection { margin: 20px 0; border: 1px solid #dce3ed; border-radius: 12px; background: #fff; scroll-margin-top: 120px; }
.material-collection h2 { margin: 0 0 10px; }
.material-collection ul { list-style: none; margin: 12px 0; padding: 0; }
.material-collection li { display: grid; min-width: 0; gap: 10px; padding: 16px 0; border-bottom: 1px solid #e3e8f0; overflow-wrap: anywhere; }
.material-collection li > strong { font-size: 18px; line-height: 1.5; }
.material-collection li span { font-size: 15px; line-height: 1.6; color: #546477; }
.material-collection label { display: grid; gap: 8px; margin: 14px 0; max-width: 480px; }
.material-collection [data-material-status] { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.material-library :focus-visible, .material-collection :focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 800px) { .material-collection { scroll-margin-top: 220px; } }
@media print { .material-library, .material-collection { display: none !important; } }

.material-copy-preview { padding: 14px; border: 1px solid #ccd8eb; border-radius: 10px; background: #f7f9fc; overflow-wrap: anywhere; }
.material-copy-preview h3 { margin: 0 0 10px; font-size: 18px; }
.material-copy-preview p, .material-copy-preview li { line-height: 1.6; }
.material-copy-preview ul { padding-left: 20px; max-height: 200px; overflow-y: auto; }
.material-copy-words { padding: 10px; background: #fff; border: 1px solid #e1e5ec; border-radius: 8px; max-height: 180px; overflow-y: auto; }
.material-collection select { max-width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px; border: 1px solid #ccd5e1; border-radius: 8px; background: #fff; color: #26354b; font: inherit; line-height: 1.5; }

@media (max-width: 760px) { .material-collection { scroll-margin-top: 16px; } }
