/* Calm background for the glass looks (6, 7, 8): no background art behind the panels (the big flame and the per-step
   shapes are gone; the step tracker's burning flame is the one logo moment), just graphite with a soft cool glow at
   the top behind the tracker and a very fine grain so the dark never bands. */
:root:is([data-look="6"], [data-look="7"], [data-look="8"]) #run-bg { display: none !important; }
html:root:is([data-look="6"], [data-look="7"], [data-look="8"]) body { background:
  radial-gradient(1100px 420px at 58% -120px, rgba(127,170,225,.11), transparent 70%),
  radial-gradient(900px 600px at 50% 120%, rgba(20,28,40,.55), transparent 70%),
  linear-gradient(180deg, #10141b, #0c0f14 70%) fixed !important; }
html:root:is([data-look="6"], [data-look="7"], [data-look="8"]) body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ===== Clean icons + badges (all looks, pages and pop-ups): no coloured tiles behind icons, the icon carries the colour;
   status pills are quiet glass badges, colour only in the text and a small dot ===== */
html:root :is(.hl-ic, .ha-mic, .bun-ic, .imp-mk-ic, .ag-ic, .stat-ic, .tpl-emo) {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html:root :is(.hl-ic, .ha-mic, .bun-ic, .imp-mk-ic, .ag-ic) { width: auto !important; height: auto !important; }
html:root .tpl-emo:not(.sm) { width: 30px; height: 30px; }
html:root .check.ok .ci { background: none !important; border-color: transparent !important; color: var(--up) !important; }
html:root .st { background: color-mix(in srgb, var(--tx, #fff) 5%, transparent) !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:root .st::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
html:root .st-closed::before { box-shadow: none; opacity: .7; }
html:root .tag { background: color-mix(in srgb, var(--tx, #fff) 5%, transparent) !important; border: 0 !important; box-shadow: none !important; }
html:root .ts-name .st::before { display: none; }   /* this one already writes "● Live" in its text */
html:root .ha-doc { border-color: color-mix(in srgb, var(--tx, #fff) 10%, transparent) !important; background: color-mix(in srgb, var(--tx, #fff) 4%, transparent); }
html:root :is(.wv-st, .cln-st, .lv-ours, .lv-out) { background: color-mix(in srgb, var(--tx, #fff) 5%, transparent) !important; border: 0 !important; box-shadow: none !important; }   /* wallet / clone / trade badges: colour in the text only */

/* Launch page cards: no tinted icon tiles either, just the icon (same rule as the rest of the app) */
html:root[data-look="9"] .lc-ic { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; padding: 0 !important; color: #dbe6f3; }

/* ===== Clone a launch tile: two frosted $RUN mini-cards. Every track is minmax(0, …) so the nowrap header and the
   button's own `.lc-opt em/span` rules can't widen a card past 222px; bars always end inside the card's padding.
   Badges are quiet glass pills like the sidebar Draft/Live: neutral fill, light text, colour only in a small dot/check. ===== */
html:root .ill-cln .cl-card { width: 222px; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 14px 16px; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025) 46%, rgba(255,255,255,.02)), rgba(18,22,29,.72);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 0 0 1px rgba(255,255,255,.015), 0 22px 44px -22px rgba(0,0,0,.85); }
html:root .ill-cln .cl-h { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; min-width: 0; }
html:root .ill-cln .cl-h { row-gap: 1px; align-items: center; }
html:root .ill-cln .cl-h > span:nth-child(2) { display: contents; }   /* name + subtitle become header cells: the subtitle runs under the badge, no ellipsis */
html:root .ill-cln .cl-av { grid-row: 1 / 3; }
html:root .ill-cln .cl-h b { grid-column: 2; grid-row: 1; min-width: 0; }
html:root .ill-cln .cl-h small { grid-column: 2 / 4; grid-row: 2; min-width: 0; }
html:root .ill-cln .cl-tag { grid-column: 3; grid-row: 1; justify-self: end; }
html:root .ill-cln .cl-h b { font-size: 13.5px; color: var(--tx); }
html:root .ill-cln .cl-h small { overflow: hidden; text-overflow: ellipsis; color: var(--tx3); }
html:root .ill-cln .cl-av { background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); color: var(--tx); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
html:root .ill-cln .cl-r { grid-template-columns: 14px 84px minmax(0, 1fr); gap: 8px; min-width: 0; }
html:root .ill-cln .cl-r > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root .ill-cln .cl-r > i { justify-self: start; max-width: 100%; width: calc(100% - var(--i) * 13%); height: 4px;
  background: linear-gradient(90deg, rgba(225,236,248,.75), rgba(225,236,248,.18)); box-shadow: 0 0 0 1px rgba(255,255,255,.03); }
html:root .ill-cln .cl-tag { display: inline-flex; align-items: center; gap: 5px; font: 600 9.5px/1 var(--f); letter-spacing: .02em; white-space: nowrap;
  padding: 4px 8px 4px 7px; border-radius: 99px; color: #dfe6ee; border: 0;
  background: color-mix(in srgb, var(--tx, #fff) 7%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:root .ill-cln .cl-tag:not(.cl-new)::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #5fd9a6; box-shadow: 0 0 6px rgba(95,217,166,.6); }
html:root .ill-cln .cl-new .i { width: 10px; height: 10px; color: var(--ac-ice, #e6f1fc); filter: drop-shadow(0 0 4px rgba(201,220,242,.5)); }
html:root .ill-cln .cl-beam { width: 234px; }
/* the cards are 222 wide now: the animation spans x -6..380 of the 340x280 stage, so centre and scale that box */
html:root .lchoose .ill-cln .cl-stage { --s: min(1, tan(atan2(calc(100cqw - 16px), 386px)), tan(atan2(calc(100cqh - 16px), 234px))); transform: scale(var(--s)) translate(-17px, 17px); }
@media (prefers-reduced-motion: reduce) { html:root .ill-cln .cl-dst { transform: translate(122px, -6px); } }

/* Clone card: the $RUN avatar is the Runner flame on a small glass disc, like the app's own mark */
html:root[data-look] .cl-av.cl-av-mk { display: grid; place-items: center; padding: 0 !important; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, rgba(240,247,255,.14), rgba(143,179,217,.05) 60%, rgba(14,18,24,.6)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(201,220,242,.14), 0 2px 6px rgba(0,0,0,.35) !important; color: transparent !important; }
html:root[data-look] .cl-av.cl-av-mk img { width: 72%; height: 72%; object-fit: contain; translate: 1px 0; filter: drop-shadow(0 0 3px rgba(127,184,255,.35)); }
/* Clone card mark, take 2: no disc — just the flame, a touch larger, optically centred (its blades lean left inside the
   square, so it's nudged right ~4%), with a soft cool glow so it sits on the card like the sidebar mark. */
html:root[data-look] .cl-av.cl-av-mk { background: none !important; box-shadow: none !important; border: 0 !important; overflow: visible; }
html:root[data-look] .cl-av.cl-av-mk img { width: 100%; height: 100%; translate: 4% -2%; filter: drop-shadow(0 0 5px rgba(127,184,255,.35)) drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
/* Clone-by-address row: input + a matching frosted glass button, same height, one clean unit */
html:root[data-look] .ql-clone { align-items: stretch; gap: 8px; }
html:root[data-look] .ql-clone .inp { min-height: 40px; }
html:root[data-look] .ql-clone .ql-cl-btn { height: auto !important; min-height: 40px; padding: 0 16px 0 14px !important; gap: 7px; font-weight: 500; font-size: 13px; flex: none; }
html:root[data-look] .ql-clone .ql-cl-btn .i { color: #a9c3e2; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
html:root[data-look] .ql-clone .ql-cl-btn:hover .i { transform: translateY(-1px); color: #dfeaf7; }
