.material-source-choice {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line,#d7dfda)}
.material-source-choice label {display:flex;align-items:center;gap:8px;font-size:16px}
.material-optional {color:var(--muted,#657b73)}
.material-source-choice input {width:18px;height:18px}
.material-preview-files,.material-file-list {padding:0;list-style:none}
.material-preview-files li {padding:6px 0;overflow-wrap:anywhere}
.material-file-list li {display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 0;border-bottom:1px solid var(--line,#d7dfda)}
.material-file-list button {text-align:left;overflow-wrap:anywhere;max-width:100%;font-size:16px}
.material-group-actions {display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.material-files-dialog {max-width:min(720px,95vw)}
.material-manage {font-size:13px;padding:0;text-align:left}
.grid-upload-options {position:relative}
.grid-upload-options summary {cursor:pointer;list-style:none;padding:8px 10px}
.grid-upload-options[open] > div {position:absolute;bottom:100%;left:0;z-index:20;background:var(--paper,#fff);border:1px solid var(--line,#d7dfda);border-radius:12px;padding:10px;box-shadow:0 5px 20px #0002;min-width:260px}
.grid-upload-options button {white-space:nowrap;width:100%;text-align:left}

/* Keep file selection, upload and source checks visually distinct. */
.typed-file-upload {margin-top:20px;padding-top:20px;border-top:1px solid #e1e9e5}
.typed-file-upload .field-hint {margin:12px 0 0;line-height:1.7}
.typed-choice-list {margin:0;min-width:0}
.typed-choice-list label {overflow-wrap:anywhere;line-height:1.6}
.typed-choice-list input {flex-shrink:0}
.material-preview-details {margin-top:20px;padding:16px;background:#f5f8f6;border:1px solid #d7dfda;border-radius:10px}
.material-preview-details summary {cursor:pointer;font-size:16px;font-weight:600}
.material-preview-details .field {margin-top:12px}
.material-source-choice:has([data-material-source]:checked) {background:#f1f7f4}
.material-source-choice {padding:14px 12px;border-radius:8px;flex-wrap:wrap}
.material-source-choice label:first-child {flex:1;min-width:140px;overflow-wrap:anywhere}
.material-optional {white-space:nowrap;font-size:14px!important}
.system-column-choices .button {justify-content:stretch;align-items:start;padding:18px 20px;text-align:left!important}
.column-type-trigger {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 16px;border:1px solid #b8c8c0;border-radius:10px;background:#fff;color:#20362f;font:inherit;text-align:left;cursor:pointer}
.column-type-trigger:focus-visible,.column-type-option:focus-visible {outline:3px solid #76ac9a;outline-offset:2px}
.column-type-dialog {width:min(620px,94vw)}
.column-type-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.column-type-option {display:flex;align-items:center;gap:12px;padding:14px;text-align:left;min-height:80px;border:1px solid #d8e1dd;border-radius:10px;background:#fff;color:#20362f;cursor:pointer;font:inherit}
.column-type-option:hover {background:#f2f7f4}
.column-type-option[aria-pressed="true"] {border-color:#16715e;background:#edf6f1}
.column-type-option:disabled {opacity:.45;cursor:not-allowed}
.column-type-option strong {display:block;font-size:16px}
.column-type-option small {display:block;font-size:13px;line-height:1.5;margin-top:5px}
.column-type-icon {display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:#e8f0eb;border-radius:7px;font-size:19px}
.column-type-check {margin-left:auto;color:#16715e}
@media(max-width:520px){.column-type-options{grid-template-columns:1fr}.typed-config-row{grid-template-columns:1fr}}

.typed-file-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px;border:1px solid #e1e9e5;border-radius:8px}
.typed-file-choice label{flex:1;min-width:200px;border:0;padding:0}
.material-remove{color:#a34646!important;font-size:14px!important;flex-shrink:0}
