:root {
  color-scheme: light dark;
  --page: #f5f6ef;
  --surface: #fffefa;
  --surface-soft: #edf1e7;
  --surface-warm: #f5efe3;
  --text: #26362d;
  --text-soft: #516158;
  --muted: #68766d;
  --line: #dce3d8;
  --line-strong: #c4d0c2;
  --green: #315b42;
  --green-strong: #254a34;
  --green-soft: #e4eee4;
  --earth: #875e3d;
  --gold: #80530f;
  --gold-soft: #f4e8ca;
  --danger: #a03932;
  --danger-soft: #f8e9e5;
  --info: #285a76;
  --info-soft: #e6f0f5;
  --shadow: 0 14px 34px rgb(42 58 44 / 7%);
  --shadow-small: 0 5px 16px rgb(42 58 44 / 6%);
  --radius: 18px;
  --radius-small: 12px;
  --content-width: 1080px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(226 235 220 / 50%), transparent 31rem),
    var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--green-strong); }
button { color: inherit; }
:focus-visible { outline: 3px solid #bd7b2a; outline-offset: 3px; }
::selection { color: #173323; background: #cfdfc7; }
.shell { width: min(calc(100% - 32px), var(--content-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; border-radius: 10px; background: var(--green-strong); color: #fff; }
.skip-link:focus { transform: translateY(0); color: #fff; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 22px; padding-block: 12px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--green); }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--green-soft); font-size: 24px; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: .11em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .015em; }
.nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 5px; }
.nav a { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; color: var(--text-soft); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav a span { color: var(--green); font-size: 16px; }
.nav a:hover { background: var(--surface-soft); color: var(--green-strong); }
.account-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.account-nav form, .item-actions form, .exchange-actions form { margin: 0; }
.welcome { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.avatar-dot, .author-mark { display: inline-grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-strong); font-size: 12px; font-weight: 750; }
.main-content { min-height: calc(100vh - 188px); padding-block: 38px 76px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; min-height: 82px; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.footer-inner p { margin: 0; }
.footer-note { margin-left: auto; font-size: 12px; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text); line-height: 1.28; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.55rem); letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); letter-spacing: -.025em; }
h3 { margin: 0; font-size: 1.12rem; }
p { margin-block: 0 1em; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--earth); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; }
.eyebrow-mark { color: var(--green); font-size: 14px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading .muted { margin: 9px 0 0; }
.page-heading .button { flex: 0 0 auto; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 720; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-primary { border-color: var(--green); background: var(--green); color: #fff; }
.button-primary:hover { border-color: var(--green-strong); background: var(--green-strong); color: #fff; }
.button-quiet { border-color: var(--line-strong); background: var(--surface); color: var(--text-soft); }
.button-quiet:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); }
.button-danger-quiet { border-color: #e6c7c1; background: var(--surface); color: var(--danger); }
.button-danger-quiet:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .58; }
.button-wide { width: 100%; }
.text-button { padding: 3px 5px; border: 0; background: none; color: var(--danger); cursor: pointer; font-weight: 650; }
.text-button:hover { text-decoration: underline; }

.messages { display: grid; gap: 9px; margin-bottom: 22px; }
.message { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--text); font-size: 14px; }
.message-icon { flex: 0 0 auto; color: var(--green); font-weight: 800; }
.message.success { border-color: #b8d0b7; background: var(--green-soft); }
.message.error { border-color: #e4beb7; background: var(--danger-soft); color: var(--danger); }
.message.error .message-icon { color: var(--danger); }
.message.warning { border-color: #e1d0a9; background: var(--gold-soft); color: var(--gold); }
.message.info { border-color: #c4d9e3; background: var(--info-soft); color: var(--info); }

.list-card { overflow: hidden; }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-row-main { min-width: 0; }
.post-row h2 { margin-bottom: 7px; font-size: 1.13rem; }
.post-row h2 a { color: var(--text); text-decoration: none; }
.post-row h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.post-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 12px; color: var(--text-soft); font-size: 14px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.meta .author-mark { width: 23px; height: 23px; font-size: 10px; }
.meta-separator { color: var(--line-strong); }
.comment-count { display: inline-flex; flex: 0 0 auto; min-height: 36px; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text-soft); font-size: 12px; font-weight: 650; text-decoration: none; }
.comment-count:hover { border-color: var(--line-strong); color: var(--green-strong); }
.empty-state { display: grid; justify-items: center; padding: 55px 20px; text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-soft); font-size: 27px; }
.empty-state h2, .empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 14px; }
.empty-inline { padding: 18px 20px; }

.breadcrumbs { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--green); font-weight: 650; text-decoration: none; }
.article-card { padding: clamp(22px, 5vw, 42px); }
.article-header { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 15px; }
.article-header .eyebrow { margin-bottom: 10px; }
.edited-mark { margin-left: 5px; }
.article-body { padding-block: 27px; color: var(--text); font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.article-body br { display: block; content: ""; margin-top: .45em; }
.notice { display: flex; gap: 8px; margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); font-size: 14px; }
.item-actions { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.item-actions a:not(.button) { padding: 5px; color: var(--green); font-size: 13px; font-weight: 650; }
.comments-section { margin-top: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.count { display: inline-grid; min-width: 29px; height: 29px; place-items: center; margin-left: 4px; padding-inline: 7px; border-radius: 99px; background: var(--green-soft); color: var(--green-strong); font-size: 13px; vertical-align: 3px; }
.comment-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment { padding: 19px 22px; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.comment-meta strong { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.comment p { margin: 11px 0 8px; line-height: 1.8; overflow-wrap: anywhere; }
.comment .item-actions { padding-top: 5px; border: 0; }
.comment .item-actions a { font-size: 12px; }
.comment-compose { margin-top: 18px; padding: clamp(18px, 4vw, 25px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-compose h3 { margin-bottom: 14px; }
.login-prompt { margin: 0; padding: 15px; border-radius: 12px; background: var(--surface-soft); color: var(--text-soft); }
.login-prompt a { font-weight: 750; }

.form-page { width: min(100%, 760px); margin-inline: auto; }
.form-page.narrow { width: min(100%, 520px); }
.form-page > .eyebrow { margin-bottom: 7px; }
.form-intro { margin: 9px 0 20px; }
.form-card { display: grid; gap: 18px; margin-top: 20px; padding: clamp(20px, 5vw, 30px); }
.form-card .field { display: grid; gap: 7px; }
.field label { color: var(--text); font-size: 14px; font-weight: 720; }
.field input, .field textarea, .field select,
.exchange-compose select, .exchange-accept-form select,
.gift-details input, .gift-details select {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--text); line-height: 1.5;
}
.field textarea { min-height: 155px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #93aa96; }
.field input:focus, .field textarea:focus, .field select:focus,
.exchange-compose select:focus, .exchange-accept-form select:focus,
.gift-details input:focus { border-color: var(--green); outline: 3px solid color-mix(in srgb, var(--green) 22%, transparent); outline-offset: 1px; }
.field-error input, .field-error textarea, .field-error select { border-color: var(--danger); }
.help-text { color: var(--muted); font-size: 12px; line-height: 1.6; }
.help-text ul, .help-text p { margin-block: 4px; }
.error-text { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.error-summary { padding: 13px 15px; border: 1px solid #e4beb7; border-radius: 11px; background: var(--danger-soft); color: var(--danger); }
.error-summary p { margin: 4px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-footnote { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-footnote a { font-weight: 750; }
.auth-page { padding-top: 14px; text-align: center; }
.auth-emblem { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto 17px; border: 1px solid var(--line); border-radius: 22px; background: var(--green-soft); font-size: 31px; }
.auth-page .form-card { text-align: left; }
.auth-page .form-intro { margin-bottom: 0; }

.suggestion-list .post-row { padding-block: 18px; }
.suggestion-list .post-row .meta { margin-top: 8px; }
.status-badge { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text-soft); font-size: 11px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.suggestion-status-received, .status-pending { border-color: #d9c99e; background: var(--gold-soft); color: var(--gold); }
.suggestion-status-reviewing { border-color: #c5d5b7; background: var(--green-soft); color: var(--green-strong); }
.suggestion-status-completed, .status-accepted { border-color: #b6d0ba; background: var(--green-soft); color: var(--green-strong); }
.suggestion-status-rejected, .status-rejected { border-color: #e0bcb6; background: var(--danger-soft); color: var(--danger); }
.status-cancelled, .status-expired { border-color: var(--line-strong); background: var(--surface-soft); color: var(--muted); }
.row-arrow { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--green); font-size: 23px; text-decoration: none; }
.suggestion-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.suggestion-title-row h1 { flex: 1 1 260px; }
.suggestion-article > .meta { margin-top: 14px; }
.response-box { margin-top: 8px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; background: var(--surface-soft); }
.response-box h2 { margin-bottom: 10px; font-size: 1rem; }
.response-box div { line-height: 1.8; }
.admin-response-form { margin-top: 30px; }

.garden-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 23px; padding: clamp(22px, 5vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--surface) 45%, var(--surface-soft)); box-shadow: var(--shadow-small); }
.garden-intro h1 { margin-bottom: 7px; }
.garden-intro .muted { margin: 0; }
.seed-balance { position: relative; display: grid; min-width: 150px; gap: 2px; overflow: hidden; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); text-align: right; }
.seed-balance > span:first-child { color: var(--muted); font-size: 12px; font-weight: 650; }
.seed-balance strong { color: var(--green-strong); font-size: 29px; letter-spacing: -.04em; line-height: 1.15; }
.seed-balance small { margin-left: 4px; color: var(--text-soft); font-size: 13px; letter-spacing: 0; }
.seed-balance .seed-icon { position: absolute; right: 10px; bottom: -14px; color: var(--gold-soft); font-size: 49px; line-height: 1; }
.attendance-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; }
.attendance-copy h2 { display: flex; align-items: center; gap: 8px; margin: 1px 0 4px; font-size: 1.15rem; }
.attendance-copy .muted { margin: 0; font-size: 14px; }
.attendance-icon { color: var(--gold); }
.attendance-done { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #b6d0ba; border-radius: 999px; background: var(--green-soft); color: var(--green-strong); font-size: 13px; font-weight: 750; white-space: nowrap; }
.garden-section { margin-top: 36px; }
.garden-section .section-heading { margin-bottom: 15px; }
.garden-section .section-heading h2 { margin-top: 2px; }
.garden-section .section-heading .muted { margin: 5px 0 0; font-size: 14px; }
.tree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 15px; }
.tree-card { min-width: 0; padding: 17px; }
.tree-illustration { display: grid; height: 104px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--green-soft), var(--surface-warm)); font-size: 47px; }
.stage-sapling .tree-illustration { background: linear-gradient(145deg, var(--surface-soft), var(--surface)); }
.stage-growing .tree-illustration { background: linear-gradient(145deg, var(--green-soft), var(--surface)); }
.stage-flowering .tree-illustration { background: linear-gradient(145deg, #f3e9ef, var(--surface-warm)); }
.stage-fruiting .tree-illustration { background: linear-gradient(145deg, var(--gold-soft), var(--surface-warm)); }
.tree-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.tree-stage { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.mature-badge { padding: 4px 9px; border: 1px solid #d9c99e; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 800; }
.stage-track { display: flex; overflow-x: auto; gap: 4px; margin: 9px 0 15px; padding-bottom: 2px; scrollbar-width: thin; }
.stage-step { flex: 1 0 auto; padding: 5px 7px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.25; text-align: center; white-space: nowrap; }
.stage-step.is-reached { background: var(--green-soft); color: var(--green-strong); }
.stage-step.is-current { box-shadow: inset 0 0 0 1px var(--green); font-weight: 800; }
.stage-fruiting .stage-step.is-current { box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); color: var(--gold); }
.tree-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.tree-date { margin: 0; font-size: 12px; }
.growth-next { margin: 13px 0 8px; color: var(--green-strong); font-size: 13px; font-weight: 650; }
.growth-next span { color: var(--muted); font-weight: 500; }
.mature-note { padding: 9px 11px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.rule-pending { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text-soft); font-size: 12px; line-height: 1.6; }
.tree-card > form > .button { margin-top: 5px; }
.gift-details { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.gift-details summary { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 750; }
.gift-details summary:hover { color: var(--green-strong); }
.gift-details .help-text { margin: 8px 0; }
.gift-details form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.gift-details input { font-size: 13px; }
.gift-details button { padding-inline: 10px; font-size: 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 11px; }
.shop-item { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 15px; }
.shop-item-mark { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--green-soft); font-size: 22px; }
.shop-item-copy { min-width: 0; flex: 1 1 auto; }
.shop-item h3 { margin: 0 0 2px; font-size: 1rem; }
.shop-item .muted { margin: 0; font-size: 11px; line-height: 1.5; }
.shop-item .button { flex: 0 0 auto; min-width: 62px; padding-inline: 11px; }
.ledger-list { overflow: hidden; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row > div { min-width: 0; }
.ledger-row strong { font-size: 13px; }
.ledger-row time { margin-left: 9px; color: var(--muted); font-size: 11px; }
.ledger-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ledger-amount { color: var(--green-strong); font-size: 16px !important; white-space: nowrap; }
.ledger-amount.spent { color: var(--danger); }
.ledger-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 13px; }
.ledger-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.exchange-section > .section-heading { margin-bottom: 13px; }
.exchange-compose { display: grid; grid-template-columns: auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto; align-items: center; gap: 9px; margin-bottom: 14px; padding: 14px; }
.exchange-compose label { color: var(--text-soft); font-size: 12px; font-weight: 700; }
.exchange-compose select, .exchange-accept-form select { min-height: 42px; padding-block: 7px; font-size: 13px; }
.exchange-list { overflow: hidden; }
.exchange-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.exchange-row:last-child { border-bottom: 0; }
.exchange-summary { min-width: 0; }
.exchange-people { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; }
.exchange-people .author-mark { width: 24px; height: 24px; font-size: 10px; }
.exchange-arrow { margin-inline: 2px; color: var(--earth); }
.exchange-tree-name { margin: 7px 0 0; color: var(--text-soft); font-size: 12px; }
.exchange-tree-name span { color: var(--line-strong); }
.exchange-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.exchange-actions .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.exchange-accept-form { display: flex; align-items: center; gap: 6px; }
.exchange-accept-form select { width: auto; max-width: 200px; }
.exchange-empty { padding: 35px 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (min-width: 900px) {
  .main-content { padding-top: 48px; }
  .tree-card { padding: 20px; }
  .article-card { box-shadow: var(--shadow); }
}
@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; padding-block: 11px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; font-size: 21px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy small { font-size: 10px; }
  .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin-inline: -3px; padding: 2px 3px 3px; scrollbar-width: thin; }
  .nav a { min-height: 39px; padding: 7px 10px; font-size: 13px; }
  .account-nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .main-content { min-height: calc(100vh - 214px); padding-block: 26px 55px; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button { margin-top: 6px; }
  .exchange-compose { grid-template-columns: 1fr; align-items: stretch; }
  .exchange-compose label { margin-top: 3px; }
  .exchange-compose .button { width: 100%; }
}
@media (max-width: 540px) {
  .shell { width: min(calc(100% - 24px), var(--content-width)); }
  .header-inner { gap: 8px; }
  .welcome { font-size: 12px; }
  .welcome .avatar-dot { width: 25px; height: 25px; }
  .account-nav { gap: 5px; }
  .account-nav .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .main-content { padding-top: 23px; }
  .page-heading { flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .page-heading > .button { align-self: stretch; width: 100%; margin: 0; }
  .post-row { align-items: flex-start; gap: 11px; padding: 17px 15px; }
  .post-row h2 { font-size: 1rem; }
  .post-excerpt { font-size: 13px; }
  .comment-count { margin-top: 2px; padding-inline: 8px; font-size: 11px; }
  .empty-state { padding: 39px 16px; }
  .article-card { padding: 20px 16px; }
  .article-body { padding-block: 20px; font-size: 15px; }
  .comment { padding: 16px 14px; }
  .comment-compose { padding: 16px 13px; }
  .form-card { gap: 15px; padding: 19px 15px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1 1 120px; }
  .garden-hero { align-items: flex-start; gap: 12px; padding: 19px 15px; }
  .garden-intro h1 { font-size: 1.85rem; }
  .garden-intro .muted { max-width: 15rem; font-size: 13px; }
  .seed-balance { min-width: 105px; padding: 11px 12px; }
  .seed-balance strong { font-size: 23px; }
  .attendance-card { align-items: stretch; flex-direction: column; padding: 17px 15px; }
  .attendance-card form, .attendance-card form .button { width: 100%; }
  .attendance-done { align-self: flex-start; }
  .tree-grid { grid-template-columns: 1fr; gap: 11px; }
  .tree-card { padding: 15px; }
  .tree-illustration { height: 88px; }
  .shop-grid { grid-template-columns: 1fr; }
  .ledger-row { padding: 12px 13px; }
  .ledger-row time { display: block; margin: 2px 0 0; }
  .exchange-row { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px 13px; }
  .exchange-actions { justify-content: flex-start; }
  .exchange-accept-form { flex: 1 1 100%; }
  .exchange-accept-form select { max-width: none; flex: 1 1 auto; }
  .exchange-accept-form .button { min-width: 58px; }
  .exchange-actions form:not(.exchange-accept-form) { flex: 1 1 auto; }
  .exchange-actions form:not(.exchange-accept-form) .button { width: 100%; }
  .footer-inner { min-height: 76px; flex-wrap: wrap; gap: 4px 10px; padding-block: 15px; }
  .footer-inner p { font-size: 12px; }
  .footer-note { flex-basis: 100%; margin: 0 0 0 30px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #171d19;
    --surface: #202923;
    --surface-soft: #29372e;
    --surface-warm: #382f24;
    --text: #e8eee7;
    --text-soft: #c1cec3;
    --muted: #a1b0a5;
    --line: #39483d;
    --line-strong: #526657;
    --green: #91bb98;
    --green-strong: #b2d6b5;
    --green-soft: #2c4132;
    --earth: #d1aa7f;
    --gold: #efc873;
    --gold-soft: #493c25;
    --danger: #f0a49a;
    --danger-soft: #452d2b;
    --info: #a6d1e8;
    --info-soft: #263b48;
    --shadow: 0 14px 34px rgb(0 0 0 / 18%);
    --shadow-small: 0 5px 16px rgb(0 0 0 / 16%);
  }
  body { background: radial-gradient(ellipse at 8% 0%, rgb(51 73 57 / 28%), transparent 31rem), var(--page); }
  .message.success { border-color: #47644b; }
  .message.error { border-color: #74423d; }
  .message.warning { border-color: #79643a; }
  .message.info { border-color: #405c6b; }
  .notice { border: 1px solid #79643a; }
  .response-box { border-color: var(--line); }
  .mature-badge { border-color: #79643a; }
  .suggestion-status-received, .status-pending { border-color: #79643a; }
  .suggestion-status-reviewing, .suggestion-status-completed, .status-accepted { border-color: #47644b; }
  .suggestion-status-rejected, .status-rejected { border-color: #74423d; }
  .button-primary { color: #17231a; }
  .button-primary:hover { color: #17231a; }
  .button-danger-quiet { border-color: #74423d; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
