.gm-panel{margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);min-width:0}.gm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.gm-head h2{font-size:16px;margin:0}.gm-en{font-size:10px;letter-spacing:1px;color:var(--muted);margin-left:5px}.gm-muted,.gm-note{font-size:11px;color:var(--muted)}.gm-note{margin:7px 0 0}.gm-head button,.gm-toolbar button,.gm-tabs button,.gm-chart-periods button{padding:4px 9px;font-size:11px;line-height:1.5}.gm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:0 0 7px}.gm-tabs{display:flex;gap:4px;flex-wrap:wrap}.gm-tabs .selected,.gm-chart-periods .selected{background:var(--ui-bg-2d405e,#2d405e);color:var(--ui-fg-fff,#fff);border-color:var(--ui-border-6a84ad,#6a84ad)}.gm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:6px;align-items:stretch}.gm-tile{min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;min-height:114px}.gm-tile:hover{border-color:var(--ui-border-6b87ad,#6b87ad)}.gm-title{display:flex;justify-content:space-between;align-items:center;gap:4px;text-align:left;font-weight:650;font-size:11px!important;color:var(--text);width:100%;padding:5px 7px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.gm-title:hover{background:var(--ui-bg-25354c,#25354c)}.gm-chart-icon{color:var(--accent);font-size:13px}.gm-local{padding:5px 8px;min-width:0;cursor:pointer}.gm-price{font-size:20px;font-weight:750;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.4px}.gm-change{font-size:11px;font-variant-numeric:tabular-nums}.gm-up{color:var(--up)}.gm-down{color:var(--down)}.gm-flat,.gm-meta{color:var(--muted)}.gm-meta{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gm-stale{color:var(--ui-fg-d8ad65,#d8ad65)}.gm-remote{min-width:0;display:flex;flex-direction:column;flex:1}.gm-frame{width:100%;height:108px;display:block;border:0;background:transparent}.gm-external{font-size:10px;color:var(--accent);text-decoration:none}.gm-remote .gm-external{padding:0 7px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gm-external:hover{text-decoration:underline}.gm-panel [hidden]{display:none!important}.gm-dialog{width:min(900px,96vw)!important;max-width:96vw!important;max-height:90vh;padding:16px!important;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;overflow:auto}.gm-dialog::backdrop{background:#050912cc}.gm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.gm-dialog-head h2{font-size:19px;margin:0}.gm-dialog-head button{position:static;flex-shrink:0}.gm-chart-periods{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.gm-chart-body{min-height:160px}.gm-chart-body svg{display:block;width:100%;height:auto}.gm-chart-value{font-size:21px;font-weight:700}.gm-chart-frame{width:100%;height:min(58vh,480px);min-height:280px;display:block;border:0;background:var(--bg)}@media(max-width:650px){.gm-panel{padding:8px}.gm-en{display:none}.gm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.gm-tile{min-height:110px}.gm-title{font-size:10px!important}.gm-price{font-size:17px}.gm-chart-frame{min-height:250px}.gm-dialog{padding:10px!important}}@media(max-width:330px){.gm-grid{grid-template-columns:1fr}}

/* All cards use the same compact native layout, without third-party iframes. */
.gm-tile{min-height:94px}.gm-price{font-size:19px}.gm-local{padding:5px 7px 6px}.gm-meta{line-height:1.35}.gm-change{line-height:1.45}@media(max-width:650px){.gm-price{font-size:17px}}

/* v0.90.1: compact quote-only cards. Metadata remains in tooltip and chart. */
.gm-tile{min-height:76px}.gm-local{padding:6px 8px 7px}.gm-price{line-height:1.2}.gm-change{line-height:1.4}.gm-meta.gm-stale{font-size:10px;margin-top:2px}.gm-title{border-bottom:0!important}@media(max-width:650px){.gm-tile{min-height:72px}}

/* Global market groups and the five masthead charts. */
.gm-group,.gm-crypto-source{grid-column:1/-1;min-width:0}
.gm-group+.gm-group{margin-top:7px}
.gm-category{font-size:12px;font-weight:650;color:var(--muted);margin:4px 0 6px}
.gm-group-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#headerMarket .hm-tile{display:grid;grid-template-columns:max-content minmax(0,1fr);align-content:center;gap:2px 4px}
#headerMarket .hm-label,#headerMarket .hm-price,#headerMarket .hm-rate{grid-column:1}
#headerMarket .hm-spark{grid-column:2;grid-row:2/4;place-self:center;width:100%;max-width:64px;min-width:0;height:23px;pointer-events:none}
#headerMarket .hm-spark polyline{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
@media(max-width:1130px){.gm-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.gm-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#headerMarket .hm-spark{display:none}}

#gmGrid .gm-tile.gm-with-spark{display:grid;min-height:0;grid-template-columns:minmax(max-content,1.15fr) minmax(0,1fr);grid-template-rows:auto auto;cursor:pointer}
.gm-with-spark .gm-title{grid-column:1/-1}
.gm-with-spark .gm-local{grid-column:1;align-self:start;padding:2px 8px 5px}
.gm-with-spark .gm-spark{grid-column:2;grid-row:2;justify-self:end;align-self:center;width:calc(100% - 12px);max-width:126px;min-width:0;height:clamp(20px,2.2vw,30px);margin-right:9px;pointer-events:none}
.gm-with-spark .gm-spark polyline{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#gmGrid .gm-group-compact .gm-tile{min-height:0}
.gm-group-compact .gm-local{padding:3px 8px 5px}
.gm-group-compact .gm-price{font-size:16px}
@media(max-width:650px){#gmGrid .gm-tile.gm-with-spark{grid-template-columns:minmax(max-content,1.4fr) minmax(0,1fr)}.gm-with-spark .gm-spark{width:calc(100% - 5px);margin-right:4px}}

.gm-crypto-tile{position:relative}
.gm-crypto-tile .gm-title{color:var(--text);box-sizing:border-box}
.gm-crypto-symbol,.gm-crypto-rank{color:var(--muted);font-size:10px}
.gm-crypto-rank{position:absolute;right:8px;bottom:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gm-crypto-tile .gm-local{cursor:default;padding-bottom:12px}
