/* Instant tooltip */
.fold-tip{position:fixed;z-index:3000;max-width:260px;padding:8px 10px;border-radius:9px;background:#1f1f29;color:#f3f2f7;font:12px/1.4 var(--font-ui,Inter,system-ui,sans-serif);box-shadow:0 6px 20px #0000002e;pointer-events:none;display:grid;gap:2px}
.fold-tip[hidden]{display:none}
.fold-tip b{font-weight:600;color:#fff}
.fold-tip span{color:#c9c8d6}

/* Images tab: resolution badge */
.project-asset-card{position:relative}
.project-asset-card .asset-res{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:2px 6px 2px 2px;border-radius:999px;font:600 11px/1 var(--font-ui,Inter,sans-serif);color:#8a8a96;cursor:help;flex:none}
.project-asset-card .asset-res i{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;background:#ecebf1;color:#777}
.project-asset-card .asset-res em{font-style:normal}
.project-asset-card .asset-res.is-low{color:#a8531a;background:#fdf0e6}
.project-asset-card .asset-res.is-low i{background:#d9772b;color:#fff}
.project-asset-card .asset-res:not(.is-low){padding:2px}
/* List view: badge sits between the name and the bin */
.project-asset-grid.asset-list .project-asset-card{grid-template-columns:44px minmax(0,1fr) auto 28px!important}
.project-asset-grid.asset-list .project-asset-card .asset-res{grid-column:3;grid-row:1}
.project-asset-grid.asset-list .project-asset-trash{grid-column:4!important}
/* Thumbnail view: only the round "!" on the image corner, like the canvas marker */
.project-asset-grid:not(.asset-list) .project-asset-card .asset-res{position:absolute;top:6px;left:6px;margin:0;padding:0;background:none}
.project-asset-grid:not(.asset-list) .project-asset-card .asset-res em{display:none}
.project-asset-grid:not(.asset-list) .project-asset-card .asset-res:not(.is-low){display:none}

/* Image background & colour tools */
.pro-inspector .img-adjust h3{margin:0 0 8px!important}
.pro-inspector .img-adjust h3:not(:first-of-type){margin-top:14px!important}
.pro-inspector .img-adjust .ia-modes{display:grid!important;grid-template-columns:.7fr 1.1fr 1.4fr}
.pro-inspector .img-adjust .ia-modes button{font-size:12px!important;white-space:nowrap;padding:0 4px!important}
.pro-inspector .img-adjust .ia-hint{margin:6px 0 0!important}
.pro-inspector .img-adjust .ia-colour{display:flex;align-items:center;gap:10px}
.pro-inspector .img-adjust .ia-invert{display:inline-flex!important;align-items:center;gap:6px;height:32px!important;padding:0 10px!important;border-radius:8px!important;border:1px solid transparent!important;background:var(--field,#f4f4f4)!important;font-size:12px!important;color:#444!important;flex:none}
.pro-inspector .img-adjust .ia-invert svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.pro-inspector .img-adjust .ia-invert.on{background:var(--accent-soft,#f0efff)!important;border-color:#c9c4fb!important;color:var(--accent,#5e67e6)!important}
.pro-inspector .img-adjust .ia-tints{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pro-inspector .img-adjust .ia-tints>button,.pro-inspector .img-adjust .ia-custom{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;margin:0!important;border-radius:50%!important;border:1px solid #0000001f!important;background:var(--sw,#fff)!important;position:relative;display:grid;place-items:center;cursor:pointer}
.pro-inspector .img-adjust .ia-tints>button.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent,#5e67e6)}
.pro-inspector .img-adjust .ia-none{background:#fff!important;color:#999}
.pro-inspector .img-adjust .ia-none svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.pro-inspector .img-adjust .ia-custom{border-style:dashed!important;color:#777;font-size:14px;overflow:hidden}
.pro-inspector .img-adjust .ia-custom input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.pro-inspector .img-adjust .ia-reset{margin-top:12px;padding:0!important;height:auto!important;min-height:0!important;border:0!important;background:none!important;color:var(--accent,#5e67e6)!important;font-size:12px!important;text-decoration:underline;text-underline-offset:2px}
.pro-inspector .img-adjust.is-working{opacity:.55;pointer-events:none;cursor:progress}
.pro-inspector .ia-suggest{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:8px 8px 8px 10px;border-radius:10px;background:#f2f1ff;font-size:12px;color:#454066}
.pro-inspector .ia-suggest button{flex:none;height:28px!important;min-height:28px!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:var(--accent,#5e67e6)!important;color:#fff!important;font-size:12px!important}
/* Transparent images: show a soft checkerboard behind them in the asset list */
.project-asset-card img{background:conic-gradient(#eee 25%,#fff 0 50%,#eee 0 75%,#fff 0) 0 0/10px 10px}
/* Shape tiles can be dragged onto the box */
.pro-inspector [data-iv2-shape][draggable=true]{cursor:grab}
.pro-inspector [data-iv2-shape][draggable=true]:active{cursor:grabbing}
