:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --paper: #fffdf7;
  --paper-strong: #ffffff;
  --ink: #17231f;
  --muted: #736b5e;
  --line: rgba(23, 35, 31, 0.12);
  --green: #0f7b5f;
  --green-dark: #075542;
  --gold: #c99637;
  --red: #b94d3e;
  --shadow: 0 18px 48px rgba(34, 44, 38, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f3ea 0%, var(--bg) 100%);
}

button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.app-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar, .panel, .hero-band, .tabbar, .modal-card, .confirm-card {
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand.compact { margin-bottom: 20px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.brand strong { display: block; font-size: 18px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.ghost-btn, .primary-btn, .close-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
}

.ghost-btn {
  padding: 0 14px;
  color: var(--green-dark);
  background: rgba(15, 123, 95, 0.1);
  border: 1px solid rgba(15, 123, 95, 0.18);
}

.primary-btn {
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
}

.layout { display: grid; gap: 14px; margin-top: 14px; }

.hero-band {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  min-height: 190px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 123, 95, 0.95), rgba(20, 92, 75, 0.92)),
    var(--green);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.hero-band h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.hero-band p:last-child {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.84);
}

.hero-meter {
  display: grid;
  place-items: center;
  min-width: 148px;
  background: rgba(255,255,255,0.1);
}

.hero-meter span { font-size: 24px; font-weight: 800; white-space: nowrap; }
.hero-meter small { color: rgba(255,255,255,0.8); white-space: nowrap; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.tab {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active { color: #fff; background: var(--green); }

.view { display: none; gap: 14px; }
.view.active { display: grid; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 20px;
  min-height: 118px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.stat-card span { display: block; font-size: 30px; font-weight: 800; color: var(--green-dark); }
.stat-card small { display: block; margin-top: 10px; color: var(--muted); }

.account-panel[hidden] { display: none; }
.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-summary > div,
.account-detail {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  border-radius: 8px;
}
.account-summary > div { padding: 14px; }
.account-summary span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}
.account-summary small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.account-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.account-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.account-detail span { color: var(--muted); }
.account-detail strong { color: var(--ink); white-space: nowrap; }

.panel { padding: 20px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 { margin: 0; font-size: 22px; }
.section-head span { color: var(--muted); font-size: 13px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-tile {
  min-height: 138px;
  padding: 16px;
  text-align: left;
  background: #f8f4eb;
  border: 1px solid var(--line);
}

.service-tile b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--gold);
  border-radius: 8px;
}

.service-tile span { display: block; font-weight: 800; }
.service-tile small { display: block; margin-top: 6px; color: var(--muted); }

.notice-list, .record-list { display: grid; gap: 10px; }

.message-strip {
  padding: 12px;
  background: linear-gradient(135deg, rgba(222, 246, 236, 0.96), rgba(247, 252, 241, 0.96));
  border: 1px solid rgba(15, 123, 95, 0.16);
}

.message-strip .section-head { margin-bottom: 10px; }

.message-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffefa;
  border-color: rgba(15, 123, 95, 0.14);
}

.message-item.unread { box-shadow: inset 3px 0 0 var(--green); }
.message-item p { margin: 4px 0 0; color: var(--muted); }
.message-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.message-item .ghost-btn { flex: 0 0 auto; min-height: 34px; padding: 0 12px; }

@media (max-width: 560px) {
  .message-item {
    align-items: stretch;
    flex-direction: column;
  }

  .message-item .ghost-btn {
    width: 100%;
  }
}

.notice, .record {
  padding: 14px;
  background: #faf7ef;
  border: 1px solid var(--line);
}

.record {
  display: grid;
  gap: 8px;
}

.record h3 { margin: 0; font-size: 17px; }
.record p { margin: 0; color: var(--muted); }
.record strong { color: var(--green-dark); }
.record .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 8px; background: rgba(15,123,95,0.1); color: var(--green-dark); border-radius: 8px; font-size: 12px; }

.bill-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bill-pay-btn {
  min-height: 34px;
  padding: 0 14px;
}

.bill-qr-box {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 128px;
  min-height: 164px;
  padding: 8px;
  color: var(--green-dark);
  text-align: center;
  background: #fff;
  border: 1px solid rgba(15, 123, 95, 0.16);
  border-radius: 8px;
}

.bill-qr-box img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.bill-qr-box span {
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.bill-qr-box small {
  color: var(--muted);
  font-size: 11px;
}

.receipt-confirm-btn {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.paid-chip {
  color: #fff;
  background: var(--green);
}

.payment-status.paid {
  color: #fff;
  background: var(--green);
}

.payment-status.pending {
  color: #85610c;
  background: #fff6d8;
}

.payment-status.failed {
  color: #9f2f2f;
  background: #fff1f1;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.form-grid .wide { grid-column: 1 / -1; }

.confirm-room-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-room-info div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-pale);
}

.confirm-room-info span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.confirm-room-info strong {
  display: block;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

textarea { resize: vertical; }

.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }

.community-head {
  align-items: center;
}

.new-post-btn {
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.post-modal-card {
  width: min(520px, calc(100vw - 28px));
}

.payment-modal-card {
  width: min(420px, calc(100vw - 28px));
  text-align: center;
}

.community-form {
  margin-top: 14px;
}

.paid-field { display: none; }
.paid-field.show { display: grid; }

.feed-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.feed-tools .ghost-btn {
  min-height: 34px;
  padding: 0 12px;
}

.feed-tools .ghost-btn.active {
  color: #fff;
  background: var(--green);
}

.community-post .post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.paid-post {
  border-color: rgba(15, 123, 95, 0.28);
  background: #f7fff9;
}

.price-chip {
  color: #fff;
  background: var(--green);
}

.pending-chip {
  color: #85610c;
  background: #fff6d8;
}

.project-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-box strong { color: var(--green-dark); }
.project-box span { color: var(--muted); }
.project-box a { color: var(--green-dark); font-weight: 800; text-decoration: none; }

.profile-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}

.profile-panel h2 { margin: 0 0 6px; }
.profile-panel p { margin: 0; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(11, 19, 16, 0.52);
}

.modal.open { display: grid; }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
}

.modal-card h2 { margin: 0 0 8px; }
.modal-card p { color: var(--muted); }

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  background: #f0eadf;
  color: var(--ink);
  font-size: 20px;
}

.qr-frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 18px 0;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-frame img { width: 232px; height: 232px; }
.login-status { min-height: 22px; color: var(--green-dark); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: none;
  max-width: min(420px, calc(100% - 24px));
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  z-index: 40;
}

.toast.open { display: block; }

.confirm-body {
  display: grid;
  place-items: center;
  padding: 18px;
}

.confirm-card {
  width: min(460px, 100%);
  padding: 24px;
}

.confirm-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.confirm-site-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.confirm-card h1 { margin: 0 0 10px; }
.confirm-card p { color: var(--muted); }

[hidden],
.register-flow[hidden],
.register-flow.is-hidden {
  display: none !important;
}

.scan-state-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(21, 151, 104, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 250, 243, 0.96), rgba(255, 255, 255, 0.98));
}

.scan-state-badge {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(21, 151, 104, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.scan-state-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.scan-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.scan-state-card[data-state="success"] {
  border-color: rgba(21, 151, 104, 0.28);
  background: linear-gradient(135deg, rgba(228, 247, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.scan-state-card[data-state="error"] {
  border-color: rgba(185, 77, 62, 0.22);
  background: linear-gradient(135deg, rgba(255, 243, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.scan-state-card[data-state="error"] .scan-state-badge {
  color: #9f3f33;
  background: rgba(185, 77, 62, 0.12);
}

.scan-user-summary {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.scan-user-summary div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.scan-user-summary span {
  color: var(--muted);
  font-size: 12px;
}

.scan-user-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.register-flow {
  display: grid;
  gap: 14px;
}

.register-step {
  display: none;
}

.register-step.active {
  display: block;
}

.register-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  text-align: center;
}

.register-head h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 24px;
}

.register-head p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.register-head strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.register-fields {
  display: grid;
  gap: 12px;
}

.register-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.register-fields b {
  color: #c34735;
}

.choice-field {
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.choice-field select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-field span {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

.choice-field em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 800;
}

.upload-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.upload-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.upload-entry {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.upload-entry input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-entry > span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px dashed rgba(15, 123, 95, 0.42);
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 34px;
  line-height: 1;
}

.upload-entry.has-file > span {
  color: #fff;
  background: var(--green);
  border-style: solid;
}

.upload-entry small,
.upload-entry b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.upload-entry button {
  min-height: 26px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 700;
}

.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agreement-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 1160px); padding-bottom: 28px; }
  .topbar { position: static; }
  .hero-band { display: grid; padding: 22px; }
  .hero-meter { min-height: 104px; }
  .stats-grid, .service-grid, .form-grid, .account-summary, .account-details, .confirm-room-info, .upload-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .search-row { grid-template-columns: 1fr; }
}

/* Unified light-green compact theme */
:root {
  --bg: #eef8f1;
  --paper: #fbfffc;
  --paper-strong: #ffffff;
  --muted: #65766d;
  --line: rgba(15, 123, 95, 0.16);
  --green-soft: #dff2e8;
  --green-pale: #f2fbf5;
  --gold: #91b96a;
  --shadow: 0 10px 28px rgba(15, 70, 52, 0.1);
}

body {
  background: linear-gradient(180deg, #f6fdf8 0%, var(--bg) 100%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px max(18px, calc((100vw - 1160px) / 2));
  background: rgba(246, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
}

.site-brand img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong { font-size: 16px; }
.site-brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.site-tabs,
.segment-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-tabs a,
.segment-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-tabs a.active,
.segment-tabs .tab.active {
  color: #fff;
  background: var(--green);
}

.nav-login-btn {
  min-height: 36px;
  white-space: nowrap;
  background: #fff;
}

.app-shell { padding: 12px 0 36px; }
.topbar, .panel, .hero-band, .tabbar, .modal-card, .confirm-card, .stat-card, .service-tile, .notice, .record {
  border-radius: 8px;
}
.topbar { position: static; padding: 10px 12px; }
.layout { gap: 10px; margin-top: 10px; }
.hero-band {
  min-height: 150px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(42, 159, 108, 0.95), rgba(15, 123, 95, 0.92)), var(--green);
}
.hero-band h1 { font-size: clamp(26px, 3.4vw, 42px); }
.tab { min-height: 34px; }
.view { gap: 10px; }
.stats-grid, .service-grid, .notice-list, .record-list { gap: 10px; }
.stat-card { min-height: 92px; padding: 14px; }
.stat-card span { font-size: 25px; }
.panel { padding: 14px; }
.section-head { margin-bottom: 10px; }
.section-head h2 { font-size: 18px; }
.service-tile { min-height: 112px; padding: 12px; background: var(--green-pale); }
.service-tile b { margin-bottom: 10px; background: var(--green); }
.notice, .record { padding: 12px; background: var(--green-pale); }
.modal-card, .confirm-card { padding: 20px; }
.close-btn { background: var(--green-soft); }

@media (max-width: 760px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding: 8px 10px; }
  .site-tabs { width: 100%; }
  .site-tabs a { flex: 1; }
  .nav-login-btn { width: 100%; }
}

/* Registration page visual refresh */
.confirm-body {
  align-items: start;
  min-height: 100vh;
  padding: 10px 12px 28px;
  background:
    linear-gradient(180deg, rgba(223, 242, 232, 0.9) 0%, rgba(246, 253, 248, 0.96) 34%, var(--bg) 100%);
}

.confirm-card {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(15, 123, 95, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 70, 52, 0.1);
}

.confirm-logo-wrap {
  display: none;
}

.confirm-logo-wrap {
  margin-bottom: 14px;
}

.confirm-site-logo {
  width: 82px;
  height: 82px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 70, 52, 0.16);
}

.register-flow {
  gap: 12px;
}

.register-step.active {
  animation: registerFadeIn 0.18s ease-out;
}

@keyframes registerFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#roomStep .form-grid {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-pale);
}

#roomStep .form-grid label {
  color: var(--green-dark);
  font-weight: 800;
}

#roomStep select {
  min-height: 46px;
  border-color: rgba(15, 123, 95, 0.2);
  background: #fff;
}

.confirm-room-info {
  gap: 8px;
}

.confirm-room-info div {
  padding: 9px 10px;
  background: #fff;
}

.register-head {
  gap: 4px;
  margin: 0 0 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--line);
}

.register-head h1 {
  font-size: 22px;
  line-height: 1.25;
}

.register-head p {
  color: var(--green-dark);
  font-size: 15px;
}

.register-head strong {
  display: inline-flex;
  justify-self: center;
  max-width: 100%;
  margin-top: 3px;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 12px;
  line-height: 1.35;
}

.register-fields {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.register-fields label:not(.choice-field) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.register-fields .inline-field span {
  flex: 0 0 82px;
  white-space: nowrap;
}

.register-fields label:last-child {
  border-bottom: 0;
}

.register-fields input {
  flex: 1;
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: right;
}

.register-fields input::placeholder {
  color: #9aa7a0;
}

.choice-field {
  grid-template-columns: auto auto 1fr auto;
  min-height: 58px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
}

.identity-options {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.identity-options > span {
  white-space: nowrap;
}

.identity-options b {
  color: #c34735;
}

.identity-options button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
}

.identity-options button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.choice-field span {
  font-weight: 600;
}

.choice-field em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  font-size: 13px;
}

.upload-section {
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-section p {
  font-size: 12px;
}

.upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-entry {
  min-height: 124px;
  padding: 12px 8px;
  border: 1px dashed rgba(15, 123, 95, 0.24);
  border-radius: 8px;
  background: var(--green-pale);
}

.upload-entry > span {
  width: 68px;
  height: 68px;
  border-color: rgba(15, 123, 95, 0.34);
  background: #fff;
  font-size: 30px;
}

.upload-entry button {
  margin-top: 2px;
}

.agreement-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  margin: 14px 2px 12px;
  color: var(--ink);
}

.agreement-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.agreement-row span {
  color: var(--muted);
  line-height: 18px;
}

#submitBtn,
#nextStepBtn {
  min-height: 46px;
  width: 100%;
  box-shadow: 0 10px 18px rgba(15, 123, 95, 0.18);
}

.login-status {
  margin: 12px 2px 0;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .confirm-body {
    padding: 10px 10px 22px;
  }

  .confirm-card {
    padding: 14px;
  }

  .confirm-site-logo {
    width: 74px;
    height: 74px;
  }

  .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-options {
    grid-template-columns: auto auto auto;
  }
}

/* Web frontend green responsive polish */
:root {
  --bg: #eef8f1;
  --paper: #fbfffc;
  --paper-strong: #ffffff;
  --ink: #17342b;
  --muted: #5f746b;
  --line: rgba(16, 116, 82, 0.16);
  --green: #159768;
  --green-dark: #075542;
  --green-soft: #dff4e9;
  --green-pale: #f1fbf5;
  --shadow: 0 10px 26px rgba(15, 84, 60, 0.1);
}

body {
  background:
    linear-gradient(180deg, rgba(223, 244, 233, 0.9) 0%, rgba(246, 253, 248, 0.96) 34%, var(--bg) 100%);
}

.site-nav {
  min-height: 64px;
  padding: 8px max(14px, calc((100vw - 1160px) / 2));
  background: rgba(251, 255, 252, 0.95);
}

.site-brand {
  min-width: 0;
}

.site-brand img {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(15, 84, 60, 0.14);
}

.site-brand span {
  min-width: 0;
}

.site-brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.site-brand small {
  font-size: 11px;
  line-height: 1.25;
}

.site-tabs,
.segment-tabs {
  border-radius: 8px;
  background: var(--green-soft);
}

.site-tabs a,
.segment-tabs .tab {
  border-radius: 7px;
  color: var(--green-dark);
}

.ghost-btn {
  color: var(--green-dark);
  background: #fff;
}

.primary-btn,
.tab.active,
.site-tabs a.active,
.segment-tabs .tab.active,
.feed-tools .ghost-btn.active {
  background: var(--green);
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(21, 151, 104, 0.24);
}

.account-icon {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-login-btn.is-account {
  max-width: 128px;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.nav-login-btn.is-account .account-icon {
  display: block;
}

.nav-login-btn.is-account #loginBtnText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 104px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 84, 60, 0.16);
}

.account-dropdown[hidden] {
  display: none !important;
}

.account-dropdown button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--green-dark);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-dropdown button:hover {
  background: var(--green-pale);
}

.profile-modal-card {
  width: min(390px, calc(100vw - 28px));
}

.profile-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-detail-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 151, 104, 0.14);
  border-radius: 8px;
  background: var(--green-pale);
}

.profile-detail-list span {
  color: var(--muted);
  font-size: 13px;
}

.profile-detail-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.app-shell {
  width: min(1120px, calc(100% - 24px));
  padding: 12px 0 28px;
}

.layout {
  gap: 12px;
}

.hero-band {
  min-height: 138px;
  padding: 18px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(21, 151, 104, 0.96), rgba(7, 85, 66, 0.94)),
    var(--green);
  box-shadow: 0 12px 28px rgba(15, 84, 60, 0.18);
}

.hero-band h1 {
  font-size: clamp(24px, 3.2vw, 38px);
}

.hero-band p:last-child {
  margin-top: 10px;
  font-size: 14px;
}

.hero-meter {
  min-width: 128px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.hero-meter span {
  font-size: 20px;
}

.hero-meter small {
  font-size: 12px;
}

.panel,
.tabbar,
.modal-card,
.service-tile,
.notice,
.record,
.account-summary > div,
.account-detail {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.panel {
  padding: 14px;
}

.section-head h2 {
  color: var(--green-dark);
}

.section-head span {
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-tile {
  min-height: 108px;
  background: var(--green-pale);
}

.service-tile b {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  background: var(--green);
}

.notice,
.record,
.community-form {
  background: var(--green-pale);
}

.chip {
  background: rgba(21, 151, 104, 0.12);
  color: var(--green-dark);
}

input,
textarea,
select {
  min-height: 42px;
  border-color: var(--line);
}

.account-summary span,
.record strong,
.project-box strong {
  color: var(--green-dark);
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-nav {
    position: sticky;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-height: auto;
    padding: 8px 10px;
  }

  .site-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 106px);
  }

  .site-brand img {
    width: 42px;
    height: 42px;
  }

  .site-brand strong {
    font-size: 14px;
  }

  .site-brand small {
    display: none;
  }

  .nav-login-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .account-menu {
    margin-left: auto;
  }

  .nav-login-btn.is-account {
    max-width: 108px;
  }

  .site-tabs {
    order: 3;
    width: 100%;
  }

  .site-tabs a {
    flex: 1;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .app-shell {
    width: min(100% - 16px, 1120px);
    padding: 8px 0 24px;
  }

  .layout {
    gap: 10px;
    margin-top: 8px;
  }

  .hero-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 112px;
    padding: 14px;
  }

  .hero-band h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-band p:last-child {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-meter {
    min-width: 86px;
    min-height: 70px;
    padding: 8px;
  }

  .hero-meter span {
    font-size: 16px;
  }

  .hero-meter small {
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .tabbar {
    position: sticky;
    top: 101px;
    z-index: 12;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px;
  }

  .tab,
  .segment-tabs .tab {
    min-height: 34px;
    padding: 0 6px;
    font-size: 13px;
  }

  .panel {
    padding: 12px;
  }

  .section-head {
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .community-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .new-post-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .section-head h2 {
    font-size: 17px;
  }

  .section-head span {
    font-size: 12px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-tile {
    min-height: 96px;
    padding: 10px;
  }

  .service-tile b {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .service-tile span {
    font-size: 14px;
  }

  .service-tile small {
    font-size: 12px;
    line-height: 1.35;
  }

  .account-summary,
  .account-details,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .account-summary > div {
    padding: 11px;
  }

  .account-summary span {
    font-size: 20px;
  }

  .account-detail {
    padding: 10px 11px;
  }

  .record,
  .notice {
    padding: 11px;
  }

  .record h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  .record p {
    font-size: 13px;
    line-height: 1.45;
  }

  .community-post .post-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .feed-tools {
    gap: 6px;
  }

  .feed-tools .ghost-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .profile-panel {
    gap: 12px;
  }

  .avatar {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    width: min(100%, 390px);
    padding: 18px;
  }

  .qr-frame {
    min-height: 220px;
    margin: 14px 0;
  }

  .qr-frame img {
    width: 196px;
    height: 196px;
  }
}
