:root { --eco-ink:#17211b; --eco-mint:#d7f2d0; --eco-lime:#b7d83b; --eco-paper:#f4f1e8; --eco-line:#ccd1c4; }
.ecosystem-page { max-width: 1180px; margin: 0 auto; padding: 42px 20px 72px; color:var(--eco-ink); background:radial-gradient(circle at 100% 0,#e2efb6 0,transparent 28%),var(--eco-paper); }
.ecosystem-header { display:flex; justify-content:space-between; gap:24px; align-items:end; padding:18px 0 36px; }
.eyebrow,.panel-label { letter-spacing:2px; font-size:11px; font-weight:800; text-transform:uppercase; opacity:.65; margin:0 0 9px; }
h1 { font-size:clamp(38px,7vw,76px); line-height:.95; margin:0; letter-spacing:0; } h2 { margin:0; font-size:25px; letter-spacing:0; } .subtitle { font-size:16px; margin:14px 0 0; opacity:.72; }
.pulse { background:var(--eco-ink); color:white; padding:10px 14px; border-radius:999px; font-size:12px; white-space:nowrap; } .pulse span { display:inline-block; width:7px; height:7px; background:var(--eco-lime); border-radius:50%; margin-right:7px; }
.ecosystem-shell { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; align-items:start; } .ecosystem-nav { position:sticky; top:18px; display:flex; flex-direction:column; gap:4px; padding:10px; border-left:3px solid var(--eco-ink); } .nav-label { padding:8px 12px 12px; font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; opacity:.55; } .ecosystem-nav a { display:flex; align-items:center; gap:9px; padding:12px; color:var(--eco-ink); text-decoration:none; font-size:14px; border-left:2px solid transparent; } .ecosystem-nav a:hover,.ecosystem-nav a.is-active { background:#e3edcf; border-left-color:var(--eco-lime); font-weight:700; } .nav-dot { width:8px; height:8px; flex:0 0 8px; border:1px solid var(--eco-ink); border-radius:50%; } .nav-dot.is-earned { background:var(--eco-lime); border-color:var(--eco-ink); } .ecosystem-content { min-width:0; } .tab-panel[hidden] { display:none; } .panel { padding:25px; border:1px solid var(--eco-line); background:rgba(255,255,255,.6); }
.medal-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; } .medal-preview { display:grid; grid-template-columns:56px 1fr; gap:12px; align-items:center; min-height:116px; padding:16px; color:var(--eco-ink); text-decoration:none; border:1px solid var(--eco-line); background:#fff; transition:transform .2s ease,box-shadow .2s ease; } .medal-preview:hover { transform:translateY(-3px); border-color:var(--eco-ink); box-shadow:0 12px 24px #173b3218; } .medal-preview.is-earned { background:var(--eco-ink); color:#fff; border-color:var(--eco-ink); } .medal-art { position:relative; display:grid; place-items:center; width:52px; height:58px; clip-path:polygon(50% 0,92% 20%,82% 75%,50% 100%,18% 75%,8% 20%); background:var(--medal-color,#b7d83b); filter:drop-shadow(0 5px 3px #17211b33); } .medal-art:before { content:""; position:absolute; inset:5px; clip-path:inherit; border:2px solid #ffffffaa; background:transparent; } .medal-art span { position:relative; z-index:1; color:#17211b; font-size:21px; font-weight:900; } .medal-1 { --medal-color:#b7d83b; } .medal-2 { --medal-color:#8bc7c0; } .medal-3 { --medal-color:#e6a85f; } .medal-preview strong,.medal-preview small { display:block; } .medal-preview small { margin-top:6px; font-size:12px; opacity:.65; } .preview-state { grid-column:2; font-size:11px; opacity:.65; } .overview-note { margin-top:18px; padding:14px 0 0; border-top:1px solid var(--eco-line); font-size:13px; opacity:.65; } .medal-summary { font-size:17px; opacity:.7; } .progress-card { position:relative; overflow:hidden; padding:24px; margin:20px 0 14px; background:var(--eco-ink); color:#fff; } .progress-card:after { content:""; position:absolute; width:220px; height:220px; right:-70px; top:-130px; border:1px solid #ffffff20; border-radius:50%; box-shadow:0 0 0 18px #ffffff0a,0 0 0 36px #ffffff06; } .progress-numbers { display:flex; align-items:baseline; gap:8px; } .progress-numbers strong { font-size:56px; line-height:1; } .progress-numbers span { opacity:.7; } .progress-track { height:9px; margin:20px 0 14px; background:#ffffff2b; } .progress-track span { display:block; height:100%; background:var(--eco-lime); } .progress-card p { margin:0; font-size:13px; opacity:.72; }
.big-number { font-size:64px; line-height:1; font-weight:800; margin:18px 0 8px; } .panel-accent p { max-width:210px; margin:0; font-weight:600; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:15px; margin-bottom:20px; } .count { font-size:11px; font-weight:800; opacity:.55; } .contribution-list { border-top:1px solid var(--eco-line); } .contribution-row { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:16px 0; border-bottom:1px solid var(--eco-line); } .contribution-row b,.contribution-row small { display:block; } .contribution-row small { font-size:12px; opacity:.55; margin-top:5px; } .contribution-row strong { white-space:nowrap; } .contribution-row em { font-style:normal; font-size:12px; opacity:.6; }
.preference-panel,.admin-panel { margin-top:14px; } .hint,.empty { opacity:.65; } form { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; min-width:0; } input,select,button { min-width:0; min-height:40px; box-sizing:border-box; border:1px solid var(--eco-line); padding:0 12px; font:inherit; background:white; } button { background:var(--eco-ink); color:white; cursor:pointer; } #preference-result,#medal-result { align-self:center; font-size:13px; overflow-wrap:anywhere; }
@media(max-width:760px){ .ecosystem-shell{grid-template-columns:1fr;} .ecosystem-nav{position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-left:0; border-bottom:2px solid var(--eco-ink); } .nav-label{grid-column:1/-1;} .ecosystem-nav a{border-left:0; border-bottom:2px solid transparent;} .ecosystem-nav a:hover,.ecosystem-nav a.is-active{border-left:0; border-bottom-color:var(--eco-lime);} .medal-preview-grid{grid-template-columns:1fr;} }
@media(max-width:650px){ .ecosystem-header{align-items:start; flex-direction:column;} .panel{padding:19px;} form>*{width:100%; max-width:100%;} }

/* Keep the overview cards as a complete, equal-height row. */
.ecosystem-page { max-width: 1240px; padding: 48px 28px 96px; background: linear-gradient(135deg, #f8f6ee 0%, #eef3e5 100%); }
.ecosystem-header { padding: 10px 0 38px; }
.ecosystem-header h1 { font-size: 54px; line-height: 1; font-weight: 800; }
.ecosystem-header .subtitle { max-width: 480px; line-height: 1.7; }
.ecosystem-shell { grid-template-columns: 236px minmax(0, 1fr); gap: 26px; }
.ecosystem-nav { top: 24px; gap: 6px; padding: 14px 10px; border-left: 1px solid #aeb9a7; }
.ecosystem-nav a { min-height: 44px; box-sizing: border-box; border-radius: 8px; transition: background .18s ease, border-color .18s ease; }
.ecosystem-nav a:hover,.ecosystem-nav a.is-active { background: #dfead0; border-left-color: var(--eco-ink); }
.tab-panel { min-width: 0; animation: eco-panel-in .24s ease both; }
.tab-panel:not([hidden]) { display: block; }
.medal-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.medal-preview { position: relative; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px; min-height: 188px; height: 100%; box-sizing: border-box; padding: 22px 18px 16px; border: 1px solid #cbd5c4; border-bottom: 4px solid var(--medal-color, var(--eco-lime)); border-radius: 10px; box-shadow: 0 8px 20px #31432b0d; }
.medal-preview.is-earned { border-bottom-color: var(--medal-color, var(--eco-lime)); box-shadow: 0 12px 28px #31432b26; }
.medal-art { width: 54px; height: 64px; align-self: start; }
.medal-preview > div:nth-child(2) { align-self: start; padding-top: 4px; }
.medal-preview strong { font-size: 16px; line-height: 1.45; }
.medal-preview small { line-height: 1.55; }
.preview-state { grid-column: 1 / -1; display: block; padding-top: 12px; border-top: 1px solid currentColor; font-size: 12px; }
.medal-preview.is-earned .preview-state { color: var(--medal-color); }
.overview-note { line-height: 1.7; }
.medal-detail-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:22px; align-items:stretch; margin:22px 0 26px; }
.medal-stage { display:grid; place-items:center; align-content:center; gap:8px; min-height:238px; padding:24px 16px; box-sizing:border-box; border:1px solid color-mix(in srgb,var(--medal-color) 38%,#cbd5c4); border-radius:10px; background:linear-gradient(145deg,var(--medal-glow),#fff); text-align:center; }
.medal-stage .medal-art { width:86px; height:104px; margin-bottom:7px; transform:scale(1.02); }
.medal-stage strong { color:var(--medal-color); font-size:18px; }
.medal-stage small { color:#68756b; font-size:12px; }
.medal-detail-layout.level-1 { --medal-color:#1677ff; --medal-glow:#eaf3ff; }
.medal-detail-layout.level-2 { --medal-color:#13a8a8; --medal-glow:#e7fbf8; }
.medal-detail-layout.level-3 { --medal-color:#fa8c16; --medal-glow:#fff4e5; }
.medal-detail-layout.level-4 { --medal-color:#eb2f96; --medal-glow:#fff0f6; }
.medal-detail-layout.level-5 { --medal-color:#722ed1; --medal-glow:#f4edff; }
.medal-detail-layout.level-2 .medal-art { filter:drop-shadow(0 7px 12px #13a8a855); }
.medal-detail-layout.level-3 .medal-art { clip-path:polygon(50% 0,61% 17%,82% 9%,79% 31%,100% 40%,82% 53%,91% 76%,68% 73%,50% 100%,32% 73%,9% 76%,18% 53%,0 40%,21% 31%,18% 9%,39% 17%); }
.medal-detail-layout.level-4 .medal-art { border-radius:18px; clip-path:polygon(50% 0,63% 10%,79% 4%,88% 19%,100% 31%,91% 47%,100% 63%,87% 76%,80% 94%,62% 89%,50% 100%,38% 89%,20% 94%,13% 76%,0 63%,9% 47%,0 31%,12% 19%,21% 4%,37% 10%); }
.medal-detail-layout.level-5 .medal-art { clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%); box-shadow:0 8px 24px color-mix(in srgb,var(--medal-color) 55%,transparent); }
.medal-detail-layout.is-locked { --medal-color:#7a8580; --medal-glow:#f1f3f0; }
.medal-detail-layout.is-locked .medal-art { filter:grayscale(1); }
.progress-card { border-radius: 10px; }
.medal-preview { --medal-color:#7c3aed; --medal-glow:#ede9fe; overflow:hidden; background:linear-gradient(145deg,#fff 0%,var(--medal-glow) 100%); }
.medal-preview.level-1 { --medal-glow:#fff7ed; }
.medal-preview.level-2 { --medal-glow:#fef2f2; }
.medal-preview.is-earned { background:linear-gradient(145deg,#18212b 0%,#263746 100%); }
.medal-art { clip-path:polygon(16% 0,84% 0,100% 22%,88% 78%,68% 100%,32% 100%,12% 78%,0 22%); background:conic-gradient(from -90deg,var(--medal-color) 0 var(--medal-progress,0%),#c5cbd0 var(--medal-progress,0%) 100%); border:2px solid #fff; box-shadow:0 7px 18px color-mix(in srgb,var(--medal-color) 36%,transparent); }
.medal-art:before { inset:4px; border:1px solid #ffffffaa; }
.medal-art:after { content:""; position:absolute; inset:10px; clip-path:inherit; border:1px solid #ffffff88; }
.medal-art span { color:#fff; text-shadow:0 1px 3px #0008; font-size:24px; }
.medal-art i { position:absolute; width:7px; height:7px; right:7px; top:7px; background:#fff; border-radius:50%; box-shadow:0 0 0 3px #ffffff44; }
.medal-1 { --medal-color:#1677ff; }
.medal-2 { --medal-color:#f5222d; }
.medal-3 { --medal-color:#fa8c16; }
.medal-preview strong { letter-spacing:.02em; }
.medal-preview.is-earned strong { color:#fff; }
.medal-preview.is-earned small { color:#dbe7f0; opacity:.8; }
.medal-preview.is-earned .preview-state { color:var(--medal-color); border-color:#ffffff35; }
.ecosystem-logo { display:inline-flex; align-items:center; gap:4px; height:18px; margin-left:6px; padding:0 8px 0 6px; clip-path:polygon(0 0,92% 0,100% 50%,92% 100%,0 100%,8% 50%); background:linear-gradient(90deg,#1677ff,#722ed1); color:#fff; font-size:10px; line-height:18px; font-weight:800; vertical-align:middle; box-shadow:0 2px 5px #17211b38; }
.ecosystem-logo::before { content:""; width:5px; height:5px; border:1px solid #fff; transform:rotate(45deg); }
.ecosystem-user-badge { display:inline-grid; place-items:center; width:22px; height:22px; min-width:22px; margin-left:4px; color:#fff; background:linear-gradient(135deg,#1677ff,#722ed1); clip-path:polygon(18% 0,82% 0,100% 50%,82% 100%,18% 100%,0 50%); font-size:9px; font-weight:900; line-height:1; vertical-align:middle; filter:drop-shadow(0 2px 3px #17211b38); }
.user-profile-badge--icon { display:inline-grid; place-items:center; width:24px; height:24px; min-width:24px; margin-left:4px; padding:0; overflow:hidden; box-sizing:border-box; background:var(--badge-bg,#1677ff); color:var(--badge-fg,#fff); clip-path:polygon(18% 0,82% 0,100% 50%,82% 100%,18% 100%,0 50%); box-shadow:0 2px 5px #17211b38; font-size:8px; font-weight:900; line-height:1; text-align:center; vertical-align:middle; text-shadow:0 1px 2px #0008; }
.user-profile-badge--icon > span,.ecosystem-user-badge > span { display:block; max-width:100%; overflow:hidden; padding:0 2px; white-space:nowrap; text-overflow:ellipsis; }
.user-profile-badge--icon.badge--lv1,.user-profile-badge--icon.badge--lv2,.user-profile-badge--icon.badge--lv3,.user-profile-badge--icon.badge--lv4,.user-profile-badge--icon.badge--lv5,.user-profile-badge--icon.badge--lv6,.user-profile-badge--icon.badge--lv7 { background:linear-gradient(135deg,#1677ff,#722ed1); color:#fff; }
.user-profile-badge--icon.badge--su { background:linear-gradient(135deg,#f5222d,#fa8c16); color:#fff; }
.user-profile-badge--icon.badge--mod { background:linear-gradient(135deg,#13c2c2,#1677ff); color:#fff; }
@keyframes eco-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:900px) { .ecosystem-shell { grid-template-columns: 190px minmax(0, 1fr); } .medal-preview-grid { grid-template-columns: 1fr; } .medal-preview { min-height: 154px; } }
@media(max-width:760px) { .ecosystem-page { padding: 30px 16px 64px; } .ecosystem-header h1 { font-size: 42px; } .ecosystem-shell { display: block; } .ecosystem-nav { margin-bottom: 18px; } .medal-detail-layout { grid-template-columns:1fr; } .medal-stage { min-height:190px; } .medal-stage .medal-art { width:72px; height:88px; } }

.ecosystem-online-page .ecosystem-content { min-width: 0; }
.online-note { display:flex; align-items:center; gap:9px; margin:4px 0 20px; padding:13px 15px; border:1px solid #cbd5c4; border-radius:8px; background:#eef3e5; color:#526157; font-size:13px; line-height:1.5; }
.online-live-dot { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:var(--eco-lime); box-shadow:0 0 0 4px #b7d83b33; }
.online-list { border-top:1px solid var(--eco-line); }
.online-user { display:flex; align-items:center; gap:14px; min-height:74px; padding:10px 4px; box-sizing:border-box; border-bottom:1px solid var(--eco-line); color:var(--eco-ink); text-decoration:none; transition:padding .18s ease, background .18s ease; }
.online-user:hover { padding-left:12px; padding-right:12px; background:#e8f0df; }
.online-avatar { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:linear-gradient(135deg,#1677ff,#722ed1); color:#fff; font-size:18px; font-weight:800; box-shadow:0 5px 12px #17211b25; }
.online-avatar--oj { background:linear-gradient(135deg,#13a8a8,#1677ff); }
.online-user-main { min-width:0; flex:1; }
.online-user-main strong,.online-user-main small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.online-user-main strong { font-size:15px; }
.online-user-main small { margin-top:4px; color:#718076; font-size:12px; }
.online-status { display:inline-flex; align-items:center; gap:7px; color:#4d7115; font-size:12px; font-weight:800; }
.online-status:before { content:""; width:7px; height:7px; border-radius:50%; background:var(--eco-lime); }
.online-empty { display:grid; justify-items:center; gap:7px; padding:64px 20px; color:#657268; text-align:center; }
.online-empty-mark { display:grid; place-items:center; width:66px; height:66px; margin-bottom:8px; border:1px solid #bfcbb8; border-radius:50%; color:var(--eco-ink); font-size:25px; font-weight:800; background:#eef3e5; }
.online-empty strong { color:var(--eco-ink); font-size:16px; }
.online-empty span { font-size:13px; }
.online-viewers-panel { margin-top:24px; }
@media(max-width:760px) { .online-note { align-items:flex-start; } .online-user { min-height:68px; } .online-avatar { width:38px; height:38px; flex-basis:38px; border-radius:10px; font-size:16px; } }
