:root {
  color-scheme: light;
  --page: #f2f5f4;
  --ink: #15242a;
  --muted: #53676b;
  --dark: #101e25;
  --dark-green: #18352f;
  --green: #286347;
  --green-dark: #143d30;
  --lime: #d8f675;
  --line: #dce5e2;
  --white: #fff;
  --radius: 20px;
  font: 16px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
h2 { font-size: 1.35rem; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #487f5c; outline-offset: 3px; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.initial { width: min(1160px, 90%); margin: 4rem auto; color: var(--muted); }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 71px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.top-inner > :last-child { justify-self: end; }
.top-inner > :first-child { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-size: 1.26rem; font-weight: 800; white-space: nowrap; letter-spacing: .05em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--dark-green); color: var(--lime); }
.top-inner nav, .top-buttons { display: flex; align-items: center; gap: 1.45rem; }
.top-inner nav a { color: #3b5457; font-size: .92rem; white-space: nowrap; }
.top-inner nav a:hover { color: var(--green); text-decoration: underline; }
.top-buttons { gap: .55rem; }
.person { color: var(--muted); font-size: .875rem; max-width: 8ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .64rem 1.12rem; border: 1px solid transparent; border-radius: 10px; font-weight: 700; text-align: center; white-space: nowrap; line-height: 1.25; }
.button.small { min-height: 38px; padding: .45rem .8rem; font-size: .875rem; }
.primary { background: var(--lime); color: #172b20; border-color: #c4e460; }
.primary:hover { background: #cce966; }
.quiet { background: #f7f9f8; border-color: #dbe5e0; color: #275140; }
.quiet:hover { background: #eaf0ed; }
.light { color: #e8f4ec; border-color: #79938b; background: transparent; }
.light:hover { background: #29423e; }
.full { width: 100%; }
.text-button { padding: .45rem .3rem; border: 0; background: none; color: #296147; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.icon-button { display: grid; place-items: center; background: #eff4f1; border: none; border-radius: 10px; color: var(--ink); width: 36px; height: 36px; }

.eyebrow { display: flex; align-items: center; gap: .52rem; color: #e0f6b7; font-size: .91rem; font-weight: 680; letter-spacing: .05em; }
.eyebrow span, .live i, .demo-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.event-main { padding-block: 31px 35px; }
.event-hero { overflow: hidden; position: relative; isolation: isolate; min-height: 257px; background: linear-gradient(100deg, #13242c, #172e2c 63%, #1e4839); color: #fff; border-radius: 24px; display: flex; align-items: center; }
.event-hero-content { padding: 32px 44px 34px; max-width: 820px; }
.event-hero h1 { margin-top: .52rem; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.045em; font-weight: 820; overflow-wrap: anywhere; }
.event-copy { max-width: 600px; margin-top: .73rem; color: #def0e9; overflow-wrap: anywhere; }
.event-date { color: #d6ebe1; display: flex; align-items: center; gap: .44rem; margin-top: 1rem; font-size: .91rem; }
.track-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.track-art i { position: absolute; display: block; width: 535px; height: 290px; right: -186px; bottom: -29px; border: 1px solid #c3e78c64; border-radius: 165px; transform: rotate(-32deg); }
.track-art i:nth-child(2) { right: -157px; bottom: -49px; }
.track-art i:nth-child(3) { right: -128px; bottom: -69px; }
.track-art i:nth-child(4) { right: -99px; bottom: -89px; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .47fr); align-items: start; gap: 22px; margin-top: 22px; }
.event-primary { min-width: 0; display: grid; gap: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-card { padding: 23px 24px 18px; scroll-margin-top: 16px; }
.live { color: #285b45; background: #ebf5e9; border-radius: 99px; padding: .29rem .61rem; font-size: .79rem; font-weight: 680; white-space: nowrap; display: inline-flex; align-items: center; gap: .34rem; }
.live i, .demo-label i { display: inline-block; width: 7px; height: 7px; background: #458454; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.metric { display: flex; align-items: center; gap: .72rem; min-width: 0; padding: .7rem .75rem; border-radius: 12px; background: #f3f7f5; }
.metric-icon, .empty-icon { display: grid; place-items: center; border-radius: 11px; color: #2f6a4d; background: #e4eee8; width: 36px; height: 36px; flex: none; }
.metric-label { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.metric strong { font-size: 1.68rem; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.trend { margin-top: 17px; border-top: 1px solid #e8eeeb; padding-top: 14px; }
.trend-title { display: flex; gap: .4rem; align-items: center; justify-content: space-between; }
.trend-title h3 { font-size: .94rem; }
.trend-title span { color: var(--muted); font-size: .79rem; }
.trend-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin-top: .6rem; }
.chart-day { display: grid; grid-template-rows: 20px 37px 19px; gap: .18rem; justify-items: center; min-width: 0; color: #53676b; }
.chart-number { font-variant-numeric: tabular-nums; font-size: .79rem; font-weight: 650; }
.chart-track { width: clamp(10px, 46%, 32px); height: 37px; border-radius: 5px; background: #edf2f0; align-self: end; display: grid; align-items: end; }
.chart-bar { min-height: 2px; border-radius: 5px; background: #80a795; }
.chart-day.current .chart-bar { background: #3e7e60; }
.chart-day.current small { font-weight: 750; color: #285b45; }
.chart-day small { font-size: .75rem; white-space: nowrap; }
.level-1 { height: 5%; }.level-2 { height: 10%; }.level-3 { height: 15%; }.level-4 { height: 20%; }.level-5 { height: 25%; }
.level-6 { height: 30%; }.level-7 { height: 35%; }.level-8 { height: 40%; }.level-9 { height: 45%; }.level-10 { height: 50%; }
.level-11 { height: 55%; }.level-12 { height: 60%; }.level-13 { height: 65%; }.level-14 { height: 70%; }.level-15 { height: 75%; }
.level-16 { height: 80%; }.level-17 { height: 85%; }.level-18 { height: 90%; }.level-19 { height: 95%; }.level-20 { height: 100%; }

.checkin-card { padding: 23px; }
.checkin-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #e8f5d1; color: #315a32; margin-bottom: .72rem; }
.checkin-card > p { margin: .6rem 0 1rem; font-size: .93rem; }
.checkin-card > .text-button { margin-top: .38rem; font-size: .88rem; }
.checkin-rules { display: flex; align-items: start; gap: .42rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #e8eeeb; color: var(--muted); font-size: .84rem; }
.checkin-rules svg { margin-top: .13rem; }
.form-stack { display: grid; gap: .85rem; }
.form-stack label, .admin-filters label { display: block; font-size: .91rem; font-weight: 650; color: #233b36; min-width: 0; }
.form-stack input:not([type="checkbox"]), .form-stack select, .form-stack textarea, .admin-filters select { display: block; width: 100%; min-height: 43px; margin-top: .29rem; padding: .55rem .66rem; border-radius: 9px; border: 1px solid #cbd9d3; color: var(--ink); background: #fff; font-weight: 400; font-size: 1rem; }
.form-stack textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='17' height='17' fill='none' stroke='%232e4f43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right .57rem center !important; padding-right: 1.8rem !important; }
.form-stack input::placeholder, .form-stack textarea::placeholder { color: #637375; font-size: .89rem; opacity: 1; }
.form-stack .checkbox { display: flex; gap: .57rem; align-items: start; font-weight: 500; overflow-wrap: anywhere; }
.checkbox input { flex: none; width: 17px; height: 17px; margin: .19rem 0 0; accent-color: var(--green); }
.optional { font-size: .79rem; font-weight: 500; }
.upload-box { position: relative; margin-top: .29rem; display: grid; justify-items: center; gap: .19rem; padding: .78rem .55rem; border: 1px dashed #88ab99; color: #315849; border-radius: 9px; background: #f5f9f7; text-align: center; overflow-wrap: anywhere; }
.upload-box:hover { background: #edf5f0; }
.upload-box:focus-within { outline: 3px solid #487f5c; outline-offset: 3px; }
.upload-box small { font-weight: 400; }
.form-stack .upload-box input { position: absolute; inset: 0; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.form-error { color: #8d2924; background: #fff1ef; border-radius: 9px; padding: .5rem .65rem; font-size: .9rem; }
.inline-success { color: #20583e; background: #ecf6ed; border-radius: 9px; padding: .52rem .65rem; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .76rem; }

.community-card { min-height: 245px; scroll-margin-top: 16px; }
.section-tabs { padding: 0 19px; display: flex; gap: .9rem; border-bottom: 1px solid #e8eeeb; }
.section-tabs button { position: relative; min-height: 54px; border: 0; border-bottom: 3px solid transparent; background: none; color: #49605e; font-weight: 650; font-size: .94rem; white-space: nowrap; padding: 0 .34rem; }
.section-tabs button[aria-pressed="true"] { color: #23543d; border-color: #5a956e; }
.empty { padding: 1.5rem .75rem .95rem; text-align: center; display: grid; justify-items: center; gap: .26rem; color: #273e38; }
.empty-icon { margin-bottom: .17rem; }
.empty p { color: var(--muted); font-size: .88rem; }
.empty-action { text-align: center; padding-bottom: 1.1rem; }
.community-meta { padding: .85rem 1rem .55rem; color: var(--muted); font-size: .86rem; }
.feed-list { padding: 0 20px; }
.feed-row { padding: .9rem 0; display: flex; align-items: start; gap: .7rem; border-bottom: 1px solid #e8eeeb; }
.feed-row:last-child { border: none; }
.avatar { flex: none; width: 37px; height: 37px; border-radius: 12px; background: #e6f0e8; color: #285d46; display: grid; place-items: center; font-weight: 750; }
.feed-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.feed-text strong { font-size: .93rem; }
.feed-text p, .admin-row p { font-size: .86rem; color: var(--muted); }
.feed-text .feed-note, .feed-note { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .28rem; }
.feed-actions { flex: none; display: grid; justify-items: end; gap: .35rem; }
.status { border-radius: 99px; padding: .2rem .49rem; font-size: .76rem; font-weight: 670; white-space: nowrap; }
.status.waiting { background: #fbf1d9; color: #725417; }
.status.approved { background: #e8f4eb; color: #276347; }
.status.rejected { background: #fbeae8; color: #8b312f; }
.cheer { border: 1px solid #dce6e2; border-radius: 99px; background: #fff; padding: .25rem .47rem; color: #536e62; font-size: .84rem; white-space: nowrap; }
button.cheer:hover, button.cheer[aria-pressed="true"] { color: #a5314d; background: #fff0f4; border-color: #f2c6d0; }
button.cheer[aria-pressed="true"] svg { fill: currentColor; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
td, th { padding: .64rem 1rem; border-top: 1px solid #e7eeea; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
td small { color: var(--green); }
.rank { font-variant-numeric: tabular-nums; display: inline-grid; min-width: 24px; place-items: center; font-weight: 750; border-radius: 6px; }
.rank-1, .rank-2, .rank-3 { background: #edf5d9; color: #385338; }
.my-rank { background: #f5f9ef; }

.site-footer { min-height: 73px; display: flex; align-items: center; gap: 1rem; border-top: 1px solid #dce5e2; color: var(--muted); font-size: .87rem; }
.site-footer .brand { color: var(--ink); font-size: 1rem; }
.site-footer .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.site-footer .brand-mark svg { width: 17px; }
.site-footer > a:last-child { margin-left: auto; white-space: nowrap; }
.site-footer > a:last-child:hover { text-decoration: underline; }

.home-main { background: #f6f8f6; }
.home-hero { background: radial-gradient(ellipse at 75% 80%, #284a3d, transparent 53%), #12242c; color: #f8fffa; padding: clamp(3.1rem, 8vw, 6.3rem) 0; }
.home-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.home-intro h1 { margin: .83rem 0 .85rem; font-size: clamp(2.8rem, 6.5vw, 5.05rem); letter-spacing: -.058em; line-height: 1.1; }
.home-intro h1 span { color: var(--lime); }
.home-intro > p:not(.eyebrow) { color: #d4e6dd; max-width: 31em; font-size: 1.06rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }
.home-demo { padding: 1.2rem; border-radius: 23px; background: #f9fbf9; color: var(--ink); border: 1px solid #acc4b2; box-shadow: 0 20px 48px #0a191a80; }
.demo-top, .demo-title, .demo-bottom { display: flex; align-items: center; gap: .7rem; }
.demo-top, .demo-title { justify-content: space-between; }
.demo-top { padding-bottom: .83rem; border-bottom: 1px solid #dee8e0; color: #536d61; font-size: .8rem; }
.demo-label { display: flex; align-items: center; gap: .34rem; font-weight: 650; }
.demo-title { margin: .98rem 0 .77rem; }
.demo-title h2 { font-size: clamp(1.2rem, 2.6vw, 1.72rem); }
.chip { background: #e8f3e7; color: #28523c; padding: .25rem .45rem; border-radius: 99px; font-size: .79rem; white-space: nowrap; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.demo-metrics > div { background: #e9f0ec; padding: .68rem .45rem; display: grid; justify-items: center; gap: .28rem; border-radius: 10px; color: #2c5846; font-size: .87rem; text-align: center; }
.demo-chart { border: 1px solid #e1ebe5; background: #fff; border-radius: 10px; margin: .72rem 0; padding: .58rem .66rem; font-size: .85rem; font-weight: 650; }
.demo-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: .7rem; height: 60px; margin-top: .25rem; }
.demo-bars i { background: #8eb49e; height: 45%; border-radius: 5px 5px 3px 3px; }
.demo-bars i:nth-child(2) { height: 58%; }.demo-bars i:nth-child(3) { height: 51%; }.demo-bars i:nth-child(4) { height: 70%; }
.demo-bars i:nth-child(5) { height: 61%; }.demo-bars i:nth-child(6) { height: 85%; }.demo-bars i:nth-child(7) { height: 96%; background: #417a5e; }
.demo-bottom { margin-top: .85rem; font-size: .9rem; }
.demo-bottom small { display: block; color: var(--muted); font-size: .81rem; }
.home-features { padding-block: clamp(2.7rem, 7vw, 5rem); }
.section-lead { margin-bottom: 1.35rem; }
.section-lead h2, .contact-grid h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -.03em; }
.section-lead p, .contact-grid > div > p { color: var(--muted); margin-top: .45rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-grid article { background: #fff; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; }
.feature-grid article > svg { color: #347058; margin-bottom: .6rem; }
.feature-grid h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature-grid p { color: var(--muted); }
.contact-band { background: #e8f1e9; padding-block: clamp(2.4rem, 6vw, 4rem); }
.contact-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 3rem; align-items: start; }
.contact-grid form { padding: 1.3rem; }

dialog { width: min(510px, calc(100% - 24px)); max-height: calc(100dvh - 28px); border: 1px solid #d5e2dc; border-radius: 17px; padding: 1.17rem; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0b211c94; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.toast { position: fixed; z-index: 3; left: 50%; bottom: 1.1rem; transform: translateX(-50%); max-width: calc(100% - 30px); width: max-content; padding: .68rem .96rem; background: #19382e; color: #fff; border-radius: 10px; box-shadow: 0 5px 28px #0a1d1466; }
.admin-main { padding-block: 2rem 2.6rem; min-height: 64vh; }
.admin-title { margin-bottom: 1.1rem; }
.admin-title h1 { font-size: 2.15rem; }
.admin-login, .error-page { max-width: 520px; padding: 1.25rem; }
.admin-login p, .error-page p { margin: .55rem 0 .8rem; }
.error-page { margin: 2rem auto; }
.admin-tabs { border: 0; padding-inline: 0; margin-bottom: .62rem; }
.admin-tabs button { min-height: 43px; }
.admin-panel { padding: 1.15rem; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .68rem; align-items: end; padding-block: .85rem; }
.admin-filters .button { min-height: 43px; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: .55rem; padding: .75rem 0; border-top: 1px solid #e4ede9; overflow-wrap: anywhere; }
.admin-row > div:first-child { min-width: 0; }
.admin-row p a { text-decoration: underline; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: flex-end; flex: none; }
.admin-events { margin-top: .75rem; }
.proof-link { background: #edf3ef; border-radius: 10px; padding: .5rem; }
.proof-link img { margin-inline: auto; object-fit: contain; max-height: 270px; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 42px); }
  .home-hero-grid { gap: 1.35rem; }
  .metric { gap: .38rem; padding: .55rem; }
  .metric-icon { width: 28px; height: 28px; }
  .event-grid { gap: 13px; }
  .event-primary { gap: 13px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 60px; grid-template-columns: auto 1fr; gap: .32rem; }
  .top-inner nav { display: none; }
  .top-buttons { gap: .3rem; }
  .event-main { padding-top: 14px; }
  .event-hero { min-height: 225px; border-radius: 17px; }
  .event-hero-content { padding: 23px 18px; }
  .track-art { opacity: .64; }
  .track-art i { translate: 135px 0; }
  .event-grid { grid-template-columns: minmax(0, 1fr); margin-top: 13px; }
  .event-primary { display: contents; }
  .progress-card { grid-row: 1; padding: 16px 13px 13px; }
  .checkin-card { grid-row: 2; padding: 16px; }
  .community-card { grid-row: 3; }
  .card { border-radius: 15px; }
  .metrics { gap: .29rem; margin-top: 14px; }
  .metric { justify-content: center; gap: .36rem; padding: .47rem .22rem; }
  .metric-label { font-size: .79rem; }
  .metric strong { font-size: 1.42rem; }
  .trend { margin-top: 12px; }
  .section-tabs { gap: .55rem; padding: 0 .57rem; }
  .section-tabs button { font-size: .86rem; padding: 0 .22rem; }
  .section-tabs button svg { width: 15px; }
  .feed-list { padding: 0 .65rem; }
  td, th { padding: .58rem .45rem; }
  .home-hero-grid, .contact-grid { grid-template-columns: minmax(0,1fr); gap: 1.35rem; }
  .home-demo { max-width: 530px; width: 100%; margin-inline: auto; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .feature-grid article { padding: .85rem; }
  .site-footer { gap: .53rem; font-size: .76rem; min-height: 63px; }
  .site-footer .brand { gap: .28rem; }
}
@media (max-width: 392px) {
  .metric-icon { display: none; }
  .metric { justify-content: start; padding-left: .42rem; }
  .two-fields { grid-template-columns: 1fr; }
  .admin-row-actions { flex: 0 0 min-content; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
