/* Reversible Documents layout. Original renderer and styles stay intact. */
.documents-refined.documents-screen { padding: 24px 28px 36px; }
.documents-refined .documents-header { margin-bottom: 24px; padding-bottom: 22px; }
.documents-refined .documents-header-copy p { color: #617789; font-size: 14px; }
.documents-refined .documents-layout { display: flex; flex-direction: column; gap: 28px; }
.documents-refined .documents-column { width: 100%; }
.documents-refined .documents-column-left { gap: 14px; }
.documents-refined .documents-section-head h2 { font-size: 21px; font-weight: 650; }
.documents-refined .documents-section-head p { margin: 6px 0 0; color: #687d8e; font-size: 13px; line-height: 1.5; }
.documents-refined .documents-library-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; margin-left: 6px; vertical-align: middle; border: 1px solid #dce5eb; border-radius: 8px; color: #617789; font-size: 12px; font-weight: 500; }
.documents-refined .documents-column-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.documents-refined .documents-list-wrap { padding: 0; border-radius: 12px; border-color: #dce3e9; box-shadow: 0 2px 4px rgba(24, 48, 63, .025); overflow: hidden; }
.documents-refined .documents-list-head { min-height: 64px; box-sizing: border-box; margin: 0; padding: 16px 20px; border-bottom: 1px solid #e6edf2; background: #f8fafb; }
.documents-refined .documents-list-head strong { font-size: 14px; font-weight: 650; color: #243b4b; }
.documents-refined .documents-file-list { margin: 0; padding: 4px 18px; gap: 0; }
.documents-refined .documents-file-row { border: 0; border-bottom: 1px solid #edf1f4; border-radius: 0; padding: 15px 0; gap: 12px; box-shadow: none; grid-template-columns: 38px minmax(0, 1fr) auto; }
.documents-refined .documents-file-row:last-child { border-bottom: 0; }
.documents-refined .documents-file-icon { width: 36px; height: 38px; border: 0; border-radius: 6px; color: #536875; background: #f2f5f7; }
.documents-refined .documents-file-copy { min-width: 0; }
.documents-refined .documents-file-copy strong { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.documents-refined .documents-file-copy span { font-size: 12px; color: #708494; margin-top: 3px; line-height: 1.5; }
.documents-refined .documents-row-actions { gap: 7px; }
.documents-refined .documents-row-actions .btn { min-height: 34px; border-radius: 7px; padding: 7px 11px; font-size: 12px; box-shadow: none; }
.documents-refined .documents-row-actions .btn.ghost { border-color: transparent; background: transparent; color: #697b88; }
.documents-refined .documents-row-actions .btn.ghost:hover { color: #a83b3b; background: #fcf3f3; }
.documents-refined .documents-inline-upload { box-sizing: border-box; min-height: 96px; padding: 18px 20px; }
.documents-refined .documents-column-right .documents-section-head { margin-bottom: 16px; }
.documents-refined .documents-template-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.documents-refined .documents-template-row { position: relative; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; align-items: start; gap: 0 12px; padding: 24px 22px 16px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(24, 48, 63, .025); transition: border-color 150ms ease, background-color 150ms ease; }
.documents-refined .documents-template-row:hover { border-color: #a8cdbd; background: #fcfefd; transform: none; }
.documents-refined .documents-template-row .documents-template-icon { grid-row: 1; grid-column: 1; width: 32px; height: 32px; border: 0; border-radius: 6px; color: #426657; background: #f0f5f2; }
.documents-refined .documents-template-copy { display: contents; }
.documents-refined .documents-template-copy h3 { grid-row: 1; grid-column: 2 / 4; align-self: center; font-size: 15px; font-weight: 600; line-height: 1.45; padding-left: 0; color: #213744; }
.documents-refined .documents-template-copy p { grid-row: 2; grid-column: 1 / -1; margin: 14px 0 14px; padding-bottom: 18px; border-bottom: 1px solid #e9edf0; color: #607482; font-size: 13px; line-height: 1.65; }
.documents-refined .documents-template-meta { grid-row: 3; grid-column: 1 / 3; margin: 0; align-self: center; font-size: 12px; color: #6a7e8c; }
.documents-refined .documents-template-meta span:last-child { display: none; }
.documents-refined .documents-open-btn { grid-row: 3; grid-column: 3; justify-self: end; min-height: 34px; border: 1px solid #d7e1e8; border-radius: 7px; background: #fff; color: #24604a; font-size: 12px; font-weight: 600; padding: 7px 14px; }
.documents-refined .documents-open-btn:hover { background: #f1f7f4; border-color: #b6d0c2; }
.documents-refined .documents-template-row:focus-visible { outline: 2px solid #168761; outline-offset: 3px; }
@media (max-width: 1450px) { .documents-refined .documents-file-row { grid-template-columns: 38px minmax(0, 1fr); } .documents-refined .documents-row-actions { grid-column: 2; justify-content: flex-start; } .documents-refined .documents-template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .documents-refined .documents-column-stack { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .documents-refined.documents-screen { padding: 20px 16px 30px; } .documents-refined .documents-template-list { grid-template-columns: 1fr; } .documents-refined .documents-header { flex-wrap: wrap; gap: 16px; } }
