/* AMAADOR studio Pro shell r2 "premium" (2026-11-27). Apple-like: aurora ground, glass panes, colour tiles, rings, bento.
   Dark follows html[data-theme=dark]. The studio's own colour (--c1 on <main>) is the brand accent. */
.spr-app {
  --spr-ac: var(--c1, #ff9500);
  --spr-blue: #007aff; --spr-indigo: #5856d6; --spr-purple: #af52de; --spr-pink: #ff2d55; --spr-red: #ff3b30; --spr-orange: #ff9500;
  --spr-yellow: #ffcc00; --spr-green: #34c759; --spr-mint: #00c7be; --spr-teal: #30b0c7; --spr-cyan: #32ade6;
  --spr-ok: var(--spr-green); --spr-warn: #c27c00; --spr-err: var(--spr-red);
  --spr-card: #ffffff; --spr-card2: rgba(255, 255, 255, .72); --spr-pane: rgba(255, 255, 255, .55); --spr-rail: rgba(246, 246, 250, .62);
  --spr-tx: #1d1d1f; --spr-mu: #6e6e73; --spr-mu2: #8e8e93; --spr-ln: rgba(0, 0, 0, .08); --spr-ln2: rgba(0, 0, 0, .14); --spr-fill: rgba(118, 118, 128, .12);
  --spr-au1: #ffd3a5; --spr-au2: #fd6585; --spr-au3: #8d8dee; --spr-au4: #86fde8;
  --spr-sh: 0 1px 1px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --spr-sh-lg: 0 30px 80px rgba(20, 20, 60, .16), 0 4px 14px rgba(0, 0, 0, .06);
  --spr-f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --spr-fd: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  position: relative; isolation: isolate; margin: 0 0 32px; scroll-margin-top: 92px;
  color: var(--spr-tx); font-family: var(--spr-f); font-size: 14px; line-height: 1.45; letter-spacing: -.005em; text-align: start;
  border-radius: 26px; border: 1px solid var(--spr-ln2); box-shadow: var(--spr-sh-lg); overflow: clip;
  background:
    radial-gradient(60% 55% at 8% 0%, color-mix(in srgb, var(--spr-au1) 80%, transparent), transparent 70%),
    radial-gradient(55% 60% at 100% 12%, color-mix(in srgb, var(--spr-au2) 45%, transparent), transparent 70%),
    radial-gradient(60% 60% at 30% 100%, color-mix(in srgb, var(--spr-au3) 45%, transparent), transparent 70%),
    radial-gradient(50% 50% at 92% 95%, color-mix(in srgb, var(--spr-au4) 55%, transparent), transparent 70%),
    #f4f3f8;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html[data-theme=dark] .spr-app {
  --spr-blue: #0a84ff; --spr-indigo: #5e5ce6; --spr-purple: #bf5af2; --spr-pink: #ff375f; --spr-red: #ff453a; --spr-orange: #ff9f0a;
  --spr-yellow: #ffd60a; --spr-green: #30d158; --spr-mint: #63e6e2; --spr-teal: #40c8e0; --spr-cyan: #64d2ff; --spr-warn: #ffb340;
  --spr-card: #1c1c1e; --spr-card2: rgba(44, 44, 46, .72); --spr-pane: rgba(22, 22, 24, .62); --spr-rail: rgba(30, 30, 34, .66);
  --spr-tx: #f5f5f7; --spr-mu: #a1a1a6; --spr-mu2: #8e8e93; --spr-ln: rgba(255, 255, 255, .08); --spr-ln2: rgba(255, 255, 255, .15); --spr-fill: rgba(118, 118, 128, .24);
  --spr-au1: #3a1c71; --spr-au2: #b4475a; --spr-au3: #283c86; --spr-au4: #0f7d73;
  --spr-sh: 0 1px 1px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --spr-sh-lg: 0 30px 80px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .4);
  background:
    radial-gradient(60% 55% at 8% 0%, color-mix(in srgb, var(--spr-au1) 85%, transparent), transparent 70%),
    radial-gradient(55% 60% at 100% 12%, color-mix(in srgb, var(--spr-au2) 50%, transparent), transparent 70%),
    radial-gradient(60% 60% at 30% 100%, color-mix(in srgb, var(--spr-au3) 60%, transparent), transparent 70%),
    radial-gradient(50% 50% at 92% 95%, color-mix(in srgb, var(--spr-au4) 50%, transparent), transparent 70%),
    #0b0b0e;
  color-scheme: dark;
}
.spr-app *, .spr-app *::before, .spr-app *::after { box-sizing: border-box; }
.spr-app button, .spr-app input, .spr-app select { font-family: inherit; letter-spacing: inherit; }
.spr-app :focus-visible { outline: 3px solid color-mix(in srgb, var(--spr-blue) 55%, transparent); outline-offset: 2px; }
.spr-app [hidden] { display: none !important; }
.spr-ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spr-mu { color: var(--spr-mu); font-size: 13px; margin: 0; }
body.spr-on .r2-sx-steps { display: none !important; }

/* colour tiles (iOS-style squircles) */
.spr-tile { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .14); }
.spr-tile .spr-ic { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; }
.spr-tile.sm { width: 22px; height: 22px; border-radius: 6px; }
.spr-tile.sm .spr-ic { width: 13px; height: 13px; }
.spr-tile.lg { width: 48px; height: 48px; border-radius: 13px; }
.spr-tile.lg .spr-ic { width: 26px; height: 26px; }
.t-blue { background: linear-gradient(180deg, #4facfe, #007aff); } .t-indigo { background: linear-gradient(180deg, #8787ff, #5856d6); }
.t-purple { background: linear-gradient(180deg, #d68cff, #af52de); } .t-pink { background: linear-gradient(180deg, #ff6b8b, #ff2d55); }
.t-orange { background: linear-gradient(180deg, #ffb347, #ff9500); } .t-green { background: linear-gradient(180deg, #5ee27f, #28b44a); }
.t-teal { background: linear-gradient(180deg, #5fd3e6, #30a9c7); } .t-red { background: linear-gradient(180deg, #ff7a70, #ff3b30); }
.t-yellow { background: linear-gradient(180deg, #ffd84d, #ffb800); } .t-mint { background: linear-gradient(180deg, #5cf0e6, #00b8b0); }
.t-gray { background: linear-gradient(180deg, #a5a5ad, #7c7c84); }

/* top bar */
.spr-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--spr-ln); background: var(--spr-pane); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); }
.spr-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; font-family: var(--spr-fd); font-size: 15px; letter-spacing: -.01em; }
.spr-lights { display: inline-flex; gap: 7px; margin-inline-end: 6px; }
.spr-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.spr-lights i:nth-child(2) { background: #febc2e; } .spr-lights i:nth-child(3) { background: #28c840; }
.spr-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(160deg, color-mix(in srgb, var(--spr-ac) 70%, #fff), var(--spr-ac)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px color-mix(in srgb, var(--spr-ac) 40%, transparent); }
.spr-logo .spr-ic { stroke: #fff; }
.spr-bt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch; }
.spr-pro { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: #fff; background: linear-gradient(90deg, #ff9500, #ff2d55, #af52de); letter-spacing: .02em; }
.spr-search { position: relative; flex: 0 1 260px; min-width: 0; margin-inline-start: auto; }
.spr-search label { display: flex; align-items: center; gap: 7px; height: 32px; border-radius: 9px; background: var(--spr-fill); padding: 0 10px; color: var(--spr-mu); border: 0; }
.spr-search label:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--spr-blue) 35%, transparent); }
.spr-search label input, .spr-search label input:focus { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: 100% !important; border-radius: 0 !important; outline: 0 !important; min-height: 0 !important; color: var(--spr-tx); font-size: 13px; }
.spr-search kbd { font-family: inherit; font-size: 11px; color: var(--spr-mu2); border: 0; background: none; }
.spr-hits { position: absolute; z-index: 30; inset-inline: 0; top: 38px; list-style: none; margin: 0; padding: 6px; background: var(--spr-card2); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); border: 1px solid var(--spr-ln2); border-radius: 14px; box-shadow: var(--spr-sh-lg); max-height: 340px; overflow: auto; min-width: 260px; }
.spr-hits li.spr-mu { padding: 8px 10px; }
.spr-hits button { width: 100%; border: 0; background: transparent; text-align: start; padding: 8px 10px; border-radius: 9px; cursor: pointer; display: grid; color: var(--spr-tx); }
.spr-hits button:hover, .spr-hits button:focus-visible { background: var(--spr-blue); color: #fff; }
.spr-hits button:hover small, .spr-hits button:focus-visible small { color: rgba(255, 255, 255, .8); }
.spr-hits small { color: var(--spr-mu); font-size: 12px; }
.spr-saved { font-size: 12px; color: var(--spr-mu); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.spr-saved.on { opacity: 1; }
.spr-saved.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--spr-green); margin-inline-end: 6px; vertical-align: 1px; }
.spr-tb { display: flex; gap: 8px; flex-wrap: wrap; }
.spr-btn { height: 32px; border-radius: 99px; border: 0; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; background: var(--spr-fill); color: var(--spr-tx); transition: filter .15s, transform .15s; }
.spr-btn:hover { filter: brightness(.96); }
.spr-btn:active { transform: scale(.97); }
.spr-btn.spr-pri { background: var(--spr-blue); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--spr-blue) 35%, transparent); }
.spr-btn.spr-grad { background: linear-gradient(135deg, #ff9500, #ff2d55); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, #ff2d55 35%, transparent); }
.spr-btn.spr-sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.spr-confirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; background: color-mix(in srgb, var(--spr-orange) 16%, var(--spr-card)); border-bottom: 1px solid var(--spr-ln); font-weight: 600; position: relative; z-index: 3; }
.spr-confirm span { flex: 1 1 240px; }

/* body: glass rail + stage */
.spr-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 660px; }
.spr-rail { background: var(--spr-rail); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border-inline-end: 1px solid var(--spr-ln); padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; position: sticky; top: 0; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
.spr-me { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 14px; background: var(--spr-card2); border: 1px solid var(--spr-ln); margin-bottom: 8px; min-width: 0; }
.spr-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 14px; background: linear-gradient(135deg, #ff9500, #ff2d55); box-shadow: 0 2px 8px rgba(255, 45, 85, .3); }
.spr-me div { min-width: 0; }
.spr-me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spr-me small { display: block; color: var(--spr-mu); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spr-nav { display: grid; gap: 1px; }
.spr-nav h5 { margin: 0; padding: 12px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--spr-mu2); letter-spacing: 0; text-transform: none; }
.spr-nb { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 5px 8px; border-radius: 10px; cursor: pointer; text-align: start; font-size: 13.5px; font-weight: 500; color: var(--spr-tx); line-height: 1.25; min-height: 38px; }
.spr-nb:hover { background: var(--spr-fill); }
.spr-nb[aria-current="page"] { background: var(--spr-blue); color: #fff; }
.spr-nb[aria-current="page"] .spr-n, .spr-nb[aria-current="page"] .spr-ok { color: rgba(255, 255, 255, .9); }
.spr-nl { flex: 1; min-width: 0; }
.spr-n { font-size: 12px; color: var(--spr-mu2); font-variant-numeric: tabular-nums; }
.spr-n.hi { color: #fff; background: var(--spr-red); border-radius: 99px; padding: 0 7px; font-weight: 700; line-height: 18px; }
.spr-ok { color: var(--spr-green); display: inline-flex; }
.spr-ok .spr-ic { width: 14px; height: 14px; stroke-width: 2.6; }
.spr-clear { color: var(--spr-mu); margin-top: 10px; }
.spr-clear .spr-ic { width: 16px; height: 16px; margin-inline: 6px; }
.spr-foot { margin: 6px 0 0; font-size: 11.5px; color: var(--spr-mu2); padding: 6px 10px; }

.spr-stage { padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.spr-view { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.spr-view:empty { display: none; }
.spr-hello small { display: block; font-size: 12.5px; font-weight: 600; color: var(--spr-mu); text-transform: uppercase; letter-spacing: .04em; }
.spr-hello h2 { margin: 2px 0 0; font-family: var(--spr-fd); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.spr-gt { background: linear-gradient(90deg, #ff9500, #ff2d55 45%, #af52de); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spr-hello p { margin: 6px 0 0; color: var(--spr-mu); font-size: 14.5px; }
.spr-hello-cta { margin-top: 12px; }
.spr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.spr-head h2 { margin: 0; font-family: var(--spr-fd); font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.spr-head p { margin: 4px 0 0; color: var(--spr-mu); max-width: 66ch; }
.spr-progw { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spr-progw span { font-size: 12.5px; color: var(--spr-mu); font-variant-numeric: tabular-nums; }
.spr-prog { flex: 1 1 200px; height: 6px; border-radius: 99px; background: var(--spr-fill); overflow: hidden; }
.spr-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #32ade6, #34c759); transition: width .6s; }
.spr-ct { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }
.spr-start { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 22px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #ff9500 0%, #ff2d55 55%, #af52de 100%); box-shadow: var(--spr-sh); }
.spr-start div { flex: 1 1 260px; }
.spr-start b { font-size: 17px; font-family: var(--spr-fd); letter-spacing: -.01em; }
.spr-start p { margin: 2px 0 0; color: rgba(255, 255, 255, .88); }
.spr-start .spr-btn { background: #fff; color: #1d1d1f; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }

/* figures */
.spr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.spr-kpi { background: var(--spr-card); border-radius: 22px; padding: 16px 18px; box-shadow: var(--spr-sh); border: 1px solid var(--spr-ln); min-width: 0; position: relative; overflow: hidden; }
.spr-kpi h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--spr-mu); display: flex; align-items: center; gap: 8px; }
.spr-kpi b { display: block; font-family: var(--spr-fd); font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spr-kpi.g-warm { background: linear-gradient(135deg, #ff9500 0%, #ff2d55 55%, #af52de 100%); color: #fff; border: 0; }
.spr-kpi.g-cool { background: linear-gradient(135deg, #32ade6 0%, #5856d6 100%); color: #fff; border: 0; }
.spr-kpi.g-warm h4, .spr-kpi.g-cool h4 { color: rgba(255, 255, 255, .88); }
.spr-kpi.g-warm::after, .spr-kpi.g-cool::after { content: ""; position: absolute; inset: auto -25% -70% auto; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .32), transparent 65%); pointer-events: none; }

/* bento */
.spr-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.spr-w { background: var(--spr-card); border-radius: 22px; padding: 18px; box-shadow: var(--spr-sh); border: 1px solid var(--spr-ln); min-width: 0; }
.spr-w.spr-wide { grid-column: 1 / -1; }
.spr-w h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--spr-mu); display: flex; align-items: center; gap: 8px; }
.spr-w h3 .spr-btn { margin-inline-start: auto; }
.spr-rings { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.spr-rings svg { flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12)); }
.spr-rt { fill: none; stroke-width: 14; opacity: .16; }
.spr-ra { fill: none; stroke-width: 14; stroke-linecap: round; transform-origin: 70px 70px; transform: rotate(-90deg); transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.spr-rings dl { margin: 0; display: grid; gap: 10px; }
.spr-rings dt { font-size: 12.5px; font-weight: 600; }
.spr-rings dd { margin: 0; font-family: var(--spr-fd); font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.spr-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.spr-step { display: flex; align-items: center; gap: 10px; border: 1px solid var(--spr-ln); border-radius: 14px; padding: 10px; background: var(--spr-card); cursor: pointer; text-align: start; color: var(--spr-tx); min-width: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.spr-step:hover { transform: translateY(-2px); box-shadow: var(--spr-sh); border-color: var(--spr-ln2); }
.spr-step span { min-width: 0; display: grid; }
.spr-step b { font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spr-step em { font-style: normal; font-size: 12px; color: var(--spr-mu); }
.spr-step.done em { color: var(--spr-green); font-weight: 600; }

/* findings */
.spr-fl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.spr-fi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 2px; position: relative; }
.spr-fi + .spr-fi::before { content: ""; position: absolute; top: 0; inset-inline-start: 40px; inset-inline-end: 0; height: 1px; background: var(--spr-ln); }
.spr-fi b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.spr-fi p { margin: 2px 0 0; color: var(--spr-mu); font-size: 13px; }
.spr-fi small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--spr-green); }
.spr-view > .spr-fl { background: var(--spr-card); border-radius: 22px; padding: 6px 16px; box-shadow: var(--spr-sh); border: 1px solid var(--spr-ln); }
.spr-pill { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--spr-orange) 18%, transparent); color: var(--spr-warn); }
.spr-pill.high { background: color-mix(in srgb, var(--spr-red) 15%, transparent); color: var(--spr-red); }
.spr-pill.low { background: color-mix(in srgb, var(--spr-green) 16%, transparent); color: var(--spr-green); }
.spr-chips { display: inline-flex; gap: 2px; padding: 2px; background: var(--spr-fill); border-radius: 10px; flex-wrap: wrap; align-self: flex-start; }
.spr-chip { border: 0; background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--spr-mu); }
.spr-chip b { font-variant-numeric: tabular-nums; margin-inline-start: 4px; opacity: .7; }
.spr-chip[aria-pressed="true"] { background: var(--spr-card); color: var(--spr-tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* section header */
.spr-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--spr-mu); font-weight: 600; }
.spr-eyebrow > span:not(.spr-tile) { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.spr-tag { font-style: normal; padding: 3px 10px; border-radius: 99px; background: var(--spr-fill); color: var(--spr-mu); font-weight: 600; }
.spr-tag.ok { background: color-mix(in srgb, var(--spr-green) 16%, transparent); color: var(--spr-green); }
.spr-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.spr-toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--spr-card2); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); border: 1px solid var(--spr-ln2); color: var(--spr-tx); padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 13.5px; box-shadow: var(--spr-sh-lg); }

/* ---------- engine blocks inside the stage ---------- */
.spr-stage #sx-app { margin: 0; padding: 0; max-width: none; }
.spr-stage #sx-app > .sx-card, .spr-stage #sx-app > .sx-pre { margin: 0 0 16px; border-radius: 22px; border: 1px solid var(--spr-ln); background: var(--spr-card); box-shadow: var(--spr-sh); padding: 22px; color: var(--spr-tx); }
.spr-stage #sx-app > :last-child { margin-bottom: 0; }
.spr-stage #sx-app .sx-card > h2 { margin: 0 0 4px; font-family: var(--spr-fd); font-size: 26px; font-weight: 800; letter-spacing: -.035em; color: var(--spr-tx); }
.spr-stage #sx-app .sx-card > .sx-h { color: var(--spr-mu); max-width: 70ch; }
.spr-stage #sx-app label > span, .spr-stage #sx-app .sx-rh > span { color: var(--spr-mu); font-weight: 600; font-size: 12px; }
.spr-stage #sx-app input:not([type=checkbox]):not([type=file]), .spr-stage #sx-app select { border: 0; background-color: var(--spr-fill); border-radius: 10px; color: var(--spr-tx); min-height: 36px; box-shadow: none; transition: box-shadow .15s, background-color .15s; }
.spr-stage #sx-app input:not([type=checkbox]):not([type=file]):focus, .spr-stage #sx-app select:focus { background-color: var(--spr-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spr-blue) 40%, transparent); outline: 0; }
.spr-stage #sx-app input::placeholder { color: var(--spr-mu2); }
.spr-stage #sx-app .sx-rows { border-radius: 16px; overflow: hidden; border: 1px solid var(--spr-ln); }
.spr-stage #sx-app .sx-rows:empty { display: none; }
.spr-stage #sx-app .sx-rows > .sx-r { padding: 10px 12px; margin: 0; border: 0; border-radius: 0; background: var(--spr-card); }
.spr-stage #sx-app .sx-rows > .sx-r + .sx-r { border-top: 1px solid var(--spr-ln); }
.spr-stage #sx-app .sx-rows > .sx-r:hover { background: color-mix(in srgb, var(--spr-blue) 4%, var(--spr-card)); }
.spr-stage #sx-app .sx-rh { padding: 0 12px 6px; }
.spr-stage #sx-app .sx-add { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--spr-blue); font-weight: 600; font-size: 14px; padding: 12px 4px 2px; cursor: pointer; box-shadow: none; }
.spr-stage #sx-app .sx-add::before { content: "+"; width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 19px; font-weight: 500; background: color-mix(in srgb, var(--spr-blue) 14%, transparent); }
.spr-stage #sx-app .sx-x { border: 0; background: var(--spr-fill); color: var(--spr-mu); border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.spr-stage #sx-app .sx-x:hover { background: color-mix(in srgb, var(--spr-red) 16%, transparent); color: var(--spr-red); }
.spr-stage #sx-app .sx-tot { color: var(--spr-green); }
.spr-stage #sx-app > .sx-pre { background: linear-gradient(135deg, color-mix(in srgb, #32ade6 14%, var(--spr-card)), color-mix(in srgb, #5856d6 12%, var(--spr-card))); }
.spr-stage #sx-app [data-presetgo] { background: var(--spr-blue); color: #fff; border: 0; border-radius: 99px; box-shadow: 0 4px 14px color-mix(in srgb, var(--spr-blue) 35%, transparent); }

/* switches and steppers added by the shell */
.spr-hid { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-height: 0 !important; overflow: hidden; }
.spr-stage #sx-app .spr-seg { display: inline-flex !important; flex-direction: row; background: var(--spr-fill); border-radius: 10px; padding: 2px; gap: 2px; max-width: 100%; align-self: start; }
.spr-stage #sx-app .spr-seg button { display: inline-block; border: 0; background: transparent; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--spr-mu); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.spr-stage #sx-app .spr-seg button[aria-pressed="true"] { background: var(--spr-card); color: var(--spr-tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 0 0 .5px rgba(0, 0, 0, .04); }
.spr-stage #sx-app .spr-seg button.dflt[aria-pressed="true"] { color: var(--spr-mu); box-shadow: 0 0 0 1px var(--spr-ln2); background: transparent; }
.spr-stage #sx-app .spr-stp { display: flex !important; flex-direction: row; width: 100%; align-items: center; gap: 2px; background: var(--spr-fill); border-radius: 10px; }
.spr-stage #sx-app .spr-stp button { border: 0; background: transparent; width: 30px; height: 34px; border-radius: 9px; cursor: pointer; color: var(--spr-tx); display: grid; place-items: center; flex: none; }
.spr-stage #sx-app .spr-stp button:hover { background: var(--spr-ln); }
.spr-stage #sx-app .spr-stp input { background: transparent !important; text-align: center; font-weight: 700; min-width: 0; width: 100%; padding: 0 2px; box-shadow: none !important; }

/* results and report */
.spr-stage #sx-results > h2, .spr-stage #sx-report > h2, .spr-stage #sx-report > .sx-h { display: none; }
.spr-stage #sx-results h3:has(+ .sx-find), .spr-stage #sx-results > .sx-find { display: none; }
.spr-stage #sx-results h3 { font-family: var(--spr-fd); font-size: 17px; letter-spacing: -.02em; }
.spr-stage #sx-app .sx-kpi { border-radius: 18px; border: 1px solid var(--spr-ln); background: var(--spr-card); box-shadow: var(--spr-sh); }
.spr-stage #sx-app .sx-kpi b { font-family: var(--spr-fd); letter-spacing: -.03em; }
.spr-stage #sx-app .sx-tw { border-radius: 16px; border: 1px solid var(--spr-ln); overflow: auto; }
.spr-stage #sx-report .sx-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.spr-stage #sx-report .sx-partb { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; text-align: start; aspect-ratio: .74; padding: 0 14px 14px; border: 0; border-radius: 14px; background: #fff; color: #1d1d1f; box-shadow: 0 16px 36px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .08); overflow: hidden; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.spr-stage #sx-report .sx-partb::before { content: ""; display: block; flex: none; height: 36%; margin: 0 -14px 10px; background: linear-gradient(135deg, #ff9500, #ff2d55, #af52de); }
.spr-stage #sx-report .sx-partb:nth-child(8n+2)::before { background: linear-gradient(135deg, #ff3b30, #ff9500); }
.spr-stage #sx-report .sx-partb:nth-child(8n+3)::before { background: linear-gradient(135deg, #34c759, #00c7be); }
.spr-stage #sx-report .sx-partb:nth-child(8n+4)::before { background: linear-gradient(135deg, #ff9500, #ffcc00); }
.spr-stage #sx-report .sx-partb:nth-child(8n+5)::before { background: linear-gradient(135deg, #007aff, #5856d6); }
.spr-stage #sx-report .sx-partb:nth-child(8n+6)::before { background: linear-gradient(135deg, #30b0c7, #007aff); }
.spr-stage #sx-report .sx-partb:nth-child(8n+7)::before { background: linear-gradient(135deg, #af52de, #ff2d55); }
.spr-stage #sx-report .sx-partb:nth-child(8n)::before { background: linear-gradient(135deg, #8e8e93, #5856d6); }
.spr-stage #sx-report .sx-partb b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #1d1d1f; }
.spr-stage #sx-report .sx-partb span { font-size: 12px; color: #6e6e73; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.spr-stage #sx-report .sx-partb i { margin-top: auto; font-style: normal; font-weight: 700; color: #1d1d1f; }
.spr-stage #sx-report .sx-partb:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 26px 56px rgba(0, 0, 0, .22); }
.spr-stage #sx-report .sx-partb.on, .spr-stage #sx-report .sx-partb[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--spr-blue), 0 20px 44px rgba(0, 0, 0, .2); }
.spr-stage #sx-report .sx-outb { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.spr-stage #sx-report .sx-paper { max-height: min(78vh, 980px); overflow: auto; border-radius: 16px; margin-top: 18px; border: 1px solid var(--spr-ln2); box-shadow: var(--spr-sh); scrollbar-width: thin; }

@media (prefers-reduced-motion: no-preference) {
  .spr-in { animation: spr-in .4s cubic-bezier(.2, .8, .2, 1); }
  @keyframes spr-in { from { opacity: 0; transform: translateY(8px) scale(.997); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .spr-ra, .spr-prog i, .spr-step, .spr-btn, .spr-stage #sx-report .sx-partb { transition: none; } }
@media (max-width: 1100px) { .spr-saved { display: none; } .spr-bento { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .spr-app { border-radius: 20px; }
  .spr-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .spr-rail { position: static; max-height: none; overflow: visible; flex-direction: row; padding: 10px; border-inline-end: 0; border-bottom: 1px solid var(--spr-ln); }
  .spr-me, .spr-foot, .spr-nav h5, .spr-clear, .spr-lights { display: none; }
  .spr-nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; flex: 1; min-width: 0; }
  .spr-nav::-webkit-scrollbar { display: none; }
  .spr-nb { width: auto; white-space: nowrap; flex: none; padding: 5px 12px 5px 5px; background: var(--spr-card2); border: 1px solid var(--spr-ln); border-radius: 99px; min-height: 0; }
  .spr-nl { flex: none; }
  .spr-stage { padding: 16px; }
  .spr-search { order: 5; flex-basis: 100%; margin: 0; }
  .spr-lbl, .spr-lbl2, .spr-search kbd { display: none; }
  .spr-bt { max-width: 20ch; }
  .spr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spr-kpi b { font-size: 28px; }
  .spr-steps { grid-template-columns: minmax(0, 1fr); }
  .spr-hello-cta .spr-btn { width: 100%; justify-content: center; }
  .spr-stage #sx-app > .sx-card { padding: 16px; }
  .spr-stage #sx-report .sx-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media print {
  .spr-top, .spr-rail, .spr-view, .spr-pager, .spr-toast, .spr-confirm { display: none !important; }
  .spr-app { border: 0; box-shadow: none; background: none; display: contents; }
  .spr-body, .spr-stage { display: block; padding: 0; }
  .spr-stage #sx-app > #sx-report { display: block !important; }
  html.spr-fs-on, html.spr-fs-on body { overflow: visible !important; }
  .spr-app.spr-fs { position: static; height: auto; }
  .spr-fs .spr-body, .spr-fs .spr-stage { height: auto; overflow: visible; }
  .spr-stage #sx-report .sx-paper { max-height: none; overflow: visible; border: 0; box-shadow: none; margin: 0; }
}

/* ---------- r3: full-screen app mode, smooth scrolling panes, responsive polish ---------- */
.spr-icb { width: 32px; padding: 0; justify-content: center; }
.spr-app.spr-fs {
  position: fixed; inset: 0; z-index: 2147482600; margin: 0; border-radius: 0; border: 0; box-shadow: none;
  height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding-top: env(safe-area-inset-top, 0px);
}
html.spr-fs-on, html.spr-fs-on body { overflow: hidden !important; overscroll-behavior: none; }
.spr-fs .spr-top { position: relative; padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px)); }
.spr-fs .spr-body { min-height: 0; height: 100%; }
.spr-fs .spr-rail { position: relative; max-height: none; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-inline-start: max(12px, env(safe-area-inset-left, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.spr-fs .spr-stage { height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); scrollbar-gutter: stable; }
.spr-fs .spr-stage > * { max-width: 1240px; width: 100%; margin-inline: auto; }
.spr-fs .spr-pager { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 10px 14px; border-radius: 18px; background: var(--spr-pane); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border: 1px solid var(--spr-ln); box-shadow: var(--spr-sh); }
.spr-app.spr-pop { animation: spr-pop .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes spr-pop { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }
/* smoothness: isolate repaint work, GPU-friendly hovers, no layout transitions */
.spr-rail, .spr-stage { contain: layout paint; }
.spr-w, .spr-kpi, .spr-step { contain: layout paint style; }
.spr-step:hover, .spr-stage #sx-report .sx-partb:hover { will-change: transform; }
.spr-stage #sx-app input, .spr-stage #sx-app select { transition: box-shadow .15s, background-color .15s; }
@media (prefers-reduced-motion: reduce) { .spr-fs .spr-stage { scroll-behavior: auto; } .spr-app.spr-pop, .spr-in { animation: none; } }

/* tablet */
@media (max-width: 1100px) and (min-width: 861px) {
  .spr-body { grid-template-columns: 224px minmax(0, 1fr); }
  .spr-stage { padding: 20px; }
  .spr-kpi b { font-size: 32px; }
}
/* phone */
@media (max-width: 860px) {
  .spr-top { gap: 8px; padding: 10px 12px; }
  .spr-brand { font-size: 14px; gap: 8px; flex: 1; }
  .spr-logo { width: 28px; height: 28px; border-radius: 8px; }
  .spr-pro { display: none; }
  .spr-tb { gap: 6px; }
  .spr-tb .spr-btn { width: 34px; padding: 0; justify-content: center; }
  .spr-tb .spr-btn.spr-grad { width: auto; padding: 0 12px; }
  .spr-tb [data-sp-act="open"] { display: none; }
  .spr-search { order: 5; flex-basis: 100%; }
  .spr-hello h2 { font-size: 26px; }
  .spr-hello p { font-size: 13.5px; }
  .spr-head h2 { font-size: 24px; }
  .spr-stage #sx-app .sx-card > h2 { font-size: 22px; }
  .spr-rings { gap: 14px; }
  .spr-rings svg { width: 116px; height: 116px; }
  .spr-fi { gap: 10px; }
  .spr-fi .spr-pill { grid-column: 2; justify-self: start; }
  .spr-pager .spr-mu { display: none; }
  .spr-pager .spr-btn { flex: 1; justify-content: center; }
  .spr-eyebrow .spr-tile.lg { width: 40px; height: 40px; border-radius: 11px; }
  .spr-fs .spr-body { grid-template-rows: auto minmax(0, 1fr); }
  .spr-fs .spr-rail { height: auto; overflow: visible; padding-bottom: 10px; }
  .spr-fs .spr-stage { padding: 14px max(14px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  .spr-fs .spr-pager { border-radius: 16px; padding: 8px; }
}
@media (max-width: 380px) { .spr-kpis { grid-template-columns: minmax(0, 1fr); } .spr-tb .spr-btn.spr-grad .spr-lbl2 { display: none; } .spr-tb .spr-btn.spr-grad { width: 34px; padding: 0; justify-content: center; } }
.spr-fs .spr-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* ================= r4: premium jewel palette (porcelain / graphite, champagne gold, sapphire, emerald, amethyst, ruby) ================= */
.spr-app {
  --spr-sapphire: #2f4fd1; --spr-emerald: #047857; --spr-amethyst: #6d3fc7; --spr-ruby: #be123c; --spr-amber: #b45309; --spr-gold: #a8782a; --spr-champ: #e7c98c;
  --spr-blue: var(--spr-sapphire); --spr-green: #059669; --spr-red: #be123c; --spr-orange: #c2671b; --spr-pink: #be185d; --spr-cyan: #2f4fd1; --spr-warn: #a16207;
  --spr-card: #ffffff; --spr-card2: rgba(255, 255, 255, .78); --spr-pane: rgba(250, 249, 246, .7); --spr-rail: rgba(246, 244, 239, .72);
  --spr-tx: #10131a; --spr-mu: #5d6470; --spr-mu2: #8a909b; --spr-ln: rgba(16, 19, 26, .08); --spr-ln2: rgba(16, 19, 26, .14); --spr-fill: rgba(16, 19, 26, .055);
  --spr-sh: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(16, 19, 26, .04), 0 12px 32px rgba(16, 19, 26, .07);
  --spr-sh-lg: 0 40px 90px rgba(16, 19, 26, .14), 0 4px 14px rgba(16, 19, 26, .05);
  background:
    radial-gradient(55% 50% at 6% 0%, rgba(231, 201, 140, .45), transparent 70%),
    radial-gradient(50% 55% at 100% 8%, rgba(47, 79, 209, .16), transparent 70%),
    radial-gradient(55% 55% at 28% 100%, rgba(109, 63, 199, .12), transparent 70%),
    radial-gradient(45% 45% at 95% 96%, rgba(4, 120, 87, .12), transparent 70%),
    linear-gradient(180deg, #f7f5f0, #f1efe9);
}
html[data-theme=dark] .spr-app {
  --spr-sapphire: #8ea2ff; --spr-emerald: #34d399; --spr-amethyst: #b794ff; --spr-ruby: #fb7185; --spr-amber: #fbbf24; --spr-gold: #e2b867; --spr-champ: #f1d9a6;
  --spr-blue: #4b6bff; --spr-green: #34d399; --spr-red: #fb7185; --spr-orange: #f6ad55; --spr-pink: #f472b6; --spr-cyan: #8ea2ff; --spr-warn: #fbbf24;
  --spr-card: #14171e; --spr-card2: rgba(26, 30, 39, .78); --spr-pane: rgba(14, 16, 21, .72); --spr-rail: rgba(16, 18, 24, .74);
  --spr-tx: #f3f1ec; --spr-mu: #9aa0ab; --spr-mu2: #7b818c; --spr-ln: rgba(243, 241, 236, .07); --spr-ln2: rgba(243, 241, 236, .13); --spr-fill: rgba(243, 241, 236, .07);
  --spr-sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .38);
  --spr-sh-lg: 0 40px 90px rgba(0, 0, 0, .6), 0 4px 14px rgba(0, 0, 0, .4);
  background:
    radial-gradient(55% 50% at 6% 0%, rgba(184, 134, 43, .22), transparent 70%),
    radial-gradient(50% 55% at 100% 8%, rgba(37, 65, 178, .30), transparent 70%),
    radial-gradient(55% 55% at 28% 100%, rgba(76, 29, 149, .30), transparent 70%),
    radial-gradient(45% 45% at 95% 96%, rgba(4, 95, 70, .24), transparent 70%),
    linear-gradient(180deg, #0c0e13, #090a0e);
}
/* jewel tiles: deep gradient, top highlight, hairline */
.spr-tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(16, 19, 26, .18); }
.t-blue { background: linear-gradient(160deg, #5b78f5, #2541b2); } .t-indigo { background: linear-gradient(160deg, #7867e0, #3f2e9e); }
.t-purple { background: linear-gradient(160deg, #a07cf5, #5b2bb0); } .t-pink { background: linear-gradient(160deg, #ec6a9b, #9d174d); }
.t-orange { background: linear-gradient(160deg, #e9a25d, #b4561a); } .t-green { background: linear-gradient(160deg, #34c38f, #046c4e); }
.t-teal { background: linear-gradient(160deg, #3cc3b5, #0f6b66); } .t-red { background: linear-gradient(160deg, #f07070, #a1122d); }
.t-yellow { background: linear-gradient(160deg, #ecc874, #a87618); } .t-mint { background: linear-gradient(160deg, #57d8c6, #0b7d73); }
.t-gray { background: linear-gradient(160deg, #aab0b9, #5f6570); }
/* gold accents */
.spr-pro { background: linear-gradient(135deg, #f1d9a6, #c9a05a 55%, #9c7326); color: #2a1c03; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.spr-btn.spr-grad { background: linear-gradient(135deg, #f0d79e 0%, #d1a656 45%, #a87a28 100%); color: #241803; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 18px rgba(168, 122, 40, .32); }
.spr-btn.spr-pri { background: linear-gradient(180deg, #4a68ec, #2541b2); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(37, 65, 178, .3); }
.spr-nb[aria-current="page"] { background: linear-gradient(180deg, #4a68ec, #2541b2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 12px rgba(37, 65, 178, .25); }
.spr-n.hi { background: linear-gradient(180deg, #e8435f, #a1122d); }
.spr-logo { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px color-mix(in srgb, var(--spr-ac) 35%, transparent); }
.spr-av { background: linear-gradient(145deg, #f1d9a6, #c9a05a 55%, #8f6720); color: #2a1c03; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 8px rgba(168, 122, 40, .3); }
/* headline */
.spr-gt { background: linear-gradient(95deg, #a8782a 0%, #c99a4b 28%, #8e4fd0 64%, #2f4fd1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme=dark] .spr-gt { background: linear-gradient(95deg, #f1d9a6 0%, #e2b867 28%, #c4a1ff 64%, #93a8ff 100%); -webkit-background-clip: text; background-clip: text; }
.spr-prog i { background: linear-gradient(90deg, #2f4fd1, #6d3fc7 55%, #059669); }
/* figure cards: midnight sapphire and amethyst-obsidian with a gold hairline */
.spr-kpi.g-warm { background: radial-gradient(120% 140% at 0% 0%, #3a2a6e 0%, #1b1640 55%, #0f0d24 100%); border: 1px solid rgba(231, 201, 140, .35); }
.spr-kpi.g-cool { background: radial-gradient(120% 140% at 0% 0%, #2a4bc9 0%, #182c78 55%, #0c1640 100%); border: 1px solid rgba(231, 201, 140, .28); }
.spr-kpi.g-warm h4, .spr-kpi.g-cool h4 { color: #ecd7a8; }
.spr-kpi.g-warm b, .spr-kpi.g-cool b { background: linear-gradient(180deg, #ffffff, #e9dcc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spr-kpi.g-warm::after, .spr-kpi.g-cool::after { background: radial-gradient(circle, rgba(231, 201, 140, .22), transparent 65%); }
.spr-start { background: radial-gradient(120% 160% at 0% 0%, #2a3f9e 0%, #1a1f55 50%, #120f2b 100%); border: 1px solid rgba(231, 201, 140, .3); }
.spr-start .spr-btn { background: linear-gradient(135deg, #f0d79e, #c9a05a); color: #241803; }
/* cards */
.spr-w, .spr-kpi:not(.g-warm):not(.g-cool), .spr-stage #sx-app > .sx-card { box-shadow: var(--spr-sh); }
.spr-rings svg { filter: drop-shadow(0 8px 18px rgba(16, 19, 26, .16)); }
.spr-rt { opacity: .12; }
.spr-pill { background: color-mix(in srgb, #b45309 14%, transparent); color: var(--spr-warn); }
.spr-pill.high { background: color-mix(in srgb, var(--spr-ruby) 13%, transparent); color: var(--spr-ruby); }
.spr-pill.low { background: color-mix(in srgb, var(--spr-emerald) 14%, transparent); color: var(--spr-emerald); }
.spr-step.done { border-color: color-mix(in srgb, var(--spr-emerald) 30%, var(--spr-ln)); }
.spr-step.done em, .spr-tag.ok, .spr-ok, .spr-fi small { color: var(--spr-emerald); }
.spr-tag.ok { background: color-mix(in srgb, var(--spr-emerald) 13%, transparent); }
.spr-saved.on::before { background: var(--spr-emerald); }
.spr-stage #sx-app > .sx-pre { background: linear-gradient(135deg, color-mix(in srgb, #e7c98c 22%, var(--spr-card)), color-mix(in srgb, #2f4fd1 9%, var(--spr-card))); border-color: color-mix(in srgb, #b8862b 22%, var(--spr-ln)); }
.spr-stage #sx-app [data-presetgo] { background: linear-gradient(180deg, #4a68ec, #2541b2); }
.spr-stage #sx-app .sx-add { color: var(--spr-sapphire); }
.spr-stage #sx-app .sx-add::before { background: color-mix(in srgb, var(--spr-sapphire) 12%, transparent); }
.spr-stage #sx-app .sx-tot { color: var(--spr-emerald); }
/* report covers in jewel tones with a gold foil line */
.spr-stage #sx-report .sx-partb::before { background: radial-gradient(120% 140% at 0% 0%, #3a2a6e, #14112e); box-shadow: inset 0 -2px 0 #d1a656; }
.spr-stage #sx-report .sx-partb:nth-child(8n+2)::before { background: radial-gradient(120% 140% at 0% 0%, #b4233f, #4a0a1b); }
.spr-stage #sx-report .sx-partb:nth-child(8n+3)::before { background: radial-gradient(120% 140% at 0% 0%, #0f8a64, #03372a); }
.spr-stage #sx-report .sx-partb:nth-child(8n+4)::before { background: radial-gradient(120% 140% at 0% 0%, #c9a05a, #6b4a12); }
.spr-stage #sx-report .sx-partb:nth-child(8n+5)::before { background: radial-gradient(120% 140% at 0% 0%, #3654d6, #0f1c5a); }
.spr-stage #sx-report .sx-partb:nth-child(8n+6)::before { background: radial-gradient(120% 140% at 0% 0%, #1d8f8a, #073b39); }
.spr-stage #sx-report .sx-partb:nth-child(8n+7)::before { background: radial-gradient(120% 140% at 0% 0%, #7c45d6, #2a1060); }
.spr-stage #sx-report .sx-partb:nth-child(8n)::before { background: radial-gradient(120% 140% at 0% 0%, #6b7280, #1f2329); }
.spr-stage #sx-report .sx-partb { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px rgba(16, 19, 26, .16), 0 2px 6px rgba(16, 19, 26, .06); }
.spr-stage #sx-report .sx-partb.on, .spr-stage #sx-report .sx-partb[aria-pressed="true"] { box-shadow: 0 0 0 2px #d1a656, 0 22px 48px rgba(16, 19, 26, .22); }
/* refined interactions */
.spr-step:hover { border-color: color-mix(in srgb, #b8862b 35%, var(--spr-ln)); }
.spr-nb:hover:not([aria-current="page"]) { background: color-mix(in srgb, var(--spr-sapphire) 7%, transparent); }
.spr-app :focus-visible { outline-color: color-mix(in srgb, var(--spr-sapphire) 60%, transparent); }
.spr-stage #sx-app input:not([type=checkbox]):not([type=file]):focus, .spr-stage #sx-app select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--spr-sapphire) 30%, transparent); }
.spr-search label:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--spr-sapphire) 26%, transparent); }
.spr-hits button:hover, .spr-hits button:focus-visible { background: linear-gradient(180deg, #4a68ec, #2541b2); }
.spr-hello small { color: var(--spr-gold); letter-spacing: .08em; }
.spr-kpi b, .spr-rings dd, .spr-hello h2 { font-feature-settings: "tnum" 1; }

/* ================= r5: rendering polish (grain, hairlines, sheen, scrollbars, view transitions) ================= */
.spr-app { text-rendering: optimizeLegibility; }
.spr-app::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045; mix-blend-mode: soft-light;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-theme=dark] .spr-app::before { opacity: .07; }
@media (min-resolution: 2dppx) {
  .spr-w, .spr-kpi:not(.g-warm):not(.g-cool), .spr-step, .spr-me, .spr-stage #sx-app > .sx-card, .spr-stage #sx-app .sx-rows, .spr-top, .spr-rail { border-width: .5px; }
}
.spr-kpi.g-warm::before, .spr-kpi.g-cool::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .10) 48%, rgba(231, 201, 140, .10) 52%, transparent 65%); background-size: 260% 100%; background-position: 120% 0; }
@media (prefers-reduced-motion: no-preference) {
  .spr-kpi.g-warm::before, .spr-kpi.g-cool::before { animation: spr-sheen 7s ease-in-out infinite; }
  .spr-kpi.g-cool::before { animation-delay: 1.4s; }
  @keyframes spr-sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}
.spr-rail, .spr-stage, .spr-stage #sx-report .sx-paper, .spr-hits { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--spr-tx) 22%, transparent) transparent; }
.spr-rail::-webkit-scrollbar, .spr-stage::-webkit-scrollbar { width: 10px; }
.spr-rail::-webkit-scrollbar-thumb, .spr-stage::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--spr-tx) 20%, transparent); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.spr-rail::-webkit-scrollbar-track, .spr-stage::-webkit-scrollbar-track { background: transparent; }
.spr-btn, .spr-nb, .spr-step, .spr-chip, .spr-seg button { -webkit-tap-highlight-color: transparent; }
.spr-btn:active, .spr-step:active, .spr-nb:active { transform: scale(.97); }
.spr-hello h2, .spr-head h2, .spr-stage #sx-app .sx-card > h2 { font-optical-sizing: auto; }

/* ---------- r6 (2026-11-28): shortcuts card, report cover icons, phone heat map, pager clear of the free-export pill ---------- */
.spr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.spr-scw { padding: 14px 14px 10px; }
.spr-sc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.spr-sc + .spr-sc { border-top: 0.5px solid var(--spr-ln); border-radius: 0 0 14px 14px; }
.spr-sc:hover { background: color-mix(in srgb, var(--spr-sapphire, #2f4fd1) 7%, transparent); border-radius: 14px; }
.spr-sc:active { transform: scale(.985); }
.spr-sc:focus-visible { outline: 2px solid var(--spr-sapphire, #2f4fd1); outline-offset: 2px; }
.spr-sc > .spr-tile { flex: none; }
.spr-sc > span:not(.spr-tile) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spr-sc b { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.spr-sc b i { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e11d48, #9f1239); }
.spr-sc em { font-style: normal; font-size: 12.5px; color: var(--spr-mu, #6e6e73); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spr-sc > svg.spr-ic { flex: none; width: 16px; height: 16px; opacity: .45; transition: transform .25s, opacity .25s; }
.spr-sc:hover > svg.spr-ic { opacity: .9; transform: translateX(3px); }
[dir="rtl"] .spr-sc:hover > svg.spr-ic { transform: translateX(-3px); }

/* report covers: a frosted document badge and a fine paper texture on every part */
.spr-stage #sx-report .sx-partb::after { content: ""; position: absolute; top: calc(18% - 22px); inset-inline-start: 14px; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 0.5px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.spr-stage #sx-report .sx-partb:first-child::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5M9 7h7M9 11h5'/%3E%3C/svg%3E"); }
.spr-stage #sx-report .sx-partb { isolation: isolate; }
.spr-stage #sx-report .sx-partb:hover::after { transform: translateY(-2px) scale(1.04); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }

/* heat map fits a phone: compact axis column, no forced cell width */
@media (max-width: 600px) {
  .spr-stage #sx-results table:has(td[data-lv]) { width: 100%; table-layout: fixed; }
  .spr-stage #sx-results table:has(td[data-lv]) th:first-child { width: 64px; font-size: 9.5px; line-height: 1.2; white-space: normal; padding: 6px 6px; letter-spacing: .02em; }
  .spr-stage #sx-results table:has(td[data-lv]) td { min-width: 0 !important; padding: 8px 4px; font-size: 13px; }
}

/* keep the pager's Next button clear of the free-export pill */
@media (min-width: 761px) {
  body:has(.pw-pill) .spr-pager { padding-inline-end: 96px; }
  body:has(.pw-pill:not(.sp-mini)) .spr-pager { padding-inline-end: 340px; }
}
/* the pill folds into a bubble: keep its text on one line while it folds (no word-per-line wrap) */
.pw-pill.sp-mini { overflow: hidden; }
.pw-pill.sp-mini b, .pw-pill.sp-mini span { white-space: nowrap; }

/* ---------- r7 (2026-11-28): empty states, loading placeholder ---------- */
.spr-empty { display: grid; justify-items: center; text-align: center; gap: 10px; margin: 8px 0 4px; padding: clamp(28px, 6vw, 56px) 20px; border-radius: 24px;
  border: .5px dashed rgba(127, 127, 140, .35); background: radial-gradient(80% 120% at 50% 0%, rgba(79, 108, 240, .10), transparent 70%); }
.spr-empty > .spr-tile { width: 64px !important; height: 64px !important; border-radius: 18px !important; box-shadow: 0 14px 34px rgba(37, 65, 178, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
.spr-empty > .spr-tile svg { width: 30px; height: 30px; }
.spr-empty h3 { margin: 6px 0 0; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; font-weight: 750; }
.spr-empty p { margin: 0; max-width: 46ch; opacity: .72; line-height: 1.55; }
.spr-empty-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) { .spr-empty > .spr-tile { animation: spr-float 5s ease-in-out infinite; } }
@keyframes spr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* the engine's one-line empty results card is replaced by the empty state above */
.spr-stage:has(.spr-empty) #sx-results { display: none !important; }

/* loading placeholder in the shape of the Pro window, shown until the shell is on (4 s safety fallback) */
body:not(.spr-on) main.sx > #sx-app::before {
  content: ""; visibility: visible; display: block; box-sizing: border-box; width: min(1400px, calc(100% - 24px)); height: min(78vh, 760px); margin: 12px auto 0; border-radius: 26px;
  border: .5px solid rgba(127, 127, 140, .22);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
    radial-gradient(circle at 26px 26px, #ff5f57 0 6px, transparent 6.5px), radial-gradient(circle at 46px 26px, #febc2e 0 6px, transparent 6.5px), radial-gradient(circle at 66px 26px, #28c840 0 6px, transparent 6.5px),
    linear-gradient(rgba(127, 127, 140, .16), rgba(127, 127, 140, .16)) 260px 90px / 38% 26px no-repeat,
    linear-gradient(rgba(127, 127, 140, .10), rgba(127, 127, 140, .10)) 260px 132px / 24% 14px no-repeat,
    linear-gradient(rgba(79, 108, 240, .16), rgba(79, 108, 240, .16)) 260px 176px / calc(100% - 290px) 96px no-repeat,
    linear-gradient(rgba(127, 127, 140, .08), rgba(127, 127, 140, .08)) 260px 296px / calc(100% - 290px) 220px no-repeat,
    linear-gradient(rgba(127, 127, 140, .10), rgba(127, 127, 140, .10)) 0 52px / 220px 100% no-repeat,
    linear-gradient(rgba(127, 127, 140, .12), rgba(127, 127, 140, .12)) 0 0 / 100% 52px no-repeat,
    rgba(20, 24, 32, .35);
  animation: spr-skel 1.6s linear infinite, spr-skel-off 0s 4s forwards;
}
html:not([data-theme="dark"]) body:not(.spr-on) main.sx > #sx-app::before { background-color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) {
  body:not(.spr-on) main.sx > #sx-app::before { height: 70vh; background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
    linear-gradient(rgba(127, 127, 140, .14), rgba(127, 127, 140, .14)) 16px 70px / 60% 24px no-repeat,
    linear-gradient(rgba(79, 108, 240, .16), rgba(79, 108, 240, .16)) 16px 116px / calc(100% - 32px) 110px no-repeat,
    linear-gradient(rgba(127, 127, 140, .08), rgba(127, 127, 140, .08)) 16px 244px / calc(100% - 32px) 180px no-repeat,
    linear-gradient(rgba(127, 127, 140, .12), rgba(127, 127, 140, .12)) 0 0 / 100% 52px no-repeat, rgba(20, 24, 32, .35); }
}
@keyframes spr-skel { to { background-position: 250% 0; } }
@keyframes spr-skel-off { to { height: 0; margin: 0; border-width: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body:not(.spr-on) main.sx > #sx-app::before { animation: spr-skel-off 0s 4s forwards; } }

/* ---------- r7 (2026-11-28): page chrome on studio pages — analytics question + preferences chip, payment bubble on phones ---------- */
html body #amaador-analytics-panel { background: rgba(255, 255, 255, .86) !important; color: #1d1d1f !important; border: .5px solid rgba(16, 19, 26, .1) !important; border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(16, 19, 26, .22), 0 2px 8px rgba(16, 19, 26, .06) !important; backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  padding: 20px 22px !important; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif !important; max-width: 560px !important; }
html[data-theme="dark"] body #amaador-analytics-panel { background: rgba(24, 26, 32, .82) !important; color: #f5f5f7 !important; border-color: rgba(255, 255, 255, .1) !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .55) !important; }
html body #amaador-analytics-panel > strong { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 4px; }
html body #amaador-analytics-panel > p { margin: 0 0 8px !important; opacity: .82; }
html body #amaador-analytics-panel button { border-radius: 999px !important; padding: 9px 16px !important; font-weight: 600 !important; border: .5px solid rgba(127, 127, 140, .35) !important;
  background: rgba(118, 118, 128, .12) !important; color: inherit !important; transition: background .2s, transform .15s; }
html body #amaador-analytics-panel button:hover { background: rgba(118, 118, 128, .2) !important; }
html body #amaador-analytics-panel button:active { transform: scale(.97); }
html body #amaador-analytics-panel button[data-analytics-action="accept"] { background: linear-gradient(180deg, #4a68ec, #2541b2) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 6px 16px rgba(37, 65, 178, .3); }
html body #amaador-analytics-panel a { color: inherit !important; opacity: .7; }
/* preferences: a small round chip instead of a wide button (it covered the install tile on phones) */
html body button[data-analytics-action="preferences"] { width: 38px !important; height: 38px !important; padding: 0 !important; font-size: 0 !important; border-radius: 50% !important;
  inset: auto 14px 14px auto !important; background: rgba(255, 255, 255, .78) !important; border: .5px solid rgba(16, 19, 26, .12) !important; box-shadow: 0 8px 22px rgba(16, 19, 26, .14) !important;
  backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); color: #3a3a40 !important; display: grid !important; place-items: center; }
html body button[data-analytics-action="preferences"][hidden] { display: none !important; }
html body button[data-analytics-action="preferences"]::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme="dark"] body button[data-analytics-action="preferences"] { background: rgba(30, 32, 38, .78) !important; border-color: rgba(255, 255, 255, .12) !important; color: #e5e5ea !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .45) !important; }
@media (max-width: 760px) {
  /* phones: the install tile owns the bottom-right corner, so the chip moves next to the back-to-top button */
  html body button[data-analytics-action="preferences"] { inset: auto auto 18px 68px !important; }
  html body #amaador-analytics-panel { inset: auto 10px 10px !important; padding: 18px !important; border-radius: 20px !important; }
  /* folded payment bubble: a round gift button, no clipped text */
  html body .pw-pill.sp-mini { width: 54px !important; height: 54px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; justify-content: center !important; gap: 0 !important; }
  html body .pw-pill.sp-mini > div:not(.pw-pi), html body .pw-pill.sp-mini > .pw-px { display: none !important; }
  html body .pw-pill.sp-mini > .pw-pi { margin: 0 !important; }
}
@media print { html body #amaador-analytics-panel, html body button[data-analytics-action="preferences"] { display: none !important; } }

/* ---------- r8 (2026-11-28): premium colours — one deep jewel palette (sapphire, emerald, amethyst, garnet, bronze, champagne, peacock, slate) ---------- */
/* icon tiles: deep, less saturated, metallic rim */
.t-blue { background: linear-gradient(160deg, #4a63c9, #1c2b6e) !important; } .t-indigo { background: linear-gradient(160deg, #6a63c8, #2a2470) !important; }
.t-purple { background: linear-gradient(160deg, #8a66c9, #3d2373) !important; } .t-pink { background: linear-gradient(160deg, #c4708a, #6b2440) !important; }
.t-orange { background: linear-gradient(160deg, #c98d52, #6e3d14) !important; } .t-green { background: linear-gradient(160deg, #3fa07d, #0d4a37) !important; }
.t-teal { background: linear-gradient(160deg, #3a9fa6, #0e4750) !important; } .t-red { background: linear-gradient(160deg, #c45a64, #6a1424) !important; }
.t-yellow { background: linear-gradient(160deg, #d8b46e, #7c5a1c) !important; } .t-mint { background: linear-gradient(160deg, #4fb3a2, #105045) !important; }
.t-gray { background: linear-gradient(160deg, #8d95a3, #3a404c) !important; }
.spr-tile { box-shadow: inset 0 0 0 .5px rgba(255, 236, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .22) !important; }

/* one accent for every studio: deep sapphire (the per-studio orange/teal/green accents become a quiet tint) */
html body .spr-stage { --sx-ac: #2f4fd1; --sx-ac2: #1c2b6e; }
html[data-theme="dark"] body .spr-stage { --sx-ac: #7d94f0; --sx-ac2: #2f4fd1; }

/* charts: bars in the jewel palette */
html body .spr-stage { --k1: #b8792f; --k2: #3a5bd0; --k3: #1f8f8a; --k4: #7a4fc4; --k5: #b8913f; --k6: #a8324a; }
html[data-theme="dark"] body .spr-stage { --k1: #d39a55; --k2: #7d94f0; --k3: #3fb5ae; --k4: #a585e8; --k5: #e2c07a; --k6: #d0607a; }
html body .spr-stage .sx-bar i, html body .spr-stage .sx-bars i { background-image: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .18)) !important; border-radius: 99px; }

/* heat map: emerald / bronze / garnet instead of traffic-light green / yellow / red */
html body .spr-stage td[data-lv="0"] { background: linear-gradient(160deg, rgba(31, 143, 106, .55), rgba(13, 74, 55, .7)) !important; }
html body .spr-stage td[data-lv="1"] { background: linear-gradient(160deg, rgba(201, 141, 82, .62), rgba(110, 61, 20, .72)) !important; }
html body .spr-stage td[data-lv="2"] { background: linear-gradient(160deg, rgba(196, 90, 100, .66), rgba(106, 20, 36, .8)) !important; }
html body .spr-stage td[data-lv="3"] { background: linear-gradient(160deg, rgba(140, 40, 70, .8), rgba(70, 10, 30, .9)) !important; }
html body .spr-stage td[data-lv] { color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
html:not([data-theme="dark"]) body .spr-stage td[data-lv="0"] { background: linear-gradient(160deg, #3fa07d, #13654a) !important; }
html:not([data-theme="dark"]) body .spr-stage td[data-lv="1"] { background: linear-gradient(160deg, #c98d52, #8a4f1c) !important; }
html:not([data-theme="dark"]) body .spr-stage td[data-lv="2"] { background: linear-gradient(160deg, #c45a64, #861d31) !important; }

/* greeting line: champagne to platinum (no purple / blue rainbow) */
.spr-gt { background: linear-gradient(95deg, #8a6420 0%, #b08a3e 45%, #4a5262 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
html[data-theme="dark"] .spr-gt { background: linear-gradient(95deg, #f6e7c4 0%, #e2b867 42%, #cfd6e6 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; }
/* progress: sapphire to champagne */
.spr-prog i { background: linear-gradient(90deg, #2541b2, #5b55c4 50%, #c9a050) !important; }
/* status pills */
.spr-pill.high { background: rgba(168, 50, 74, .14) !important; color: #a8324a !important; }
.spr-pill.med { background: rgba(184, 121, 47, .15) !important; color: #9a6224 !important; }
.spr-pill.low { background: rgba(31, 143, 106, .14) !important; color: #13654a !important; }
html[data-theme="dark"] .spr-pill.high { background: rgba(208, 96, 122, .16) !important; color: #e8899d !important; }
html[data-theme="dark"] .spr-pill.med { background: rgba(211, 154, 85, .16) !important; color: #e2b06e !important; }
html[data-theme="dark"] .spr-pill.low { background: rgba(63, 181, 174, .15) !important; color: #6fd0b0 !important; }
/* a champagne hairline on the jewel figure cards */
.spr-kpi.g-warm, .spr-kpi.g-cool { border: .5px solid rgba(231, 201, 140, .35) !important; }
/* r8: studio logo tile — the studio's own colour, deepened and given a champagne lift */
html body .spr-logo { background: linear-gradient(160deg, color-mix(in oklab, var(--spr-ac) 62%, #f3e2bd), color-mix(in oklab, var(--spr-ac) 52%, #120c24)) !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 236, 200, .28), inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 8px rgba(0, 0, 0, .25) !important; }
/* r8: payment bubble gift icon in champagne gold (was bright teal) */
html body .pw-pill .pw-pi { background: linear-gradient(160deg, #d8b46e, #7c5a1c) !important; color: #fff !important; box-shadow: inset 0 0 0 .5px rgba(255, 236, 200, .3), inset 0 1px 0 rgba(255, 255, 255, .3) !important; }
html body .pw-pill .pw-pi svg { color: #fff !important; stroke: #fff !important; }
/* r8: benefit line in soft emerald */
.spr-fi small { color: #13654a !important; } html[data-theme="dark"] .spr-fi small { color: #6fd0b0 !important; }

/* r9: folded payment bubble = round gift button at every width (desktop showed clipped text too) */
html body .pw-pill.sp-mini { width: 54px !important; height: 54px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; justify-content: center !important; gap: 0 !important; }
html body .pw-pill.sp-mini > div:not(.pw-pi), html body .pw-pill.sp-mini > .pw-px { display: none !important; }
html body .pw-pill.sp-mini > .pw-pi { margin: 0 !important; }
