@font-face{font-family:classy;src:url('https://vkfonts.storage.googleapis.com/classy.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#f4f5f7;--surface:#fff;--ink:#17181a;--muted:#777c84;--line:#e1e3e7;--soft:#f0f1f3;--danger:#b42318;--success:#147a48;--warning:#9a6500;--radius:14px;--shadow:0 18px 55px rgba(18,22,28,.14);--space:4px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;font-family:classy,system-ui,sans-serif;background:var(--bg);color:var(--ink)}body{overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit;text-decoration:none}.shell{height:100dvh;display:grid;grid-template-columns:232px minmax(0,1fr)}aside{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.brand{height:76px;padding:23px 18px 12px;font-size:24px;font-weight:700;display:flex;align-items:baseline;gap:6px}.brand em{font-size:11px;font-style:normal;color:var(--muted);font-weight:400}.nav-scroll{padding:0 10px 18px;overflow:auto}.quick{width:100%;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fafbfc;outline:0;margin:2px 0 12px}.quick:focus{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.07)}.field input:focus,.field select:focus{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.07)}.nav-label{font-size:10px;letter-spacing:.12em;color:#8b8f96;padding:13px 10px 7px}.nav-btn{position:relative;width:100%;min-height:42px;border:0;background:transparent;border-radius:10px;text-align:left;padding:0 10px;display:flex;gap:11px;align-items:center;color:var(--ink)}.nav-btn:hover{background:#f5f6f7}.nav-btn.active{background:#eef0f2;font-weight:600}.nav-icon{width:22px;text-align:center;font-size:16px;flex:0 0 22px}.nav-btn>span:nth-child(2){font-size:13px}.nav-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--ink);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center}.nav-badge:empty{display:none}main{min-width:0;min-height:0;overflow:auto}header{height:76px;position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-title{min-width:0}.eyebrow{font-size:10px;line-height:1.2;letter-spacing:.13em;color:#8a8e95}.header-title h1,.page-head h2{margin:3px 0 0;font-size:23px;line-height:1.1}.head-actions,.page-actions,.actions,.dialog-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.button{min-height:40px;border:1px solid #d8dbe0;border-radius:10px;background:#fff;padding:0 14px;color:var(--ink);font-size:12px;font-weight:600}.button:hover{background:#f1f2f4}.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.button.primary:hover{background:#2b2d30}.button.danger{color:var(--danger);border-color:#e5b9b5}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:17px}.mobile-menu{display:none}.page{max-width:1440px;margin:0 auto;padding:24px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.page-head>.page-actions{flex:0 0 auto}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px}.stat strong{display:block;font-size:21px;line-height:1.1}.stat span{display:block;color:var(--muted);font-size:11px;margin-top:6px}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;margin-bottom:10px}.toolbar input{height:44px;width:100%;border:1px solid var(--line);border-radius:11px;padding:0 13px;background:#fff;outline:0}.select{position:relative}.select-trigger{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 13px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.select.open .select-trigger{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.06)}.select-menu{position:fixed;padding:5px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);z-index:9999;display:none;min-width:180px}.select.open .select-menu{display:block}.select-option{display:block;width:100%;height:38px;text-align:left;border:0;background:transparent;border-radius:8px;padding:0 10px;font-size:12px}.select-option:hover,.select-option.selected{background:#f0f1f3}.chevron{font-size:15px}.result-summary{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;margin:8px 2px 12px}.text-button{border:0;background:none;padding:4px;color:var(--ink);font-size:11px;text-decoration:underline}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}.icon-card{position:relative;min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;min-height:178px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;cursor:pointer;transition:.16s ease;outline:0}.icon-card:hover,.icon-card:focus-visible{border-color:#b5b8bd;transform:translateY(-1px);box-shadow:0 7px 20px rgba(20,23,28,.05)}.card-preview{width:100%;height:96px;display:flex;align-items:center;justify-content:center;overflow:hidden}.card-preview img{width:54px;height:54px;max-width:100%;max-height:100%;display:block;object-fit:contain}.card-name{width:100%;margin-top:8px;font-size:12px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-path{width:100%;margin-top:5px;font-size:10px;color:var(--muted);text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.icon-favorite{position:absolute;left:8px;top:8px;width:28px;height:28px;border:1px solid transparent;background:#fff;border-radius:8px;font-size:13px;color:#b8bbc0;z-index:2}.icon-favorite:hover,.icon-favorite.active{color:var(--ink);border-color:var(--line)}.card-actions{position:absolute;right:8px;top:8px;display:flex;gap:4px;opacity:0;transition:opacity .12s}.icon-card:hover .card-actions,.icon-card:focus-within .card-actions{opacity:1}.mini{height:28px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:0 7px;font-size:9px;font-weight:600}.mini.danger{color:var(--danger)}.empty-state{background:#fff;border:1px dashed #cfd2d7;border-radius:14px;padding:64px 20px;text-align:center;color:var(--muted)}.empty-state.wide{grid-column:1/-1}.empty-icon{width:46px;height:46px;border-radius:50%;background:#f0f1f3;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;color:var(--ink);font-size:18px}.empty-state h3{margin:0;color:var(--ink);font-size:16px}.empty-state p{margin:7px 0 18px;font-size:12px}.upload-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;margin-bottom:22px}.drop-zone{min-height:250px;border:2px dashed #cfd3d8;border-radius:16px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;transition:.15s}.drop-zone.dragging{border-color:#17181a;background:#f8f8f8}.drop-zone.disabled{opacity:.6;pointer-events:none}.upload-mark{width:46px;height:46px;border-radius:12px;background:#f0f1f3;display:flex;align-items:center;justify-content:center;font-size:23px;margin-bottom:10px}.drop-zone h3{margin:0;font-size:17px}.drop-zone p{max-width:520px;margin:8px auto 18px;color:var(--muted);font-size:12px;line-height:1.5}.batch-side{display:flex;flex-direction:column;gap:12px}.batch-side .stats{grid-template-columns:1fr;gap:8px;margin:0}.info-card,.settings-card,.pending-hero,.build-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.info-card h3,.settings-card h3,.pending-hero h3,.build-card h3{margin:3px 0 7px;font-size:16px}.info-card p,.settings-card p,.pending-hero p,.build-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.batch-progress{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:12px}.progress-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.progress{height:7px;border-radius:999px;background:#eceef1;overflow:hidden}.progress i{display:block;height:100%;background:#17181a;border-radius:inherit;transition:width .12s}.status-pills{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.status-pills span,.status{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 8px;background:#f0f1f3;color:#555a61;font-size:10px}.status.good{background:#eaf7ef;color:var(--success)}.status.warn{background:#fff5dc;color:var(--warning)}.status.bad{background:#fdecea;color:var(--danger)}.file-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}.file-row{min-height:62px;display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid #eef0f2}.file-row:last-child{border-bottom:0}.file-thumb{width:42px;height:42px;border-radius:9px;background:#f5f6f7;display:flex;align-items:center;justify-content:center;flex:0 0 42px;overflow:hidden}.file-thumb img{width:30px;height:30px;object-fit:contain}.file-thumb span{font-size:9px;color:#999}.file-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.file-main strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-main span{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 12px}.section-head h3{margin:0;font-size:16px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.conflict-list{display:flex;flex-direction:column;gap:14px}.conflict-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px}.conflict-head h3{margin:8px 0 4px;font-size:14px;overflow-wrap:anywhere}.conflict-head p{margin:0;color:var(--muted);font-size:10px}.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.compare-panel{min-width:0}.compare-label{display:block;color:var(--muted);font-size:10px;margin:0 0 6px 2px}.compare-preview{height:130px;border:1px solid var(--line);border-radius:11px;background:#fafbfc;display:flex;align-items:center;justify-content:center;overflow:hidden}.compare-preview img{width:74px;height:74px;object-fit:contain;display:block}.conflict-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.conflict-details>div{background:#f7f8f9;border-radius:9px;padding:9px}.conflict-details span{display:block;color:var(--muted);font-size:9px;margin-bottom:4px}.conflict-details b{font-size:11px;overflow-wrap:anywhere}.resolution-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.resolution{min-height:66px;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px}.resolution:hover,.resolution.selected{border-color:#17181a;background:#f5f6f7}.resolution strong{display:block;font-size:11px}.resolution small{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.3}.field{display:flex;flex-direction:column;gap:6px;margin-top:12px}.field>span{font-size:10px;color:var(--muted);letter-spacing:.03em}.field input{height:42px;border:1px solid var(--line);border-radius:10px;padding:0 11px;background:#fff;outline:0}.field small{font-size:9px;color:var(--muted);line-height:1.4}.keep-name{max-width:520px}.pending-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}.pending-list{max-height:none}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.collection-card{min-height:130px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:17px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.collection-card:hover{border-color:#aaa;transform:translateY(-1px)}.collection-card span{font-size:12px}.collection-card strong{font-size:27px}.collection-card small{color:var(--muted);font-size:10px}.system-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.build-card{display:flex;align-items:center;gap:14px;margin-bottom:14px}.build-icon{width:52px;height:52px;border-radius:14px;background:#f0f1f3;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 52px}.build-icon.good{background:#eaf7ef;color:var(--success)}.build-icon.warn{background:#fff5dc;color:var(--warning)}.build-icon.bad{background:#fdecea;color:var(--danger)}.timeline{display:grid;gap:9px;margin-top:12px}.timeline div{display:flex;gap:10px;align-items:center;font-size:11px}.timeline div:first-letter{font-weight:700}.timeline span{color:var(--muted)}.settings-card{max-width:760px;display:grid;gap:10px;margin-bottom:14px}.detail-preview,.edit-icon-preview{height:170px;border:1px solid var(--line);border-radius:13px;background:#fafbfc;display:flex;align-items:center;justify-content:center;overflow:hidden}.detail-preview img{width:104px;height:104px;object-fit:contain}.edit-icon-preview{height:120px}.edit-icon-preview img{width:64px;height:64px;object-fit:contain}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.meta-grid>div{background:#f7f8f9;border-radius:9px;padding:9px;min-width:0}.meta-grid span{display:block;color:var(--muted);font-size:9px;margin-bottom:4px}.meta-grid b{display:block;font-size:10px;overflow-wrap:anywhere;line-height:1.4}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:9px!important}.app-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none}.app-dialog::backdrop{background:rgba(16,18,22,.56);backdrop-filter:blur(4px)}.dialog-panel{width:min(620px,calc(100vw - 32px));max-height:min(90dvh,760px);overflow:auto;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;box-shadow:var(--shadow);padding:20px}.dialog-panel.compact{width:min(460px,calc(100vw - 28px))}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.dialog-head h2{margin:3px 0 0;font-size:19px}.detail-dialog .dialog-panel{width:min(560px,calc(100vw - 28px))}.dialog-actions{justify-content:flex-end;margin-top:16px}.muted{color:var(--muted);font-size:12px;line-height:1.55}.busy-bar{position:sticky;top:76px;z-index:19;height:32px;background:#17181a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px}.hidden{display:none!important}.toast-host{position:fixed;right:18px;bottom:18px;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}.toast{max-width:min(420px,calc(100vw - 36px));background:#17181a;color:#fff;padding:11px 14px;border-radius:10px;box-shadow:var(--shadow);font-size:11px}.toast.success{background:#155b3b}.toast.error{background:#8b231b}.toast.info{background:#33363b}.nav-backdrop{display:none}
@media(max-width:900px){.shell{grid-template-columns:1fr}aside{position:fixed;left:0;top:0;bottom:0;width:270px;transform:translateX(-105%);transition:transform .18s ease;box-shadow:var(--shadow)}aside.open{transform:translateX(0)}.nav-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:25;display:block;opacity:0;pointer-events:none;transition:.18s}.nav-backdrop.show{opacity:1;pointer-events:auto}.mobile-menu{display:inline-flex}.header-title{flex:1}.head-actions .button:first-child{display:none}header{padding:0 14px;height:70px}.busy-bar{top:70px}.page{padding:17px 14px}.upload-layout{grid-template-columns:1fr}.system-grid{grid-template-columns:1fr}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.icon-card{min-height:164px;padding:10px}.card-preview{height:82px}.card-preview img{width:48px;height:48px}.card-actions{opacity:1}.stats{gap:8px}.stat{padding:13px}.toolbar{grid-template-columns:minmax(0,1fr) 160px}}
@media(max-width:620px){.header-title h1,.page-head h2{font-size:20px}.page-head{align-items:flex-start;margin-bottom:15px}.page-actions{max-width:48%}.page-actions .button{padding:0 10px}.stats{grid-template-columns:repeat(3,1fr)}.stat strong{font-size:18px}.stat span{font-size:9px}.toolbar{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.icon-card{min-height:154px;border-radius:12px}.card-preview{height:72px}.card-preview img{width:44px;height:44px}.card-name{font-size:11px}.card-path{font-size:9px}.compare,.conflict-details{grid-template-columns:1fr}.resolution-grid{grid-template-columns:1fr}.compare-preview{height:112px}.pending-hero{flex-direction:column;align-items:flex-start}.pending-hero .actions{width:100%}.pending-hero .button{flex:1}.detail-dialog .dialog-panel{width:calc(100vw - 20px);border-radius:16px;padding:14px}.detail-preview{height:145px}.detail-preview img{width:82px;height:82px}.meta-grid{grid-template-columns:1fr}.dialog-panel{width:calc(100vw - 20px);padding:16px}.dialog-actions .button{flex:1}.toast-host{right:10px;left:10px;align-items:stretch}.toast{max-width:none}.file-row{gap:8px;padding:8px}.file-main span{font-size:9px}}

/* Production icon rendering + mobile polish */
.icon-card{overflow:hidden}
.card-preview{flex:0 0 auto;position:relative}
.icon-render{width:56px;height:56px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 56px}
.icon-render img,.icon-render svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;display:block;object-fit:contain}
.icon-error{width:46px;height:46px;border:1px dashed var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#a0a4aa;background:#fafbfc;font-size:16px}
.card-preview .icon-render{width:52px;height:52px;flex-basis:52px}
.card-name,.card-path{overflow:hidden}
.card-path{max-width:100%;text-overflow:ellipsis}
.existing-svg-slot{width:74px;height:74px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.existing-svg-slot .icon-render{width:74px;height:74px;flex-basis:74px}
.drop-actions{position:absolute;top:12px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.drop-zone{position:relative}
.section-back{display:inline-block;margin-bottom:8px;text-decoration:none}
.dialog-panel{width:min(520px,calc(100vw - 28px));padding:18px;border-radius:16px}
.dialog-panel.compact{width:min(430px,calc(100vw - 24px))}
.detail-preview{height:150px;margin-bottom:14px}
.detail-preview .icon-render{width:112px;height:112px;flex-basis:112px}
.edit-icon-preview{height:100px;margin-bottom:12px}
.edit-icon-preview .icon-render{width:64px;height:64px;flex-basis:64px}
.dialog-head{margin-bottom:12px}
.dialog-head h2{font-size:18px}
.meta-grid{gap:7px;margin-top:10px}
.meta-grid>div{padding:8px}
.dialog-actions{gap:7px}
.dialog-actions .button{min-height:38px}
@media(max-width:620px){
  header{height:64px;padding:0 10px}
  .header-title h1{font-size:19px}
  .eyebrow{font-size:9px}
  .head-actions .button{min-height:38px;padding:0 10px;font-size:11px}
  .page{padding:12px 10px 24px}
  .stats{margin-bottom:12px}
  .stat{padding:11px 9px}
  .stat strong{font-size:17px}
  .stat span{font-size:8px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .icon-card{min-height:142px;padding:9px}
  .card-preview{height:64px}
  .card-preview .icon-render{width:40px;height:40px;flex-basis:40px}
  .card-name{font-size:11px;margin-top:6px}
  .card-path{font-size:8px;line-height:1.2;margin-top:4px;max-height:20px}
  .icon-favorite{width:26px;height:26px;left:6px;top:6px}
  .card-actions{right:6px;top:6px;gap:3px}
  .mini{height:27px;padding:0 6px}
  .dialog-panel,.dialog-panel.compact{width:calc(100vw - 20px);padding:14px;border-radius:15px}
  .detail-preview{height:128px}
  .detail-preview .icon-render{width:86px;height:86px;flex-basis:86px}
  .meta-grid{grid-template-columns:1fr 1fr}
  .meta-grid b{font-size:9px}
  .dialog-actions{flex-wrap:wrap}
  .dialog-actions .button{flex:1 1 calc(50% - 7px)}
  .drop-zone{min-height:210px;padding:26px 18px 22px}
  .drop-actions{top:9px;left:10px;right:10px}
}


/* V6 product UI system */
.button>delluna-icon,.icon-text-button>delluna-icon,.folder-icon delluna-icon,.folder-chevron delluna-icon,.chevron delluna-icon{width:16px;height:16px;display:block;flex:0 0 auto}
.ui-icon-wrap{display:inline-flex}.icon-label{display:inline-flex;align-items:center;justify-content:center;gap:7px}.button{min-height:36px;padding:0 12px;font-size:11px}.icon-button{width:36px;height:36px}.head-actions{gap:7px}.head-actions .button{height:36px}.head-actions .button.primary{padding-inline:12px}.toolbar{grid-template-columns:minmax(0,1fr) 176px}.toolbar input{height:40px;font-size:12px}.search-field{height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 11px}.search-field>span{display:flex;color:#9a9da3}.search-field input{border:0!important;box-shadow:none!important;height:38px!important;padding:0!important;background:transparent!important}.select-trigger{height:40px;font-size:11px;padding:0 11px}.chevron{display:flex;align-items:center;justify-content:center}.chevron svg{width:14px;height:14px}.select-option{font-size:11px}.database-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.database-tools h2{margin:3px 0 0;font-size:22px}.selection-tools{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:7px 9px;margin-bottom:12px;position:sticky;top:0;z-index:10}.selection-tools strong{font-size:11px;margin-right:auto}.selection-tools .button{display:inline-flex;align-items:center;gap:6px}.database-list{border-radius:14px}.db-row{min-height:78px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid #eef0f2;background:#fff;transition:.12s}.db-row:last-child{border-bottom:0}.db-row:hover,.db-row.selected{background:#fafbfc}.row-check{width:22px;display:flex;align-items:center;justify-content:center;flex:0 0 22px}.row-check input{width:16px;height:16px;margin:0}.row-preview{width:58px;height:58px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 58px;border-radius:10px;background:#fafbfc}.row-preview .icon-render{width:42px;height:42px;flex:0 0 42px}.row-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.row-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-main span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-main small{font-size:9px;color:#9a9da3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-actions{display:flex;align-items:center;gap:5px}.icon-text-button{min-height:32px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ink);font-size:10px;font-weight:600}.icon-text-button:hover{background:#f0f1f3}.icon-text-button.danger{color:var(--danger)}.folder-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.folder-row{min-height:64px;width:100%;border:0;border-bottom:1px solid #eef0f2;background:#fff;display:flex;align-items:center;text-align:left;gap:12px;padding:10px 14px}.folder-row:last-child{border-bottom:0}.folder-row:hover{background:#fafbfc}.folder-icon{width:34px;height:34px;border-radius:9px;background:#f0f1f3;display:flex;align-items:center;justify-content:center}.folder-row>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.folder-row strong{font-size:11px}.folder-row small{font-size:9px;color:var(--muted)}.folder-chevron{margin-left:auto;color:#8b8f96}.auth-state{max-width:560px;margin:10vh auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px}.auth-state h2{margin:4px 0 8px;font-size:22px}.icon-loading{display:inline-flex;align-items:center;justify-content:center;color:#9a9da3}.icon-error{width:40px;height:40px}.icon-error span{display:none}.busy-bar{font-size:10px}.drop-zone .button{min-height:38px}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.database-tools h2{font-size:20px}.row-actions .icon-text-button span{display:none}.row-actions .icon-text-button{width:34px;padding:0}.selection-tools .button span{display:none}.selection-tools .button{width:36px;padding:0}.database-list .db-row{min-height:72px;padding:9px 8px;gap:8px}.row-preview{width:50px;height:50px;flex-basis:50px}.row-preview .icon-render{width:38px;height:38px;flex-basis:38px}.row-main strong{font-size:11px}.row-main span{font-size:9px}.row-main small{display:none}}
@media(max-width:620px){.head-actions .button{width:36px;padding:0}.head-actions .button span{display:none}.head-actions .button delluna-icon{width:16px;height:16px}.toolbar input{font-size:11px}.toolbar{gap:8px}.select-trigger{font-size:11px}.database-tools{margin-bottom:12px}.database-tools h2{font-size:19px}.page-actions .button{min-height:36px}.db-row{min-height:68px}.row-check{flex-basis:20px;width:20px}.row-preview{width:44px;height:44px;flex-basis:44px}.row-preview .icon-render{width:34px;height:34px;flex-basis:34px}.row-main strong{font-size:10px}.row-main span{font-size:8px}.row-actions{gap:3px}.icon-text-button{width:32px;height:32px;min-height:32px}.selection-tools{padding:6px}.selection-tools strong{font-size:10px}.folder-row{min-height:58px;padding:9px 10px}.folder-icon{width:32px;height:32px}.dialog-head h2{font-size:17px}.dialog-panel{box-shadow:0 14px 40px rgba(18,22,28,.16)}}

/* V6 interaction and responsive cleanup */
button,.button,.icon-button,.icon-text-button,.nav-btn,.select-trigger,.select-option{white-space:nowrap}
button:focus-visible{outline:2px solid #17181a;outline-offset:2px}
input:focus-visible{outline:2px solid #17181a;outline-offset:2px}
.search-field input:focus-visible{outline:none}
.nav-icon{display:inline-flex;align-items:center;justify-content:center}
.nav-icon delluna-icon{width:17px;height:17px;display:block}
.nav-btn{gap:10px}
.nav-badge{flex:0 0 auto}
.folder-row{position:relative;cursor:pointer}
.folder-copy{flex:1;min-width:0}
.folder-actions{display:flex;align-items:center;gap:5px;margin-left:auto}
.folder-actions .icon-text-button{min-height:32px}
.folder-chevron{flex:0 0 auto}
.drop-zone .upload-mark{font-size:0}
.drop-zone .upload-mark::before{content:'↑';font-size:23px}
.file-row .icon-text-button,.db-row .icon-text-button{flex:0 0 auto}
.resolution{cursor:pointer}
.busy-bar{display:flex;gap:9px}
@media(max-width:900px){
  .folder-actions .icon-text-button{width:34px;padding:0}
  .folder-actions .icon-text-button span{display:none}
}
@media(max-width:620px){
  .button{min-height:36px}
  .folder-row{gap:8px;padding:8px}
  .folder-actions{gap:3px}
  .folder-actions .icon-text-button{width:32px;height:32px;min-height:32px}
  .folder-chevron{display:none}
  .file-row .icon-text-button{width:32px;padding:0}
  .file-row .icon-text-button span{display:none}
  .section-head{align-items:flex-start}
  .section-head .button{flex:0 0 auto}
}

.icon-favorite delluna-icon{width:15px;height:15px;display:block}

.mobile-menu delluna-icon{width:18px;height:18px;display:block}


/* V6 control normalization: one compact, centered control geometry. */
.select-trigger{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;justify-items:center;gap:6px;text-align:center;white-space:nowrap}
.select-trigger .select-icon,.select-trigger .chevron{width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#6f747c}
.select-trigger .select-icon delluna-icon,.select-trigger .chevron delluna-icon{width:16px;height:16px}
.select-label{min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:center}
.upload-mark::before{content:none!important}.upload-mark delluna-icon{width:24px;height:24px;display:block}
.busy-bar{position:sticky;top:0;z-index:40;min-height:34px;padding:0 14px;align-items:center;background:#17181a;color:#fff}
@media(max-width:620px){.toolbar{grid-template-columns:minmax(0,1fr) 132px}.select-trigger{height:38px}.select-trigger .select-icon{display:none}.select-trigger{grid-template-columns:1fr 18px}.select-label{text-align:center}.upload-mark{width:42px;height:42px}}

/* V7 UX refinement */
.card-open{border:0;background:transparent;padding:0;margin:0;width:100%;display:flex;flex-direction:column;align-items:center;color:inherit;cursor:pointer;font:inherit}.card-open:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:10px}.loading-state{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--line,#cfd2d7);border-radius:14px;background:#fff;text-align:center}.loading-state h3{margin:4px 0}.loading-state p{margin:0;color:var(--muted,#777);font-size:11px}
@media(max-width:720px){.db-row .row-actions .icon-text-button span,.folder-row .folder-actions .icon-text-button span{display:none}.db-row .row-actions .icon-text-button,.folder-row .folder-actions .icon-text-button{width:34px;min-width:34px;padding:0;justify-content:center}.db-row{grid-template-columns:28px 30px 42px minmax(0,1fr) auto}.row-main strong,.row-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:620px){.top{grid-template-columns:36px minmax(0,1fr) 76px 76px 36px!important}.top #sort,.top #variant{width:76px!important}.selection-bar{overflow:auto}.selection-bar .button{flex:0 0 auto}.name{font-size:11px}}

/* V7 responsive/detail states */
@media(max-width:900px){.shell>main{min-width:0}.page{min-width:0}}
@media(max-width:620px){.dialog-actions .button{min-width:0}.folder-copy,.row-main{min-width:0}}

/* V9 icon-system metadata */
.meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field small{line-height:1.45}.edit-icon-preview{min-height:120px}
@media(max-width:620px){}

/* V10 stability: no browser-native controls and a real favorite icon. */
button,.button,.icon-button,.icon-text-button,.row-fav,.text-button,.resolution,.select-trigger,.select-option{appearance:none;-webkit-appearance:none;-moz-appearance:none;box-shadow:none;}
.row-fav{width:36px;height:36px;flex:0 0 36px;border:1px solid transparent;border-radius:9px;background:#fff;color:#8b9097;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;line-height:0;}
.row-fav:hover,.row-fav:focus-visible,.row-fav.active{border-color:var(--line);color:var(--ink);background:#f7f8f9;}
.row-fav delluna-icon{width:17px;height:17px;display:block}
.file-error{font-size:9px!important;color:var(--danger)!important;white-space:normal!important;overflow:visible!important;}
.button,.icon-button,.icon-text-button,.row-fav,.resolution,.select-trigger{line-height:1;}
@media(max-width:900px){.row-fav{width:34px;height:34px;flex-basis:34px;}}
@media(max-width:620px){.row-fav{width:32px;height:32px;flex-basis:32px;}}

/* V9.1 interaction baseline: custom checkbox + cohesive selection actions. */
.row-check{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer}
.row-check input[type="checkbox"]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.row-check input[type="checkbox"]:focus-visible+.check-mark{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
.icon-button>delluna-icon{width:16px;height:16px;display:block}
.selection-tools{gap:10px;padding:7px 8px}
.selection-actions{display:flex;align-items:center;gap:5px;margin-left:auto;padding:3px;border:1px solid var(--line);border-radius:10px;background:#f7f8f9}
.selection-actions .button,.selection-actions .icon-button{background:#fff;border-color:var(--line);height:34px;min-height:34px;display:inline-flex;align-items:center;justify-content:center}
.selection-actions .button{padding:0 9px;gap:5px}
.selection-actions .icon-button{width:34px}
.selection-actions .button:hover,.selection-actions .icon-button:hover{background:#f0f1f3}
@media(max-width:900px){
  .selection-tools{padding:6px 7px}
  .selection-actions{gap:3px}
  .selection-actions .button,.selection-actions .icon-button{width:34px;padding:0}
  .selection-actions .button span{display:none}
}

/* Search bar focus ring fix — ring goes on the wrapper, not the naked input */
.search-field:focus-within{border-color:#a7abb1;box-shadow:0 0 0 3px rgba(23,24,26,.07)}

/* V10.1 database virtualization: the list itself owns scrolling so the spacer/window
   stay overlaid. Without this positioning, the spacer pushes every rendered row
   below the viewport. */
.virtual-list{position:relative;height:calc(100dvh - 500px);min-height:360px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;contain:layout paint;}
.virtual-list .virtual-spacer{width:1px;pointer-events:none;}
.virtual-list .virtual-window{position:absolute;left:0;right:0;top:0;will-change:transform;}
.virtual-list .virtual-window .db-row{width:100%;box-sizing:border-box;}
.toolbar>.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.toolbar>.button delluna-icon{width:16px;height:16px;display:block;flex:0 0 16px}
@media(max-width:620px){.virtual-list{height:calc(100dvh - 500px);min-height:360px;}
.toolbar>.button{min-width:0;}}

/* V10.2 multi-folder selection */
.folder-check{margin-right:2px}.folder-icon{flex:0 0 34px}.folder-copy{display:flex!important;flex-direction:column;gap:3px;min-width:0;flex:1}.folder-row .folder-actions{margin-left:auto}
@media(max-width:620px){.folder-icon{flex-basis:32px}.folder-copy{min-width:0}}


/* Final Admin Portal responsive audit: conflict/review controls. */
.conflict-card,.conflict-head,.compare-panel,.conflict-details,.resolution-grid,.operation-commit-actions{min-width:0}
.conflict-head h3,.conflict-head p,.conflict-details b,.resolution strong,.resolution small{overflow-wrap:anywhere;word-break:normal;hyphens:none}
.resolution{min-width:0;width:100%;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:11px 12px;white-space:normal;line-height:1.25}
.resolution strong,.resolution small{display:block;max-width:100%}
.operation-conflict.discarded{opacity:.78}
.operation-commit-actions{justify-content:flex-end;margin-top:0}
@media(max-width:720px){
  header{padding:0 12px;gap:10px}
  .page{padding:14px}
  .page-head,.section-head{flex-wrap:wrap;gap:10px}
  .page-head>.page-actions,.section-head>.actions,.section-head>.page-actions{width:100%}
  .page-head>.page-actions .button,.section-head>.actions .button,.operation-commit-actions .button{width:100%;min-width:0}
  .conflict-card{padding:12px;border-radius:13px}
  .conflict-head{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
  .conflict-head>div{min-width:0;flex:1 1 220px}
  .conflict-head>.status{flex:0 0 auto}
  .compare{grid-template-columns:1fr;gap:8px}
  .conflict-details{grid-template-columns:1fr;gap:7px}
  .resolution-grid{grid-template-columns:1fr;gap:8px}
  .resolution{min-height:58px}
  .dialog-actions{width:100%}
  .dialog-actions .button{flex:1 1 0;min-width:0}
}
@media(max-width:420px){
  .page{padding:10px}
  header{height:64px}
  .header-title h1{font-size:18px}
  .resolution{padding:10px}
  .resolution small{font-size:10px}
}


/* Keep the single Conflicts surface visually separated by operation type. */
.conflict-section-head{margin:6px 0 10px}
.conflict-section-head h3{font-size:15px}
.conflict-section-head p{max-width:720px;line-height:1.45}

/* Legacy conflict rules retained for compatibility; V15 overrides the decision surface below. */
.conflict-page .page-head{margin-bottom:14px}
.conflict-summary{display:flex;align-items:baseline;gap:10px;margin:0 0 16px 2px;color:var(--muted);font-size:11px}
.conflict-summary strong{font-size:18px;color:var(--ink)}
.registration-conflicts{display:flex;flex-direction:column;gap:12px}
.conflict-grid{display:flex;flex-direction:column;gap:12px}
.visual-conflict{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.visual-conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:360px}
.conflict-side{min-width:0;border:0;border-radius:0;background:#fafbfc;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;padding:18px;text-align:left;color:var(--ink);position:relative;transition:background .14s ease,box-shadow .14s ease,opacity .14s ease;cursor:pointer}
.conflict-side+ .conflict-side{border-left:1px solid var(--line)}
.conflict-side:hover{background:#f5f6f7}
.conflict-side:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.conflict-side.keep{background:#effaf3;box-shadow:inset 0 0 0 2px var(--success)}
.conflict-side.discard{background:#fff3f2;box-shadow:inset 0 0 0 2px var(--danger);opacity:.72}
.conflict-side.discard:hover{opacity:1}
.conflict-side[disabled]{opacity:1;cursor:not-allowed}
.conflict-preview{height:285px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.05)}
.conflict-preview img{display:block;width:72%;height:72%;object-fit:contain}
.conflict-preview .existing-svg-slot{width:72%;height:72%;display:flex;align-items:center;justify-content:center}
.conflict-caption{display:grid;gap:5px;margin-top:14px;min-width:0}
.conflict-caption strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.conflict-caption span{font-size:10px;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.conflict-inline-error{padding:11px 14px;border-top:1px solid #f1cccc;background:#fff4f3;color:var(--danger);font-size:11px;line-height:1.4}
.both-kept{display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.both-kept span:first-child{font-weight:700;color:var(--success)}
.conflict-edit{margin:10px 14px 14px;align-self:flex-start}
.conflict-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 2px 4px;color:var(--muted);font-size:10px}
.conflict-footer .button{min-width:110px}
.keep-both-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 14px}
.rename-choice{position:relative}
.rename-choice input{position:absolute;opacity:0;pointer-events:none}
.rename-choice span{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}
.rename-choice input:checked + span{border-color:var(--ink);box-shadow:0 0 0 2px rgba(23,24,26,.08);background:#f7f8f9}
.rename-choice b{font-size:12px}.rename-choice small{font-size:9px;color:var(--muted)}
#keepBothError{min-height:15px;display:block;font-size:10px}
#keepBothError.invalid-name{color:var(--danger)}
#keepBothError.valid-name{color:var(--success)}
@media(max-width:720px){
  .visual-conflict-grid{min-height:280px}
  .conflict-side{padding:10px}
  .conflict-preview{height:210px}
  .conflict-preview img,.conflict-preview .existing-svg-slot{width:78%;height:78%}
  .conflict-caption{margin-top:9px;gap:3px}
  .conflict-caption strong{font-size:11px}
  .conflict-caption span{font-size:8px}
}
@media(max-width:520px){
  .visual-conflict-grid{min-height:230px}
  .conflict-side{padding:8px}
  .conflict-preview{height:165px;border-radius:9px}
  .conflict-footer{align-items:stretch;flex-direction:column}
  .conflict-footer .button{width:100%}
  .both-kept{flex-direction:column;gap:4px}
  .keep-both-choice{grid-template-columns:1fr}
}

/* V15 unified visual system: compact headers, true three-choice conflicts, aligned tools. */
.button,
.icon-button,
.icon-text-button,
.conflict-side,
.conflict-both,
.rename-choice span { line-height:1; }
.button, .icon-text-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.button delluna-icon, .icon-text-button delluna-icon, .dialog-actions delluna-icon { width:15px; height:15px; flex:0 0 15px; display:block; }
.dialog-actions .button { min-height:42px; }

/* Remove the duplicate page-level heading feeling created by the global header. */
.conflict-page > .page-head { display:none; }
.conflict-toolbar { display:flex; justify-content:flex-end; align-items:center; min-height:42px; margin-bottom:14px; }
.conflict-summary { margin-bottom:14px; }

/* Three equal decision columns: OLD / NEW / KEEP BOTH. */
.conflict-three-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); min-height:330px; }
.conflict-side,
.conflict-both {
  min-width:0; min-height:330px; border:0; border-radius:0; margin:0;
  background:#fafbfc; color:var(--ink); padding:14px;
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-end;
  text-align:left; position:relative; cursor:pointer;
  transition:background .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.conflict-side + .conflict-side,
.conflict-both { border-left:1px solid var(--line); }
.conflict-side:hover, .conflict-both:hover { background:#f5f6f7; }
.conflict-side:focus-visible, .conflict-both:focus-visible { outline:2px solid var(--ink); outline-offset:-2px; }
.conflict-side.keep, .conflict-both.keep { background:#effaf3; box-shadow:inset 0 0 0 2px var(--success); }
.conflict-side[disabled], .conflict-both[disabled] { opacity:.58; cursor:not-allowed; }
.conflict-side-label { position:absolute; left:14px; top:13px; font-size:9px; letter-spacing:.12em; font-weight:700; color:#8a8e95; }
.conflict-preview { height:225px; margin-top:18px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:11px; background:#fff; border:1px solid rgba(0,0,0,.05); }
.conflict-preview .existing-svg-slot .icon-render { width:100%; height:100%; }
.conflict-caption { display:grid; gap:4px; margin-top:11px; min-width:0; }
.conflict-caption strong { font-size:12px; line-height:1.25; overflow-wrap:anywhere; }
.conflict-caption span { font-size:9px; color:var(--muted); line-height:1.3; overflow-wrap:anywhere; }
.conflict-both-previews { height:225px; margin-top:18px; display:grid; grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr); align-items:center; gap:6px; }
.conflict-mini { height:180px; min-width:0; border:1px solid rgba(0,0,0,.05); border-radius:11px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.conflict-mini img { width:80%; height:80%; object-fit:contain; }
.conflict-mini .existing-svg-slot { width:80%; height:80%; display:flex; align-items:center; justify-content:center; }
.conflict-mini .icon-render { width:100%; height:100%; }
.conflict-both-plus { width:22px; height:22px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:500; color:#8a8e95; }
.both-kept { display:none; }

/* Folder controls share one compact row and never float at different vertical levels. */
.database-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; margin-bottom:16px; }
.database-tools-copy { min-width:0; }
.database-tools-copy .muted { margin:0; max-width:620px; font-size:11px; line-height:1.45; }
.folder-page-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:nowrap; }
.folder-page-actions .button { height:40px; min-height:40px; }
.folder-page-actions .button delluna-icon { width:15px; height:15px; }
.folder-row { min-height:64px; }
.folder-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.folder-actions .icon-text-button { width:82px; min-width:82px; height:34px; min-height:34px; }
.folder-actions .icon-text-button delluna-icon { width:14px; height:14px; }

/* Keep Both modal: icon and text are a single centered flex row, never an orphaned glyph. */
.keep-both-dialog .dialog-actions .button { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.keep-both-dialog .dialog-actions .button delluna-icon { position:static; margin:0; }

@media(max-width:820px){
  .conflict-three-grid { min-height:270px; }
  .conflict-side, .conflict-both { min-height:270px; padding:10px; }
  .conflict-side-label { left:10px; top:10px; }
  .conflict-preview, .conflict-both-previews { height:180px; }
  .conflict-mini { height:140px; }
  .database-tools { grid-template-columns:1fr; gap:10px; align-items:stretch; }
  .folder-page-actions { justify-content:flex-start; flex-wrap:wrap; }
}
@media(max-width:560px){
  .conflict-three-grid { min-height:205px; }
  .conflict-side, .conflict-both { min-height:205px; padding:7px; }
  .conflict-side-label { left:7px; top:8px; font-size:8px; }
  .conflict-preview, .conflict-both-previews { height:125px; margin-top:15px; }
  .conflict-preview img, .conflict-preview .existing-svg-slot { width:82%; height:82%; }
  .conflict-mini { height:92px; border-radius:8px; }
  .conflict-both-previews { grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); gap:3px; }
  .conflict-both-plus { width:16px; height:16px; font-size:14px; }
  .conflict-caption { margin-top:7px; gap:2px; }
  .conflict-caption strong { font-size:9px; }
  .conflict-caption span { font-size:7px; }
  .conflict-toolbar { justify-content:stretch; }
  .conflict-toolbar .button { width:100%; }
  .folder-page-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  .folder-page-actions .button { width:100%; padding:0 7px; font-size:10px; }
  .folder-actions .icon-text-button { width:34px; min-width:34px; padding:0; }
  .folder-actions .icon-text-button span { display:none; }
}


/* === Admin UX pass ===
   Shared interaction rules. Keep state colors inside controls/previews;
   the page itself stays visually neutral. */
:root{--focus:#17181a;--surface:#fff;--surface-soft:#f7f8fa}
.app-dialog{
  position:fixed;
  inset:12px 0 auto;
  margin:0 auto;
  width:fit-content;
  max-width:100vw;
  max-height:calc(100dvh - 24px);
  padding:0;
  border:0;
  background:transparent;
  overflow:visible;
}
.app-dialog[open]{display:block}
.app-dialog::backdrop{background:rgba(16,18,22,.48);backdrop-filter:blur(3px)}
.dialog-panel{
  margin:0 auto;
  max-height:calc(100dvh - 24px);
  overflow:auto;
  overscroll-behavior:contain;
}
.app-dialog .dialog-panel{scroll-margin-top:0}
.choice-radio{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
.conflict-side{
  position:relative;
  cursor:pointer;
}
.conflict-side[data-disabled="true"]{cursor:not-allowed}
.conflict-side.keep,
.conflict-side.discard,
.conflict-both.keep{
  box-shadow:none!important;
  border-color:transparent!important;
}
.conflict-side.keep .conflict-preview,
.conflict-both.keep .conflict-mini{
  background:#effaf3;
  box-shadow:inset 0 0 0 2px var(--success);
}
.conflict-side.discard .conflict-preview{
  background:#fff3f2;
  box-shadow:inset 0 0 0 2px var(--danger);
}
.conflict-side:focus-within{outline:2px solid var(--focus);outline-offset:-2px}
.icon-canvas{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.icon-canvas svg{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block;
  object-fit:contain;
}
.row-preview .icon-canvas{width:42px;height:42px}
.card-preview .icon-canvas{width:64px;height:64px;margin:auto}
.edit-icon-preview .icon-canvas{width:96px;height:96px;margin:auto}
.compare-preview .icon-canvas,
.existing-svg-slot .icon-canvas{width:74%;height:74%}
.login-dialog .dialog-panel{width:min(460px,calc(100vw - 28px))}
.login-status{
  min-height:18px;
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.login-status:empty{display:none}
.login-submit{min-width:120px}
.busy-bar{
  position:sticky;
  top:0;
  z-index:30;
  min-height:38px;
  height:auto;
  padding:0 14px;
  font-weight:600;
}

.selection-tools{
  top:8px;
  box-shadow:0 5px 18px rgba(0,0,0,.06);
}
.selection-tools .button{min-height:36px}
@media(max-width:620px){
  .app-dialog{inset:8px 0 auto;max-height:calc(100dvh - 16px)}
  .dialog-panel{max-height:calc(100dvh - 16px);border-radius:14px}
  .dialog-actions{position:sticky;bottom:0;padding-top:10px;background:inherit}
  .selection-tools{top:6px;align-items:flex-start;flex-wrap:wrap}
  .selection-actions{display:flex;gap:6px;flex-wrap:wrap}
}

.file-thumb{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}.file-thumb img{display:block;width:56px;height:56px;object-fit:contain;max-width:100%;max-height:100%}.file-row.selected{background:#f7f8fa}.batch-selection-tools{margin:12px 0}

/* ══════════════════════════════════════════════════════════════════════════
   NEW: Multi-folder queue (Register view)
═══════════════════════════════════════════════════════════════════════════ */
.drop-buttons { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.folder-queue { background:#fff; border:1px solid var(--line); border-radius:13px; padding:14px 16px; margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.folder-queue-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.folder-queue-info .eyebrow { font-size:9px; letter-spacing:.12em; color:var(--muted); }
.folder-queue-info strong { font-size:13px; }
.folder-queue-info .folder-names { font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.folder-queue-actions { display:flex; gap:7px; align-items:center; flex-shrink:0; }

/* ══════════════════════════════════════════════════════════════════════════
   NEW: Auto-removed duplicates banner (Register view)
═══════════════════════════════════════════════════════════════════════════ */
.auto-remove-banner { display:flex; align-items:center; justify-content:space-between; gap:14px; background:#eaf7ef; border:1px solid #b8e8cc; border-radius:12px; padding:12px 16px; margin-bottom:16px; }
.auto-remove-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.auto-remove-copy strong { font-size:12px; color:var(--success); }
.auto-remove-copy span { font-size:11px; color:#3a6b4c; line-height:1.4; }
.auto-remove-copy em { font-style:normal; font-weight:600; }
.auto-remove-actions { display:flex; gap:7px; align-items:center; flex-shrink:0; }

/* ══════════════════════════════════════════════════════════════════════════
   NEW: Conflict tabs (Conflicts view)
═══════════════════════════════════════════════════════════════════════════ */
.conflict-tabs { display:flex; gap:2px; background:#f0f1f3; border-radius:11px; padding:3px; margin-bottom:16px; }
.conflict-tab { flex:1; min-height:36px; border:0; background:transparent; border-radius:9px; font-size:12px; font-weight:600; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; gap:7px; transition:.14s; cursor:pointer; }
.conflict-tab:hover { background:rgba(255,255,255,.7); color:var(--ink); }
.conflict-tab.active { background:#fff; color:var(--ink); box-shadow:0 1px 4px rgba(18,22,28,.1); }
.tab-badge { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; border-radius:999px; font-size:9px; font-weight:700; }
.tab-badge.warn { background:#fff3cc; color:var(--warning); }
.tab-badge.ok   { background:#d4f1e3; color:var(--success); }

/* ══════════════════════════════════════════════════════════════════════════
   NEW: Upload vs Upload conflict groups
═══════════════════════════════════════════════════════════════════════════ */
.upload-vs-upload-section { display:flex; flex-direction:column; gap:14px; }
.upload-conflict-group { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; }
.upload-conflict-group.resolved { border-color:#b8e8cc; }
.upload-group-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.upload-group-hint { margin:0 0 14px; font-size:11px; }
.upload-group-cards { display:flex; gap:10px; flex-wrap:wrap; }
.upload-group-card { flex:1; min-width:140px; max-width:220px; border:2px solid var(--line); border-radius:12px; padding:12px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:8px; transition:.14s; background:#fafbfc; position:relative; }
.upload-group-card:hover { border-color:#a7abb1; background:#f5f6f7; }
.upload-group-card.selected { border-color:var(--success); background:#effaf3; box-shadow:0 0 0 2px var(--success); }
.upload-group-radio { position:absolute; top:10px; left:10px; width:18px; height:18px; margin:0; opacity:0; cursor:pointer; z-index:2; }
.upload-group-radio+.check-mark { position:absolute; top:10px; left:10px; z-index:1; }
.upload-card-preview { width:80px; height:80px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:10px; background:#fff; border:1px solid rgba(0,0,0,.06); }
.upload-card-preview img { width:58px; height:58px; object-fit:contain; display:block; }
.upload-card-caption { text-align:center; min-width:0; width:100%; }
.upload-card-caption strong { display:block; font-size:11px; overflow-wrap:anywhere; }
.upload-card-caption span { display:block; font-size:9px; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; line-height:1.3; }
.upload-group-footer { margin:10px 0 0; font-size:10px; }

@media(max-width:900px) {
  .folder-queue { flex-direction:column; align-items:stretch; }
  .folder-queue-actions { flex-wrap:wrap; }
  .auto-remove-banner { flex-direction:column; align-items:flex-start; }
  .conflict-tabs { }
  .upload-group-cards { gap:8px; }
}
@media(max-width:620px) {
  .drop-buttons { flex-direction:column; }
  .drop-buttons .button { width:100%; }
  .conflict-tab { font-size:11px; padding:0 8px; }
  .upload-group-card { min-width:120px; }
}

/* ── Folder scan progress indicator ───────────────────────────────────────── */
.folder-scan-progress {
  margin: 14px 0 0;
  padding: 8px 14px;
  background: #f0f1f3;
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  animation: pulse-muted 1.4s ease-in-out infinite;
}
@keyframes pulse-muted {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.file-thumb{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f5f6f7}


/* ═══ Audit fixes ═══════════════════════════════════════════════════════════ */
/* Selection bar always occupies its row: no layout jump when the first item is ticked. */
.selection-tools{min-height:52px;position:sticky;top:8px;transition:background .12s,border-color .12s}
.selection-tools.idle{background:var(--surface-soft);box-shadow:none}
.selection-tools.idle strong{color:var(--muted);font-weight:500}
.selection-tools.idle .selection-actions{opacity:.55}
.selection-tools .selection-actions button:disabled{cursor:default}
@media(max-width:620px){.selection-tools{align-items:center;flex-wrap:nowrap}.selection-tools strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-actions{flex-wrap:nowrap}}

/* Select menu: capped, scrollable, never taller than the viewport. */
.select-menu{overflow-y:auto;overscroll-behavior:contain;max-height:320px}
.select-option{height:auto;min-height:36px;padding:8px 10px;white-space:normal;overflow-wrap:anywhere}

/* Folder filter: compact searchable list using the site's own checkbox. */
.folder-filter-dialog .dialog-panel{display:flex;flex-direction:column;gap:10px;max-height:min(80dvh,620px);overflow:hidden}
.folder-filter-dialog .dialog-head{margin-bottom:0}
.folder-filter-search{flex:0 0 auto}
.folder-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}
.folder-filter-toolbar strong{color:var(--ink);font-weight:600}
.folder-filter-toolbar span{display:flex;gap:10px}
.folder-filter-list{flex:1 1 auto;min-height:0;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.folder-filter-option{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;border-bottom:1px solid #eef0f2;cursor:pointer;font-size:12px}
.folder-filter-option[hidden]{display:none}
.folder-filter-option:last-of-type{border-bottom:0}
.folder-filter-option:hover{background:#fafbfc}
.folder-filter-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-filter-option small{color:var(--muted);font-size:10px;flex:0 0 auto}
.folder-filter-empty{padding:18px;text-align:center;margin:0}
.folder-filter-dialog .dialog-actions{margin-top:0}

/* Find & Replace preview + name hints. */
.fr-card{padding:12px;margin-top:12px}
.fr-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.fr-preview{display:flex;flex-direction:column;gap:5px;margin-top:10px;max-height:240px;overflow:auto;font-size:11px}
.fr-preview>div{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:6px;align-items:center}
.fr-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-conflict{color:var(--warning)}.fr-conflict span:last-child{white-space:normal}
.name-hint{min-height:13px}.name-hint.bad{color:var(--danger)!important}


/* ═══ Conflict cards: compact, identical icon size for old/new, no focus box ═══ */
.conflict-grid{gap:8px}
.visual-conflict{border-radius:12px}
.conflict-three-grid{min-height:0}
.conflict-side,.conflict-both{min-height:0;padding:8px 8px 9px;font:inherit;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation;outline:0}
.conflict-side:focus,.conflict-side:focus-visible,.conflict-side:focus-within,.conflict-both:focus,.conflict-both:focus-visible{outline:0!important}
.conflict-side-label{left:8px;top:7px;font-size:7px}
.conflict-preview,.conflict-both-previews{height:62px;margin-top:14px;border-radius:8px}
.conflict-both-previews{background:transparent;border:0;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:4px}
.conflict-mini{height:62px;border-radius:8px}
.conflict-both-plus{width:12px;font-size:12px}
.conflict-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.conflict-icon img,.conflict-icon svg,.conflict-icon .existing-svg-slot,.conflict-icon .icon-render,.conflict-icon .icon-canvas{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;display:block}
.conflict-preview .existing-svg-slot,.conflict-mini .existing-svg-slot{width:100%;height:100%}
.conflict-caption{margin-top:7px;gap:2px}
.conflict-caption strong{font-size:10px}.conflict-caption span{font-size:8px}
.conflict-side.keep .conflict-preview,.conflict-both.keep .conflict-mini{box-shadow:inset 0 0 0 1.5px var(--success)}
.conflict-side.discard .conflict-preview{box-shadow:inset 0 0 0 1.5px var(--danger)}
.conflict-footer{font-size:9px}.conflict-footer .button{min-width:0;min-height:32px;font-size:10px}
.conflict-inline-error,.op-reason{padding:6px 10px;font-size:9px}
.op-reason{border-top:1px solid var(--line);color:var(--muted)}
.op-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 2px 8px;font-size:10px;color:var(--muted)}
.op-bulk{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:620px){.conflict-icon{width:28px;height:28px}.conflict-preview,.conflict-mini,.conflict-both-previews{height:54px}.conflict-caption strong{font-size:9px}.conflict-caption span{font-size:7px}}

/* ═══ Round 3 ═══════════════════════════════════════════════════════════════ */


/* Bulk edit dialog */
.seg{display:flex;gap:4px;padding:3px;background:#f0f1f3;border-radius:11px;margin-bottom:12px}
.seg button{flex:1;min-height:34px;border:0;background:transparent;border-radius:8px;font-size:11px;font-weight:600;color:var(--muted);padding:0 6px}
.seg button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.chip-row{display:flex;flex-wrap:wrap;gap:6px}
.chip{position:relative}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip span{display:inline-flex;align-items:center;min-height:32px;padding:0 13px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:600;background:#fff;color:var(--ink);cursor:pointer;letter-spacing:0}
.chip input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.chip input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.check-line{display:flex;align-items:center;gap:9px;margin-top:12px;font-size:11px;cursor:pointer}
.bulk-dialog [hidden]{display:none!important}
.bulk-dialog .fr-card{min-height:84px}
.fr-tags span:last-child{color:var(--muted)}
.button.active-filter{border-color:var(--ink);background:#f1f2f4}
.scope-list{flex:0 0 auto}
.scope-hint{display:block;margin-top:2px;color:var(--muted);font-size:10px;white-space:normal}

/* Conflict cards: true squares, OLD | NEW on top, KEEP BOTH as a strip underneath. */
.conflict-grid.conflict-cards{display:grid;grid-template-columns:repeat(auto-fill,248px);gap:12px;justify-content:start;align-items:start}
.conflict-cards>.visual-conflict{width:248px;aspect-ratio:1/1;display:flex;flex-direction:column;overflow:hidden;overflow:clip}
.conflict-cards .conflict-three-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.conflict-cards .conflict-side{padding:8px;justify-content:flex-end}
.conflict-cards .conflict-side+.conflict-side{border-left:1px solid var(--line)}
.conflict-cards .conflict-preview{height:64px;margin-top:14px}
.conflict-cards .conflict-both{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:19px 8px 8px}
.conflict-cards .conflict-both-previews{flex:0 0 auto;height:auto;margin:0;display:flex;align-items:center;gap:3px;grid-template-columns:none}
.conflict-cards .conflict-mini{width:38px;height:38px;flex:0 0 38px}
.conflict-cards .conflict-both-plus{width:12px;font-size:12px}
.conflict-cards .conflict-both .conflict-caption{flex:1;margin:0}
.conflict-cards .conflict-caption{grid-template-columns:minmax(0,1fr);min-width:0}
.conflict-cards .conflict-caption strong,.conflict-cards .conflict-caption span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conflict-cards .op-reason,.conflict-cards .conflict-inline-error{flex:0 0 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35}
.conflict-cards .conflict-edit{margin:6px 8px 8px;min-height:30px}
@media(max-width:620px){
  .conflict-grid.conflict-cards{justify-content:center}
  .conflict-cards .conflict-icon{width:32px;height:32px}
  .conflict-cards .conflict-preview{height:64px}
  .conflict-cards .conflict-mini{height:38px}
  .conflict-cards .conflict-caption strong{font-size:10px}.conflict-cards .conflict-caption span{font-size:8px}
}


/* ═══ Delluna icons ═════════════════════════════════════════════════════════
   black on white backgrounds, white on black. --dl-fg flips inside dark surfaces. */
:root{--dl-fg:#000}
delluna-icon{display:inline-block;line-height:0;flex:0 0 auto}
delluna-icon svg,
delluna-icon svg *{fill:var(--dl-fg);stroke:var(--dl-fg)}
delluna-icon svg{width:100%;height:100%;display:block}
.nav-btn{--dl-fg:#000}.nav-btn.active{--dl-fg:#fff}
.row-fav.active delluna-icon svg,.row-fav.active delluna-icon svg *{fill:#e1ad00;stroke:#e1ad00}

/* Checkbox / radio: filled icon when checked, outline when not (same icons as Studio). */
.check-mark{position:relative;display:inline-block;width:20px;height:20px;flex:0 0 20px;pointer-events:none}
.check-mark delluna-icon{position:absolute;inset:0;width:100%;height:100%}
.check-mark .on{display:none}
input:checked+.check-mark .on{display:block}
input:checked+.check-mark .off{display:none}
.check-line .check-mark{width:18px;height:18px;flex-basis:18px}


/* Live scan/analyse pane */
.progress-top strong{font-variant-numeric:tabular-nums}
#progressText{font-variant-numeric:tabular-nums}


/* ═══ Loader: three softly pulsing bars (replaces the circular spinner everywhere) ═══ */
.loading-bars{display:inline-flex;gap:4px;align-items:center;justify-content:center;height:17px;flex:0 0 auto;vertical-align:middle}
.loading-bar{display:block;width:3px;background:currentColor;border-radius:2px;animation:loading-pulse 1.2s infinite}
.loading-bar:nth-child(1){height:5px;animation-delay:-.2s}
.loading-bar:nth-child(2){height:9px;animation-delay:-.1s}
.loading-bar:nth-child(3){height:5px;animation-delay:0s}
@keyframes loading-pulse{0%,40%,100%{opacity:.3}20%{opacity:1}}
.icon-loading .loading-bars{height:13px}
@media (prefers-reduced-motion:reduce){.loading-bar{animation-duration:2.4s}}

/* ═══ Notch: ONE smoked-glass circle at rest (grows into a pill / card) + Pasito stepper under it ═══
   Smoked glass = dark tint + heavy blur on whatever is behind it. */
#notchDock{position:fixed;inset:auto;top:calc(env(safe-area-inset-top,0px) + 10px);left:50%;transform:translateX(-50%);margin:0;padding:0;border:0;background:transparent;overflow:visible;width:max-content;max-width:calc(100vw - 20px);z-index:1000;display:flex;flex-direction:column;align-items:center;gap:6px;color:#fff;--dl-fg:#fff;font-size:11px;line-height:1.4}
.status-notch,.notch-stepper{background:rgba(0,0,0,.52);-webkit-backdrop-filter:blur(38px) saturate(100%);backdrop-filter:blur(38px) saturate(100%);border:2px solid rgba(255,255,255,.06);box-shadow:0 0 37px rgba(0,0,0,.28);color:#fff}
.status-notch{display:none;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - 20px);border-radius:999px;overflow:hidden;cursor:pointer;transform-origin:50% 0}
.status-notch.show{display:flex}
.status-notch.multi{border-radius:23px}
.status-notch.expanded{width:min(380px,calc(100vw - 20px));cursor:pointer}
.status-notch.pop{animation:notch-pop .34s cubic-bezier(.2,.9,.25,1)}
@keyframes notch-pop{0%{transform:scale(.7);opacity:.55}100%{transform:none;opacity:1}}
/* rest state: just a small circle */
.status-notch.idle{width:26px;height:26px;border-radius:50%}
.notch-row.idle{width:22px;height:22px;display:flex;align-items:center;justify-content:center}
.notch-row.idle::after{content:'';width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55)}
/* rows */
.notch-row{display:flex;align-items:center;gap:9px;padding:9px 16px;font-size:11px;font-weight:600;line-height:1.3;position:relative;overflow:hidden}
.notch-row.idle{padding:0}
.notch-row+.notch-row{border-top:1px solid rgba(255,255,255,.1)}
.notch-row.success .notch-text{color:#b8f1d2}.notch-row.error .notch-text{color:#ffc2bb}
.notch-text{flex:1;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.notch-more{font-size:9px;opacity:.7}
.notch-ico{font-style:normal;width:15px;height:15px;flex:0 0 15px;border-radius:50%;background:rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;font-size:9px}
.notch-ico delluna-icon{width:11px;height:11px}
.notch-row.success .notch-ico,.notch-log.success .notch-ico{background:rgba(52,199,120,.65)}
.notch-row.error .notch-ico,.notch-log.error .notch-ico{background:rgba(235,87,70,.75)}
.notch-row .loading-bars,.notch-item-head .loading-bars{height:13px}
.notch-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.14)}
.notch-bar i{display:block;height:100%;background:#fff;transition:width .12s linear}
/* details panel */
.notch-details{border-top:1px solid rgba(255,255,255,.1);color:#e9eaec;padding:12px 14px 10px;font-size:11px;line-height:1.45;max-height:min(60dvh,420px);overflow:auto;overscroll-behavior:contain;cursor:default}
.notch-details::-webkit-scrollbar,.dbg-log::-webkit-scrollbar{width:6px}
.notch-details::-webkit-scrollbar-thumb,.dbg-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:9px}
.notch-section+.notch-section{margin-top:12px}
.notch-section h4{margin:0 0 6px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.55);font-weight:700}
.notch-item{padding:8px 0;border-top:1px solid rgba(255,255,255,.1)}
.notch-item:first-of-type{border-top:0;padding-top:2px}
.notch-item-head{display:flex;align-items:center;gap:8px}
.notch-item-head b{flex:1;min-width:0;font-size:11px;overflow-wrap:anywhere}
.notch-item-head small,.notch-log small{color:rgba(255,255,255,.5);font-size:9px;white-space:nowrap}
.notch-item p{margin:4px 0 0 21px;color:rgba(255,255,255,.65);font-size:10.5px}
.notch-item .notch-progress{height:3px;margin:7px 0 3px 21px;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.16)}
.notch-item .notch-progress i{display:block;height:100%;background:#fff;transition:width .15s}
.notch-item>small{display:block;margin-left:21px;color:rgba(255,255,255,.5);font-size:9px}
.notch-log{display:grid;grid-template-columns:15px minmax(0,1fr) auto;gap:8px;align-items:start;padding:4px 0}
.notch-log span{overflow-wrap:anywhere}
.notch-log.error span{color:#ffc2bb}
.notch-empty{margin:2px 0;color:rgba(255,255,255,.55)}
.notch-hint{margin:10px 0 0;text-align:center;color:rgba(255,255,255,.35);font-size:9px}
.dbg-actions{display:flex;gap:8px;margin-top:10px}
.notch-dismiss{flex:1;min-height:30px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;font:600 10px/1 inherit;font-family:inherit;cursor:pointer;transition:background .15s}
.notch-dismiss:hover{background:rgba(255,255,255,.18)}
/* debug log */
.dbg-log{max-height:min(46dvh,320px);overflow:auto;overscroll-behavior:contain;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;user-select:text;cursor:text}
.dbg-line{white-space:pre-wrap;overflow-wrap:anywhere;color:rgba(255,255,255,.88)}
.dbg-line.trace{color:rgba(255,255,255,.45)}.dbg-line.warn{color:#ffd98a}.dbg-line.error{color:#ffb1a8}.dbg-line.ok{color:#b4f0cf}
/* stepper (Pasito): smoked pill under the circle; the bar stretches over both dots, then settles */
.notch-stepper{display:inline-flex;padding:5px 7px;border-radius:999px}
.notch-stepper .pasito{--ps:7px;--pl:20px;position:relative;display:flex}
.notch-stepper .pasito-slot{position:relative;width:var(--pl);height:var(--ps);display:flex;align-items:center;justify-content:center;cursor:pointer}
.notch-stepper .pasito-slot::after{content:'';position:absolute;inset:-10px -2px}
.notch-stepper .pasito-dot{width:var(--ps);height:var(--ps);border-radius:50%;background:rgba(255,255,255,.3);transition:background .25s,transform .2s,box-shadow .2s}
.notch-stepper .pasito-slot:hover .pasito-dot{transform:scale(1.25)}
.notch-stepper .pasito-slot.unread .pasito-dot{background:#ffcf5c;box-shadow:0 0 0 3px rgba(255,207,92,.25)}
.notch-stepper .pasito-ind{position:absolute;top:0;left:0;height:var(--ps);width:var(--pl);border-radius:999px;background:#fff;pointer-events:none;transition:left .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1)}
@media (prefers-reduced-motion:reduce){.notch-stepper .pasito-ind{transition:none}.status-notch.pop{animation:none}}
/* log panels: 5000-entry logs, newest first, JSON download */
.dbg-actions{flex-wrap:wrap}
.dbg-actions .notch-dismiss{flex:1 1 42%}
.notch-dismiss.dbg-more{display:block;width:100%;margin-top:8px;flex:none}
.notch-ctx{display:block;margin-top:2px;font:9px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:rgba(255,255,255,.5);overflow-wrap:anywhere;white-space:pre-wrap;user-select:text}
.notch-log.error .notch-ctx{color:rgba(255,177,168,.7)}
