.starxbullion-trend-panel{max-width:640px;margin:0 auto;padding:24px;border:1px solid var(--border-strong);border-radius:13px;background:var(--panel);color:var(--text)}
.starxbullion-trend-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.starxbullion-trend-heading h2{margin:0;color:var(--accent);font-size:18px;font-weight:700}
.starxbullion-trend-heading .btn{min-height:44px;min-width:88px;padding:10px 16px;background:var(--bg-soft);color:var(--accent);border:1px solid var(--border-strong)}
.starxbullion-trend-heading .btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.starxbullion-trend-heading .btn:disabled{opacity:.6;cursor:wait}
.starxbullion-trend-gauge{display:block;width:220px;max-width:100%;height:auto;margin:0 auto;color:var(--accent)}
.starxbullion-trend-track{fill:none;stroke:var(--border);stroke-width:16}
.starxbullion-trend-arc{fill:none;stroke:var(--accent);stroke-width:16;stroke-linecap:butt;transform:rotate(-90deg);transform-origin:110px 110px}
.starxbullion-trend-percent{fill:currentColor;font-size:36px;font-weight:700;font-variant-numeric:tabular-nums}
.starxbullion-trend-caption{fill:var(--muted);font-size:12px}
.starxbullion-trend-signal{width:fit-content;min-width:140px;margin:16px auto;padding:8px 20px;border:1px solid var(--border-strong);border-radius:6px;background:var(--bg-soft);color:var(--accent);font-size:20px;font-weight:700;text-align:center}
.starxbullion-trend-message{margin:16px 0 24px;text-align:center;line-height:1.6;overflow-wrap:anywhere}
.starxbullion-trend-levels{display:grid;grid-template-columns:1fr auto;margin:0;font-variant-numeric:tabular-nums}
.starxbullion-trend-levels dt,.starxbullion-trend-levels dd{margin:0;padding:12px 0;border-bottom:1px solid var(--border);line-height:1.4}
.starxbullion-trend-levels dt{color:var(--muted);font-weight:500}
.starxbullion-trend-levels dd{padding-left:16px;color:var(--text);font-weight:700;text-align:right}
.starxbullion-trend-status{margin:18px 0 0;color:var(--muted);font-size:13px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.starxbullion-trend-note{max-width:640px;margin:16px auto 0;color:var(--muted);font-size:12px;line-height:1.6;text-align:center}
#goldTrendDetails[hidden]{display:none}
.starxbullion-gold-refresh-status{margin:0 0 24px;color:var(--muted);font-size:15px;line-height:1.7}
.starxbullion-gold-overview.is-refreshing :is(.starxbullion-gold-visual,.starxbullion-gold-range,.starxbullion-gold-plot),.starxbullion-trend-panel.is-refreshing #goldTrendDetails{opacity:.25;transition:opacity .15s ease}
@media(prefers-reduced-motion:reduce){.starxbullion-gold-overview.is-refreshing :is(.starxbullion-gold-visual,.starxbullion-gold-range,.starxbullion-gold-plot),.starxbullion-trend-panel.is-refreshing #goldTrendDetails{transition:none}}
html[data-theme] .starxbullion-service-page .page-head #goldTrendRefresh{min-width:140px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
#goldTrendRefresh[aria-busy="true"]::before{content:"";width:12px;height:12px;flex:none;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:starxbullion-gold-refresh-spin .8s linear infinite}
@keyframes starxbullion-gold-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#goldTrendRefresh[aria-busy="true"]::before{animation:none}}
.starxbullion-gold-visual{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);align-items:center;gap:32px;margin-top:24px}
.starxbullion-gold-pie{margin:0;min-width:0;text-align:center}
.starxbullion-gold-pie canvas{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:1;margin:0 auto 12px}
.starxbullion-gold-pie figcaption{font-size:14px;line-height:1.5;color:var(--text);margin-bottom:16px}
.starxbullion-gold-pie-legend{display:grid;gap:12px;text-align:left;font-size:13px;color:var(--muted)}
.starxbullion-gold-pie-legend>span{display:flex;align-items:center;gap:8px}
.starxbullion-gold-pie-legend strong{margin-left:auto;color:var(--text);font-variant-numeric:tabular-nums}
.gold-pie-key{display:inline-block;width:12px;height:12px;flex:none;border-radius:3px;background:#e5b64a}
.gold-pie-key.is-silver{background:#a4b2bc}
.starxbullion-gold-range>p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.starxbullion-gold-range-meter{position:absolute;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden;white-space:nowrap}
@media(max-width:620px){.starxbullion-gold-visual{grid-template-columns:minmax(0,1fr);gap:24px}.starxbullion-gold-pie{width:260px;max-width:100%;margin:auto}.starxbullion-gold-pie canvas{width:220px}}
@media(max-width:480px){.starxbullion-trend-panel{padding:20px 16px}.starxbullion-trend-heading{gap:12px}.starxbullion-trend-heading h2{font-size:16px}.starxbullion-trend-gauge{width:200px}}
