/* Лидер Автопарк — вложения v21, адаптивный просмотр и загрузка. */
.attachment-hero{display:flex;align-items:center;gap:14px;position:relative;overflow:hidden;padding:20px;margin-bottom:12px;border-radius:21px;color:#fff;background:linear-gradient(116deg,#171e28,#2d323d 70%,#5a222a);box-shadow:0 11px 30px #1018282a}
.attachment-hero:after{content:"";position:absolute;right:-110px;top:-130px;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle,#d8344150,transparent 70%);pointer-events:none}
.attachment-hero-icon{flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;background:linear-gradient(140deg,#e73940,#a81423);border-radius:16px;box-shadow:0 8px 22px #bd1e3152}
.attachment-hero-icon .tile-icon{width:30px;height:30px;color:#fff}
.attachment-hero>div:nth-child(2){position:relative;z-index:1;min-width:0}
.attachment-hero h2{font-size:21px;line-height:1.3;font-weight:850;margin:0 0 6px;color:#fff}
.attachment-hero p{font-size:12px;line-height:1.5;color:#e0e5eb;margin:0;overflow-wrap:anywhere}
.attachment-vehicle{margin:0 0 13px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.attachment-upload{padding:18px;margin-bottom:15px}
.attachment-upload-header{display:flex;align-items:center;gap:11px;margin:0 0 15px}
.attachment-upload-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#f4e4e7,#f0d0d4);color:#b81b27}
.attachment-upload-icon .tile-icon{width:23px;height:23px}
.attachment-upload-header h3{font-size:16px;font-weight:850;line-height:1.3;margin:0 0 5px}
.attachment-upload-header p{color:var(--muted);font-size:12px;margin:0;line-height:1.45}
.attachment-choose{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;min-height:44px;cursor:pointer;border-radius:12px;background:linear-gradient(130deg,#d72a35,#aa1725);color:#fff;font-size:13px;font-weight:800;box-shadow:0 6px 18px #bb213338}
.attachment-choose .tile-icon{width:20px;height:20px;color:#fff}
.attachment-picker{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.attachment-upload>small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:10px}
.attachment-upload-progress{padding:12px;background:var(--shade);border:1px solid var(--line);border-radius:12px;margin-top:15px}
.attachment-upload-progress[hidden]{display:none}
.attachment-upload-meter{overflow:hidden;background:var(--line);border-radius:99px;height:7px;margin-bottom:9px}
.attachment-upload-meter>div{height:100%;background:linear-gradient(90deg,#b91927,#ed5d55);border-radius:99px;transition:width .2s ease}
.attachment-upload-progress>span{display:block;font-size:12px;color:var(--muted);font-weight:650;margin:0 0 9px}
.attachment-upload-progress button{font-size:11px;min-height:35px;border-radius:9px}
.attachment-files-panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:15px;margin:10px 0 25px;box-shadow:0 8px 23px #121b2610}
.attachment-title-row{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:2px 0 14px}
.attachment-title-row h3{font-size:16px;line-height:1.3;font-weight:840;margin:0}
.attachment-title-row>span{font-size:12px;color:var(--muted);font-weight:850;padding:5px 10px;background:var(--shade);border:1px solid var(--line);border-radius:99px;min-width:27px;text-align:center}
.attachment-list{display:grid;gap:9px}
.attachment-item{display:flex;align-items:center;gap:12px;padding:11px;border-radius:14px;background:var(--shade);border:1px solid var(--line)}
.attachment-file-icon{width:55px;height:55px;flex:0 0 55px;display:grid;place-items:center;border-radius:11px;background:var(--surface);overflow:hidden;color:#b91f2c}
.attachment-file-icon .tile-icon{width:27px;height:27px}
.attachment-thumb{width:100%;height:100%;object-fit:cover;border-radius:9px}
.attachment-file-details{flex:1;min-width:0}
.attachment-file-details strong{display:block;font-size:13px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.attachment-file-details small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.attachment-file-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.attachment-download{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit;padding:9px 10px;min-height:38px;font-size:12px;font-weight:760}
.attachment-download .tile-icon{height:17px;width:17px;color:#b9202c}
.attachment-file-actions>button{font-size:12px;border-radius:10px;min-height:38px}
.attachment-empty{padding:23px 13px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6;border:1px dashed var(--line);border-radius:13px}
.attachment-inline-row{margin-top:10px}
.attachment-mini-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;font-size:12px;padding:8px 11px;border-radius:10px;border:1px solid var(--line);color:inherit;background:var(--surface);font-weight:730;box-shadow:none}
.attachment-mini-button .tile-icon{width:17px;height:17px;color:#c11f2a}
.attachment-vehicle-panel .service-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.attachment-vehicle-panel .service-top h3{margin:0;font-size:16px}
.attachment-vehicle-panel .service-top button{display:inline-flex;align-items:center;gap:7px;font-size:12px;min-height:38px}
.attachment-vehicle-panel .service-top .tile-icon{width:18px;height:18px}
.attachment-vehicle-panel .hint{font-size:12px;margin:10px 0 0}
.attachment-documents-list{display:grid;gap:11px}
.attachment-document-card{padding:16px;border-radius:17px}
.attachment-document-head{display:flex;align-items:center;gap:12px}
.attachment-document-icon{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;color:#bf1b2a;background:var(--shade);border-radius:12px}
.attachment-document-icon .tile-icon{width:22px;height:22px}
.attachment-document-head>div:last-child{flex:1;min-width:0}
.attachment-document-head h3{font-size:15px;line-height:1.35;margin:0 0 6px;font-weight:830;overflow-wrap:anywhere}
.attachment-document-head small{font-size:12px;color:var(--muted)}
.attachment-document-vehicle{margin-top:12px}
.attachment-document-notes{font-size:12px;line-height:1.55;overflow-wrap:anywhere;color:var(--muted);margin:12px 0}
.attachment-document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line);margin-top:13px}
.attachment-document-actions button{font-size:12px;min-height:37px;border-radius:10px}
.attachment-edit-link button{display:inline-flex;align-items:center;gap:7px;font-size:12px}
.attachment-edit-link .tile-icon{width:17px;height:17px}
@media(max-width:630px){
 .attachment-hero{gap:10px;padding:15px}
 .attachment-hero-icon{width:43px;height:43px;flex-basis:43px}
 .attachment-hero h2{font-size:18px}
 .attachment-item{flex-wrap:wrap}
 .attachment-file-actions{width:100%;justify-content:flex-end;border-top:1px solid var(--line);padding-top:9px}
 .attachment-download{min-height:40px}
 .attachment-choose{width:100%}
 .attachment-files-panel{padding:12px}
 .attachment-document-card{padding:13px}
}
@media(prefers-reduced-motion:reduce){.attachment-upload-meter>div{transition:none}}
body.lowmotion .attachment-upload-meter>div{transition:none}
