#modelsView{--ml-border:#cfe0ef;--ml-soft:#f2f8fd;--ml-blue:#1483e4;--ml-green:#11833d;--ml-muted:#607f99;color:#193e5a;padding:18px}
#modelsView *{box-sizing:border-box}#modelsView [hidden]{display:none!important}
#modelsView .ml-header,#modelsView .ml-toolbar,#modelsView .ml-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#modelsView .ml-header{justify-content:space-between;margin-bottom:18px}#modelsView h2,#modelsView h3{margin:0}
#modelsView button,#modelsView input,#modelsView select,#modelsView textarea{font:inherit}
#modelsView button{padding:8px 12px;min-height:36px;border:1px solid var(--ml-border);border-radius:8px;background:#fff;color:#19476a;cursor:pointer}
#modelsView button:disabled{opacity:.5;cursor:default}#modelsView button[aria-pressed=true]{background:var(--ml-blue);border-color:var(--ml-blue);color:#fff}
#modelsView button.ml-danger{border-color:#e5a0a9;color:#b42135}#modelsView button.ml-danger:hover:not(:disabled){background:#fff0f2;border-color:#b42135}
#modelsView .ml-subtitle,#modelsView .ml-hint{color:var(--ml-muted);font-size:13px}
#modelsView .ml-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px}
#modelsView .ml-card{border:1px solid var(--ml-border);border-radius:12px;padding:16px;background:#fff;align-self:start}
#modelsView .ml-identity .ml-avatar{width:72px;height:72px;flex:0 0 72px;border-radius:50%;overflow:hidden;display:grid;place-items:center}
#modelsView .ml-avatar img{width:100%;height:100%;object-fit:cover}
#modelsView .ml-identity h3{overflow-wrap:anywhere;min-width:0}
#modelsView .ml-avatar-replace{margin:0 0 16px;font-size:12px;padding:4px 10px;min-height:30px}
#modelsView .ml-source{display:grid;gap:8px;margin:0 0 14px;min-width:0}
#modelsView .ml-source a{color:#0874c9;overflow-wrap:anywhere;text-decoration:none;line-height:1.45}
#modelsView .ml-source a:hover{text-decoration:underline}
#modelsView .ml-source .ml-actions{gap:6px}
#modelsView .ml-source button{font-size:12px;padding:5px 8px;min-height:30px}
#modelsView label{display:block;font-size:13px;color:var(--ml-muted);margin-bottom:12px}
#modelsView input:not([type=checkbox]),#modelsView textarea,#modelsView select{display:block;width:100%;padding:9px;border:1px solid var(--ml-border);border-radius:7px;background:#fff;color:#193e5a;margin-top:5px;min-width:0}
#modelsView textarea{min-height:94px;resize:vertical}#modelsView .ml-identity{display:flex;gap:12px;align-items:center;margin:16px 0}
#modelsView .ml-avatar{border-radius:14px;width:48px;height:48px;display:grid;place-items:center;background:#e6f3ff;color:#1483e4;font-weight:700;font-size:21px}
#modelsView .ml-library{min-width:0;background:#fff;border:1px solid var(--ml-border);border-radius:12px;padding:16px;align-self:start}
#modelsView .ml-toolbar{justify-content:space-between;margin-bottom:12px}#modelsView .ml-toolbar select{width:auto;max-width:230px;margin:0}
#modelsView .ml-scroll{overflow:auto;height:clamp(350px,64vh,850px);overscroll-behavior:auto;scrollbar-gutter:stable;padding:3px}
#modelsView .ml-grid{display:grid;grid-template-columns:repeat(var(--ml-columns,6),minmax(0,1fr));gap:12px;overflow-anchor:none}
#modelsView .ml-density{display:flex;align-items:center;gap:5px;flex-wrap:wrap}#modelsView .ml-density button{min-width:36px;padding:6px 9px}
#modelsView .ml-tile{position:relative;border:1px solid var(--ml-border);border-radius:10px;overflow:hidden;min-width:0}
#modelsView .ml-tile.ml-selected{outline:2px solid var(--ml-green);outline-offset:-2px}#modelsView .ml-tile.ml-selected::after{content:'';position:absolute;inset:0;border:2px solid var(--ml-green);border-radius:inherit;pointer-events:none}
#modelsView .ml-counts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}#modelsView .ml-total{font-size:15px;color:#365c79}#modelsView .ml-count-selected{font-size:18px;font-weight:700;padding:8px 13px;border-radius:8px;background:#f1f5f8;color:#557086}#modelsView .ml-count-selected.ml-has-selection{background:#e1f5e8;color:#07652c;box-shadow:inset 0 0 0 1px #99d8af}
#modelsView button.ml-image{padding:0;border:0;border-radius:0;display:block;width:100%;text-align:left}
#modelsView .ml-thumbnail{display:flex;justify-content:center;align-items:center;aspect-ratio:1/1;background:var(--ml-soft);overflow:hidden}
#modelsView .ml-thumbnail img{width:100%;height:100%;object-fit:cover}
#modelsView .ml-number{position:absolute;right:6px;top:6px;min-width:24px;padding:3px 6px;border-radius:5px;background:#173c59dd;color:#fff;font-size:12px;font-weight:600;text-align:center;pointer-events:none;font-variant-numeric:tabular-nums}#modelsView .ml-selected .ml-number{background:var(--ml-green)}

#modelsView button.ml-open{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);min-height:30px;padding:5px 9px;font-size:12px;background:#fff;color:#19476a;box-shadow:0 1px 5px #173c5933;opacity:0;pointer-events:none}#modelsView .ml-tile:hover .ml-open,#modelsView .ml-tile:focus-within .ml-open{opacity:1;pointer-events:auto}
@media(pointer:coarse){#modelsView button.ml-open{min-height:40px}}

#modelsView .ml-tile button:focus-visible{outline:3px solid #173c59;outline-offset:-3px}
#modelsView .ml-badge{position:absolute;left:7px;bottom:7px;background:#fff;border-radius:6px;padding:3px 6px;font-size:12px;pointer-events:none}
#modelsView .ml-status{min-height:24px;margin:10px 0;color:#177865}#modelsView .ml-status[data-error=true]{color:#c22b40}
#modelsView .ml-link-actions{margin:-4px 0 14px;grid-column:1/-1}#modelsView .ml-link-status,#modelsView .ml-form-status,#modelsView .ml-field-error{font-size:13px;line-height:1.45;margin-top:7px;overflow-wrap:anywhere}#modelsView .ml-link-status{color:var(--ml-muted)}#modelsView .ml-link-status[data-state=success],#modelsView .ml-form-status{color:#177865}#modelsView .ml-link-status[data-state=warning]{color:#936000}#modelsView .ml-link-status[data-state=error],#modelsView .ml-form-status[data-error=true],#modelsView .ml-field-error{color:#c22b40}#modelsView input[aria-invalid=true]{border-color:#c22b40}#modelsView .ml-form-status{grid-column:1/-1}
#modelsView .ml-load{margin:14px auto;display:block}#modelsView .ml-empty{padding:40px 10px;text-align:center;color:var(--ml-muted)}
.ml-preview-dialog{width:min(1000px,95vw);max-height:94vh;padding:20px;border:1px solid #cfe0ef;border-radius:14px;color:#193e5a;background:#fff}.ml-preview-dialog::backdrop{background:#102d4bcc}.ml-preview-dialog header,.ml-preview-dialog footer{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.ml-preview-dialog .ml-preview-body{min-height:240px;display:grid;place-items:center;margin:14px 0}.ml-preview-dialog img,.ml-preview-dialog video{max-width:100%;max-height:66vh;object-fit:contain}.ml-preview-dialog button{padding:9px 14px;border:1px solid #cfe0ef;background:#fff;border-radius:7px;color:#193e5a;cursor:pointer}
@media(max-width:1050px){#modelsView .ml-layout{grid-template-columns:240px minmax(0,1fr)}#modelsView .ml-grid{gap:8px}}
@media(max-width:760px){#modelsView .ml-layout{grid-template-columns:1fr}#modelsView .ml-scroll{height:580px}#modelsView .ml-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}#modelsView .ml-form label{margin:0}#modelsView .ml-form label:last-of-type{grid-column:1/-1}#modelsView .ml-identity{margin:8px 0}#modelsView{padding:12px}}
@media(max-width:480px){#modelsView .ml-form{grid-template-columns:1fr}#modelsView input,#modelsView textarea,#modelsView select{font-size:16px}#modelsView .ml-toolbar select{max-width:100%;width:100%}}
.ml-album-dialog{box-sizing:border-box;width:min(580px,94vw);max-height:90vh;overflow:auto;padding:0;border:1px solid #cfe0ef;border-radius:14px;color:#193e5a;background:#fff;font:14px/1.45 Arial,sans-serif}.ml-album-dialog *{box-sizing:border-box}.ml-album-dialog::backdrop{background:#102d4baa}.ml-album-dialog [hidden]{display:none!important}
.ml-upload-progress{display:grid;gap:10px;margin:0 0 16px;padding:15px;background:#f2f8fd;border:1px solid #cfe0ef;border-radius:10px;font-variant-numeric:tabular-nums}.ml-upload-progress strong{font-size:18px;color:#193e5a}.ml-upload-progress progress{width:100%;height:16px;accent-color:#11833d}.ml-upload-progress small{color:#607f99;line-height:1.5}
.ml-album-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 12px}.ml-album-dialog h3{font-size:21px;margin:0 0 10px}.ml-album-selected{display:inline-block;background:#e1f5e8;color:#07652c;padding:7px 11px;border-radius:7px;font-size:16px}.ml-album-body{padding:8px 22px 18px}.ml-album-dialog button,.ml-album-dialog input{font:inherit}.ml-album-dialog button{padding:9px 12px;min-height:40px;background:#fff;border:1px solid #cfe0ef;border-radius:8px;color:#19476a;cursor:pointer}.ml-album-dialog button:disabled{opacity:.5;cursor:default}
.ml-album-dialog input{display:block;width:100%;border:1px solid #cfe0ef;border-radius:7px;padding:10px 12px;color:#193e5a;background:#fff}.ml-album-dialog input[type=search]{margin-bottom:12px}.ml-album-list{display:grid;gap:8px;max-height:280px;overflow:auto;margin-bottom:12px}.ml-album-dialog .ml-album-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-width:0}.ml-album-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.ml-album-row strong,.ml-album-row small{display:block}.ml-album-row small{color:#607f99;margin-top:3px}.ml-album-row[aria-pressed=true]{background:#eef7ff;border-color:#1483e4;box-shadow:inset 0 0 0 1px #1483e4}.ml-album-folder{font-size:27px;color:#1483e4}.ml-album-dialog .ml-album-new{width:100%;text-align:left;background:#f2f8fd;color:#0877cc}
.ml-album-editor{background:#f2f8fd;padding:14px;margin-top:12px;border-radius:10px}.ml-album-editor label{display:block;font-weight:600;margin-bottom:7px}.ml-album-error{color:#b42135;margin:10px 0;overflow-wrap:anywhere}.ml-album-error:empty{display:none}.ml-album-hint{color:#607f99;font-size:12px;margin:14px 0 0}.ml-album-dialog footer{padding:15px 22px;display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;background:#f2f8fd;border-top:1px solid #cfe0ef}.ml-album-dialog .ml-album-primary{background:#1483e4;border-color:#1483e4;color:#fff;font-weight:600}
.ml-metadata-option{display:flex;align-items:center;gap:9px;margin:0 0 14px;cursor:pointer}.ml-album-dialog .ml-metadata-option input{width:18px;height:18px;margin:0;padding:0;accent-color:#1483e4}.ml-metadata-option[hidden]{display:none}
@media(max-width:480px){.ml-album-dialog header{padding:16px 14px 10px}.ml-album-body{padding:8px 14px 16px}.ml-album-dialog footer{padding:14px}.ml-album-dialog input{font-size:16px}.ml-album-dialog .ml-album-primary{flex:1}}

/* Approved photo-centered workspace: model and album controls above the gallery. */
#modelsView{box-sizing:border-box;width:100%;max-width:1760px;margin:20px auto;padding:20px!important;min-width:0}
#modelsView .ml-header{margin-bottom:14px}#modelsView h2{font-size:26px}
#modelsView .ml-import-bar{display:flex;gap:10px;align-items:center;margin-bottom:12px}
#modelsView .ml-import-bar textarea{flex:1;width:0;min-width:0;min-height:54px;height:54px;max-height:150px;margin:0;resize:vertical;overflow-wrap:anywhere;white-space:pre-wrap}
#modelsView .ml-import-bar button{flex-shrink:0;min-height:44px}
#modelsView .ml-layout{display:flex;flex-direction:column;gap:14px}
#modelsView .ml-card{width:100%;display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(180px,1fr) auto auto;align-items:center;gap:12px;padding:12px 16px}
#modelsView .ml-card>label{margin:0}#modelsView .ml-card .ml-identity{margin:0;gap:10px}
#modelsView .ml-picker-caption{display:block}
@media(min-width:1001px){
  #modelsView .ml-card{row-gap:6px}
  #modelsView .ml-card>label{grid-column:2;grid-row:1;position:relative}
  #modelsView .ml-picker-caption{position:absolute;left:0;right:0;bottom:calc(100% + 6px)}
  #modelsView .ml-card>label>select{margin-top:0}
  #modelsView .ml-card .ml-identity{grid-column:1;grid-row:1}
}
#modelsView .ml-identity .ml-avatar{width:144px;height:144px;flex-basis:144px}
#modelsView .ml-identity h3{font-size:19px}#modelsView .ml-avatar-replace{margin:0}
#modelsView .ml-identity,#modelsView .ml-identity-text{min-width:0}#modelsView .ml-identity-text{flex:1}
#modelsView .ml-profile-link{display:block;margin-top:4px;color:#0874c9;font-size:12px;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}#modelsView .ml-profile-link:hover{text-decoration:underline}#modelsView .ml-profile-link:focus-visible{outline:2px solid var(--ml-blue);outline-offset:3px;border-radius:2px}
#modelsView .ml-nickname{display:block;font-size:12px;font-weight:400;color:var(--ml-muted);margin-top:4px}
#modelsView .ml-drop-active{outline:2px dashed var(--ml-blue);outline-offset:-4px;background:#f2f8fd}
#modelsView .ml-details{display:contents}#modelsView .ml-details>summary{grid-column:4;grid-row:1;cursor:pointer;border:1px solid var(--ml-border);border-radius:8px;padding:8px 12px;font-size:13px;white-space:nowrap;list-style:none}
#modelsView .ml-details::details-content{display:contents}
#modelsView .ml-details>summary::-webkit-details-marker{display:none}
#modelsView .ml-details[open]>summary{background:var(--ml-soft)}
#modelsView .ml-details>.ml-form{grid-column:1/-1;display:none;border-top:1px solid var(--ml-border);padding-top:14px}
#modelsView .ml-details[open]>.ml-form{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;align-items:start}
#modelsView .ml-form>label:has([name=model-library-url]),#modelsView .ml-source{grid-column:1/-1}
#modelsView .ml-form label{margin:0}#modelsView .ml-form textarea{min-height:64px;height:64px}
#modelsView .ml-source{display:flex;align-items:center;gap:14px;margin:0;flex-wrap:wrap}
#modelsView .ml-source>span{display:none}#modelsView .ml-source>a{flex:1;min-width:180px}
#modelsView .ml-form-status{grid-column:1/-1;margin:0;font-size:12px}
#modelsView .ml-library{width:100%;padding:16px}
#modelsView .ml-toolbar{justify-content:flex-start;gap:8px}#modelsView .ml-toolbar>.ml-primary{margin-left:auto}
#modelsView .ml-toolbar button,#modelsView .ml-toolbar select{margin:0;height:42px;min-height:42px;line-height:20px}
#modelsView .ml-toolbar>.ml-primary{margin-left:auto}
#modelsView .ml-toolbar select{max-width:min(320px,100%)}#modelsView .ml-toolbar .ml-density{margin-left:auto}
#modelsView .ml-selection{padding:10px;background:#edf8f0;border:1px solid #bcdfc6;border-radius:10px;justify-content:space-between}
#modelsView .ml-count-selected{font-size:14px;padding:4px 8px}#modelsView .ml-status:empty{display:none}
#modelsView .ml-status{min-height:0;margin:8px 0;font-size:13px}
#modelsView .ml-scroll{height:clamp(280px,calc(100dvh - 365px),850px);min-height:0}
#modelsView .ml-thumbnail{width:100%;aspect-ratio:4/5;max-height:230px}#modelsView .ml-grid{gap:10px}
#modelsView .ml-link-status:empty,#modelsView .ml-field-error:empty{display:none}
.ml-destination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:12px;background:#f2f8fd;border-radius:8px}.ml-destination strong{overflow-wrap:anywhere;min-width:0}
.ml-upload-previews{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 16px}.ml-upload-previews>div{min-width:0}.ml-upload-previews img{width:100%;height:66px;object-fit:cover;border-radius:7px}.ml-upload-previews small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px}
.ml-operation-modes,.ml-avatar-sources{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.ml-operation-modes button[aria-pressed=true]{background:#1483e4;color:white;border-color:#1483e4}.ml-operation-modes+.ml-album-hint{margin:0 0 14px}.ml-album-destination-label{display:block;margin-bottom:10px}
.ml-avatar-dialog select{width:100%;padding:10px;border:1px solid #cfe0ef;border-radius:8px;font:inherit;margin-bottom:12px}.ml-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:45vh;overflow:auto}.ml-avatar-grid button{padding:0;overflow:hidden;aspect-ratio:1}.ml-avatar-grid img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:1000px){#modelsView .ml-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#modelsView .ml-card .ml-identity{grid-column:1/-1;grid-row:1}#modelsView .ml-card>label{grid-column:1/-1;grid-row:2}#modelsView .ml-details>summary{grid-column:2;grid-row:3}#modelsView .ml-avatar-replace{grid-column:1;grid-row:3;justify-self:start}#modelsView .ml-details[open]>.ml-form{grid-template-columns:1fr 1fr}#modelsView .ml-form>label:has([name=model-library-notes]){grid-column:1/-1}}
@media(max-width:540px){#modelsView{margin:12px auto;padding:12px!important}#modelsView .ml-card{padding:12px;gap:10px;grid-template-columns:1fr 1fr}#modelsView .ml-card>label{grid-column:1/-1}#modelsView .ml-card .ml-identity{grid-column:1/-1}#modelsView .ml-details>summary{grid-row:3}#modelsView .ml-details[open]>.ml-form{grid-template-columns:1fr}#modelsView .ml-library{padding:10px}#modelsView .ml-import-bar{flex-wrap:wrap}#modelsView .ml-import-bar textarea{flex-basis:100%}#modelsView .ml-import-bar button{width:100%}#modelsView .ml-density{margin-left:0!important}#modelsView .ml-scroll{height:55dvh}#modelsView .ml-identity h3{font-size:18px}.ml-upload-previews{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1001px){#modelsView .ml-avatar-replace{grid-column:3;grid-row:1}#modelsView .ml-details>summary{grid-column:4;grid-row:1}}
@media(max-width:540px){#modelsView .ml-identity .ml-avatar{width:120px;height:120px;flex-basis:120px}}
@media(min-width:541px) and (max-width:1000px){#modelsView .ml-avatar-replace{grid-column:1;grid-row:3}#modelsView .ml-details>summary{grid-column:2;grid-row:3}}
/* Stable viewport: portrait and landscape navigation never moves the controls. */
#modelsView .ml-site-photos{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;border:1px solid var(--ml-border);border-radius:9px;background:var(--ml-soft)}
#modelsView .ml-site-photos[hidden],#modelsView .ml-site-photos [hidden]{display:none!important}
#modelsView .ml-site-summary{flex:1;min-width:160px;font-size:13px;overflow-wrap:anywhere}
#modelsView .ml-site-counts{display:block;font-variant-numeric:tabular-nums;line-height:1.5}
#modelsView .ml-site-detail{display:block;min-height:1.5em;line-height:1.5;margin-top:3px;color:var(--ml-muted,#6084a1);font-size:12px}
#modelsView .ml-site-detail[data-error=true]{color:#b52b39}
#modelsView .ml-site-photos button{margin:0;height:40px;white-space:nowrap}
#modelsView .ml-site-photos progress{width:150px;max-width:100%;height:7px;accent-color:var(--ml-blue)}
@media(max-width:540px){#modelsView .ml-site-summary{flex-basis:100%}#modelsView .ml-site-photos progress{width:100%}}
.ml-preview-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 32px));height:min(860px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:16px;overflow:hidden;grid-template-rows:auto minmax(0,1fr) 24px auto;gap:10px}
.ml-preview-dialog[open]{display:grid}
.ml-preview-dialog header,.ml-preview-dialog footer{flex-wrap:nowrap;min-width:0}
.ml-preview-dialog .ml-preview-body{min-height:0;min-width:0;height:100%;margin:0;overflow:hidden;background:#f3f7fb;border-radius:8px}
.ml-preview-dialog .ml-preview-body img,.ml-preview-dialog .ml-preview-body video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.ml-preview-status{min-height:20px;font-size:13px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-preview-player{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;min-height:0;gap:12px;padding:12px;box-sizing:border-box}
.ml-preview-screen{min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.ml-preview-dialog .ml-preview-body .ml-preview-round video{width:min(100%,calc(100dvh - 260px),560px);height:auto;max-width:100%;max-height:100%;aspect-ratio:1;object-fit:contain;border-radius:50%;background:white}
.ml-preview-controls{display:flex;align-items:center;gap:10px;min-width:0}
.ml-preview-controls button{flex:0 0 40px;width:40px;height:40px;padding:0}
.ml-preview-controls input[aria-label="Позиция воспроизведения"]{flex:1 1 120px;min-width:60px;width:120px;padding:0}
.ml-preview-controls input[aria-label="Громкость"]{flex:0 1 90px;min-width:50px;width:90px;padding:0}
.ml-preview-controls output{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ml-preview-controls label{display:flex;align-items:center;gap:8px;font-size:13px;margin:0}
.ml-preview-dialog header strong{flex:1;min-width:0}
@media(max-width:540px){.ml-preview-controls{flex-wrap:wrap;gap:8px}.ml-preview-controls label{margin-left:auto}.ml-preview-dialog header{gap:6px}.ml-preview-dialog header button{padding:8px;font-size:13px}}
.ml-preview-dialog footer span{font-size:13px;text-align:center}
@media(max-width:480px){.ml-preview-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:10px;gap:8px}.ml-preview-dialog button{padding:8px 10px}.ml-preview-dialog header,.ml-preview-dialog footer{gap:8px}}
.ml-album-dialog.ml-album-remove{width:min(420px,calc(100vw - 24px));height:fit-content;min-height:0;padding:20px;box-sizing:border-box}.ml-album-dialog.ml-album-remove header{padding:0}.ml-album-dialog.ml-album-remove .ml-album-body{padding:0;margin:12px 0;min-height:0}.ml-album-remove .ml-album-body p{margin:0;overflow-wrap:anywhere}.ml-album-dialog.ml-album-remove footer{justify-content:flex-end;padding:12px 0 0;border:0;background:none}.ml-album-dialog.ml-album-remove .ml-danger{border-color:#db4554;color:#a82132}.ml-album-dialog.ml-album-remove .ml-danger:hover{background:#b82d40;color:#fff}
.ml-album-dialog button.ml-album-primary{background:#fff;border-color:#cfe0ef;color:#19476a}
#modelsView button:not(.ml-image),#modelsView .ml-details>summary,.ml-preview-dialog button,.ml-album-dialog button{transition:background-color .15s,color .15s,border-color .15s}
#modelsView button:not(.ml-image):not(:disabled):hover,#modelsView .ml-details>summary:hover,.ml-preview-dialog button:not(:disabled):hover,.ml-album-dialog button:not(:disabled):hover{background:#1068b6;border-color:#1068b6;color:#fff}
#modelsView button:not(.ml-image):not(:disabled):active,#modelsView .ml-details>summary:active,.ml-preview-dialog button:not(:disabled):active,.ml-album-dialog button:not(:disabled):active{background:#0c528f;border-color:#0c528f;color:#fff}
#modelsView button.ml-danger:not(:disabled):hover,.ml-album-dialog button.ml-danger:not(:disabled):hover{background:#b82d40;border-color:#b82d40;color:#fff}
#modelsView button:not(.ml-image):not(:disabled):focus-visible,#modelsView .ml-details>summary:focus-visible,.ml-preview-dialog button:not(:disabled):focus-visible,.ml-album-dialog button:not(:disabled):focus-visible{outline:2px solid #173e5c;outline-offset:3px}
.ml-preview-dialog button:disabled{opacity:.5;cursor:default}
