/* Asset Studio UI Refresh — production presentation layer */
:root{--ui-control-h:40px;--ui-radius:11px;--ui-gap:12px;--ui-action-gap:8px;--ui-toolbar-action-gap:4px;--ui-icon-action-gap:0px;--ui-focus:#8b70ee;--ui-canvas:#f4f6fb;--ui-line-focus:#cfd5fd;--ui-selection-bg:#f4f5ff;--ui-selection-ink:var(--primary);--ui-check-bg:var(--primary);--ui-check-mark:#fff;--ui-selection-shadow:rgba(89,101,242,.1)}
*,*:before,*:after{box-sizing:border-box}
body{background:var(--ui-canvas);overflow-x:hidden}
/* The head restores html.dark before body exists; match that first painted canvas. */
html.dark body{background:#0b1629}
html:not(.dark) body{background:#f6f8fc}
button,.btn,.text-link,select,input{font:inherit}
button,.btn{min-height:var(--ui-control-h);padding:0 15px;border-radius:var(--ui-radius);font-size:13px;font-weight:700;line-height:1;white-space:nowrap;transition:background .16s,transform .16s,box-shadow .16s}
button:active,.btn:active{transform:translateY(1px);filter:none}
button:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--ui-focus) 35%,transparent);outline-offset:2px;box-shadow:none}
.btn-danger{color:var(--ui-danger-ink);background:var(--ui-danger-bg);border:1px solid var(--ui-danger-line)}
.topbar{height:72px;padding-inline:clamp(18px,3vw,40px);align-items:center}.top-actions{gap:var(--ui-action-gap)}.top-icon{width:40px;min-width:40px;padding:0}
.content{max-width:1440px;padding:28px clamp(18px,3vw,40px) 48px;margin:auto}.page-heading{margin-bottom:22px;align-items:end}.heading-actions,.hero-actions,.modal-actions{display:flex;gap:var(--ui-action-gap);flex-wrap:wrap;align-items:center}
.card,.stat-card,.hero{border-radius:16px;box-shadow:0 8px 24px rgba(31,47,82,.055)}
.repo-switcher{width:max-content;max-width:calc(100% - 26px);margin:14px 13px;padding:10px 11px;gap:9px;border-radius:13px}.repo-meta{min-width:0}.repo-meta b,.repo-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repo-open-icon{width:16px;height:16px;flex:0 0 16px;margin-left:2px}
.library-picker button{min-height:44px}.library-picker-list button{width:100%;justify-content:flex-start;text-align:left}.library-picker-list button>span:last-child{margin-left:0}.library-picker-list button>i{margin-left:4px}
.library-list-row,.library-empty-row{min-height:68px;padding:12px 16px}.library-list-row[data-action],.library-empty-row[data-action]{cursor:pointer}.tile-arrow{font-size:20px}.json-reference-title,.library-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-grid{gap:14px}
.toast-root{position:fixed!important;top:auto!important;left:50%!important;right:auto!important;bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%);max-width:calc(100% - 32px);pointer-events:none;z-index:1000;display:flex;flex-direction:column;align-items:center;gap:8px}.toast{white-space:normal;overflow-wrap:anywhere;max-width:calc(100vw - 32px);box-shadow:none}
.modal{max-width:min(620px,calc(100vw - 28px));width:100%}.modal-actions .btn{flex:0 0 auto}
@media(max-width:700px){.topbar{height:62px}.content{padding:20px 14px 34px}.page-heading{align-items:flex-start;gap:14px;flex-direction:column}.heading-actions{width:100%}.heading-actions .btn{flex:1}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px}.library-picker-list button{padding-inline:10px}.modal-actions{justify-content:flex-end}.modal-actions .btn{min-width:92px}.detail-url{overflow-wrap:anywhere}.repo-switcher{margin-inline:10px}}
@media(max-width:350px){.stat-grid{grid-template-columns:1fr}.btn{padding-inline:11px;font-size:12px}}
[data-theme=dark] body{background:#0c1729}.dark-mode body{background:#0c1729}
/* Field picker menus reuse sort visuals; the native select stays hidden for form submission. */
.field-menu { width:100%; text-align:left; }
.field-menu .field-menu-trigger { width:100%; justify-content:flex-start; text-align:left; }
.field-menu .field-menu-trigger b { position:static; inset:auto; margin-left:auto; transform:none; }
.field-menu .sort-menu { grid-column:1; width:max-content; min-width:100%; }
.field-menu-native { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; border:0; margin:0; padding:0; }
@media(max-width:700px){.field-menu .field-menu-trigger{min-height:38px;padding:0 11px;font-size:11px}.field-menu .field-menu-trigger b{margin-left:auto}}

/* Group management only: the destructive glyph edge follows the input border edge. */
#groupManageForm .group-name-label{display:flex;align-items:center;justify-content:space-between}
#groupManageForm .group-delete-link{margin-right:0;padding-inline:0;justify-self:end}

/* Component contract. Semantic classes adapt legacy templates, not a framework theme. */
:root{--ui-control-h:40px;--ui-focus:#79747f;--ui-icon-size:18px}
.ui-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-width:0;flex-shrink:0;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap!important;text-decoration:none;-webkit-tap-highlight-color:transparent;cursor:pointer}
.ui-button svg{width:var(--ui-icon-size);height:var(--ui-icon-size);flex:0 0 var(--ui-icon-size);vertical-align:middle}
/* Expanded sort options only: reserve the same check slot for every label. */
.sort-menu.floating-menu .sort-option.ui-button{display:grid;grid-template-columns:14px minmax(0,1fr);justify-content:initial;text-align:left;gap:6px;padding:0 8px;min-height:36px;height:36px;font-size:12px}
.sort-menu.floating-menu .sort-option.ui-button>span{display:flex;align-items:center;justify-content:center;width:14px;min-width:14px;height:14px}
.sort-menu.floating-menu .sort-option.ui-button>span svg{width:14px;height:14px;flex:0 0 14px}
.ui-icon{display:inline-block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ui-button[data-ui=nav]{justify-content:flex-start}.ui-button[data-ui=text]{background:transparent;padding-inline:8px}.ui-button[data-ui=sort]{min-height:36px}
.ui-button[data-ui=icon]{padding:0;width:34px;height:34px;min-height:34px;min-width:34px;gap:0}
.ui-button.top-icon{width:34px;height:34px;min-width:34px;min-height:34px}.auth-head-actions>.ui-button{width:34px;height:34px;min-width:34px;min-height:34px}
/* Login-only icons match the signed-in topbar, retaining their existing light border. */
body .auth-head-actions>.ui-button{box-shadow:none!important}
.auth-head-actions>.ui-button svg{width:var(--ui-icon-size);height:var(--ui-icon-size)}
.ui-button.asset-select,.ui-button.reference-select{width:24px;height:24px;min-width:24px;min-height:24px}
.ui-button:focus,.ui-button:active{box-shadow:none!important}.ui-button:focus-visible{outline:2px solid var(--ui-line-focus)!important;outline-offset:3px;box-shadow:none!important}.ui-button:active:not(:disabled){transform:translateY(1px);filter:none}.ui-button:disabled{cursor:not-allowed;opacity:.5;transform:none}
.ui-button[data-ui=danger]{color:var(--ui-danger-ink);background:var(--ui-danger-bg);border:1px solid var(--ui-danger-line)}body.dark .ui-button[data-ui=danger]{color:var(--ui-danger-ink);background:var(--ui-danger-bg);border-color:var(--ui-danger-line)}
.library-picker-copy{min-width:0}.library-picker-copy b,.library-picker-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.json-workspace-top{padding:12px!important}.json-library-summary{margin-top:0}.library-picker-list .library-picker-row{flex-wrap:wrap;min-width:0;padding:8px 0;border-bottom:1px solid var(--border)}
.library-picker-list .library-picker-option{width:auto;min-width:0;flex:1 1 220px;justify-content:flex-start}.library-picker-option>span:nth-child(2){min-width:0;overflow:hidden}.library-picker-option b,.library-picker-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-picker-actions{margin-left:auto}.library-picker-actions .ui-button{width:auto;padding-inline:12px;min-height:36px;font-size:12px}.library-picker-option em{flex-shrink:0}
.library-list-row:focus{outline:none}.library-list-row:focus-visible{outline:2px solid var(--ui-line-focus);outline-offset:-2px}.modal,.modal-body,.settings-card,.form-field,.main-shell,.json-workspace,.toolbar,.auth-card{min-width:0}.modal-body{overflow-wrap:anywhere}.detail-url{overflow-wrap:anywhere;word-break:break-word}.settings-actions,.section-actions{flex-wrap:wrap;gap:var(--ui-action-gap)}.repo-quick{overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.ui-button{font-size:12px}.toolbar{flex-wrap:wrap}.inner-search{min-width:0;max-width:100%}.settings-card{padding:18px}.settings-card>.btn{margin-bottom:8px}.settings-actions .btn{flex:1 1 auto}.library-picker-list .library-picker-option{flex-basis:100%}.library-picker-actions{padding-left:54px;margin-left:0}.modal-actions .btn{min-width:0}.asset-detail-actions .btn{flex:1 1 140px}.auth-brand{gap:8px}.auth-head-actions{flex-shrink:0}.auth-card{max-width:100%}.ui-button.repo-quick{font-size:11px}.json-reference-actions{flex-shrink:0}.json-reference-copy{min-width:0}.sort-trigger{padding-inline:10px}.hero{padding-inline:12px}.hero-actions{flex-wrap:nowrap;gap:5px}.hero-actions .btn{flex:0 1 auto;height:34px;min-height:34px;padding-inline:6px;font-size:11px;gap:3px;--ui-icon-size:12px}}

@media(max-width:350px){.hero-actions .btn{padding-inline:3px;font-size:10px;gap:2px;--ui-icon-size:10px}}

.asset-grid,.quick-assets-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.asset-preview,.quick-asset-image{aspect-ratio:1/1;height:auto;width:100%}
.asset-preview,.quick-asset-image{position:relative}
.asset-preview img,.quick-asset-image img{position:absolute;width:72%;height:72%;max-width:72%;max-height:72%;left:14%;top:14%;object-fit:contain;object-position:center;box-shadow:none}
@media(max-width:700px){.asset-grid,.quick-assets-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.asset-name-row,.quick-asset-name-row{gap:3px}}

.sort-trigger{color:#5e6b80;font-weight:600;display:inline-flex;gap:7px;padding-inline:10px}body.dark .sort-trigger{color:var(--ink)}.sort-trigger b{position:static;inset:auto;display:inline-flex;align-items:center;justify-content:center;align-self:center;width:14px;height:14px;flex:0 0 14px;transform:rotate(0deg);transform-origin:50% 50%;line-height:1}.sort-trigger b>.ui-icon{display:block;width:14px;height:14px;flex:0 0 14px}.sort-control.open .sort-trigger b{transform:rotate(180deg)}
/* Asset-only operation row: visible 22px check inside a separate 28px target. */
.asset-card .asset-details{padding:9px 8px 7px}
.quick-asset{padding-bottom:7px}
.quick-asset .quick-asset-name-row{margin-top:9px;padding-inline:6px}
.quick-asset>small{margin:7px 6px 0}
.asset-card .asset-meta{display:flex;flex-wrap:nowrap;gap:3px;align-items:center;margin-top:7px}
/* Local multi-select palette; never affects native form checkboxes or card outlines. */
:root{--ui-small-action-line:#c4ccde}
body.dark{--ui-small-action-line:#536681}
:is(.asset-select,.reference-select){--multi-border:var(--ui-small-action-line);--multi-bg:var(--surface);--multi-mark:#fff;color:var(--multi-mark)}
body.dark :is(.asset-select,.reference-select){--multi-border:var(--ui-small-action-line);--multi-bg:#202e47}
:is(.asset-card.selected .asset-select,.json-reference-row.selected .reference-select){--multi-border:var(--ui-check-bg);--multi-bg:var(--ui-check-bg);--multi-mark:var(--ui-check-mark)}
.asset-card .asset-select{position:relative;inset:auto;flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;margin-left:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:15px;isolation:isolate}
/* The selected colour belongs to the inset square, not its larger tap target. */
.asset-card.selected .asset-select{background:transparent}
.asset-card .asset-select:before{content:'';position:absolute;inset:3px;border:1px solid var(--multi-border);border-radius:6px;background:var(--multi-bg);z-index:-1}
.asset-card .asset-select .ui-icon{width:18px;height:18px;flex:0 0 18px;stroke-width:1.7}
.reference-select{border-color:var(--multi-border);background:var(--multi-bg)}
:is(.asset-select,.reference-select):focus,:is(.asset-select,.reference-select):focus-visible{outline:none!important;box-shadow:none!important}
:is(.asset-select,.reference-select):is(:disabled,[aria-busy=true]){opacity:.5;cursor:not-allowed;filter:none;transform:none}
@media(hover:hover){:is(.asset-select,.reference-select):not(:disabled):not([aria-busy=true]):hover{filter:brightness(.985)}body.dark :is(.asset-select,.reference-select):not(:disabled):not([aria-busy=true]):hover{filter:brightness(1.1)}}
@media(max-width:700px){.asset-card{padding:3px}.asset-card .asset-details{padding:9px 3px 5px}.asset-card .asset-meta{gap:1px}}


/* Do not resurrect controls hidden by responsive legacy rules. */
.ui-button.sidebar-overlay{display:none}.ui-button.mobile-menu,.ui-button.sidebar-close{display:none}
@media(max-width:900px){.ui-button.mobile-menu,.ui-button.sidebar-close{display:inline-flex}.sidebar.open~.sidebar-overlay{display:block}}

/* WebKit resource previews can stall CSS animation timelines at currentTime=0.
   Visibility must never depend on finishing an entrance animation. */
.modal-backdrop,.modal{animation:none!important;opacity:1;transform:none}
.json-workspace-top{display:flex!important;align-items:flex-start;gap:8px;padding:0!important}

.json-library-summary{color:var(--muted);background:none;border:0;border-radius:0;padding:0;margin:8px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;display:block;max-height:none;overflow:visible;-webkit-line-clamp:unset}
.library-outside-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.library-outside-actions>div{display:flex;gap:var(--ui-action-gap);min-width:0}
.library-outside-actions .ui-button{font-size:12px;padding-inline:10px;min-height:36px}
.library-outside-actions .library-picker-delete{background:transparent!important;border-color:transparent!important;margin-left:auto;padding-inline:5px}
.library-picker-list{display:grid;gap:8px}.library-picker-list .library-picker-option{width:100%;padding:12px;min-height:64px;gap:10px}
body.dark .ui-button.top-icon,body.dark .ui-button.project-link{background:#1b293f;color:#e4eaf5;border-color:#34435b}
@media(max-width:700px){.library-outside-actions{gap:4px}.library-outside-actions>div{gap:var(--ui-action-gap)}.library-outside-actions .ui-button{font-size:11px;padding-inline:8px}.library-picker-copy em{font-size:10px}}

.modal:has(.library-switch-modal-body){width:min(560px,calc(100vw - 28px))}.library-switch-modal-body{display:flex;flex-direction:column;gap:10px;min-height:0}.library-switch-list{display:grid;gap:8px;max-height:min(58vh,520px);overflow:auto;padding-right:2px}.library-switch-row{display:flex;align-items:center;gap:4px;padding-right:2px}.library-switch-option{flex:1;min-width:0;min-height:54px;padding:9px 12px;gap:8px;justify-content:flex-start;border:0;background:transparent;color:inherit;text-align:left}.library-switch-option[aria-checked=true]{color:var(--ui-selection-ink);border-radius:10px}.library-switch-copy{flex:1;min-width:0}.library-switch-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-switch-check{display:inline-flex;align-items:center;justify-content:center;width:14px;flex:0 0 14px;font-size:12px}.library-switch-delete.ui-button{width:auto;height:44px;min-width:44px;min-height:44px;padding:0 10px;background:transparent;border:0;color:var(--ui-danger-ink);flex:0 0 auto;font-size:12px;font-weight:600;border-radius:8px;transition:background .12s,color .12s}body.dark .library-switch-delete.ui-button{color:var(--ui-danger-ink)}@media(hover:hover){.library-switch-delete.ui-button:not(:disabled):hover{background:var(--ui-danger-bg)}}body .library-switch-delete.ui-button:not(:disabled):active{background:var(--ui-danger-bg)}.library-picker-create{width:100%;margin-top:2px}
@media(max-width:700px){.modal:has(.library-switch-modal-body){width:min(560px,calc(100vw - 20px));padding:18px}.modal:has(.library-switch-modal-body) .modal-head{margin-bottom:14px}}

/* Only the repository name truncates; reserve room for the status halo. */
.repo-meta #repoName{display:flex;align-items:center;overflow:visible;min-width:0;padding-right:4px}
.repo-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#repoName .repo-status-dot{flex:none;width:9px;height:9px;margin-left:8px}

.library-card .library-list-row,.library-card .library-empty-row{display:flex;width:100%;min-width:0;justify-content:flex-start;text-align:left}
.library-card .list-info,.library-card .library-empty-row>div:last-child{flex:1;min-width:0;overflow:hidden}
.library-card .list-info b,.library-card .list-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-card .list-meta{flex:none;margin-left:auto}
.library-card .library-preview-strip,.library-card .empty-icon{flex-shrink:0}

.library-switch-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.token-eye.ui-button{font-size:18px}
input:focus,input:focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible{outline:none!important;box-shadow:none!important;border-color:var(--ui-line-focus)!important}

/* Native upload select feedback follows menu lifetime, never a replacement menu.
   The no-op animation reports real :open support; older engines retain focus feedback. */
@keyframes upload-native-picker-open{from{opacity:1}to{opacity:1}}
@supports selector(select:open){
  #uploadForm :is(select[name="group"],select[name="library"])[data-picker-touch]:open{animation:upload-native-picker-open 1ms linear;border-color:var(--ui-line-focus)!important;outline:none!important;box-shadow:none!important;transition:none!important}
  #uploadForm :is(select[name="group"],select[name="library"])[data-picker-touch][data-picker-open-seen]:not(:open){border-color:#e4e8f0!important;outline:none!important;box-shadow:none!important;transition:none!important}
  body.dark #uploadForm :is(select[name="group"],select[name="library"])[data-picker-touch][data-picker-open-seen]:not(:open){border-color:#3b4d69!important}
}

/* Login input follows the same theme-blue editing focus without an outer ring. */
.auth-card #mainTokenInput{width:100%;min-width:0}
/* Native password appearance keeps iOS painting the caret; only tap highlight is suppressed. */
.auth-card #mainTokenInput{-webkit-appearance:auto;appearance:auto}
.auth-card #mainTokenInput:focus,.auth-card #mainTokenInput:focus-visible{border:1px solid var(--ui-line-focus)!important;outline:none!important;box-shadow:none!important}
@media(max-width:700px){.auth-card #mainTokenInput{font-size:16px}}


.preview-file{min-width:0;padding-right:12px}
/* Background belongs to the plate, not the original image. */
.preview-file .upload-preview-plate{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:6px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:#f4f6ff}
body.dark .preview-file .upload-preview-plate{background:#24334b;border-color:#3b4d69}
body .preview-file .upload-preview-plate img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;box-shadow:none;border-radius:0;background:transparent;flex:none}
.preview-file span{flex:1;min-width:0}
.preview-file .preview-clear{position:static;transform:none;width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;padding:0;border-radius:8px;color:var(--muted);background:var(--surface);border:1px solid var(--line)}
.preview-clear.ui-button svg{width:16px;height:16px;flex-basis:16px}
@media(hover:hover){.preview-file .preview-clear:hover{color:var(--ink)}}
/* Historical outlined copy controls: surface only, never a filled grey/black tile.
   JSON copy matches its unchanged X: 34px minimum box, 9px radius, 18px SVG. */
.copy-control.ui-button{--copy-bg:var(--surface);--copy-line:var(--line);--copy-ink:#8090a6;color:var(--copy-ink);background:var(--copy-bg);border:1px solid var(--copy-line);transition:background .12s,border-color .12s,filter .12s}
body.dark .copy-control.ui-button{--copy-ink:var(--ink);color:var(--copy-ink);background:var(--copy-bg);border-color:var(--copy-line)}
.copy-control.copy-control-icon.ui-button{width:34px!important;height:34px!important;min-width:34px;min-height:34px;max-width:34px;max-height:34px;flex:0 0 34px;padding:0;gap:0;border-radius:9px;box-sizing:border-box}
.copy-control.copy-control-icon .ui-icon{width:18px;height:18px;flex:0 0 18px}
.asset-meta .copy-control{margin-left:auto}
@media(hover:hover){.copy-control.ui-button:not(:disabled):hover{background:var(--copy-bg);border-color:var(--copy-ink)}}
.copy-control.ui-button:not(:disabled):active{background:var(--copy-bg)}
.copy-control.ui-button:focus-visible{outline-color:var(--copy-ink)!important}
.copy-control-icon[aria-busy=true]{font-size:0}
.copy-control-icon[aria-busy=true]::after{content:'…';font-size:14px}

/* Shared compact detail plate; list thumbnails retain their own sizing. */
.asset-detail-preview,.json-icon-detail-preview{width:min(100%,200px);height:auto;min-height:0;aspect-ratio:1;position:relative;padding:0;border:1px solid var(--line);border-radius:12px;background:#f4f6ff;justify-self:center}
.asset-detail-preview img,.json-icon-detail-preview img{position:absolute;left:10%;top:10%;width:80%;height:80%;max-width:80%;max-height:80%;object-fit:contain;object-position:center;box-shadow:none;border-radius:0}
body.dark .asset-detail-preview,body.dark .json-icon-detail-preview{border-color:#3b4d69;background:#24334b}
@media(max-width:700px){.asset-detail-preview,.json-icon-detail-preview{width:min(100%,160px);padding:0}}

/* One compact full-width chooser; only the chooser has a pale border, never an outer card. */
body .json-workspace.card{padding:0;margin-bottom:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
.library-current-info{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;flex:1}
.library-current-label{font-size:12px;line-height:18px;font-weight:500;color:var(--muted)}
.json-workspace .library-name-trigger.ui-button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;max-width:100%;min-width:0;min-height:64px;margin:0;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:none;color:var(--ink);font-size:14px;text-align:left;white-space:nowrap}
.library-current-info .library-logo{width:32px;height:32px;flex:0 0 32px;border-radius:9px;font-size:13px;box-shadow:none;color:#fff}
.library-current-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px}
.library-name-chevron{display:flex;flex:0 0 14px;margin-left:auto;color:var(--muted)}
.library-name-chevron .ui-icon{width:14px;height:14px;flex:0 0 14px}
.library-current-copy{flex:1;min-width:0;max-width:100%;overflow:hidden}
.library-current-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;font-style:normal;font-weight:400;color:var(--muted);margin-top:2px}
.json-workspace .json-library-summary{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:18px;overflow-wrap:anywhere}
/* Auxiliary entries align to their own field/content edge. */
#tokenLoginForm .token-guide-button.ui-button{justify-content:flex-start;text-align:left;padding:0;min-height:44px;border:0;background:transparent;font-size:12px;color:var(--primary);text-decoration:none}
.json-workspace .json-workspace-top{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}
.library-switch-copy small{display:block;font-size:11px;font-weight:400;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.library-switch-copy b{white-space:normal;overflow-wrap:anywhere}

/* Compact JSON-library sorting menu: one flat list, no grouping/dividers. */
.sort-menu.floating-menu{width:134px;min-width:134px;padding:5px;border-radius:13px;gap:2px;box-shadow:0 8px 22px rgba(31,45,75,.11)}
.sort-menu.floating-menu .sort-option.ui-button{min-height:40px;height:40px;border-radius:9px;padding:0 9px;font-weight:400}
.sort-menu.floating-menu .sort-option.ui-button.active{font-weight:600}
body.dark .sort-menu.floating-menu{box-shadow:0 8px 22px rgba(0,0,0,.24)}

/* Text copy actions retain normal secondary contrast; compact icons stay muted. */
.copy-control.ui-button.btn:not(.copy-control-icon){--copy-bg:var(--surface);--copy-line:var(--line);--copy-ink:#5e6b80}
body.dark .copy-control.ui-button.btn:not(.copy-control-icon){--copy-ink:var(--ink)}

/* One pale line for every surface a finger lands on: search fields, drop zone, rows and tiles.
   Border wrappers recolour their own border; containers that own no border get the same pale ring. */
/* One pale line for every surface a finger lands on: search fields, drop zone, rows and tiles.
   Wrappers that own a border recolour it; containers without a border get the same pale ring. */
:is(.inner-search,.global-search):focus-within{border-color:var(--ui-line-focus)!important}
/* Drop zone opens the OS picker instantly; the preview after selection is the real
   feedback, and iOS' gray pressed highlight is suppressed below. No purple on tap. */
:is(.inner-search,.global-search):active{border-color:var(--ui-line-focus)!important}
:is(.repo-switcher,.group-pill,.library-picker,.library-picker-option):focus-within:not(:has(button:focus,a:focus,input:focus,select:focus,textarea:focus,[role="button"]:focus)){outline:2px solid var(--ui-line-focus);outline-offset:2px}
/* Recent-image copy is a child action: pointer focus must never leave a card ring.
   Only direct keyboard focus owns the persistent accessible outline. */
.quick-asset:focus-visible:not([data-pointer-focus]):not(:has(button:focus)){outline:2px solid var(--ui-line-focus);outline-offset:2px}
/* Recent cards keep original caption ink and never draw a pointer/long-press box. */
body .quick-asset[data-feedback="surface"]:active,body .quick-asset[data-pointer-focus]{outline:none!important}
:is(.asset-card,.quick-asset,.repo-switcher,.group-pill,.library-picker,.library-picker-option):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active:not(:has(button:active,a:active,input:active,select:active,textarea:active,[role="button"]:active)){border-color:var(--ui-line-focus)!important}
/* Unified neutral feedback: no default geometry changes, no persistent pointer focus.
   JS omits danger, GitHub login and checkmarks; blue CTAs use border-only feedback. */
:root{--ui-feedback-ink:var(--primary)}
body.dark{--ui-feedback-ink:var(--ui-line-focus)}
@media(hover:hover){
[data-feedback="control"]:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.active):not(.selected):not([aria-checked="true"]):not([aria-pressed="true"]):hover{color:var(--ui-feedback-ink)!important;border-color:var(--ui-line-focus)!important}

[data-feedback="surface"]:not(.json-reference-row):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.active):not(.selected):not([aria-checked="true"]):not([aria-pressed="true"]):hover:not(:has(button:hover,a:hover)){border-color:var(--ui-line-focus)!important;outline:1px solid var(--ui-line-focus);outline-offset:-1px}
}
[data-feedback="control"]:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.active):not(.selected):not([aria-checked="true"]):not([aria-pressed="true"]):active{color:var(--ui-feedback-ink)!important;border-color:var(--ui-line-focus)!important}

[data-feedback="surface"]:not(.json-reference-row):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.active):not(.selected):not([aria-checked="true"]):not([aria-pressed="true"]):active:not(:has(button:active,a:active)){border-color:var(--ui-line-focus)!important;outline:1px solid var(--ui-line-focus);outline-offset:-1px}
[data-feedback="control"]:focus-visible{outline-color:var(--ui-line-focus)!important}
/* Overview entries now start at the card edge; the inset press ring follows
   the first and last row corners without an obsolete header separator. */
.library-card .library-list-row{border-top-color:#f0f2f6;border-radius:0;box-shadow:inset 0 0 0 0 var(--ui-line-focus);transition:box-shadow .12s}
.library-card .library-list-row:last-child{border-radius:0 0 calc(var(--radius) - 3px) calc(var(--radius) - 3px)}
.library-card .library-list-row:first-child,.library-card .library-empty-row:first-child{border-top:0;border-top-left-radius:calc(var(--radius) - 3px);border-top-right-radius:calc(var(--radius) - 3px)}
.library-card .library-list-row:active:not(:has(button:active,a:active,input:active)){border-top-color:transparent!important;box-shadow:inset 0 0 0 2px var(--ui-line-focus)}

/* Image resources: prevent iOS text selection on pressable cards/toolbar, and
   avoid stacking dark pressed overlays on the site's pale line feedback. */
.assets-toolbar button,.asset-card{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.assets-toolbar .ui-button:active:not(:disabled){filter:none!important;box-shadow:none!important;transform:none!important}
.assets-toolbar [data-feedback="control"]:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]){color:var(--ui-feedback-ink)!important}
/* Natural-width local actions; wrap instead of stretching into equal columns. */
.json-workspace .library-outside-actions{margin-top:8px}
.json-workspace .library-outside-actions>div{display:flex;flex-wrap:wrap;width:auto;gap:var(--ui-action-gap)}
.json-workspace .library-outside-actions .btn{flex:0 0 auto;width:auto;min-width:0;height:44px;min-height:44px;padding:0 10px;font-size:12px;gap:4px;white-space:nowrap;justify-content:center}
@media(max-width:360px){.json-workspace .library-outside-actions>div{gap:var(--ui-action-gap)}.json-workspace .library-outside-actions .btn{padding-inline:8px;font-size:11px}.json-workspace-create .ui-icon{width:14px;height:14px;flex-basis:14px}}
/* Pointer focus is not selection. Keyboard focus belongs to the card itself only. */
.asset-card:not(.selected):not(:focus-visible){outline:none!important}
.asset-card:focus-visible{outline:2px solid var(--ui-line-focus);outline-offset:2px}
@media(hover:hover){.asset-card:not(.selected):hover:not(:focus-visible){border-color:var(--line)!important;box-shadow:none!important}}
body.dark .json-workspace-create.btn-primary{color:#fff;border-color:var(--primary);background:linear-gradient(135deg,#6671fc,#5860df)}
@media(hover:none){.asset-card:active{filter:none!important;outline:none!important}.asset-card.selected:active{box-shadow:0 0 0 2px rgba(89,101,242,.1)!important}}
/* Field picker popups span their trigger width; sort menus stay narrow. */
.field-menu-popup.floating-menu{width:max-content}

/* Reference rows own one inner ring, never a clipped outer outline or divider tint.
   12px container minus its 1px border = 11px inner corner. */
.json-reference-list{--reference-inner-radius:11px}
.json-reference-row{position:relative;--reference-top:0px;--reference-bottom:0px}
.json-reference-row:first-child{--reference-top:var(--reference-inner-radius)}
.json-reference-row:last-child{--reference-bottom:var(--reference-inner-radius)}
.json-reference-row::after{content:'';position:absolute;inset:0 0 -1px;pointer-events:none;border:2px solid transparent;border-radius:var(--reference-top) var(--reference-top) var(--reference-bottom) var(--reference-bottom)}
.json-reference-row:last-child::after{bottom:0}
.json-reference-row:active:not(:has(button:active,a:active,input:active,select:active,textarea:active)),.json-reference-row:focus-visible{outline:none;filter:none;box-shadow:none}
.json-reference-row:active:not(:has(button:active,a:active,input:active,select:active,textarea:active))::after,.json-reference-row:focus-visible::after{border-color:var(--ui-line-focus)}
/* Preserve text/URL/input selection; only actual controls suppress native callouts. */
.main-shell button,.sidebar button,.modal button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.main-shell button:disabled,.sidebar button:disabled,.modal button:disabled{filter:none;transform:none;box-shadow:none}
/* Press-only guard: override simultaneous hover filters, never resting colors or modal scrims. */
:where(button,.btn,.ui-button,.icon-btn,.text-link,.nav-item,.asset-select,.reference-select,.asset-copy,.quick-copy,.modal-close,.top-icon,.project-link,.token-eye,.token-guide-button):not(:disabled):active{filter:none!important;box-shadow:none!important}
/* Non-native interactive surfaces keep their approved inset focus/selection frames. */
[role="button"]:not([aria-disabled="true"]):active{filter:none!important}
/* Checkmark geometry is unchanged; keyboard users still get an explicit focus cue. */
:is(.asset-select,.reference-select):focus-visible{outline:2px solid var(--ui-line-focus)!important;outline-offset:2px}

/* Restored-layout corrections: semantic blue CTAs, pale press borders, no dark overlay. */
body .btn.btn-primary{color:#fff;border-color:var(--primary);background:linear-gradient(135deg,#6671fc,#5860df)}
@media(hover:hover){body .btn.btn-primary:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover{color:#fff;border-color:var(--primary);background:linear-gradient(135deg,#6671fc,#5860df)}}
[data-feedback="primary"]:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active{color:#fff!important;border-color:var(--primary)!important}
/* A selected repository owns its border independently of transient hover/press. */
body .repo-quick.active{--repo-selected-bg:#fbfcfe;--repo-selected-ink:var(--primary);border-color:var(--ui-line-focus)!important;background:var(--repo-selected-bg)!important;color:var(--repo-selected-ink)!important;filter:none}
body.dark .repo-quick.active{--repo-selected-bg:#202e47;--repo-selected-ink:var(--ui-line-focus)}
body .repo-quick.active:active:not(:disabled){border-color:var(--ui-line-focus)!important;filter:none!important}
/* The visible settings separator is a border-top, not an hr in the final template. */
.settings-actions{border-top-color:var(--line)}
.settings-card hr{border:0;border-top:1px solid var(--line);color:var(--line);background:transparent}
/* Only these three resting toolbar controls share the secondary palette. */
body .assets-toolbar :is([data-action="select-all"],.sort-trigger,[data-action="refresh"]){background:var(--surface);border-color:var(--line);color:var(--muted)}
/* The sort caret inherits the same resting and transient feedback ink. */
body .assets-toolbar .sort-trigger b{color:inherit}


/* Theme-local feedback. Light keeps the e1e972d blue-purple palette; dark
   uses the same hue at reduced luminance, not the former gray-blue palette. */
body.dark{--ui-line-focus:#7785c8;--ui-feedback-ink:#b2bbef;--ui-selection-bg:#293451;--ui-selection-ink:#b2bbef;--ui-check-bg:#5260bf;--ui-check-mark:#dfe3f6;--ui-selection-shadow:rgba(119,133,200,.12)}
/* Preserve the selected-group border fix; independent of hover and pointer focus. */
body .group-pill.active{border-color:var(--ui-line-focus)!important;color:var(--ui-selection-ink)}
body .asset-card.selected{border-color:var(--ui-line-focus)!important;outline-color:var(--ui-line-focus);box-shadow:0 0 0 2px var(--ui-selection-shadow)}
body .asset-card:not(.selected):focus-visible,body .asset-card.selected:focus-visible{outline:2px solid var(--ui-line-focus)!important;outline-offset:2px}
body.dark :is(.repo-quick.active,.library-picker-option.selected,.sort-option.active,.library-switch-option[aria-checked=true],.json-reference-row.selected){color:var(--ui-selection-ink)}
body.dark :is(.repo-quick.active,.library-picker-option.selected){border-color:var(--ui-line-focus)!important}
body.dark .sort-option span{color:var(--ui-selection-ink)}
body.dark .asset-card.selected{background:var(--surface)}
body.dark .drop-zone.dragging{border-color:var(--ui-line-focus);color:var(--ui-feedback-ink)}
@media(hover:hover){body.dark .group-pill:not(.active):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover,body.dark .drop-zone:hover{border-color:var(--ui-line-focus);color:var(--ui-feedback-ink)}}
body.dark .remember-token input:checked{border-color:var(--ui-check-bg);background:var(--ui-check-bg)}
body.dark .remember-token input:checked::after{border-color:var(--ui-check-mark)}
body.dark .policy-toggle input[type="checkbox"]{background:var(--surface);border-color:var(--line)}
body.dark .policy-toggle input[type="checkbox"]:checked{background-color:var(--primary);border-color:var(--primary)}
/* Native permission checkbox alone retains a visible keyboard focus cue. */
.policy-toggle input[type="checkbox"]:focus-visible{outline:2px solid var(--ui-line-focus)!important;outline-offset:3px;box-shadow:none!important}
/* Open feedback belongs to actual menu lifetime, never :focus-within/:active.
   AnchoredMenu clears aria-expanded on choose, toggle, outside click and Escape. */
body .sort-trigger[aria-expanded="true"]:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]){border-color:var(--ui-line-focus)!important;color:var(--ui-selection-ink)!important;filter:none!important}

/* Outline/text feedback only. Backgrounds are inherited from each component's
   resting rule; never reset a card, semantic CTA, or check square to transparent. */
@media(hover:hover){
[data-feedback="control"], [data-feedback="primary"], .ui-button[data-ui="danger"]{filter:none!important}
}
/* Guard legacy hover selectors as well as the enhancer's neutral feedback. */
:is(.group-pill,.repo-quick,.sort-trigger,.sort-option,.library-picker-option,.library-switch-option):is(:disabled,[aria-disabled="true"],[aria-busy="true"]){filter:none!important}
body .sort-trigger b{color:inherit}
body .library-picker-option.selected{color:var(--ui-selection-ink);border-color:var(--ui-line-focus)!important}
/* Native/check-square selection fill remains the selection indicator. */
/* Empty and populated libraries share one compact initial icon, with no preview column. */
.library-card .library-list-row{min-height:72px;height:72px;gap:12px;padding:12px 16px}
.library-card .library-row-icon{flex:0 0 36px;width:36px;height:36px;font-size:16px;color:#fff;display:grid;place-items:center;padding:0;line-height:1}
.library-row-icon>.library-initial{display:block;line-height:1}
/* Lowercase Latin x-height sits below the line-box centre; optical correction only. */
.library-row-icon>.library-initial-latin{transform:translateY(-1px)}
body .library-logo,body .library-row-icon{background:linear-gradient(135deg,#7580ff,#8c64e9)}
body.dark .library-card .library-row-icon{background:linear-gradient(135deg,#7580ff,#8c64e9);color:#fff}
/* Search is a full row, with compact readable controls below (no enclosing white card). */
body .assets-toolbar,body .json-reference-toolbar,body.dark .assets-toolbar,body.dark .json-reference-toolbar{display:flex;flex-wrap:wrap;gap:10px 8px;align-items:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:18px}
.assets-toolbar>.inner-search,.json-reference-toolbar>.inner-search{flex:0 0 100%;width:100%;max-width:none;min-width:0;height:38px}
.assets-toolbar>.inner-search input,.json-reference-toolbar>.inner-search input{font-size:12px}
.assets-toolbar>.ui-button,.json-reference-toolbar>.ui-button{flex:0 0 auto;width:auto;min-height:36px;font-size:12px}
.assets-toolbar>.toolbar-spacer,.json-reference-toolbar>.toolbar-spacer{display:none}
/* One shared search row and fixed action row for both resource pages. */
body :is(.assets-toolbar,.json-reference-toolbar),body.dark :is(.assets-toolbar,.json-reference-toolbar){display:grid;grid-template-columns:80px 44px minmax(0,1fr);gap:8px var(--ui-toolbar-action-gap)}
:is(.assets-toolbar,.json-reference-toolbar)>.inner-search{grid-column:1/-1;width:100%}
.json-reference-toolbar>[data-role="icons-selection-toolbar"]{display:contents}
:is(.assets-toolbar,.json-reference-toolbar) [data-action^="select-all"]{grid-column:1;grid-row:2;width:80px;min-height:44px;padding:0 4px;font-size:12px}
:is(.assets-toolbar,.json-reference-toolbar) [data-action="refresh"]{grid-column:2;grid-row:2;width:44px;min-height:44px;padding:0;font-size:18px}
:is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions){grid-column:3;grid-row:2;min-width:0;height:44px;display:flex;justify-content:flex-end;gap:var(--ui-toolbar-action-gap);align-items:center}
:is(.asset-bulk-actions,.page-bulk-actions):empty,:is(.asset-bulk-actions,.page-bulk-actions) [aria-hidden="true"]{visibility:hidden;pointer-events:none}
:is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions) button{flex:0 1 auto;min-width:44px;min-height:44px;font-size:12px;padding-inline:14px;white-space:nowrap}
:is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions) [data-action="bulk-library"]{background:var(--surface);border:1px solid var(--line);border-radius:var(--ui-radius);color:var(--muted)}
:is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions) [data-action="bulk-library"]:active:not(:disabled){border-color:var(--ui-line-focus)}
body .json-reference-toolbar :is([data-action="select-all-icons"],[data-action="refresh"]){background:var(--surface);border-color:var(--line);color:var(--muted)}
/* JSON references: horizontal list rows; columns follow real content width. */
.json-references{container-type:inline-size;container-name:references}
body .json-reference-list,body.dark .json-reference-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 12px;overflow:visible;border:0;border-radius:0;background:transparent}
body .json-reference-row{position:relative;display:grid;grid-template-columns:44px 54px minmax(0,1fr);gap:6px var(--ui-icon-action-gap)!important;align-items:center;min-width:0;padding:6px!important;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:none}
body .json-reference-row:last-child{border-bottom:1px solid var(--line)}
body .json-reference-thumb{grid-column:2;grid-row:1;margin-inline-start:6px;width:48px;height:48px;padding:4px;border-radius:6px;background:#f4f6ff;display:grid;place-items:center;overflow:hidden}
body.dark .json-reference-thumb{background:#e8ecf5}
body .json-reference-thumb img{display:block;min-width:0;min-height:0;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
body .json-reference-copy{grid-column:3;grid-row:1;align-self:center;min-width:0;padding-inline:6px}
body .json-reference-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.5;font-weight:600}
body .json-reference-actions{display:contents!important}
body .json-reference-row .reference-select{grid-column:1;grid-row:1;position:relative;inset:auto;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0!important;border-radius:8px;background:transparent!important;color:transparent;box-shadow:none}
body .json-reference-row .reference-select::before{content:"";position:absolute;left:11px;top:11px;width:22px;height:22px;box-sizing:border-box;border:1px solid var(--multi-border);border-radius:5px;background:var(--multi-bg)}
body .json-reference-row .reference-select::after{content:none}
body .json-reference-row .reference-select>.ui-icon{position:absolute;left:11px;top:11px;width:22px;height:22px;z-index:1;pointer-events:none}
body .json-reference-row .reference-select[aria-pressed="true"]{color:var(--ui-check-mark)}
body .json-reference-actions .icon-btn,body.dark .json-reference-actions .icon-btn{grid-row:1;width:44px!important;height:44px!important;min-width:44px;min-height:44px;padding:0;border-color:transparent!important;background:transparent!important;color:var(--muted)!important}
body .json-reference-actions .copy-control-icon.ui-button{grid-column:4;width:44px!important;height:44px!important;min-width:44px;min-height:44px;max-width:none;max-height:none}
body .json-reference-actions [data-action="delete-icon"]{grid-column:5;color:var(--ui-danger-ink)!important}
body.dark .json-reference-actions [data-action="delete-icon"]{color:var(--ui-danger-ink)!important}
body .json-reference-row::after{inset:-1px;border-radius:8px}
body .json-reference-list>.empty-state,body .json-empty-navigation{grid-column:1/-1}
.json-empty-navigation{text-align:center;margin-top:-16px;padding-bottom:24px}
/* At least 324px per desktop entry; account for the real sidebar width. */
@media(min-width:701px){
 @container references (min-width:660px){body .json-reference-list,body.dark .json-reference-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @container references (min-width:1020px){body .json-reference-list,body.dark .json-reference-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
}
/* Compact two-column phone references; selection remains an independent 44px target. */
@media(max-width:700px){body .json-reference-list,body.dark .json-reference-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .json-reference-row{grid-template-columns:44px 28px minmax(0,1fr);gap:0!important;padding:2px!important}body .json-reference-thumb{margin-inline-start:0;width:28px;height:32px;padding:2px}body .json-reference-copy{padding-inline:3px}body .json-reference-copy b{font-size:12px}}
@media(max-width:299px){body .json-reference-list,body.dark .json-reference-list{grid-template-columns:minmax(0,1fr)}}
body .asset-card .asset-name-row{gap:0;min-height:44px}
body .asset-card .asset-details{padding-block:0}
/* Both card types use the same left-select / right-copy ordering and touch size. */
body .asset-card .asset-meta{gap:0;margin-inline:-3px}
body .asset-card .asset-select{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;font-size:13px}
body .asset-card .asset-select::before{inset:12px;border-radius:5px}
body .asset-card .asset-copy{flex:0 0 44px;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0}
/* Homepage-sized visible copy frame inside an independent transparent 44px target.
   Pseudo-elements are paint only: they never expand or intercept neighbouring targets. */
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon),body.dark :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon){position:relative;isolation:isolate;max-width:none;max-height:none;border:0!important;border-radius:9px;background:transparent!important;color:var(--copy-ink)!important;box-shadow:none}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon)::before{content:"";position:absolute;inset:5px;box-sizing:border-box;border:1px solid var(--copy-line);border-radius:9px;background:var(--copy-bg);pointer-events:none;z-index:0;transition:background .12s,border-color .12s}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon)>.ui-icon{position:relative;z-index:1;width:18px;height:18px;flex:0 0 18px;pointer-events:none}
@media(hover:hover){body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon):not(:disabled):not([aria-busy="true"]):hover{color:var(--ui-feedback-ink)!important}body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon):not(:disabled):not([aria-busy="true"]):hover::before{border-color:var(--ui-line-focus)}}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon):not(:disabled):not([aria-busy="true"]):active{color:var(--ui-feedback-ink)!important}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon):not(:disabled):not([aria-busy="true"]):active::before{border-color:var(--ui-line-focus)}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon)[aria-busy="true"]>.ui-icon{visibility:hidden}
body :is(.asset-card .asset-copy,.json-reference-actions .copy-control-icon)[aria-busy="true"]::after{position:absolute;inset:5px;display:grid;place-items:center;border:0;background:transparent;pointer-events:none;z-index:1}
/* Match the current image-detail delete-asset button's computed icon/border colors:
   light var(--ui-danger-ink) / var(--ui-danger-line), dark var(--ui-danger-ink) / var(--ui-danger-line) (console.css !important).
   Theme danger fill paints only the 34px frame; retain the transparent 44px hit area. */
body .json-reference-actions [data-action="delete-icon"],body.dark .json-reference-actions [data-action="delete-icon"]{position:relative;isolation:isolate;border:0!important;border-radius:9px;background:transparent!important;box-shadow:none;--remove-line:var(--ui-danger-line)}
body.dark .json-reference-actions [data-action="delete-icon"]{--remove-line:var(--ui-danger-line)}
body .json-reference-actions [data-action="delete-icon"]::before{content:"";position:absolute;inset:5px;width:auto;height:auto;box-sizing:border-box;border:1px solid var(--remove-line);border-radius:9px;background:var(--ui-danger-bg);box-shadow:none;transform:none;pointer-events:none;z-index:0}
body .json-reference-actions [data-action="delete-icon"]>.ui-icon{position:relative;z-index:1;width:18px;height:18px;flex:0 0 18px;pointer-events:none}
body .asset-card .asset-meta{margin-inline:0}
/* A 320px three-column card is narrower than two 44px targets plus insets.
   Keep the left target fixed and the right outline inset; only hit boxes overlap. */
@media(max-width:360px){body .asset-card .asset-copy{margin-left:calc(100% - 88px)}}
/* Adjacent 44px icon targets meet: their 5px paint insets yield a 10px visible gap.
   Non-action columns retain breathing room through thumbnail tracks and text padding. */
/* Safari paints its native tap overlay on the hit-tested image/descendant too.
   Keep this scoped to image cards; no disabled/loading or keyboard state reset. */
body .asset-card,body .asset-card :is(.asset-preview,.asset-preview img,.asset-details,.asset-name-row,b,.asset-meta,button){-webkit-tap-highlight-color:transparent}
body .asset-card:not([aria-disabled="true"]):not([aria-busy="true"]):active{filter:none!important}
/* Asset cards are not pressed controls: suppress only the transient active paint.
   Keep the selected frame and leave desktop hover untouched. */
body .asset-card:not(.selected):active{border-color:var(--line)!important;transform:none!important;filter:none!important;box-shadow:none!important;outline:none!important}
body .asset-card.selected:active{border-color:#acb2ff!important;transform:none!important;filter:none!important;box-shadow:0 0 0 2px rgba(89,101,242,.1)!important;outline:none!important}
/* The select target and its inset square must not acquire a WebKit tap layer,
   inherited button press transition or filtered negative-z compositing layer.
   Only paint/interaction properties change; keyboard outline and state opacity stay. */
body .asset-card .asset-select,body .asset-card .asset-select::before,body .asset-card .asset-select::after{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:none!important;filter:none!important;transform:none!important;box-shadow:none!important}
body .asset-card .asset-select{-webkit-appearance:none;appearance:none;background:transparent!important}
body .asset-card .asset-select::before,body .asset-card .asset-select::after{pointer-events:none}
body .asset-card .asset-select::before{z-index:0}
body .asset-card .asset-select>.ui-icon{position:relative;z-index:1;pointer-events:none}
body .asset-card .asset-select[aria-pressed="true"]{color:var(--ui-check-mark)}
body .asset-card .asset-select[aria-pressed="true"]::before{border-color:var(--ui-check-bg);background:var(--ui-check-bg)}
/* Selection belongs to the frame and inset square, never the row's text/background. */
/* Release 152 selection frame: one shared contract for both card layouts.
   Same border stroke, same inner 2px layer, same soft outer ring, same border width.
   Each card keeps its own radius, offset and dimensions; only the frame is unified. */
body :is(.asset-card.selected,.json-reference-row.selected){border-color:var(--ui-line-focus)!important;border-width:1px;box-shadow:0 0 0 2px var(--ui-selection-shadow)}
/* Selected frames snap: styles.css .asset-card transition:.2s would otherwise
   interpolate the border/shadow swap on select (jelly). Only .selected loses its
   transition; unselected hover/press keep the existing animated feedback. */
.selected{transition:none!important}
body .json-reference-row.selected,body.dark .json-reference-row.selected{border-color:var(--ui-line-focus)!important;color:var(--ink);background:var(--surface)}
body .json-reference-row.selected::after{border-color:var(--ui-line-focus)}
body .json-reference-row .reference-select[aria-pressed="true"]::before,body.dark .json-reference-row .reference-select[aria-pressed="true"]::before{border-color:var(--ui-check-bg);background:var(--ui-check-bg)}
body .json-reference-row .reference-select[aria-pressed="true"]::after,body.dark .json-reference-row .reference-select[aria-pressed="true"]::after{color:var(--ui-check-mark)}
/* Clean-up pass: scoped settings/modal rhythm, keeping the existing brand and borders. */
.settings-card{box-shadow:none}
#adminPolicyForm>p:not(.field-help){margin:8px 0 16px;color:var(--muted);font-size:12px;line-height:1.6}
.settings-card>.security-note{padding:12px 14px}
.settings-card .info-row{gap:12px;padding-block:12px}
.settings-card .info-row b{min-width:0;text-align:right;overflow-wrap:anywhere}
.modal-head{margin-bottom:16px}
.modal-body{gap:14px}
.modal-actions{margin-top:18px;padding-top:16px}
#uploadForm .drop-zone{padding:18px}
.modal :is(.btn,.modal-close,.field-menu-trigger),.settings-card .btn{min-height:44px}
.modal .modal-close{min-width:44px;width:44px;flex-shrink:0}
@media(max-width:700px){.modal{padding:20px}.modal-actions{gap:var(--ui-action-gap)}.settings-card .btn{font-size:12px}.modal-head p{font-size:11px}.field-menu .field-menu-trigger{min-height:44px;font-size:12px}}


/* Library metadata: retain readable description and basename. */
.library-current-copy .library-description,.library-switch-copy .library-description{display:block;margin:3px 0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.library-switch-copy .library-switch-meta{display:block;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .library-name-trigger{height:auto;min-height:64px;padding-block:8px;align-items:center}

/* Information is not an action label: explicit theme tokens survive inherited
   hover/press/selected ink. Keep checkmarks, initials and navigation branded. */
body :is(.library-current-name,.library-switch-copy b,.library-picker-copy b,.library-card .list-info b,.asset-name-row b,.quick-asset-name-row b,.json-reference-copy b,.repo-meta b){color:var(--ink)}
body :is(.library-current-copy .library-description,.library-current-copy em,.library-switch-copy small,.library-picker-copy small,.library-picker-copy em,.library-card .list-info small,.library-card .list-meta,.library-card .list-meta strong,.library-card .list-meta span,.quick-asset>small,.repo-meta small){color:var(--muted)}
body .repo-quick{color:var(--ink)!important}
body .repo-quick.active{color:var(--primary)!important}
body.dark .repo-quick.active{color:var(--ui-selection-ink)!important}
body .library-name-trigger[aria-expanded="true"]{border-color:var(--ui-line-focus)!important}
body .library-name-trigger:is(:active,:focus-visible,[aria-expanded="true"]) .library-name-chevron{color:var(--ui-feedback-ink)}
@media(hover:hover){body .library-name-trigger:not(:disabled):hover .library-name-chevron{color:var(--ui-feedback-ink)}}
body :is(.library-switch-trigger,.library-switch-option,.library-picker-option,.repo-quick)[data-feedback="surface"]:focus-visible{outline:2px solid var(--ui-line-focus)!important;outline-offset:2px}

/* Hero restoration: historical blue/purple canvas, scoped to overview only. */
body .overview-hero{display:block;min-height:206px;padding:30px 33px;margin-bottom:24px;border-radius:22px;color:#fff;background:radial-gradient(140% 110% at 6% 0%,rgba(129,140,248,.38),transparent 52%),radial-gradient(120% 120% at 96% 100%,rgba(96,165,250,.26),transparent 48%),linear-gradient(155deg,#1e2a5e 0%,#2f3c86 46%,#4a63ad 78%,#5b76c4 100%);box-shadow:0 14px 30px rgba(50,64,173,.21)}
body .overview-hero::before{content:"";position:absolute;top:0;right:0;bottom:0;width:min(340px,calc(100% - 620px));pointer-events:none;z-index:0;border:0;box-shadow:none;border-radius:0;background-image:linear-gradient(rgba(255,255,255,.042) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.042) 1px,transparent 1px);background-size:34px 34px}
@media(max-width:700px){body .overview-hero::before{width:min(160px,44%);height:40px;bottom:auto;background-image:linear-gradient(rgba(255,255,255,.042) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.042) 1px,transparent 1px);background-size:34px 34px}body .overview-hero .hero-content::after{content:"";position:absolute;right:0;bottom:0;width:min(170px,47%);height:44px;pointer-events:none;z-index:0;border:0;box-shadow:none;border-radius:0;background-image:linear-gradient(rgba(255,255,255,.042) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.042) 1px,transparent 1px);background-size:34px 34px}}
body.dark .overview-hero::before,body.dark .overview-hero .hero-content::after{background-image:linear-gradient(rgba(255,255,255,.036) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.036) 1px,transparent 1px)}
body .overview-hero .hero-content{min-width:0;max-width:570px;position:relative;z-index:1}
body .overview-hero h2{margin:11px 0 12px;max-width:490px;font-size:25px;line-height:1.25;letter-spacing:-.04em;color:#fff}
body .overview-hero p{margin:0;color:#c5d0f5;font-size:12px;line-height:1.7}
body .overview-hero .hero-actions{margin-top:25px;gap:var(--ui-action-gap);flex-wrap:wrap}
body .overview-hero .btn{height:44px;min-height:44px;padding-inline:16px;font-size:13px;gap:7px;color:#f4f6ff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);box-shadow:none;--ui-feedback-ink:#fff;--ui-line-focus:#dbe3ff}
body .overview-hero .hero-actions .btn.btn-primary[data-action="upload"]{color:#273172!important;background:var(--ui-hero-upload-bg)!important;border-color:var(--ui-hero-upload-bg)!important;--ui-feedback-ink:#273172}
body .overview-hero .hero-actions .btn.btn-primary[data-action="upload"]:active:not(:disabled){color:#273172!important;border-color:var(--ui-hero-upload-active)!important;background:var(--ui-hero-upload-active)!important}
body.dark .overview-hero{background:radial-gradient(140% 110% at 6% 0%,rgba(114,128,226,.18),transparent 52%),radial-gradient(120% 120% at 96% 100%,rgba(78,140,220,.14),transparent 48%),linear-gradient(155deg,#171f42 0%,#232c5e 46%,#2f3c74 78%,#3a4d88 100%);box-shadow:none}
/* Sparkle decoration retired by user request; the circle motif carries the depth. */
@media(hover:hover){body .overview-hero .btn:not(:disabled):hover{color:#fff!important;border-color:#dbe3ff!important;background:rgba(255,255,255,.2)}body .overview-hero .hero-actions .btn.btn-primary[data-action="upload"]:not(:disabled):hover{color:#273172!important;border-color:var(--ui-hero-upload-hover)!important;background:var(--ui-hero-upload-hover)!important}}
@media(max-width:700px){body .overview-hero{padding:25px 22px}body .overview-hero h2{font-size:21px}body .overview-hero .hero-actions{flex-wrap:wrap}body .overview-hero .btn{flex:0 0 auto;min-width:0;padding-inline:16px;font-size:12px;gap:6px}}

/* Authorized soft-colour palette: surfaces stay theme-local, never global opacity. */
:root{--ui-danger-ink:#d84f67;--ui-danger-line:#f0b5c0;--ui-danger-bg:#fff7f8;--ui-hero-upload-bg:#f7f8fc;--ui-hero-upload-hover:#eef1f7;--ui-hero-upload-active:#e6ebf4}
body.dark{--ui-danger-ink:#e5a0ad;--ui-danger-line:#70434d;--ui-danger-bg:#30212b;--ui-hero-upload-bg:#d6ddea;--ui-hero-upload-hover:#cbd5e5;--ui-hero-upload-active:#c0ccdf}
body.dark .overview-hero,body.dark .overview-hero h2{color:#e4e8f0}
body.dark .overview-hero .btn{--ui-line-focus:#cbd5e5}
/* The four legacy pale chips are the only bright surface outliers in dark stats. */
body.dark .stat-card:nth-child(1) .stat-icon{color:#b2bbef;background:#293451}
body.dark .stat-card:nth-child(2) .stat-icon{color:#dfb695;background:#3a3040}
body.dark .stat-card:nth-child(3) .stat-icon{color:#91c5c8;background:#203b45}
body.dark .stat-card:nth-child(4) .stat-icon{color:#a0c6ae;background:#293c3c}

/* Dark JSON selection shares the unified release-152 frame: same focus stroke as
   the image cards, keyboard focus retained. No divergent softer-blue literal. */
body.dark .json-reference-row.selected:not(:focus-visible){border-color:var(--ui-line-focus)!important}
body.dark .json-reference-row.selected:not(:focus-visible)::after{border-color:var(--ui-line-focus)}

/* Round 2 (release 120 preview): touch flash hardening, switch-option selection frame, stale-frame guards.
   All additions are hover-gated or hover-free; no new :hover selector escapes a hover-capable media query. */
@media(hover:none){
body .asset-card{transform:none!important;box-shadow:none!important;transition:none!important}
body .asset-card.selected{box-shadow:0 0 0 2px var(--ui-selection-shadow)!important}
body .asset-card:active,body .asset-card.selected:active{filter:none!important;outline:none!important}
body :is(.asset-select,.reference-select){transition:none!important;transform:none!important;filter:none!important}
body .library-switch-option[data-feedback="surface"]:active,body .library-switch-option:focus-visible{outline:none!important}
body .library-switch-option{border-color:transparent!important}
}
/* Library switch selection: the active option carries the same theme frame and tint as image cards;
   the check slot is part of the frame, unselected options stay borderless, hit area stays 54px/44px. */
body .library-switch-option{border:1px solid transparent!important}
body .library-switch-option[aria-checked=true]{color:var(--ui-selection-ink);border-color:var(--ui-line-focus)!important;background:var(--ui-selection-bg);box-shadow:0 0 0 2px var(--ui-selection-shadow)}
body .library-switch-option[aria-checked=true]:focus-visible{outline:none!important}

/* Centered library dialog: only internal list rhythm and hit targets change. */
body .library-switch-modal-body{gap:10px;min-height:0;overflow:visible}
body .library-switch-modal-body .library-switch-list{gap:10px;max-height:min(52vh,440px);overflow:auto;overscroll-behavior:contain;padding:3px}
body .library-switch-modal-body .library-switch-row{gap:8px;padding:0;min-width:0;align-items:center}
body .library-switch-modal-body .library-switch-option{height:84px;min-height:84px;max-height:84px;padding:6px 12px;gap:10px;border-radius:10px;box-sizing:border-box}
body .library-switch-modal-body .library-switch-option[aria-checked=true]{box-shadow:none;background:var(--ui-library-selected-bg,#fafaff)}
body.dark .library-switch-modal-body .library-switch-option[aria-checked=true]{--ui-library-selected-bg:#222d43;background:#222d43}
body .library-switch-modal-body .library-switch-check{flex:0 0 16px;width:16px;color:var(--ui-selection-ink)}
body .library-switch-modal-body .library-switch-copy{min-width:0;overflow:hidden}
body .library-switch-modal-body .library-switch-copy b{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
body .library-switch-modal-body .library-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:1px 0;color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
body .library-switch-modal-body .library-switch-meta{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;color:var(--muted);line-height:1.4}
body .library-switch-modal-body .library-switch-delete.ui-button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
body .library-switch-modal-body .library-picker-create{margin-top:0;min-height:44px;flex-shrink:0}
/* Small screens keep the fixed action row: no wrapped bulk action below the toolbar.
   390px keeps the accepted 80px select column and 14px bulk padding unchanged. */
@media(max-width:360px){
 body :is(.assets-toolbar,.json-reference-toolbar),body.dark :is(.assets-toolbar,.json-reference-toolbar){grid-template-columns:64px 44px minmax(0,1fr)}
 :is(.assets-toolbar,.json-reference-toolbar) [data-action^="select-all"]{width:64px}
 :is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions){flex-wrap:nowrap}
 :is(.assets-toolbar,.json-reference-toolbar) :is(.asset-bulk-actions,.page-bulk-actions) button{padding-inline:6px;flex-shrink:0}
}

/* Text/list danger entries share one ink, no pointer paint; keyboard focus stays intact. */
body :is(.library-switch-delete,.library-picker-delete,.group-delete-link){color:var(--ui-danger-ink)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body :is(.library-switch-delete,.library-picker-delete,.group-delete-link):active,
body :is(.library-switch-delete,.library-picker-delete,.group-delete-link):focus{color:var(--ui-danger-ink)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
@media(hover:hover){body :is(.library-switch-delete,.library-picker-delete,.group-delete-link):hover{color:var(--ui-danger-ink)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}}
body :is(.library-switch-delete,.library-picker-delete,.group-delete-link):focus:not(:focus-visible){outline:none!important}
/* Image bulk toolbar: equal 4px gaps inside each pair, at least 12px between pairs.
   Right pair stays end-aligned instead of distributing four controls evenly. */
body .assets-toolbar .asset-bulk-actions{margin-left:8px}
/* Picker delete is a readable text danger entry, with the same 12px/44px target. */
body .library-switch-modal-body .library-switch-delete.ui-button{font-size:12px;font-weight:600}

/* Adjacent text actions, not icon/label or list-row spacing. */
body :is(.auth-head-actions,.tile-actions,.row-actions,.json-workspace-actions,.section-actions,.repo-settings-actions,.repo-actions,.repository-actions,.asset-detail-actions,.icon-detail-actions,.library-picker-actions),body .groupManageForm .modal-actions{gap:var(--ui-action-gap)!important}
body .settings-grid>.settings-card:first-child>.btn{margin-inline-end:var(--ui-action-gap)}

/* Settings typography (release 122): stop WebKit inflation locally; preserve pinch zoom. */
.settings-grid{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.settings-grid .settings-card h3{font-size:clamp(.875rem, .8125rem + .25vw, .9375rem);line-height:1.4}
.settings-grid .settings-card>p{font-size:clamp(.71875rem, .65625rem + .25vw, .75rem);line-height:1.6;overflow-wrap:anywhere}
.settings-grid .form-field label{font-size:clamp(.71875rem, .65625rem + .25vw, .75rem);line-height:1.4}
.settings-grid .form-field :is(input,select){min-width:0;width:100%;font-size:clamp(.8125rem, .75rem + .25vw, .875rem);line-height:1.4}
.settings-grid :is(.field-help,.security-note){font-size:clamp(.71875rem, .65625rem + .25vw, .75rem);line-height:1.6;overflow-wrap:anywhere}
.settings-grid :is(.info-list,.info-row,.account-panel>div:last-child){min-width:0}
.settings-grid .info-row{font-size:clamp(.71875rem, .65625rem + .25vw, .75rem);line-height:1.5}
.settings-grid .info-row>span{flex-shrink:0}
.settings-grid .info-row>b{white-space:normal;overflow-wrap:anywhere}
.settings-grid .account-panel b{font-size:clamp(.8125rem, .75rem + .25vw, .875rem);line-height:1.4;overflow-wrap:anywhere}
.settings-grid .account-panel small{font-size:clamp(.71875rem, .65625rem + .25vw, .75rem);line-height:1.5;overflow-wrap:anywhere}
/* Identity card only: one account/repository divider, not a ruled table. */
.settings-grid>.settings-card:nth-child(2)>.info-list{gap:4px;padding:12px 0 0;border-bottom:0}
.settings-grid>.settings-card:nth-child(2) .info-row{border-bottom:0;padding-block:8px}
.settings-grid>.settings-card:nth-child(2)>.security-note{padding:0;margin-top:16px;border:0;border-radius:0;background:transparent;color:var(--muted)}

/* Release 129: three local card refinements; preserve typography and hit targets. */
body .quick-asset .quick-asset-name-row{gap:4px}
body .quick-asset-name-row small{flex:0 1 auto;max-width:38%;min-width:0;margin:0;font-size:10px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Reclaim real layout padding, not a translated checkbox or overlapping hit area. */
body .asset-card .asset-details{padding-inline:0}
body .json-reference-list,body.dark .json-reference-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:299px){body .json-reference-list,body.dark .json-reference-list{grid-template-columns:minmax(0,1fr)}}
body .json-reference-row{min-height:78px;grid-template-columns:44px 66px minmax(0,1fr)}
body .json-reference-thumb{width:60px;height:60px}
@media(max-width:700px){
 body .json-reference-row{min-height:66px;grid-template-columns:44px 36px minmax(0,1fr)}
 body .json-reference-thumb{width:36px;height:36px}
}
/* Release 131: names use all remaining space; only the secondary group is capped.
   Keep each view's typography and controls: differing structures need not truncate
   at an artificially identical width or character count. */
body .quick-asset .quick-asset-name-row{padding-inline:0 2px;gap:2px}
body .quick-asset-name-row small{order:-1;flex:0 1 auto;max-width:28%;box-sizing:border-box;padding:0 2px;border:1px solid #dddde9;border-radius:4px;background:#f0eff6}
body.dark .quick-asset-name-row small{border-color:#454559;background:#2c2c3d;color:var(--muted)}
body :is(.asset-name-row,.quick-asset-name-row) b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){
 body .json-reference-copy{padding-inline:1px}
}

/* Release 142: JSON-only inset ratio and independent, in-card selection target. */
body .json-reference-row{grid-template-columns:44px 60px minmax(0,1fr);column-gap:0!important}
body .json-reference-thumb{width:60px;height:60px;margin-inline-start:0;padding:0;position:relative}
body .json-reference-thumb img{position:absolute;left:14%;top:14%;width:72%;height:72%;max-width:72%;max-height:72%;object-fit:contain;object-position:center}
body .json-reference-row::after{inset:0}
body .json-reference-copy{padding-inline:5px 0}
@media(max-width:700px){
 body .json-reference-list,body.dark .json-reference-list{column-gap:6px}
 body .json-reference-row{grid-template-columns:44px 40px minmax(0,1fr);min-height:66px;padding-inline:0!important}
 body .json-reference-thumb{width:40px;height:40px}
 body .json-reference-copy{padding-inline:5px 0}
}

/* Release 145: approved lightweight recent group badge. */
body .quick-asset .quick-asset-name-row{gap:4px}
body .quick-asset-name-row small{border-color:transparent;border-radius:3px;background:#f5f4f8}
body.dark .quick-asset-name-row small{border-color:transparent;background:#282832;color:var(--muted)}

/* Release 147: approved image-corner anchors; preserve existing image and card dimensions. */
body .quick-asset-image small{position:absolute;left:6px;top:6px;max-width:60%;box-sizing:border-box;margin:0;padding:0 2px;font-size:10px;line-height:13px;color:#737f94;border:1px solid transparent;border-radius:3px;background:rgba(110,105,145,.10);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;z-index:2}
body.dark .quick-asset-image small{background:rgba(12,15,25,.35);color:#a5b0c2}
body .quick-asset .quick-asset-name-row{min-height:15px}
body .quick-asset-name-row b{width:100%}
body .asset-card .asset-name-row{min-height:44px}
body .asset-card .asset-preview .asset-select{position:absolute;left:0;top:0;z-index:2;display:grid;place-items:center}
body .asset-card .asset-preview .asset-select::before{inset:auto;left:6px;top:6px;width:22px;height:22px;box-sizing:border-box}
body .asset-card .asset-preview .asset-select>.ui-icon{position:absolute;left:6px;top:6px;width:22px;height:22px}

/* Release 149: restore approved name-row flow; keep release148 palette and 22px mark. */
body .quick-asset-name-row small{position:static;inset:auto;z-index:auto;pointer-events:auto;order:-1;flex:0 1 auto;max-width:28%;box-sizing:border-box;margin:0;padding:0 2px;font-size:10px;line-height:13px;color:#737f94;border:1px solid transparent;border-radius:3px;background:rgba(110,105,145,.10);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.dark .quick-asset-name-row small{background:rgba(12,15,25,.35);color:#a5b0c2}
body .quick-asset-name-row b{width:auto;flex:1;min-width:0}
body .asset-card .asset-name-row{gap:0;min-height:44px}
body .asset-card .asset-name-row .asset-select{position:relative;inset:auto;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}
body .asset-card .asset-name-row .asset-select::before{inset:auto;left:11px;top:11px;width:22px;height:22px;box-sizing:border-box}
body .asset-card .asset-name-row .asset-select>.ui-icon{position:relative;inset:auto;width:22px;height:22px}

/* Release 157: selected JSON uses only its shared main frame; keyboard focus stays. */
body .json-reference-row.selected:not(:focus-visible)::after,
body.dark .json-reference-row.selected:not(:focus-visible)::after{border-color:transparent}

/* Release 150: intrinsic group-first wrapping; filename alone may truncate. */
body .quick-asset .quick-asset-name-row{align-items:baseline;gap:4px;row-gap:2px;flex-wrap:wrap}
body .quick-asset-name-row small{flex:0 0 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
body .quick-asset-name-row b{flex:1 1 18px;min-width:0}

/* Release 158: approved single row; primary name left, auxiliary group right. */
body .quick-asset .quick-asset-name-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:4px;row-gap:0;min-height:15px;flex-wrap:nowrap;padding-inline:0 2px}
body .quick-asset-name-row b{order:1;width:auto;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .quick-asset-name-row small{order:2;position:static;inset:auto;z-index:auto;display:block;width:100%;min-width:0;max-width:none;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:#737f94;font-size:10px;line-height:13px;text-align:right;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}
body.dark .quick-asset-name-row small{background:transparent;border:0;color:#a5b0c2}
@media(max-width:700px){body .quick-asset .quick-asset-name-row{grid-template-columns:minmax(0,1fr) 30px;gap:3px}}
@media(max-width:359px){body .quick-asset .quick-asset-name-row{grid-template-columns:minmax(0,1fr) 27px;gap:2px;padding-inline:0}}

/* Release 159: recent overview only; horizontal gap and edge-aligned names. */
@media(max-width:700px){body .quick-assets-grid{column-gap:9px}}
body .quick-asset .quick-asset-name-row{padding-inline:0}

/* Release 160: match Assets' resting selection stroke without changing either shape.
   Keyboard JSON focus keeps its existing distinct inset ring. */
body .json-reference-row.selected:not(:focus-visible){outline:2px solid var(--ui-line-focus);outline-offset:0;box-shadow:0 0 0 2px var(--ui-selection-shadow)}
/* Selected sidebar only: retain gradient, white ink, hit area and keyboard outline. */
body .sidebar .nav-item.active,body.dark .sidebar .nav-item.active{box-shadow:none!important;filter:none!important;color:#fff!important}
