/* Intent: field equipment for explorers; balance first, permanent growth second.
   Existing ceramic/carbon/silver surfaces, amber as the stored energy signal.
   4px spacing, 20/24px panel padding, native controls, transform-only liquid. */
.ec-dashboard{--ec-ink:var(--深空,#090b0b);--ec-muted:#626866;--ec-fog:var(--雾银,#e7e9e8);--ec-ceramic:var(--陶瓷白,#f7f8f7);--ec-amber:#b44f25;--ec-liquid:#f06a3d;--ec-edge:rgba(8,11,11,.1);color:var(--ec-ink);font-family:"HarmonyOS Sans SC","MiSans","PingFang SC",sans-serif;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;font-variant-numeric:tabular-nums}
.ec-dashboard *{box-sizing:border-box}.ec-dashboard h2{font-size:20px;font-weight:750;letter-spacing:-.02em;margin:8px 0}.ec-dashboard p{line-height:1.6}.ec-kicker{font-size:10px;letter-spacing:.1em;color:var(--ec-muted);font-weight:650}.ec-caption{font-size:12px;color:var(--ec-muted);margin:4px 0}.ec-reservoir,.ec-growth{padding:24px;border-radius:28px 28px 28px 9px;background:var(--ec-ceramic);box-shadow:0 0 0 1px var(--ec-edge),0 8px 24px rgba(9,11,11,.04)}
.ec-reservoir{display:grid;grid-template-columns:minmax(0,1fr) 132px;align-items:center;gap:12px;overflow:hidden;background:linear-gradient(120deg,#fff,var(--ec-fog))}.ec-reservoir-copy{min-width:0}.ec-balance{display:flex;align-items:baseline;gap:8px;margin:20px 0 0}.ec-balance strong{font-size:clamp(32px,4vw,48px);line-height:1.08;font-weight:650;letter-spacing:-.04em;overflow-wrap:anywhere}.ec-balance>span{font-size:13px;font-weight:650;color:var(--ec-muted)}
body .ec-dashboard .ec-action{min-height:48px;padding:0 20px;margin:16px 0 0;background:var(--ec-ink)!important;color:#fff!important;font-size:13px;box-shadow:none!important;border-radius:999px!important}.ec-dashboard .ec-action::before{display:none!important}.ec-dashboard .ec-action:hover{filter:brightness(1.35)}.ec-dashboard .ec-action:active{transform:scale(.98)}.ec-dashboard .ec-action:focus-visible,.ec-dashboard summary:focus-visible{outline:2px solid var(--ec-amber);outline-offset:4px}.ec-dashboard .ec-action:disabled{opacity:.45;cursor:not-allowed}
.ec-growth{background:#fff;display:flex;flex-direction:column;justify-content:center}.ec-growth-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ec-title{font-size:12px;font-weight:650;white-space:nowrap;padding:6px 10px;background:var(--ec-fog);border-radius:999px}.ec-level-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:20px 0 12px}.ec-level-line>strong{font-size:32px;font-weight:650;letter-spacing:-.04em}.ec-level-line>span{font-size:12px;color:var(--ec-muted)}.ec-level-line b{color:var(--ec-ink);font-weight:650}.ec-progress{height:5px;background:var(--ec-fog);border-radius:6px;overflow:hidden}.ec-progress>div{height:100%;width:100%;background:var(--ec-ink);transform-origin:left;transition:transform 200ms}.ec-progress-meta{display:flex;justify-content:space-between;gap:4px;font-size:11px;color:var(--ec-muted);margin-top:8px}.ec-tier-track{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:24px}.ec-tier-track>div{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--ec-muted)}.ec-tier-track i{height:3px;width:100%;background:var(--ec-fog);border-radius:2px;margin-bottom:4px}.ec-tier-track .is-reached i{background:var(--ec-amber)}.ec-tier-track .is-reached b{color:var(--ec-ink)}.ec-tier-track span{font-size:10px}.ec-growth-note{color:var(--ec-muted);font-size:11px;margin:16px 0 0}
.ec-store,.ec-rules{grid-column:1/-1;background:rgba(255,255,255,.72);border-radius:16px;padding:0 20px}.ec-dashboard summary{cursor:pointer;min-height:48px;padding:14px 0;font-size:13px;font-weight:650}.ec-store>summary{display:flex;justify-content:space-between;gap:12px}.ec-store>summary>span{font-size:11px;color:var(--ec-muted);font-weight:400}.ec-rules p,#ec-store-content>p{font-size:13px;color:var(--ec-muted);margin:0;padding:4px 0 16px}.ec-store-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-top:1px solid var(--ec-edge)}.ec-store-item h3{font-size:15px;margin:0}.ec-store-item p{font-size:12px;color:var(--ec-muted);margin:4px 0 8px}.ec-store-item b{font-size:13px;color:var(--ec-amber)}.ec-store-item .ec-action{flex:none}.ec-receipts-heading{font-size:13px;margin:16px 0 0}.ec-receipt{border-top:1px solid var(--ec-edge)}.ec-receipt summary{display:flex;justify-content:space-between;gap:8px}.ec-receipt p{font-size:12px}.ec-receipt .ec-content{white-space:pre-wrap;overflow-wrap:anywhere}
/* Existing theme forces leaderboard typography; make level badges readable. */
body .leaderboard-item>span:nth-child(3)>span.ec-rank-level{display:block!important;color:#515955!important;font-size:11px!important;line-height:1.35!important;white-space:normal!important;font-weight:550!important;margin-left:0!important}
body .leaderboard-item>span:nth-child(3)>span.ec-rank-level:before{content:none!important}
body .leaderboard-item>span:nth-child(3)>span:first-child{display:block!important;font-size:12px!important;line-height:1.35!important}
body .leaderboard-item{height:auto!important;min-height:44px!important;padding:5px 2px!important}
body .leaderboard-item>span{font-size:11px!important;line-height:1.35!important}
body .leaderboard-item img{width:22px!important;height:22px!important}
body .leaderboard-card>div:first-child{font-size:11px!important;min-height:36px!important}
body .leaderboard-card>div:first-child,body .leaderboard-item{grid-template-columns:30px 28px minmax(80px,1fr) 28px 26px 26px 26px!important}
body .leaderboard-card>div:first-child>span{white-space:nowrap!important}
@media(max-width:760px){.ec-dashboard{grid-template-columns:1fr;gap:10px;margin:8px 0}.ec-reservoir,.ec-growth{padding:20px;border-radius:24px 24px 24px 8px}.ec-reservoir{grid-template-columns:minmax(0,1fr) 120px;gap:8px}.ec-balance strong{font-size:40px}.ec-balance{margin-top:16px}.ec-level-line{margin-top:12px}.ec-tier-track{margin-top:20px}.ec-kicker{font-size:9px;letter-spacing:.07em}.ec-store,.ec-rules{padding:0 16px}}
@media(max-width:359px){.ec-reservoir{padding:16px;grid-template-columns:minmax(0,1fr) 102px}.ec-balance strong{font-size:32px}.ec-kicker{font-size:8px}.ec-progress-meta{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ec-dashboard *{transition:none!important;scroll-behavior:auto!important}}

/* Universe crystals: original art is the focus; current EC controls form and meter.
   Ceramic/silver panels and cyan stellar light, 4px grid, existing 48px actions. */
.ec-reservoir{grid-template-columns:minmax(0,1fr) 180px;gap:16px;background:linear-gradient(120deg,#fff,#edf0f4)}
.ec-crystal-scene{min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;align-self:center}
.ec-crystal-stage{font-size:12px;font-weight:700;letter-spacing:.08em;color:#31445b;background:rgba(223,230,239,.75);padding:6px 12px;border-radius:999px;white-space:nowrap}
.ec-crystal-stage small{font-size:10px;font-weight:500;color:#697586;letter-spacing:.02em}
.ec-crystal-art{width:100%;height:240px;display:flex;align-items:flex-end;justify-content:center;position:relative}
.ec-crystal-art:before{content:'';position:absolute;inset:28px 0 2px;border-radius:50%;background:radial-gradient(ellipse,rgba(152,204,249,.2),rgba(167,169,236,.06) 48%,transparent 70%);pointer-events:none}
.ec-crystal-sprite{position:relative;overflow:hidden;width:min(100%,calc(240px * var(--crystal-ratio)));aspect-ratio:var(--crystal-ratio);flex:none;isolation:isolate}
.ec-crystal-sprite>img{position:absolute;max-width:none!important;max-height:none!important;display:block;object-fit:fill;pointer-events:none;user-select:none}
.ec-crystal-missing{display:none;font-size:12px;color:#626866;text-align:center;padding:48px 8px}
.ec-crystal-sprite.is-missing .ec-crystal-missing{display:block}.ec-crystal-sprite.is-missing>img{visibility:hidden}
.ec-charge{grid-column:1/-1;min-width:0;padding-top:4px}
.ec-charge-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;color:#566477;line-height:1.5;margin-bottom:10px}
.ec-charge-head>span:first-child{font-weight:650;white-space:nowrap}.ec-charge-head>span:last-child{text-align:right}
.ec-charge-meter{height:6px;border-radius:4px;overflow:hidden;background:#d6dde6}.ec-charge-meter>div{height:100%;background:linear-gradient(90deg,#5174a0,#748cb7 65%,#36649a);transform-origin:left;transition:transform 280ms ease-out}
.ec-charge-ticks{display:grid;grid-template-columns:repeat(20,1fr);gap:3px;margin-top:5px}.ec-charge-ticks i{height:5px;border-left:1px solid #b6c1cf}.ec-charge-ticks i.is-charged{border-color:#426d9f}
.ec-charge-labels{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#626f80;margin-top:6px}.ec-charge-labels>span:nth-child(2){text-align:center}
@media(max-width:760px){.ec-reservoir{grid-template-columns:minmax(0,1fr) 148px;gap:12px;padding:20px}.ec-reservoir h2{font-size:20px;line-height:1.4}.ec-crystal-art{height:216px}.ec-crystal-sprite{width:min(100%,calc(216px * var(--crystal-ratio)))}.ec-crystal-stage{font-size:11px;padding:5px 9px}.ec-charge-head{font-size:11px;gap:8px}.ec-charge-labels{font-size:10px;gap:4px}}
@media(max-width:359px){.ec-reservoir{grid-template-columns:minmax(0,1fr) 120px;padding:16px;gap:8px}.ec-reservoir h2{font-size:18px}.ec-crystal-art{height:190px}.ec-crystal-sprite{width:min(100%,calc(190px * var(--crystal-ratio)))}.ec-charge-head{flex-direction:column;gap:2px}.ec-charge-head>span:last-child{text-align:left}.ec-charge-labels>span:nth-child(2){max-width:135px;line-height:1.4}}

/* Compact permanent experience panel. */
.ec-dashboard .ec-growth{align-self:start;padding:14px 20px;justify-content:flex-start}
.ec-dashboard .ec-growth h2{font-size:16px;line-height:22px;margin:0}
.ec-growth .ec-title{font-size:11px;padding:4px 9px}
.ec-growth .ec-level-line{margin:6px 0;line-height:26px}
.ec-growth .ec-level-line>strong{font-size:24px}
.ec-growth .ec-progress-meta{margin-top:5px;line-height:15px}
.ec-growth .ec-tier-track{margin-top:10px}
.ec-growth .ec-tier-track>div{gap:2px;line-height:14px}
.ec-growth .ec-tier-track i{margin-bottom:2px;height:2px}
