:root{--ink:#17221d;--muted:#64736b;--line:#dfe7e1;--paper:#f5f7f4;--white:#fff;--green:#146c4b;--green2:#0b4f39;--mint:#dff2e9;--orange:#eb6d3b;--gold:#f7b955;--danger:#b94b2f;--shadow:0 14px 40px rgba(23,49,37,.08);--shadow-strong:0 20px 55px rgba(19,55,39,.14);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);background:var(--paper)}
@media(max-width:1100px){.metric-grid,.post-strip,.event-card-grid,.machine-grid{grid-template-columns:repeat(2,1fr)}.community-layout{grid-template-columns:170px 1fr}.hot-panel{display:none}.knowledge-grid{grid-template-columns:repeat(2,1fr)}.price-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main{padding:20px 15px 90px}.mobile-nav{display:flex;position:fixed;z-index:10;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:9px 3px}.mobile-nav a{display:grid;text-align:center;color:var(--green);font-size:18px}.mobile-nav small{font-size:9px}.topbar{align-items:center}.date{display:none}.hero,.event-banner,.detail-hero,.machine-hero,.service-banner,.profile-banner{padding:26px 22px}.hero h2,.event-banner h2,.detail-hero h2,.machine-hero h2,.service-banner h2{font-size:28px}.hero-orbit,.machine-shape,.detail-code,.service-number{display:none}.metric-grid,.card-grid,.event-card-grid,.machine-grid,.group-grid,.match-grid,.quick-manage,.action-grid,.post-strip,.knowledge-grid,.price-grid{grid-template-columns:1fr 1fr}.content-grid,.community-layout{grid-template-columns:1fr}.category-panel{position:static;display:flex;overflow:auto}.category-panel h3,.category-panel .eyebrow,.category-panel hr{display:none}.form-grid{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{padding:28px 20px}.event-banner{display:block}.event-banner .button{margin-top:15px}.profile-banner{align-items:flex-start;flex-wrap:wrap}.profile-stats{margin-left:0;width:100%}.quick-manage{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.metric-grid,.event-card-grid,.machine-grid,.group-grid,.match-grid,.quick-manage,.post-strip,.knowledge-grid,.price-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr 1fr}.hero-actions{flex-wrap:wrap}.topbar h1{font-size:22px}.panel{padding:18px}.event-row{grid-template-columns:45px 1fr 18px}.event-row .status{display:none}}

.selected-card{border-color:var(--green);box-shadow:0 0 0 3px rgba(20,108,75,.08)}
.pinned-zone{margin-bottom:18px}
.pinned-post{border-color:#f4b184;background:linear-gradient(180deg,#fff8f1,#fff)}
.pin-badge{background:var(--orange);color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:6px 10px}
.comment-list{display:grid;gap:8px;margin-top:12px}
.comment-item{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;background:#f6f8f6;border-radius:8px;padding:9px 10px;font-size:12px}
.comment-item b{color:var(--green)}
.permission-form{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-width:380px}
.permission-form label{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;color:#536159}
.permission-form input{width:auto}
.inline-form select{min-width:96px;padding:6px 8px}

.tieba-hero{background:linear-gradient(120deg,#1d6fbc,#4b93d3);color:#fff;border-radius:18px;padding:28px 32px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow-strong)}
.tieba-hero h2{font-size:28px;line-height:1.25;margin:12px 0 8px}
.tieba-hero p{color:#e7f2ff;margin:0}
.tieba-layout{display:grid;grid-template-columns:180px minmax(0,1fr) 250px;gap:16px;align-items:start}
.tieba-sidebar{position:sticky;top:20px;padding:16px}
.tieba-sidebar h3{font-size:16px;margin-bottom:12px}
.tieba-sidebar a{display:block;padding:10px 12px;border-radius:8px;color:#536276;font-size:14px}
.tieba-sidebar a:hover,.tieba-sidebar a.active{background:#e9f3ff;color:#1d6fbc;font-weight:800}
.tieba-sidebar hr{border:0;border-top:1px solid var(--line);margin:10px 0}
.tieba-editor{display:grid;grid-template-columns:42px 1fr;gap:12px;border-top:3px solid #2c82cf}
.editor-fields input,.editor-fields textarea{background:#f8fbff;border-color:#d9e8f7}
.editor-actions{display:flex;justify-content:space-between;gap:12px;margin-top:10px}
.editor-actions select{max-width:180px}
.tieba-section{margin-bottom:18px}
.tieba-section-title{background:#f5f9ff;border:1px solid #dcecff;border-bottom:0;border-radius:12px 12px 0 0;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.tieba-section-title b{color:#1f4d82}
.tieba-section-title span{font-size:12px;color:#73849a}
.tieba-post{display:grid;grid-template-columns:92px 1fr;background:#fff;border:1px solid #dce6f2;border-top:0;min-height:126px}
.tieba-section .tieba-post:last-child{border-radius:0 0 12px 12px}
.post-left{background:#f3f7fc;border-right:1px solid #e0ebf7;display:grid;place-items:center;align-content:start;gap:8px;padding:18px 10px;text-align:center}
.post-left small{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-main{padding:16px 18px}
.post-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.post-title-line h3{font-size:18px;margin:0;color:#1d3760}
.post-title-line h3:hover{color:#1d6fbc}
.post-excerpt{color:#4f5e70;line-height:1.7;margin:10px 0 12px}
.post-meta{display:flex;gap:16px;color:#8a98a8;font-size:12px}
.post-actions{margin-top:10px}
.post-actions button{color:#1d6fbc}
.tieba-post-pinned{border-left:4px solid #f1a340;background:#fffdf8}
.tieba-post-pinned .post-left{background:#fff4dc}
.tieba-comments{margin-top:12px;background:#f8fbff;border:1px solid #e0ecf8;border-radius:10px;padding:8px}
.tieba-aside{display:grid;gap:14px;position:sticky;top:20px}
.forum-card{text-align:center}
.forum-logo{width:58px;height:58px;border-radius:16px;background:#2c82cf;color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900;margin:0 auto 12px}
.forum-card p{color:var(--muted);line-height:1.7}
.forum-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.forum-stats b,.forum-stats span{display:block}
.forum-stats b{font-size:22px;color:#1d6fbc}
.school-class-grid{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:18px;align-items:start}
.school-class-grid h4{margin:0 0 12px}
.school-class-list{background:#f8faf8;border:1px solid var(--line);border-radius:14px;padding:16px}
.mini-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.mini-list span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:12px;color:#46564e}

@media(max-width:1100px){.tieba-layout{grid-template-columns:150px 1fr}.tieba-aside{grid-column:1/-1;grid-template-columns:1fr 1fr;position:static}.school-class-grid{grid-template-columns:1fr}}
@media(max-width:760px){.tieba-hero{display:block;padding:24px}.tieba-hero .button{margin-top:14px}.tieba-layout{grid-template-columns:1fr}.tieba-sidebar{position:static;display:flex;overflow:auto;gap:4px}.tieba-sidebar h3,.tieba-sidebar hr{display:none}.tieba-sidebar a{white-space:nowrap}.tieba-post{grid-template-columns:1fr}.post-left{display:flex;align-items:center;justify-content:flex-start;border-right:0;border-bottom:1px solid #e0ebf7}.tieba-aside{grid-template-columns:1fr}.editor-actions{display:grid}.editor-actions select{max-width:none}}

.community-pro-hero{position:relative;overflow:hidden;border-radius:26px;padding:38px 42px;margin-bottom:22px;background:linear-gradient(135deg,#122b48,#226f9f 58%,#5bb4a0);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:center;box-shadow:var(--shadow-strong)}
.community-pro-hero:after{content:"";position:absolute;right:-110px;top:-140px;width:360px;height:360px;border-radius:50%;background:rgba(255,255,255,.12);box-shadow:-110px 180px 0 rgba(255,255,255,.06)}
.community-pro-copy,.community-pro-stats{position:relative;z-index:1}
.community-kicker{display:inline-flex;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);font-size:12px;font-weight:800;letter-spacing:.8px}
.community-pro-hero h2{font-size:38px;line-height:1.18;margin:18px 0 12px;max-width:760px}
.community-pro-hero p{color:#dceefd;max-width:720px;line-height:1.7}
.community-hero-actions{display:flex;gap:10px;margin-top:22px}
.community-pro-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.community-pro-stats div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:18px;text-align:center;backdrop-filter:blur(10px)}
.community-pro-stats b,.community-pro-stats span{display:block}
.community-pro-stats b{font-size:30px}
.community-pro-stats span{font-size:12px;color:#dceefd}
.community-pro-shell{display:grid;grid-template-columns:210px minmax(0,1fr) 280px;gap:18px;align-items:start}
.community-pro-nav,.community-pro-aside{position:sticky;top:20px}
.community-pro-nav .panel{padding:16px}
.community-pro-nav a{display:grid;gap:3px;padding:12px;border-radius:12px;color:#4d5c69;transition:.16s ease}
.community-pro-nav a span{font-weight:800}
.community-pro-nav a small{font-size:11px}
.community-pro-nav a:hover,.community-pro-nav a.active{background:#eef7ff;color:#176da1;transform:translateX(2px)}
.community-pro-main{min-width:0}
.community-composer{background:#fff;border:1px solid #dce8f0;border-radius:20px;padding:18px;display:grid;grid-template-columns:48px 1fr;gap:14px;margin-bottom:18px;box-shadow:0 12px 30px rgba(20,67,95,.06)}
.composer-avatar{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#226f9f,#5bb4a0);color:#fff;display:grid;place-items:center;font-weight:900}
.composer-body input,.composer-body textarea{border:0;background:#f6f9fb;margin-bottom:10px}
.composer-body textarea{resize:vertical}
.composer-toolbar{display:flex;justify-content:space-between;gap:12px}
.composer-toolbar select{max-width:180px}
.topic-section{margin-bottom:20px}
.topic-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:10px;padding:0 4px}
.topic-section-head h3{margin:0}
.topic-section-head span{font-size:12px;color:var(--muted)}
.topic-list{display:grid;gap:12px}
.topic-card{display:grid;grid-template-columns:68px minmax(0,1fr) 90px;gap:16px;background:#fff;border:1px solid #dce8f0;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(20,67,95,.045);transition:.18s ease}
.topic-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(20,67,95,.09);border-color:#bcd6e7}
.topic-card-pinned{background:linear-gradient(90deg,#fff9ed,#fff);border-color:#f4c577}
.topic-vote{text-align:center;display:grid;align-content:start;gap:3px;color:#738293}
.topic-vote button{width:38px;height:34px;border:0;border-radius:11px;background:#eef7ff;color:#176da1;font-weight:900}
.topic-vote b{font-size:20px;color:#18324a}
.topic-vote small{font-size:11px}
.topic-content h3{font-size:19px;margin:8px 0;color:#172d43}
.topic-content p{color:#526273;line-height:1.7;margin-bottom:12px}
.topic-meta-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8290a0;font-size:12px}
.reply-preview{background:#f7fafc;border:1px solid #e5eef5;border-radius:14px;padding:10px;display:grid;gap:8px;margin:10px 0}
.reply-preview div{display:grid;grid-template-columns:auto 1fr;gap:8px;font-size:12px}
.reply-preview b{color:#176da1}
.modern-reply{display:flex;gap:8px;margin-top:12px}
.modern-reply input{background:#f6f9fb}
.modern-reply button{border:0;border-radius:10px;background:#176da1;color:#fff;padding:0 16px;font-weight:800}
.topic-side{display:grid;align-content:start;gap:12px;text-align:right}
.topic-side span{font-size:12px;color:#7c8a98}
.topic-side span b{display:block;font-size:24px;color:#18324a}
.topic-side form{display:grid;gap:6px}
.topic-side button{border:0;background:#f3f7fa;color:#176da1;border-radius:9px;padding:7px 9px;font-size:12px;font-weight:800}
.community-profile-card{text-align:center}
.profile-orb{width:68px;height:68px;border-radius:22px;margin:0 auto 14px;background:linear-gradient(135deg,#226f9f,#5bb4a0);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}
.community-profile-card p,.rule-card li{color:#607080;line-height:1.7}
.trend-card a{display:block;padding:10px 0;border-bottom:1px solid var(--line);color:#176da1;font-weight:800}
.trend-card a:last-child{border-bottom:0}
.rule-card ul{padding-left:18px;margin-bottom:0}

@media(max-width:1180px){.community-pro-shell{grid-template-columns:190px 1fr}.community-pro-aside{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.community-pro-hero{grid-template-columns:1fr}.community-pro-stats{max-width:520px}}
@media(max-width:760px){.community-pro-hero{padding:26px 22px}.community-pro-hero h2{font-size:28px}.community-hero-actions{flex-wrap:wrap}.community-pro-stats{grid-template-columns:repeat(3,1fr)}.community-pro-shell{grid-template-columns:1fr}.community-pro-nav{position:static}.community-pro-nav .panel{display:flex;overflow:auto;gap:6px}.community-pro-nav h3,.community-pro-nav .eyebrow{display:none}.community-pro-nav a{min-width:120px}.community-composer{grid-template-columns:1fr}.composer-avatar{display:none}.composer-toolbar{display:grid}.composer-toolbar select{max-width:none}.topic-card{grid-template-columns:1fr}.topic-vote{display:flex;align-items:center;text-align:left}.topic-side{text-align:left;display:flex;justify-content:space-between;align-items:start}.topic-side form{display:flex}.community-pro-aside{grid-template-columns:1fr}.modern-reply{display:grid}.modern-reply button{padding:10px}}

.refero-community{--rx-blue:#111827;--rx-soft:#f4f6f8;--rx-card:#fff;--rx-accent:#f15f3f;position:relative;min-height:calc(100vh - 110px);padding-bottom:150px}
.refero-top{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:end;margin-bottom:16px}
.refero-kicker{display:inline-flex;align-items:center;border:1px solid #dce3ea;background:#fff;border-radius:999px;padding:7px 12px;color:#5c6875;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.refero-top h2{max-width:820px;margin:14px 0 10px;font-size:38px;line-height:1.12;letter-spacing:-1.4px;color:#121a24}
.refero-top p{max-width:720px;color:#647284;line-height:1.8;margin:0}
.refero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.refero-stats span{background:#111827;color:#d8dee8;border-radius:22px;padding:18px 12px;text-align:center;box-shadow:0 16px 36px rgba(17,24,39,.14)}
.refero-stats b{display:block;color:#fff;font-size:27px;line-height:1.1;margin-bottom:4px}
.refero-tabs{position:sticky;top:0;z-index:12;display:flex;gap:8px;overflow:auto;padding:10px 0 14px;margin-bottom:6px;background:linear-gradient(180deg,var(--paper) 72%,rgba(245,247,244,0));scrollbar-width:none}
.refero-tabs::-webkit-scrollbar{display:none}
.refero-tabs a{flex:0 0 auto;border:1px solid #dce4ea;background:#fff;color:#536171;border-radius:999px;padding:10px 15px;font-size:13px;font-weight:800;transition:.18s ease}
.refero-tabs a:hover,.refero-tabs a.active{background:#111827;color:#fff;border-color:#111827;box-shadow:0 10px 22px rgba(17,24,39,.16);transform:translateY(-1px)}
.refero-feed-shell{background:rgba(255,255,255,.62);border:1px solid #dfe7ee;border-radius:30px;padding:18px;box-shadow:0 20px 60px rgba(31,42,58,.06);backdrop-filter:blur(10px)}
.refero-feed-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:2px 6px 14px}
.refero-feed-head h3{font-size:22px;margin:0;color:#141c27}
.refero-feed-head>span{color:#738093;font-size:12px}
.refero-feed{height:calc(100vh - 335px);min-height:360px;overflow:auto;padding:2px 8px 10px 2px;scrollbar-color:#c8d2dc transparent}
.refero-pinned,.refero-normal{display:grid;gap:12px}
.refero-pinned{margin-bottom:12px}
.refero-thread-card{background:var(--rx-card);border:1px solid #e1e7ee;border-radius:26px;padding:18px 20px;box-shadow:0 12px 30px rgba(32,45,60,.045);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.refero-thread-card:hover,.refero-thread-card.is-expanded{border-color:#c7d3df;box-shadow:0 22px 52px rgba(32,45,60,.09);transform:translateY(-1px)}
.refero-thread-card.is-pinned{border-color:#f4bf9e;background:linear-gradient(180deg,#fff8f4,#fff)}
.thread-main{min-width:0}
.thread-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#7c8998;font-size:12px}
.thread-title{display:block;width:100%;margin:12px 0 8px;padding:0;border:0;background:transparent;color:#111827;text-align:left;font-size:21px;line-height:1.35;font-weight:900;letter-spacing:-.3px}
.thread-title:hover{color:var(--rx-accent)}
.thread-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#4e5d6c;line-height:1.75;margin-bottom:12px}
.thread-preview-replies{display:grid;gap:7px;background:#f6f8fa;border:1px solid #e7edf2;border-radius:18px;padding:11px 12px;margin:8px 0 12px}
.thread-preview-replies div{display:grid;grid-template-columns:auto 1fr;gap:8px;font-size:12px;align-items:start}
.thread-preview-replies b{color:#111827;white-space:nowrap}
.thread-preview-replies span{color:#617083;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thread-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#778496;font-size:12px}
.thread-actions form{margin:0}
.thread-like{border:0;border-radius:999px;background:#111827;color:#fff;padding:8px 13px;font-weight:900;box-shadow:0 10px 18px rgba(17,24,39,.12)}
.thread-actions .text-button{border:0;border-radius:999px;background:#eef2f5;color:#111827;padding:8px 13px;font-weight:900}
.thread-detail{margin-top:16px;border-top:1px solid #e4eaf0;padding-top:16px}
.thread-detail[hidden]{display:none}
.thread-detail h4{margin:0 0 8px;color:#141c27}
.thread-detail-copy{background:#fbfcfd;border:1px solid #e8edf2;border-radius:20px;padding:15px;margin-bottom:12px}
.thread-detail-copy p{white-space:pre-wrap;color:#465565;line-height:1.8;margin:0}
.thread-detail-replies{margin-bottom:12px}
.thread-reply-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}
.thread-reply-form input{background:#f8fafb;border-color:#dce5ec;border-radius:14px}
.thread-reply-form button{border:0;border-radius:14px;background:var(--rx-accent);color:#fff;padding:0 18px;font-weight:900}
.thread-moderation{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.thread-moderation button{border:0;border-radius:12px;background:#eef2f5;color:#111827;padding:8px 12px;font-size:12px;font-weight:800}
.refero-empty{display:grid;gap:6px;place-items:center;min-height:220px;border:1px dashed #cfd9e2;border-radius:24px;background:#fafbfc;color:#657386;text-align:center}
.refero-empty b{color:#141c27;font-size:18px}
.refero-bottom-composer{position:fixed;left:calc(245px + 4vw);right:4vw;bottom:18px;z-index:25;display:grid;grid-template-columns:48px minmax(160px,1fr) minmax(220px,1.2fr) 150px auto;gap:10px;align-items:center;background:rgba(255,255,255,.94);border:1px solid #dbe5ed;border-radius:26px;padding:14px;box-shadow:0 24px 70px rgba(20,30,43,.18);backdrop-filter:blur(18px)}
.refero-bottom-composer input,.refero-bottom-composer textarea,.refero-bottom-composer select{border-radius:16px;background:#f7f9fb;border-color:#dce5ec}
.refero-bottom-composer textarea{resize:none}
.refero-bottom-composer .button{border-radius:16px;padding:12px 18px}
@media(max-width:1180px){.refero-top{grid-template-columns:1fr}.refero-stats{max-width:420px}.refero-bottom-composer{grid-template-columns:48px 1fr 1fr;left:calc(245px + 3vw);right:3vw}.refero-bottom-composer select,.refero-bottom-composer button{grid-column:auto}}
@media(max-width:760px){.refero-community{padding-bottom:260px}.refero-top h2{font-size:30px}.refero-stats{grid-template-columns:repeat(3,1fr);width:100%}.refero-stats span{border-radius:18px;padding:14px 8px}.refero-tabs{top:0;margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px}.refero-feed-shell{border-radius:24px;padding:12px;margin-left:-4px;margin-right:-4px}.refero-feed-head{display:block}.refero-feed-head>span{display:block;margin-top:6px}.refero-feed{height:calc(100vh - 390px);min-height:320px;padding-right:2px}.refero-thread-card{border-radius:22px;padding:16px}.thread-title{font-size:18px}.thread-reply-form{grid-template-columns:1fr}.thread-reply-form button{padding:11px}.refero-bottom-composer{left:12px;right:12px;bottom:72px;grid-template-columns:1fr;padding:12px;border-radius:22px}.refero-bottom-composer .composer-avatar{display:none}.refero-bottom-composer .button{width:100%}}
@media(max-width:460px){.refero-stats b{font-size:22px}.thread-preview-replies div{grid-template-columns:1fr}.thread-preview-replies b{white-space:normal}.thread-preview-replies span{white-space:normal}.refero-feed{height:calc(100vh - 410px)}}

/* Community visual polish */
.community-polish{--club-ink:#10131a;--club-muted:#697386;--club-line:#e8edf3;--club-paper:#f3f5f8;--club-card:#ffffff;--club-orange:#ff6a3d;--club-green:#157154;isolation:isolate}
.community-polish:before{content:"";position:fixed;inset:0 0 auto 245px;height:52vh;z-index:-1;background:radial-gradient(circle at 16% 18%,rgba(255,106,61,.20),transparent 22rem),radial-gradient(circle at 84% 0,rgba(21,113,84,.18),transparent 28rem),linear-gradient(180deg,#f7f8fb,rgba(247,248,251,0));pointer-events:none}
.community-showcase{grid-template-columns:minmax(0,1fr) 340px;align-items:stretch;margin-bottom:18px;padding:28px;border:1px solid rgba(255,255,255,.82);border-radius:34px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(255,255,255,.68));box-shadow:0 28px 80px rgba(28,39,55,.10);backdrop-filter:blur(18px)}
.showcase-copy{display:grid;align-content:center}
.community-showcase .refero-kicker{width:max-content;background:#10131a;color:#fff;border-color:#10131a;box-shadow:0 12px 24px rgba(16,19,26,.16)}
.community-showcase h2{font-size:clamp(30px,4vw,54px);line-height:1.03;max-width:980px;margin:18px 0 14px;color:var(--club-ink)}
.community-showcase p{font-size:15px;color:var(--club-muted);max-width:760px}
.showcase-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.showcase-chips span{border:1px solid var(--club-line);background:#fff;border-radius:999px;padding:9px 12px;color:#465061;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(28,39,55,.04)}
.showcase-panel{display:grid;gap:14px;align-content:space-between;border-radius:28px;padding:18px;background:#111827;color:#fff;overflow:hidden;position:relative}
.showcase-panel:before{content:"";position:absolute;right:-44px;top:-44px;width:150px;height:150px;border-radius:50%;background:rgba(255,106,61,.30)}
.showcase-orb{position:relative;z-index:1;width:76px;height:76px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(135deg,#ff7a49,#ffd0bd);color:#10131a;font-size:27px;font-weight:950;letter-spacing:-1px;box-shadow:0 18px 36px rgba(255,106,61,.24)}
.community-polish .refero-stats{position:relative;z-index:1}
.community-polish .refero-stats span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);box-shadow:none;border-radius:20px;color:#cdd5df}
.channel-dock{position:sticky;top:0;z-index:14;display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:10px;overflow:visible;padding:12px 0 16px;background:linear-gradient(180deg,var(--paper) 70%,rgba(245,247,244,0))}
.channel-dock a{display:grid;gap:2px;justify-items:start;border:1px solid rgba(232,237,243,.95);border-radius:22px;padding:13px 14px;background:rgba(255,255,255,.86);box-shadow:0 12px 26px rgba(28,39,55,.05);backdrop-filter:blur(12px)}
.channel-dock a i{font-style:normal;color:var(--club-ink);font-size:14px}
.channel-dock a b{color:#8a94a4;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.channel-dock a.active,.channel-dock a:hover{background:#10131a;color:#fff;border-color:#10131a;box-shadow:0 18px 36px rgba(16,19,26,.18);transform:translateY(-2px)}
.channel-dock a.active i,.channel-dock a:hover i{color:#fff}
.channel-dock a.active b,.channel-dock a:hover b{color:#ffb49b}
.community-feed-card{border-radius:34px;padding:20px;background:rgba(255,255,255,.74);border-color:rgba(232,237,243,.88);box-shadow:0 28px 78px rgba(30,43,58,.09)}
.community-feed-card .refero-feed-head{padding:2px 6px 16px}
.community-feed-card .refero-feed-head h3{font-size:24px;color:var(--club-ink)}
.community-feed-card .refero-feed{height:calc(100vh - 390px);min-height:430px;padding:4px 10px 12px 4px}
.thread-polish{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;border:1px solid rgba(232,237,243,.95);border-radius:28px;padding:18px;background:rgba(255,255,255,.95);box-shadow:0 12px 34px rgba(28,39,55,.055)}
.thread-polish:hover,.thread-polish.is-expanded{border-color:#d8e0ea;box-shadow:0 24px 58px rgba(28,39,55,.10)}
.thread-polish.is-pinned{background:linear-gradient(135deg,#fff,#fff6f1);border-color:#ffd2bd}
.thread-avatar{width:54px;height:54px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#10131a,#374151);color:#fff;font-weight:950;font-size:18px;box-shadow:0 14px 26px rgba(16,19,26,.14)}
.thread-polish.is-pinned .thread-avatar{background:linear-gradient(135deg,#ff6a3d,#ffb089);color:#10131a}
.thread-polish .thread-meta{gap:7px;color:#7c8797}
.thread-polish .tag{background:#eef7f3;color:#157154}
.thread-polish .pin-badge{background:#ff6a3d;color:#fff}
.thread-polish .thread-title{font-size:22px;margin:10px 0 7px;color:var(--club-ink)}
.thread-polish .thread-title:hover{color:#ff5f35}
.thread-polish .thread-excerpt{color:#4f5b6b;font-size:14px;margin-bottom:13px}
.thread-polish .thread-preview-replies{border:0;background:#f6f8fb;border-radius:20px;padding:12px;margin:4px 0 14px}
.thread-polish .thread-preview-replies div{position:relative;grid-template-columns:auto minmax(0,1fr);padding:6px 0;border-top:1px solid #e9eef4}
.thread-polish .thread-preview-replies div:first-child{border-top:0;padding-top:0}
.thread-polish .thread-preview-replies div:last-child{padding-bottom:0}
.thread-polish .thread-preview-replies b{color:#2f3947}
.thread-polish .thread-actions{gap:10px}
.thread-like{display:inline-flex;align-items:center;gap:7px;background:#10131a;border-radius:999px;padding:9px 14px;color:#fff}
.thread-like i{font-style:normal;font-size:12px;color:#ffb49b}
.thread-like b{font-size:13px}
.thread-actions .text-button{background:#fff3ed;color:#c84924;border:1px solid #ffd8c9}
.thread-count{margin-left:auto;color:#7a8594}
.thread-detail{border-top:1px solid #edf1f5;margin-top:18px;padding-top:18px}
.thread-detail-copy{background:linear-gradient(180deg,#fbfcfe,#fff);border-color:#edf1f5;border-radius:22px}
.thread-reply-form input{border-radius:16px;background:#fff}
.thread-reply-form button{background:#10131a;border-radius:16px}
.thread-moderation button{background:#f5f7fa}
.composer-polish{grid-template-columns:52px minmax(190px,1fr) minmax(260px,1.4fr) 150px auto;border-radius:30px;background:rgba(255,255,255,.88);border-color:rgba(232,237,243,.95);box-shadow:0 24px 80px rgba(16,19,26,.20)}
.composer-polish .composer-avatar{width:52px;height:52px;border-radius:20px;background:linear-gradient(135deg,#10131a,#ff6a3d)}
.composer-polish input,.composer-polish textarea,.composer-polish select{border:0;background:#f4f6f8;border-radius:18px}
.composer-polish input:focus,.composer-polish textarea:focus,.composer-polish select:focus{box-shadow:0 0 0 3px rgba(255,106,61,.12)}
.composer-polish .button.primary{background:#10131a;border-radius:18px;color:#fff;box-shadow:0 12px 26px rgba(16,19,26,.18)}
@media(max-width:1280px){.channel-dock{display:flex;overflow:auto;scrollbar-width:none}.channel-dock::-webkit-scrollbar{display:none}.channel-dock a{min-width:124px}.community-showcase{grid-template-columns:1fr}.showcase-panel{grid-template-columns:80px minmax(0,1fr);align-items:center}.composer-polish{grid-template-columns:52px 1fr 1fr}.composer-polish select,.composer-polish .button{grid-column:auto}}
@media(max-width:760px){.community-polish:before{inset:0;height:46vh}.community-showcase{padding:22px;border-radius:28px}.community-showcase h2{font-size:31px}.showcase-chips{gap:7px}.showcase-chips span{font-size:11px;padding:8px 10px}.showcase-panel{grid-template-columns:1fr}.showcase-orb{display:none}.channel-dock{margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px}.community-feed-card{border-radius:26px;padding:12px}.community-feed-card .refero-feed{height:calc(100vh - 435px);min-height:330px}.thread-polish{grid-template-columns:1fr;padding:15px;border-radius:24px}.thread-avatar{display:none}.thread-polish .thread-title{font-size:19px}.thread-count{margin-left:0}.composer-polish{left:12px;right:12px;bottom:72px;grid-template-columns:1fr;border-radius:24px;padding:12px}.composer-polish .composer-avatar{display:none}.composer-polish .button.primary{width:100%;padding:13px}}
@media(max-width:460px){.community-showcase h2{font-size:27px}.community-feed-card .refero-feed{height:calc(100vh - 455px)}.thread-polish .thread-preview-replies div{grid-template-columns:1fr}.thread-polish .thread-preview-replies span{white-space:normal}.thread-actions{align-items:stretch}.thread-actions form,.thread-actions .text-button{flex:1}.thread-like,.thread-actions .text-button{justify-content:center;width:100%}}

/* Image mockup matched community UI */
.mock-community{--mock-green:#007f46;--mock-green-soft:#e8f6ef;--mock-ink:#111827;--mock-muted:#6b7280;--mock-line:#e5e7eb;--mock-orange:#ff6a1f;position:relative;display:grid;gap:16px;min-height:calc(100vh - 84px);padding-bottom:96px}
.mock-community:before{content:"";position:fixed;inset:0 0 auto 245px;height:45vh;z-index:-1;background:radial-gradient(circle at 86% 18%,rgba(0,127,70,.18),transparent 24rem),linear-gradient(180deg,#fbfcfd,rgba(251,252,253,0));pointer-events:none}
.mock-header{display:flex;justify-content:space-between;gap:28px;align-items:flex-start}
.mock-header h2{margin:0 0 8px;font-size:34px;letter-spacing:-1px;color:var(--mock-ink)}
.mock-header p{margin:0;color:#798293;font-size:15px}
.mock-header-actions{display:flex;gap:14px;align-items:center}
.mock-search{width:290px;height:48px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfe4eb;border-radius:13px;padding:0 15px;color:#9aa3af;box-shadow:0 8px 22px rgba(17,24,39,.035)}
.mock-search input{border:0;background:transparent;padding:0;box-shadow:none}
.mock-new-post,.mock-submit{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:13px;background:var(--mock-green);color:#fff;font-weight:900;padding:14px 22px;box-shadow:0 12px 26px rgba(0,127,70,.22)}
.mock-new-post:before,.mock-submit:before{content:"✎";margin-right:8px}
.mock-stats{position:relative;overflow:hidden;display:grid;grid-template-columns:repeat(4,1fr) 260px;align-items:center;gap:8px;background:rgba(255,255,255,.92);border:1px solid #e4e9ef;border-radius:15px;min-height:92px;padding:18px 22px;box-shadow:0 15px 38px rgba(17,24,39,.06)}
.mock-stats div{display:grid;grid-template-columns:38px auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;border-right:1px solid #edf0f4}
.mock-stats div:last-of-type{border-right:0}
.mock-stats i{grid-row:1/3;width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#7ddab2,#d8f5e7);color:var(--mock-green);font-style:normal;font-size:13px}
.mock-stats b{font-size:20px;color:var(--mock-ink);line-height:1}
.mock-stats span{font-size:12px;color:var(--mock-muted)}
.mock-stats figure{position:relative;height:76px;margin:0;background:linear-gradient(135deg,#eaf8f1,#fff);border-radius:14px;overflow:hidden}
.mock-stats figure span{position:absolute;border-radius:22px;background:linear-gradient(135deg,#33c879,#e0f8e9)}
.bubble-one{width:96px;height:58px;right:92px;top:14px}.bubble-one:after{content:"•••";position:absolute;left:28px;top:12px;color:#fff;font-size:26px;letter-spacing:5px}
.bubble-two{width:56px;height:38px;right:36px;top:28px;opacity:.78}.bubble-three{width:20px;height:20px;left:34px;bottom:18px}
.mock-channel-bar{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.94);border-radius:17px;padding:12px 15px;border:1px solid #e8edf2;box-shadow:0 12px 34px rgba(17,24,39,.055);overflow:auto;scrollbar-width:none}
.mock-channel-bar::-webkit-scrollbar{display:none}
.mock-channel-bar a{display:flex;align-items:center;gap:9px;white-space:nowrap;border-radius:999px;background:#f7f8fa;color:#4b5563;padding:11px 20px;font-weight:900;font-size:14px}
.mock-channel-bar a i{font-style:normal;color:#111827}
.mock-channel-bar a.active,.mock-channel-bar a:hover{background:var(--mock-green);color:#fff;box-shadow:0 10px 20px rgba(0,127,70,.22)}
.mock-channel-bar a.active i,.mock-channel-bar a:hover i{color:#fff}
.mock-channel-select{margin-left:auto;white-space:nowrap;border:1px solid #e2e7ee;border-radius:12px;padding:10px 17px;color:#6b7280;font-size:13px}
.mock-feed{height:calc(100vh - 358px);min-height:430px;overflow:auto;display:grid;gap:12px;padding:2px 8px 10px 0;scrollbar-color:#b8bec7 transparent}
.mock-post-card{display:grid;grid-template-columns:210px minmax(0,1fr) 360px;gap:18px;align-items:start;background:#fff;border:1px solid #e9edf2;border-radius:13px;padding:18px;box-shadow:0 12px 28px rgba(17,24,39,.045)}
.mock-post-card:hover,.mock-post-card.is-expanded{box-shadow:0 20px 45px rgba(17,24,39,.075);border-color:#d9e1ea}
.mock-post-pinned{background:linear-gradient(135deg,#fffaf4,#fff);border-color:#ffd9bd}
.mock-post-author{display:grid;grid-template-columns:54px 1fr;gap:6px 13px;align-items:center}
.mock-post-author .mock-user-avatar{grid-row:1/3}
.mock-user-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1f2937,#111827);color:#fff;font-weight:900;box-shadow:0 8px 20px rgba(17,24,39,.16)}
.mock-post-author b{font-size:14px;color:#111827}
.mock-post-author span{font-size:12px;color:#6b7280}
.mock-post-body{min-width:0}
.mock-post-meta{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.mock-pin{color:var(--mock-orange);font-weight:900;font-size:12px}
.mock-pin:before{content:"⚑";margin-right:4px}
.mock-category{display:inline-flex;background:#fff1e8;color:#f36a21;border:1px solid #ffd6bd;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900}
.mock-post-card:not(.mock-post-pinned) .mock-category{background:#e9f7ef;color:var(--mock-green);border-color:#cfeedd}
.mock-post-title{display:block;width:100%;border:0;background:transparent;text-align:left;padding:0;margin:0 0 8px;color:#0f172a;font-size:18px;font-weight:950;line-height:1.35}
.mock-post-title:hover{color:var(--mock-green)}
.mock-post-body>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;color:#354152;font-size:13px;line-height:1.75}
.mock-post-actions{display:flex;gap:12px;align-items:center;margin-top:13px}
.mock-post-actions form{margin:0}
.mock-like,.mock-reply-toggle{border:1px solid #dfeee5;border-radius:999px;background:#edf8f1;color:var(--mock-green);padding:7px 13px;font-size:13px;font-weight:900}
.mock-like:before{content:"▰";margin-right:6px}.mock-reply-toggle:before{content:"◎";margin-right:6px}
.mock-reply-toggle{background:#f8fafc;color:#4b5563;border-color:#e5e7eb}
.mock-reply-preview{border:1px solid #edf0f4;background:#fff;border-radius:12px;padding:12px;display:grid;gap:8px}
.mock-reply-preview div{display:grid;grid-template-columns:auto 1fr;gap:7px;font-size:12px;min-width:0}
.mock-reply-preview b{color:#111827;white-space:nowrap}.mock-reply-preview span{color:#4b5563;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mock-reply-preview button{justify-self:end;border:0;background:transparent;color:var(--mock-green);font-weight:900;margin-top:3px}
.mock-post-detail{grid-column:1/-1;margin-top:16px;border-top:1px solid #edf0f4;padding-top:14px}
.mock-post-detail[hidden]{display:none}
.mock-post-detail h4{margin:0 0 7px}
.mock-post-detail section{background:#fafbfc;border:1px solid #edf0f4;border-radius:12px;padding:13px;margin-bottom:10px}
.mock-post-detail p{white-space:pre-wrap;color:#374151;line-height:1.75;margin:0}
.mock-inline-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.mock-inline-reply input{border-radius:12px;background:#fff}
.mock-inline-reply button,.mock-moderation button{border:0;border-radius:10px;background:var(--mock-green);color:#fff;padding:0 16px;font-weight:900}
.mock-moderation{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.mock-moderation button{padding:8px 12px;background:#f3f4f6;color:#374151}
.mock-empty{display:grid;gap:6px;place-items:center;min-height:240px;background:#fff;border:1px dashed #d8dee7;border-radius:14px;color:#6b7280}
.mock-empty b{font-size:18px;color:#111827}
.mock-composer{position:fixed;left:calc(245px + 2vw);right:4vw;bottom:16px;z-index:30;display:grid;grid-template-columns:54px minmax(180px,1.1fr) minmax(280px,1.8fr) 150px 42px 42px auto;gap:10px;align-items:center;background:rgba(255,255,255,.96);border:1px solid #e4e9ef;border-radius:17px;padding:14px 18px;box-shadow:0 20px 60px rgba(17,24,39,.14);backdrop-filter:blur(18px)}
.mock-composer input,.mock-composer textarea,.mock-composer select{height:46px;border-radius:12px;background:#fff;border-color:#dfe4eb}
.mock-composer textarea{resize:none;padding-top:12px}
.mock-icon-button{width:42px;height:42px;border:0;border-radius:12px;background:#fff;color:#6b7280;font-size:18px}
.mock-submit{height:46px;padding:0 24px;border-radius:12px}
@media(max-width:1280px){.mock-header{display:grid}.mock-header-actions{justify-content:space-between}.mock-stats{grid-template-columns:repeat(4,1fr)}.mock-stats figure{display:none}.mock-post-card{grid-template-columns:170px minmax(0,1fr)}.mock-reply-preview{grid-column:2}.mock-composer{grid-template-columns:54px 1fr 1fr 140px}.mock-icon-button{display:none}.mock-submit{grid-column:auto}}
@media(max-width:760px){.mock-community{padding-bottom:250px}.mock-community:before{inset:0}.mock-header h2{font-size:28px}.mock-header-actions{display:grid}.mock-search{width:100%}.mock-stats{grid-template-columns:repeat(2,1fr);padding:14px}.mock-stats div{border-right:0}.mock-channel-select{display:none}.mock-feed{height:calc(100vh - 490px);min-height:340px;padding-right:2px}.mock-post-card{grid-template-columns:1fr;padding:15px}.mock-reply-preview{grid-column:1}.mock-post-author{grid-template-columns:46px 1fr}.mock-user-avatar{width:46px;height:46px}.mock-inline-reply{grid-template-columns:1fr}.mock-inline-reply button{padding:11px}.mock-composer{left:12px;right:12px;bottom:72px;grid-template-columns:1fr;padding:12px}.mock-composer .mock-user-avatar,.mock-composer select{display:none}.mock-submit{width:100%}}
@media(max-width:460px){.mock-stats{grid-template-columns:1fr 1fr}.mock-stats b{font-size:17px}.mock-post-actions{align-items:stretch}.mock-post-actions form,.mock-post-actions button{flex:1}.mock-like,.mock-reply-toggle{width:100%}.mock-feed{height:calc(100vh - 510px)}}

.mock-stats-compact{grid-template-columns:220px 220px minmax(220px,1fr)}
.mock-stats-compact div:nth-of-type(2){border-right:0}
.mock-stats-compact figure{justify-self:end;width:min(360px,100%)}
@media(max-width:1280px){.mock-stats-compact{grid-template-columns:repeat(2,minmax(180px,1fr))}.mock-stats-compact figure{display:none}}
@media(max-width:760px){.mock-stats-compact{grid-template-columns:1fr 1fr}}

/* Sky blue system refresh */
:root{
  --ink:#102033;
  --muted:#64748b;
  --line:#dbeafe;
  --paper:#f4f9ff;
  --green:#0284c7;
  --green2:#0369a1;
  --mint:#e0f2fe;
  --orange:#38bdf8;
  --gold:#7dd3fc;
  --shadow:0 18px 48px rgba(14,116,144,.10);
  --shadow-strong:0 26px 72px rgba(2,132,199,.18);
}
body{background:radial-gradient(circle at 86% 8%,rgba(56,189,248,.20),transparent 28rem),radial-gradient(circle at 12% 0,rgba(125,211,252,.18),transparent 24rem),var(--paper)}
.sidebar{background:linear-gradient(180deg,#082f49,#075985);box-shadow:18px 0 60px rgba(8,47,73,.12)}
.brand-mark{background:linear-gradient(135deg,#38bdf8,#e0f2fe);color:#075985}
.sidebar nav a{color:#c7e8f7}
.sidebar nav a:hover,.sidebar nav a.active{background:rgba(224,242,254,.16);color:#fff;transform:translateX(2px)}
.sidebar-user{border-top-color:rgba(224,242,254,.22)}
.avatar,.profile-avatar{background:linear-gradient(135deg,#38bdf8,#e0f2fe);color:#075985}
.main{max-width:1680px}
.topbar{padding:18px 22px;margin-bottom:20px;border:1px solid rgba(219,234,254,.9);border-radius:24px;background:rgba(255,255,255,.74);box-shadow:0 14px 40px rgba(14,116,144,.06);backdrop-filter:blur(16px)}
.topbar h1{color:#0f172a}
.eyebrow{color:#0284c7}
.icon-button{color:#0284c7;box-shadow:0 12px 26px rgba(2,132,199,.12)}
.hero,.event-banner,.detail-hero,.machine-hero,.service-banner,.profile-banner{border-radius:28px;background:linear-gradient(135deg,#0284c7,#38bdf8);box-shadow:var(--shadow-strong)}
.hero p,.event-banner p,.detail-hero p,.machine-hero p,.service-banner p,.profile-banner p{color:#e0f7ff}
.panel,.metric,.class-card,.result-card,.event-card,.machine-card,.quick-manage a,.knowledge-grid article,.price-grid article,.match-card,.group-grid article{border-color:rgba(219,234,254,.95);background:rgba(255,255,255,.88);border-radius:22px;box-shadow:0 16px 44px rgba(14,116,144,.07);backdrop-filter:blur(12px)}
.panel:hover,.metric:hover,.class-card:hover,.event-card:hover,.machine-card:hover,.quick-manage a:hover{box-shadow:0 24px 64px rgba(14,116,144,.12)}
.button.primary,.searchbar button,.comment-form button,.thread-reply-form button,.mock-inline-reply button,.mock-submit,.mock-new-post{background:linear-gradient(135deg,#0284c7,#38bdf8);color:#fff;box-shadow:0 12px 28px rgba(2,132,199,.24)}
.button.secondary{background:#e0f2fe;color:#075985}
.tag,.status{background:#e0f2fe;color:#0369a1}
.rank{background:#f0f9ff;color:#0369a1}
input,select,textarea{border-color:#bfdbfe;background:#fff;border-radius:14px}
input:focus,select:focus,textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 4px rgba(56,189,248,.16)}
table{background:#fff;border-radius:18px;overflow:hidden}
thead{background:#eff6ff}
th{color:#0369a1}
tbody tr:hover{background:#f0f9ff}
.quick-grid a,.action-grid a{background:#eff6ff;color:#075985;border:1px solid #dbeafe;border-radius:18px}
.quick-grid i{background:#e0f2fe;color:#0284c7}
.metric.accent,.announcement{background:linear-gradient(135deg,#e0f2fe,#fff)}
.event-cover,.machine-image{background:linear-gradient(135deg,#0284c7,#7dd3fc)}
.cover-2,.gradient-2{background:linear-gradient(135deg,#0ea5e9,#bae6fd)}
.cover-3,.gradient-3{background:linear-gradient(135deg,#075985,#38bdf8)}
.mobile-nav{box-shadow:0 -14px 40px rgba(14,116,144,.12)}
.mobile-nav a{color:#0284c7}

/* Community mockup recolor to sky */
.mock-community{--mock-green:#0284c7;--mock-green-soft:#e0f2fe;--mock-line:#dbeafe;--mock-orange:#0ea5e9}
.mock-community:before{background:radial-gradient(circle at 86% 18%,rgba(56,189,248,.24),transparent 24rem),linear-gradient(180deg,#f8fbff,rgba(248,251,255,0))}
.mock-new-post,.mock-submit{background:linear-gradient(135deg,#0284c7,#38bdf8)}
.mock-stats{border-color:#dbeafe;box-shadow:0 16px 42px rgba(14,116,144,.08)}
.mock-stats i{background:linear-gradient(135deg,#bae6fd,#e0f2fe);color:#0284c7}
.mock-stats figure{background:linear-gradient(135deg,#e0f2fe,#fff)}
.mock-stats figure span{background:linear-gradient(135deg,#38bdf8,#bae6fd)}
.mock-channel-bar{border-color:#dbeafe;box-shadow:0 14px 38px rgba(14,116,144,.07)}
.mock-channel-bar a.active,.mock-channel-bar a:hover{background:linear-gradient(135deg,#0284c7,#38bdf8);box-shadow:0 12px 24px rgba(2,132,199,.22)}
.mock-category,.mock-post-card:not(.mock-post-pinned) .mock-category{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
.mock-post-pinned{background:linear-gradient(135deg,#f0f9ff,#fff);border-color:#7dd3fc}
.mock-pin{color:#0284c7}
.mock-like{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
.mock-reply-preview,.mock-post-card{border-color:#dbeafe}
.mock-post-title:hover,.mock-reply-preview button{color:#0284c7}

/* Management avatar upload */
.sky-profile-banner{display:flex;align-items:center;gap:20px}
.avatar-upload-form{margin:0}
.avatar-upload-label{display:grid;justify-items:center;gap:7px;cursor:pointer}
.avatar-upload-label small{color:#e0f7ff;font-size:12px;font-weight:800}
.avatar-upload-label:hover .profile-avatar{transform:translateY(-2px);box-shadow:0 18px 36px rgba(2,132,199,.24)}
.profile-avatar{width:84px;height:84px;border-radius:28px;display:grid;place-items:center;font-size:31px;font-weight:950;transition:.18s ease}
.profile-avatar-img{object-fit:cover;border:3px solid rgba(255,255,255,.72)}
.profile-stats span{padding:12px 16px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18)}
.school-class-grid .stack-form,.school-class-list{border-color:#dbeafe;background:#f8fbff}

@media(max-width:760px){
  .topbar{padding:14px 16px;border-radius:20px}
  .sky-profile-banner{align-items:flex-start}
  .profile-avatar{width:68px;height:68px;border-radius:22px}
}

/* Fix horizontal search and synced community avatars */
.searchbar{display:grid!important;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:8px;padding:6px}
.searchbar input{min-width:0;height:42px}
.searchbar button{min-width:88px;height:42px;padding:0 18px!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;writing-mode:horizontal-tb;line-height:1;border-radius:10px!important}
.mock-user-avatar-img{object-fit:cover}
.comment-item{grid-template-columns:28px auto minmax(0,1fr) auto}
.comment-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:#e0f2fe;color:#0369a1;font-size:12px;font-weight:900}
@media(max-width:760px){.searchbar{grid-template-columns:minmax(0,1fr) 76px}.searchbar button{min-width:76px;padding:0 12px!important}.comment-item{grid-template-columns:28px 1fr}.comment-item small{grid-column:2}}

/* Dedicated management pages */
.management-tool-grid a{display:grid;gap:6px;min-height:96px;align-content:center}
.management-tool-grid b{font-size:17px}
.management-tool-grid small{color:#64748b}
.manage-page-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}
.manage-page-grid .stack-form,.school-class-list{padding:18px;border:1px solid #dbeafe;border-radius:20px;background:#f8fbff}
.manage-list{display:grid;gap:10px}
.manage-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff}
.manage-row span{display:grid;gap:3px}
.danger-button{border:0;border-radius:12px;background:#fee2e2;color:#b91c1c;font-weight:800;padding:9px 13px}
.danger-button:hover{background:#fecaca}
.table-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.table-actions form{margin:0}
.text-button.danger{color:#b91c1c}
.permission-form-grid{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.permission-form-grid label{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;white-space:nowrap}
.permission-form-grid input{width:auto}
.manage-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.manage-card{display:grid;gap:14px;padding:18px;border:1px solid #dbeafe;border-radius:22px;background:#f8fbff}
.upload-grid small{line-height:1.5}
.event-gallery{overflow:hidden}
.detail-hero-with-poster{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,42%);gap:28px;align-items:center}
.detail-poster{width:100%;max-height:520px;object-fit:cover;border-radius:24px;box-shadow:0 24px 70px rgba(2,48,71,.22);display:block}
.promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.promo-grid img{width:100%;height:190px;object-fit:cover;border-radius:18px;border:1px solid #dbeafe;box-shadow:0 12px 28px rgba(14,116,144,.08)}
.log-list span{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e0f2fe}
.log-list span:last-child{border-bottom:0}
@media(max-width:960px){.manage-page-grid,.manage-card-grid,.promo-grid{grid-template-columns:1fr}.manage-row{align-items:flex-start}.permission-form-grid{display:grid;grid-template-columns:repeat(2,1fr)}}
@media(max-width:960px){.detail-hero-with-poster{grid-template-columns:1fr}.detail-poster{max-height:360px}}
@media(max-width:520px){.permission-form-grid{grid-template-columns:1fr}.manage-row{display:grid}.promo-grid img{height:150px}}

/* Machine encyclopedia images */
.machine-image{position:relative;overflow:hidden}
.machine-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.machine-image.has-machine-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,48,71,.12),rgba(2,48,71,.58))}
.machine-image span,.machine-image b{position:relative;z-index:1}
.machine-image.has-machine-photo b{color:#fff;opacity:.92;text-shadow:0 8px 24px rgba(0,0,0,.35)}
.machine-thumb-row,.knowledge-image-grid,.manage-image-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.machine-thumb-row img,.knowledge-image-grid img,.manage-image-preview img{width:100%;height:74px;object-fit:cover;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff}
.knowledge-card{overflow:hidden}
.knowledge-image-grid{margin-top:0}
.knowledge-image-grid img{height:86px}
.manage-image-preview{margin:0 0 4px}
.manage-image-preview img{height:94px}
.image-delete-grid{align-items:start}
.image-delete-tile{position:relative;overflow:hidden;border:1px solid #dbeafe;border-radius:16px;background:#eff6ff}
.image-delete-tile img{display:block;width:100%;height:104px;object-fit:cover;border:0;border-radius:0}
.image-delete-tile form{position:absolute;left:8px;right:8px;bottom:8px;display:flex;justify-content:center}
.image-delete-button{border:0;border-radius:999px;background:rgba(185,28,28,.92);color:#fff;font-size:12px;font-weight:900;padding:7px 12px;box-shadow:0 8px 22px rgba(127,29,29,.24)}
.image-delete-button:hover{background:#991b1b}
@media(max-width:760px){.machine-thumb-row,.knowledge-image-grid,.manage-image-preview{grid-template-columns:repeat(2,1fr)}.machine-thumb-row img,.knowledge-image-grid img,.manage-image-preview img{height:90px}}

/* Compact machine library: five cards per row on desktop */
.machine-model-section .machine-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:0}
.machine-model-section .machine-card{border-radius:18px}
.machine-model-section .machine-image{height:118px;padding:14px}
.machine-model-section .machine-image b{font-size:48px}
.machine-model-section .machine-card>div:last-child{padding:14px}
.machine-model-section .between{gap:8px;align-items:flex-start}
.machine-model-section .rank{font-size:10px;padding:4px 8px}
.machine-model-section .between small{font-size:11px;white-space:nowrap}
.machine-model-section .machine-card h3{font-size:17px;margin:10px 0 8px}
.machine-model-section .machine-card p{font-size:13px;line-height:1.55;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.machine-model-section .machine-thumb-row{grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}
.machine-model-section .machine-thumb-row img{height:46px;border-radius:10px}
.machine-model-section .tag-row{display:flex;flex-wrap:wrap;gap:6px}
.machine-model-section .tag{font-size:10px;padding:4px 8px}
@media(max-width:1380px){.machine-model-section .machine-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1120px){.machine-model-section .machine-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.machine-model-section .machine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.machine-model-section .machine-image{height:110px}.machine-model-section .machine-card>div:last-child{padding:12px}}
@media(max-width:460px){.machine-model-section .machine-grid{grid-template-columns:1fr}}

/* Expandable machine cards */
.machine-card-button{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}
.machine-card-button .machine-image{display:flex;width:100%}
.machine-card-copy{display:grid;gap:7px;padding:14px}
.machine-card-copy strong{font-size:17px;color:#102033}
.machine-card-copy>span:not(.between){font-size:12px;line-height:1.45;color:#64748b;min-height:34px}
.machine-card-copy em{font-style:normal;color:#0284c7;font-weight:900;font-size:12px}
.machine-model-section .machine-card>div:last-child.machine-detail-panel{padding:22px}
.machine-model-section .machine-card.is-machine-expanded{grid-column:span 3}
.machine-detail-panel{border-top:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#fff)}
.machine-detail-copy{display:grid;gap:8px;margin-bottom:16px}
.machine-detail-copy h3{font-size:24px;margin:0}
.machine-detail-copy p{font-size:14px;line-height:1.75;color:#475569;margin:0;display:block;min-height:0;overflow:visible}
.machine-detail-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:132px;gap:10px;margin-bottom:16px}
.machine-detail-gallery button{border:0;padding:0;border-radius:18px;overflow:hidden;background:#e0f2fe;cursor:zoom-in;box-shadow:0 12px 28px rgba(14,116,144,.10)}
.machine-detail-gallery button:first-child{grid-row:span 2}
.machine-detail-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.machine-model-view{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;align-items:stretch;padding:14px;border:1px solid #dbeafe;border-radius:22px;background:#f8fbff}
.machine-model-view h4{margin:0;color:#102033}
.machine-model-view model-viewer{width:100%;height:310px;border-radius:18px;background:linear-gradient(135deg,#e0f2fe,#fff)}
.image-lightbox{position:fixed;inset:0;z-index:100;background:rgba(2,6,23,.78);display:grid;place-items:center;padding:28px}
.image-lightbox[hidden]{display:none}
.image-lightbox figure{max-width:min(1100px,92vw);max-height:88vh;margin:0;display:grid;gap:12px}
.image-lightbox img{max-width:100%;max-height:80vh;object-fit:contain;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.35);background:#fff}
.image-lightbox figcaption{color:#e0f2fe;text-align:center;font-weight:800}
.image-lightbox-close{position:fixed;right:28px;top:24px;border:0;border-radius:999px;background:#fff;color:#0f172a;font-weight:900;padding:10px 16px}
.model-file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #dbeafe;border-radius:16px;background:#eff6ff}
.model-file-row span{display:grid;gap:4px;min-width:0}
.model-file-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1120px){.machine-model-section .machine-card.is-machine-expanded{grid-column:1/-1}.machine-detail-gallery{grid-template-columns:repeat(2,1fr)}.machine-detail-gallery button:first-child{grid-row:span 1}.machine-model-view{grid-template-columns:1fr}}
@media(max-width:760px){.machine-detail-gallery{grid-template-columns:1fr;grid-auto-rows:190px}.machine-model-view model-viewer{height:260px}.machine-model-section .machine-card>div:last-child.machine-detail-panel{padding:16px}}

/* User management */
.user-manage-intro .muted{margin-bottom:0}
.user-directory{padding:0;overflow:hidden}
.user-role-tabs{display:grid;grid-template-columns:1fr 1fr;padding:8px;background:#eff6ff;border-bottom:1px solid #dbeafe}
.user-role-tabs button{border:0;border-radius:15px;padding:13px;background:transparent;color:#64748b;font-weight:900}
.user-role-tabs button span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;border-radius:999px;background:#dbeafe;color:#0369a1;font-size:11px}
.user-role-tabs button.active{background:#fff;color:#0369a1;box-shadow:0 8px 24px rgba(14,116,144,.10)}
.user-directory>[data-user-role-panel]{padding:18px}
.user-filterbar{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.user-search{width:min(300px,100%);flex:none}
.user-search input{height:38px;padding:8px 12px}
.user-filter-tags{display:flex;flex-wrap:wrap;gap:7px}
.user-filter-tags button{border:1px solid #dbeafe;border-radius:999px;padding:8px 11px;background:#fff;color:#475569;font-size:12px;font-weight:800}
.user-filter-tags button.active{border-color:#38bdf8;background:#e0f2fe;color:#0369a1}
.user-table-wrap{overflow:auto;border:1px solid #dbeafe;border-radius:17px;background:#fff}
.user-table{min-width:850px}
.user-table th,.user-table td{padding:11px 14px}
.user-table th:last-child,.user-table td:last-child{text-align:right}
.user-table td>b,.user-table td>small{display:block}
.user-table-person{display:flex;align-items:center;gap:10px}
.user-table-person img,.user-table-person span{width:36px;height:36px;border-radius:12px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#38bdf8,#e0f2fe);color:#075985;font-weight:950;flex:none}
.user-permission-list{display:flex;flex-wrap:wrap;gap:5px}
.user-permission-list span{padding:4px 7px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:11px;font-weight:800}
.user-permission-list span.basic{background:#f1f5f9;color:#64748b}
.user-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900}
.user-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.user-status.active{background:#dcfce7;color:#15803d}
.user-status.disabled{background:#fee2e2;color:#b91c1c}
.user-edit-row td{padding:0!important;background:#f8fbff}
.user-inline-editor{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #dbeafe}
.user-update-form{display:flex;align-items:flex-end;gap:10px;flex:1}
.user-update-form label{display:grid;gap:5px;min-width:170px;color:#475569;font-size:11px;font-weight:800}
.user-update-form input,.user-update-form select{height:38px;padding:8px 10px;border-radius:10px}
.user-update-form .button{height:38px;padding:8px 15px;white-space:nowrap}
.user-status-form{flex:none}
.user-filter-empty{border-radius:0;background:#fff}
@media(max-width:900px){.user-filterbar{display:grid}.user-search{width:100%}.user-inline-editor,.user-update-form{align-items:stretch;flex-direction:column}.user-status-form{align-self:stretch}.user-status-form button{width:100%}}

/* Student ranks and points */
.metric-link{display:block;color:inherit;transition:.18s ease}
.metric-link:hover{transform:translateY(-2px);border-color:#7dd3fc}
.profile-point-link{display:grid;text-align:center;padding:12px 16px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18)}
.profile-point-link b,.profile-point-link small{display:block;color:#fff}
.profile-point-link b{font-size:25px}
.profile-point-link small{font-size:10px;opacity:.78;margin-top:3px}
.point-number-link{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-weight:900;white-space:nowrap}
.inline-point-form{display:grid;grid-template-columns:70px 62px minmax(120px,1fr) auto;gap:6px;min-width:360px}
.inline-point-form select,.inline-point-form input{height:34px;padding:6px 8px;border-radius:9px;font-size:12px}
.point-page-head .muted{margin-bottom:0}
.point-student-tabs{display:flex;gap:9px;overflow:auto;padding-bottom:4px}
.point-student-tabs a{display:grid;gap:3px;min-width:145px;padding:11px 13px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}
.point-student-tabs a small{font-size:11px}
.point-student-tabs a.active{border-color:#38bdf8;background:#e0f2fe;color:#0369a1;box-shadow:0 10px 24px rgba(2,132,199,.12)}
.point-summary-grid{display:grid;grid-template-columns:1fr 1.25fr 2fr;gap:16px;margin-bottom:18px}
.point-balance-card,.point-rank-card{display:grid;align-content:center;gap:7px;min-height:180px;padding:24px;border-radius:24px;color:#fff;box-shadow:0 20px 50px rgba(2,132,199,.18)}
.point-balance-card{background:linear-gradient(135deg,#0284c7,#38bdf8)}
.point-rank-card{background:linear-gradient(135deg,#075985,#0ea5e9)}
.point-balance-card b{font-size:48px;line-height:1}
.point-rank-card b{font-size:25px}
.point-balance-card small,.point-rank-card small{color:#e0f7ff}
.point-adjust-card{display:grid;gap:12px;margin:0;padding:20px}
.point-adjust-card label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:800}
.point-adjust-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.point-history-table{min-width:780px}
.point-delta{display:inline-flex;min-width:48px;justify-content:center;padding:5px 9px;border-radius:999px}
.point-delta.positive{background:#dcfce7;color:#15803d}
.point-delta.negative{background:#fee2e2;color:#b91c1c}
@media(max-width:1050px){.point-summary-grid{grid-template-columns:1fr 1fr}.point-adjust-card{grid-column:1/-1}}
@media(max-width:760px){.point-summary-grid{grid-template-columns:1fr}.point-adjust-card{grid-column:auto}.inline-point-form{min-width:330px}.point-balance-card,.point-rank-card{min-height:140px}}

/* Password change */
.password-panel{overflow:hidden}
.password-change-form{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr)) auto;gap:12px;align-items:end}
.password-change-form label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:800}
.password-change-form input{height:42px}
.password-change-form .button{height:42px;white-space:nowrap}
.password-lock-note{display:grid;gap:5px;padding:15px 17px;border:1px solid #fecaca;border-radius:16px;background:#fff1f2;color:#9f1239}
.password-lock-note span{font-size:12px}
.password-lock-note.chief{border-color:#bae6fd;background:#f0f9ff;color:#075985}
.user-status.password-locked{margin-top:5px;background:#fef3c7;color:#a16207}
@media(max-width:1050px){.password-change-form{grid-template-columns:1fr 1fr}.password-change-form .button{width:100%}}
@media(max-width:620px){.password-change-form{grid-template-columns:1fr}}

[hidden]{display:none!important}

/* Community post editor modal */
.mock-community{padding-bottom:24px}
.post-editor-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:rgba(2,6,23,.52);backdrop-filter:blur(8px)}
.post-editor-modal .mock-composer{position:relative;inset:auto;width:min(760px,100%);display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;background:#fff;border:1px solid #dbeafe;border-radius:24px;padding:28px;box-shadow:0 30px 90px rgba(2,6,23,.25)}
.post-editor-modal .mock-composer input,.post-editor-modal .mock-composer textarea,.post-editor-modal .mock-composer select{grid-column:2;height:auto}
.post-editor-modal .mock-composer textarea{min-height:130px;resize:vertical}
.post-editor-modal .mock-user-avatar{grid-row:1/5}
.post-editor-modal .mock-submit{grid-column:2;justify-self:end}
.post-editor-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#eff6ff;color:#075985;font-size:24px;line-height:1}
.post-editor-close:hover{background:#dbeafe}
@media(max-width:760px){.mock-community{padding-bottom:0}.post-editor-modal{padding:14px}.post-editor-modal .mock-composer{grid-template-columns:1fr;padding:54px 18px 18px}.post-editor-modal .mock-composer input,.post-editor-modal .mock-composer textarea,.post-editor-modal .mock-composer select,.post-editor-modal .mock-submit{grid-column:1}.post-editor-modal .mock-user-avatar{display:none}.post-editor-modal .mock-submit{width:100%}}
.community-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 0}
.community-pagination a,.community-pagination span{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #dbeafe;color:#075985;font-size:12px;font-weight:800}
