:root {
  color-scheme: light;
  --ink: #172c27;
  --muted: #73817a;
  --line: #dce4dc;
  --paper: #f3f5ef;
  --white: #fffefa;
  --green: #176a50;
  --green-dark: #0e4637;
  --green-pale: #e4eee5;
  --lime: #bedb67;
  --coral: #dd735a;
  --yellow: #f0c86f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#cfd8ce 0.6px, transparent 0.6px);
  background-size: 17px 17px;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.page-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1.5px solid var(--green); border-radius: 50%; transform: rotate(-35deg); }
.brand-mark::before, .brand-mark span { content: ""; display: block; width: 14px; height: 7px; border: 1.5px solid var(--green); border-radius: 100% 0 100% 0; }
.brand-mark span { position: absolute; transform: rotate(80deg); }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: #65756c; font-size: 12px; }
.main-nav .main-nav-login { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; color: #69786e; cursor: pointer; font-size: 12px; white-space: nowrap; }
.main-nav .main-nav-login:hover { background: #e2edda; color: var(--green-dark); }
.telegram-account-avatar { width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border: 1px solid #8aab92; border-radius: 50%; background: #e4eee5; color: var(--green-dark); font-family: var(--serif); font-size: 12px; font-weight: 700; }
.telegram-account-details { display: grid; gap: 1px; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.telegram-account-details > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0ea; }
.telegram-account-details > div:last-child { border-bottom: 0; }
.telegram-account-details dt { color: #78847c; font-size: 11px; }
.telegram-account-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 600; }
.telegram-login-dialog { width: min(420px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); box-shadow: 0 18px 60px rgba(23, 44, 39, .2); }
.telegram-login-dialog::backdrop { background: rgba(16, 35, 29, .48); }
.telegram-login-content { display: grid; gap: 16px; padding: 24px; }
.telegram-login-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.telegram-login-heading .eyebrow { margin-bottom: 7px; }
.telegram-login-status { min-height: 38px; margin: 0; color: #56675d; font-size: 13px; line-height: 1.5; }
.telegram-login-link { width: fit-content; color: var(--green-dark); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.telegram-code-field { display: grid; gap: 7px; color: #59685f; font-size: 12px; }
.telegram-code-field .text-input { font-size: 18px; letter-spacing: .12em; }
.telegram-login-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: #8a594c; font-size: 11px; line-height: 1.5; }
.telegram-logout { justify-self: start; }
.language-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 254, 250, .72); }
.language-switch > span { padding: 0 5px; color: #869188; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.language-switch button { min-width: 27px; height: 25px; padding: 0 5px; border: 0; border-radius: 2px; background: transparent; color: #738078; cursor: pointer; font-size: 8px; font-weight: 700; }
.language-switch button.is-active { background: #e2edda; color: var(--green-dark); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #dcebdd; }
.meta-divider { color: #bbc4bb; }
.storage-label { display: inline-flex; align-items: center; gap: 8px; color: #607067; font-size: 11px; letter-spacing: .02em; }
.storage-icon { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #c4d4c4; border-radius: 5px; color: var(--green); font-family: var(--serif); font-weight: 700; }

.overview { padding: 57px 0 37px; }
.overview-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 33px; }
.eyebrow { margin: 0 0 11px; color: #748078; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: var(--serif); font-size: 43px; font-weight: 500; line-height: 1.03; }
h1 em { color: var(--green); font-weight: 500; }
h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; }
.primary-button { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 3px; background: var(--green-dark); color: white; cursor: pointer; font-size: 13px; transition: background .16s, transform .16s; }
.primary-button:hover { background: var(--green); transform: translateY(-1px); }
.primary-button span { font-size: 19px; font-weight: 300; line-height: 1; }

.overview-stats { display: grid; grid-template-columns: minmax(225px, 1.1fr) 1px minmax(135px, .65fr) 1px minmax(390px, 1.9fr); align-items: center; gap: 31px; padding: 23px 26px; border: 1px solid #d6e0d5; border-radius: 4px; background: rgba(255, 254, 250, .82); box-shadow: 0 4px 15px rgba(30, 57, 42, .025); }
.stat-label, .total-note { display: block; color: var(--muted); font-size: 11px; }
.total-amount { display: block; margin: 5px 0 4px; color: var(--green-dark); font-family: var(--serif); font-size: 40px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.total-note { font-size: 11px; }
.draft-total { display: block; margin-top: 6px; color: #a26942; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-divider { width: 1px; height: 57px; background: var(--line); }
.small-stat strong { display: block; margin: 9px 0 5px; font-family: var(--serif); font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.milestone { min-width: 0; }
.milestone-date { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #65766d; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.milestone-pin { width: 7px; height: 7px; display: inline-block; border: 2px solid var(--coral); border-radius: 50%; }
.milestone-year .milestone-pin { border-color: #c59a3f; }
.milestone strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.milestone-caption { display: block; margin: 1px 0 10px; color: #849087; font-size: 10px; }
.milestone-track { height: 4px; overflow: hidden; border-radius: 2px; background: #e8ece5; }
.milestone-track span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .5s ease; }
.milestone-year .milestone-track span { background: #d0a640; }
.milestone-progress { display: block; margin-top: 5px; color: #79877f; font-size: 9px; }

.chart-section { margin: 9px 0 43px; padding: 25px 27px 16px; border: 1px solid #d6e0d5; border-radius: 4px; background: var(--white); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.chart-heading .eyebrow, .ledger-heading .eyebrow { margin-bottom: 6px; }
.chart-heading h2, .ledger-heading h2 { font-size: 23px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding-bottom: 3px; color: #78857d; font-size: 9px; }
.legend-entry { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-line { width: 19px; height: 2px; background: var(--green); }
.committed-line { background: #176a50; }
.draft-line { background: #dd735a; }
.reserve-line { background: #bd9637; }
.forecast-legend { width: 19px; color: #64756b; font-size: 15px; font-style: normal; font-weight: 700; letter-spacing: 2px; line-height: 4px; white-space: nowrap; }
.legend-dash { width: 17px; height: 0; margin-left: 10px; border-top: 1px dashed var(--coral); }
.chart-wrap { position: relative; height: 210px; margin: 17px 0 3px; }
#fundraising-chart { width: 100%; height: 100%; overflow: visible; }
.chart-empty { position: absolute; top: 50%; left: 50%; padding: 8px 12px; transform: translate(-50%, -50%); color: #8b9890; background: rgba(255, 254, 250, .93); font-family: var(--serif); font-size: 14px; font-style: italic; white-space: nowrap; }
.chart-empty[hidden] { display: none; }
.chart-footer { display: flex; justify-content: space-between; padding-left: 50px; color: #8c9890; font-size: 9px; letter-spacing: .08em; }
.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: center; margin-top: 15px; }
.timeline-panel { min-width: 0; }
.timeline-panel .chart-wrap { margin-top: 0; }
.timeline-panel .chart-footer { padding-left: 50px; }
.goal-charts { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; border-left: 1px solid #e2e9df; }
.goal-chart { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 0 6px; }
.goal-chart + .goal-chart { border-left: 1px solid #e2e9df; }
.goal-chart > .eyebrow { align-self: center; margin: 0 0 5px; color: #748078; font-size: 8px; }
.goal-pie-wrap { width: 112px; height: 112px; }
#goal-pie { width: 100%; height: 100%; overflow: visible; }
.goal-ring-track, .goal-ring { fill: none; stroke-width: 7; }
.goal-ring-track { stroke: #e8ece5; }
.goal-ring { transform: rotate(-90deg); transform-origin: 80px 80px; stroke-linecap: round; transition: stroke-dasharray .45s ease; }
.goal-ring-committed { stroke: #176a50; }
.goal-ring-draft { stroke: #dd735a; }
.goal-ring-reserve { stroke: #bd9637; }
.goal-pie-value { fill: var(--green-dark); font-family: var(--serif); font-size: 11px; font-weight: 600; text-anchor: middle; }
.goal-pie-label { fill: #819087; font-family: var(--sans); font-size: 6px; font-weight: 700; letter-spacing: 1px; text-anchor: middle; }
.goal-pie-key { display: grid; width: 100%; gap: 5px; margin-top: 1px; }
.goal-pie-key > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 4px; color: #728078; font-size: 7px; white-space: nowrap; }
.goal-pie-key strong { color: #42574b; font-size: 7px; font-variant-numeric: tabular-nums; }
.pie-key-dot { width: 6px; height: 6px; border-radius: 50%; }
.raised-dot { background: #176a50; }
.draft-dot { background: #dd735a; }
.reserve-dot { background: #bd9637; }
.goal-due { margin: 4px 0 0 13px; color: #aa725e; font-size: 7px; font-weight: 700; letter-spacing: .12em; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 38px; align-items: start; }
.ledger-section { min-width: 0; }
.ledger-heading { margin-bottom: 17px; }
.ledger-heading h2 span { color: #8a968e; font-family: var(--sans); font-size: 12px; }
.filter-control { display: flex; gap: 3px; padding: 3px; border: 1px solid #dce3da; border-radius: 4px; background: #e9ede6; }
.filter-button { padding: 6px 11px; border: 0; border-radius: 3px; background: transparent; color: #6c7a71; cursor: pointer; font-size: 10px; }
.filter-button.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .1); }
.ledger-table-wrap { min-height: 206px; border-top: 1px solid var(--line); }
.ledger-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.ledger-table th { height: 38px; color: #8a968e; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.ledger-table td { height: 57px; border-top: 1px solid #e3e8e0; font-size: 12px; }
.ledger-table tbody tr { animation: row-in .32s both; }
.date-cell { width: 86px; color: #7b8980; font-size: 11px !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.description-cell { max-width: 240px; padding-right: 10px; font-family: var(--serif); font-size: 15px !important; }
.description-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.condition-note { display: block; overflow: hidden; margin-top: 3px; color: #89948d; font-family: var(--sans); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contribution-author { display: block; margin-top: 4px; color: #748078; font-size: 10px; }
.contribution-author.is-anonymous { color: #68776d; font-style: italic; }
.kind-cell { width: 69px; }
.state-cell { width: 83px; }
.hours-cell { width: 76px; color: #65766d; font-size: 11px !important; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.state-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 2px; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.state-tag.committed { background: #e5f0e6; color: #286448; }
.state-tag.draft { background: #fff0d1; color: #946323; }
.state-tag.reserve { background: #ece8fa; color: #65538b; }
.status-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kind-tag { display: inline-flex; align-items: center; gap: 5px; color: #5d7969; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kind-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.kind-tag.work { color: #a06943; }
.kind-tag.work::before { background: #cf9660; }
.amount-cell { width: 112px; color: var(--green-dark); font-family: var(--serif); font-size: 15px !important; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.amount-heading { text-align: right; }
.actions-cell { width: 57px; text-align: right; white-space: nowrap; }
.row-action { padding: 5px 4px; border: 0; background: transparent; color: #7c8b81; cursor: pointer; font-size: 10px; }
.row-action:hover { color: var(--green-dark); }
.row-action.delete:hover { color: #b34d3b; }
.empty-ledger { display: flex; min-height: 194px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #89958d; text-align: center; }
.empty-ledger[hidden] { display: none; }
.empty-sun { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid #cbd9c8; border-radius: 50%; color: var(--green); font-size: 18px; font-weight: 300; }
.empty-ledger strong { color: #4c6256; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.empty-ledger > span:not(.empty-sun) { font-size: 11px; }
.text-button { margin-top: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; }
.text-button span { padding-left: 4px; }

.form-panel { position: relative; padding: 20px 21px 16px; border: 1px solid #d6e0d5; border-radius: 4px; background: var(--white); }
.form-panel-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.form-panel .eyebrow { margin-bottom: 6px; }
.form-panel h2 { font-size: 21px; }
.close-button { width: 25px; height: 25px; margin: -4px -5px 0 0; border: 0; background: transparent; color: #78867d; cursor: pointer; font-size: 21px; font-weight: 300; line-height: 1; }
.close-button:hover { color: var(--ink); }
.field-label { display: flex; align-items: center; justify-content: space-between; margin: 13px 0 7px; color: #475a50; font-size: 11px; font-weight: 600; }
.field-unit, .optional { color: #929c95; font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.text-input { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #dce4da; border-radius: 3px; background: #fff; color: var(--ink); font-size: 12px; }
.hours-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.text-input::placeholder { color: #a3ada6; }
.text-input:focus { border-color: #80a996; outline: 2px solid #dbece1; outline-offset: 0; }
.kind-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.anonymous-field { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 3px; background: #f8faf6; cursor: pointer; }
.anonymous-field input { width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0; accent-color: var(--green); }
.anonymous-field span { display: grid; gap: 4px; color: #40564a; font-size: 11px; }
.anonymous-field small { color: #7b877e; font-size: 10px; line-height: 1.4; }
.kind-button { display: flex; height: 37px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dce4da; border-radius: 3px; background: #fff; color: #718077; cursor: pointer; font-size: 11px; }
.kind-button.is-selected { border-color: #84a894; background: #edf4ec; color: var(--green-dark); }
.kind-symbol { font-size: 13px; }
.money-symbol { color: var(--green); }
.work-symbol { color: #bc8353; }
.amount-input-wrap { position: relative; }
.amount-input-wrap > span { position: absolute; top: 11px; left: 10px; color: #818e85; font-size: 10px; }
.amount-input { padding-left: 38px; }
.text-area { resize: vertical; min-height: 58px; line-height: 1.4; }
.description-area { min-height: 61px; }
.form-error { min-height: 0; margin: 0; color: #ad493a; font-size: 10px; }
.form-error:not(:empty) { margin-top: 10px; }
.form-actions { display: flex; align-items: center; gap: 15px; margin-top: 13px; }
.save-button { display: inline-flex; min-height: 39px; align-items: center; gap: 9px; padding: 0 12px; border: 0; border-radius: 3px; background: var(--green-dark); color: white; cursor: pointer; font-size: 11px; }
.save-button:hover { background: var(--green); }
.save-button:disabled { opacity: .6; cursor: wait; }
.save-button span { font-size: 15px; }
.cancel-button { padding: 8px 0; border: 0; background: transparent; color: #75827a; cursor: pointer; font-size: 11px; }
.form-footnote { margin: 14px 0 0; padding-top: 11px; border-top: 1px solid #e8ece6; color: #8a968e; font-size: 9px; }
.form-footnote code { color: #63766a; font-size: 9px; }
.page-footer { display: flex; justify-content: space-between; margin-top: 52px; padding: 17px 0 22px; border-top: 1px solid var(--line); color: #849087; font-size: 9px; }
.page-footer span:first-child { color: #62756a; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 5; padding: 11px 16px; border: 1px solid #b9d1be; border-radius: 3px; background: #f8fff7; color: var(--green-dark); box-shadow: 0 7px 24px rgba(28, 54, 39, .11); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.tasks-page { min-height: 66vh; padding: 57px 0 0; }
.tasks-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tasks-heading h1 { margin-bottom: 9px; }
.tasks-intro { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.task-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 31px 0 38px; border-top: 1px solid #cfdacf; border-bottom: 1px solid #cfdacf; background: rgba(255, 254, 250, .54); }
.task-summary-item { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; color: #718078; font-size: 11px; }
.task-summary-item + .task-summary-item { border-left: 1px solid #dce4dc; }
.task-summary-item strong { color: var(--green-dark); font-family: var(--serif); font-size: 27px; font-weight: 500; font-variant-numeric: tabular-nums; }
.task-editor { max-width: 690px; margin: 0 0 38px; }
.task-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.task-list-heading { align-items: flex-end; gap: 16px; margin-bottom: 17px; }
.task-list-heading .eyebrow { margin-bottom: 6px; }
.task-list-heading h2 span { color: #8a968e; font-family: var(--sans); font-size: 12px; }
.task-filter-button { min-height: 29px; padding: 5px 10px; border: 0; border-radius: 3px; background: transparent; color: #6c7a71; cursor: pointer; font-size: 10px; white-space: nowrap; }
.task-filter-button.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .1); }
.task-list { border-bottom: 1px solid var(--line); }
.task-group + .task-group { margin-top: 20px; }
.task-group-heading { min-height: 44px; margin: 0; padding: 12px 8px; color: var(--green-dark); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
summary.task-group-heading { border-top: 1px solid var(--line); cursor: pointer; }
.task-group-heading span { color: var(--muted); font-size: 12px; font-weight: 400; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px 142px 94px; align-items: center; gap: 18px; min-height: 82px; padding: 13px 8px; border-top: 1px solid var(--line); animation: row-in .32s both; }
.task-row-copy { min-width: 0; }
.task-row-copy h4 { overflow: hidden; margin: 0; color: #253c32; font-family: var(--serif); font-size: 17px; font-weight: 500; text-overflow: ellipsis; }
.task-row-done .task-row-copy h4 { color: #849087; text-decoration: line-through; }
.task-row-copy p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #77847c; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-due { color: #748078; font-size: 10px; font-variant-numeric: tabular-nums; }
.task-due.is-overdue { color: #b44f3e; font-weight: 700; }
.task-status-select { min-height: 33px; padding: 6px 8px; font-size: 10px; }
.task-status-select.status-open { border-color: #dce4da; }
.task-status-select.status-in-progress { border-color: #e4c68c; background: #fff8e9; }
.task-status-select.status-done { border-color: #b9d1be; background: #f0f7ef; }
.task-actions { display: flex; justify-content: flex-end; gap: 9px; }
.task-actions .row-action { padding: 6px 2px; }
.task-empty { display: flex; min-height: 225px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid var(--line); color: #89958d; text-align: center; }
.task-empty[hidden] { display: none; }
.task-empty strong { color: #4c6256; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.task-empty > span:not(.empty-sun) { font-size: 11px; }
.task-list-section { padding-bottom: 20px; }

.map-page { padding: 48px 0 0; }
.map-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.map-heading h1 { margin-bottom: 5px; font-size: 36px; }
.map-heading .eyebrow span { color: var(--coral); }
.map-address { margin: 0; color: #718078; font-size: 12px; }
.map-external-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #d5ded4; border-radius: 3px; color: var(--green-dark); font-size: 11px; text-decoration: none; }
.map-external-link:hover { border-color: #9cb79f; background: #f9fbf6; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 49px; padding: 7px 10px; border: 1px solid #d6e0d5; border-bottom: 0; background: var(--white); }
.map-type-control, .map-layer-control { display: flex; align-items: center; gap: 4px; }
.map-type-control { padding: 3px; border: 1px solid #e0e6df; border-radius: 3px; background: #f2f4ef; }
.map-type-button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 2px; background: transparent; color: #6e7b73; cursor: pointer; font-size: 10px; }
.map-type-button.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .12); }
.map-type-button:disabled, .map-layer-toggle input:disabled { cursor: not-allowed; opacity: .55; }
.map-layer-control { gap: 13px; }
.map-layer-toggle { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; color: #607067; cursor: pointer; font-size: 10px; white-space: nowrap; }
.map-layer-toggle input { width: 14px; height: 14px; accent-color: var(--green); }
.map-provider-label { margin-left: auto; color: #859188; font-size: 9px; }
.map-canvas-wrap { position: relative; min-height: 430px; height: min(68vh, 720px); overflow: hidden; border: 1px solid #d6e0d5; background: #e8ece5; }
#swiss-map { width: 100%; height: 100%; min-height: 430px; }
#swiss-map .ol-control button { border-radius: 2px; background: rgba(255, 254, 250, .92); color: #29483a; }
#swiss-map .ol-control button:hover { background: #e7eedf; }
#swiss-map .ol-attribution { max-width: calc(100% - 60px); color: #52665a; font-size: 9px; }
.swiss-map-status { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; background: rgba(248, 249, 245, .94); text-align: center; }
.swiss-map-status[hidden] { display: none; }
.swiss-map-status strong { color: #30463b; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.swiss-map-status p { max-width: 460px; margin: 7px 0 0; color: #75827a; font-size: 11px; line-height: 1.55; }
.map-footer { display: flex; justify-content: space-between; gap: 15px; padding: 10px 2px; color: #7d8982; font-size: 9px; font-variant-numeric: tabular-nums; }

.world-page { min-height: 70vh; padding: 48px 0 0; }
.world-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.world-heading .eyebrow span { color: var(--coral); }
.world-heading h1 { margin-bottom: 8px; }
.world-intro { max-width: 600px; margin: 0; color: #738078; font-size: 12px; line-height: 1.55; }
.world-map-size { flex: 0 0 175px; }
.world-map-size .field-label { display: block; margin-bottom: 5px; }
.world-map-size > div { display: grid; grid-template-columns: 64px auto; align-items: center; gap: 7px; }
.world-map-size input { min-height: 36px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.world-map-size .cancel-button { padding: 6px 2px; white-space: nowrap; }
.world-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.world-terrain-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.world-terrain-button { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #617267; cursor: pointer; font-size: 10px; }
.world-terrain-button.is-active { border-color: #b9cbb2; background: #f7faef; color: #294638; }
.terrain-swatch { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid rgba(37, 55, 42, .18); border-radius: 2px; }
.terrain-meadow { background: #b9d49a; }
.terrain-grove { background: #67925c; }
.terrain-water { background: #77b8c0; }
.terrain-path { background: #e4c487; }
.terrain-stone { background: #969b8c; }
.world-map-actions { display: flex; align-items: center; gap: 12px; }
.world-save-status { color: #829087; font-size: 9px; }
.world-save-status:not(:empty) { font-variant-numeric: tabular-nums; }
.world-infrastructure-panel { margin: 19px 0 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.world-infrastructure-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.world-infrastructure-heading .eyebrow { margin: 0 0 3px; color: #87938a; font-size: 8px; }
.world-infrastructure-heading h2 { margin: 0; color: #294638; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.world-infrastructure-heading > p { max-width: 350px; margin: 0; color: #77867c; font-size: 9px; text-align: right; }
.world-infrastructure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.world-infrastructure-card { min-width: 0; padding: 11px; border: 1px solid #d4ded1; background: #fffefa; }
.world-infrastructure-card.is-placing { border-color: #789760; box-shadow: inset 0 0 0 1px #789760; }
.world-infrastructure-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.world-infrastructure-card-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.world-infrastructure-kind { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid currentColor; color: #527e80; font-size: 8px; font-weight: 700; }
.kind-heat .world-infrastructure-kind, .world-infrastructure-kind.kind-heat { color: #bc6f4b; }
.world-infrastructure-kind.kind-campaign-office { color: #7b9353; }
.world-infrastructure-card h3 { margin: 0; overflow-wrap: anywhere; color: #294638; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.world-infrastructure-state { padding: 4px 5px; border: 1px solid #d4ded1; color: #748278; font-size: 7px; font-weight: 700; white-space: nowrap; }
.state-building .world-infrastructure-state { border-color: #c99462; color: #a56237; }
.state-deployed .world-infrastructure-state { border-color: #7b995e; color: #426343; }
.world-infrastructure-progress { height: 4px; margin: 11px 0 5px; overflow: hidden; background: #e6ece1; }
.world-infrastructure-progress span { display: block; height: 100%; background: #829b5b; transition: width .2s; }
.state-building .world-infrastructure-progress span { background: #d07a55; }
.state-deployed .world-infrastructure-progress span { background: #59866b; }
.world-infrastructure-task-summary { margin: 0 0 8px; color: #829087; font-size: 8px; font-variant-numeric: tabular-nums; }
.world-infrastructure-actions { display: flex; min-height: 29px; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.world-infrastructure-place, .world-infrastructure-cancel { min-height: 28px; padding: 0 8px; border: 1px solid #bfcfb8; border-radius: 2px; background: #eef3e8; color: #355842; cursor: pointer; font-size: 8px; font-weight: 600; }
.world-infrastructure-place:hover, .world-infrastructure-cancel:hover { background: #e3ecd8; }
.world-infrastructure-cancel { background: #fffefa; color: #727f75; }
.world-infrastructure-location { color: #7d897f; font-size: 8px; }
.world-infrastructure-tasks { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5ebe2; }
.world-infrastructure-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 32px; padding: 5px 0; border-bottom: 1px solid #edf0ea; }
.world-infrastructure-task > span { color: #586b5f; font-size: 8px; line-height: 1.35; }
.world-infrastructure-task.task-done > span { color: #89948b; text-decoration: line-through; }
.world-infrastructure-task > button { min-width: 55px; min-height: 23px; padding: 0 5px; border: 1px solid #d5ded1; border-radius: 2px; background: #fffefa; color: #48634f; cursor: pointer; font-size: 7px; font-weight: 600; }
.world-infrastructure-task > button:disabled { background: #eef3e8; color: #738778; cursor: default; }
.world-view-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.world-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.world-player-picker { display: flex; min-width: 0; align-items: center; gap: 7px; }
.world-player-picker label { color: #829087; font-size: 9px; }
.world-player-picker select { width: min(220px, 24vw); min-width: 130px; height: 29px; padding: 0 8px; border: 1px solid #ccd7c5; border-radius: 2px; background: #fffefa; color: #294638; font-size: 10px; }
.world-view-button { min-width: 58px; min-height: 29px; padding: 0 10px; border: 0; border-radius: 2px; background: transparent; color: #6e7b73; cursor: pointer; font-size: 10px; }
.world-view-button.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .12); }
.world-view-switch > span { color: #829087; font-size: 9px; }
.world-map-stage { max-width: 100%; overflow: auto; overscroll-behavior: contain; padding: 4px 0 10px; }
.world-coordinate-top { display: grid; width: min(100%, 760px); gap: 2px; margin: 0 auto 4px; padding-left: 18px; color: #89958c; font-size: 8px; text-align: center; }
.world-board-row { display: flex; justify-content: center; gap: 4px; }
.world-coordinate-left { display: grid; width: 14px; flex: 0 0 14px; align-items: center; color: #89958c; font-size: 8px; text-align: right; }
.world-grid { display: grid; width: min(100%, 760px); aspect-ratio: 1; gap: 2px; padding: 4px; border: 1px solid #c6d3bd; background: #e5edda; box-shadow: 0 5px 20px rgba(41, 66, 45, .07); touch-action: none; user-select: none; }
.world-cell { position: relative; width: 100%; min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid rgba(45, 68, 48, .08); border-radius: 1px; cursor: crosshair; transition: filter .12s, transform .12s; }
.world-cell:hover { z-index: 1; filter: brightness(1.08); transform: scale(1.08); }
.world-cell-actors { position: absolute; inset: 1px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.world-actor-marker { display: grid; width: clamp(12px, 1.2vw, 16px); height: clamp(9px, .9vw, 12px); place-items: center; border: 1px solid rgba(255, 255, 255, .9); clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%); background: var(--actor-color, #e27659); color: #fff; font-size: clamp(5px, .48vw, 7px); font-weight: 700; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.world-actor-marker img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fffefa; }
.world-actor-marker.is-selected { z-index: 1; filter: drop-shadow(0 0 2px #203f36); transform: scale(1.22); }
.world-infrastructure-marker { position: absolute; top: 2px; right: 2px; z-index: 2; display: grid; width: clamp(11px, 1vw, 15px); height: clamp(11px, 1vw, 15px); place-items: center; border: 1px solid #fffefa; border-radius: 50%; background: #4e8588; box-shadow: 0 1px 2px rgba(20, 38, 30, .4); color: #fff; font-size: 5px; font-weight: 700; line-height: 1; }
.world-infrastructure-marker.infra-kind-heat { background: #bc6f4b; }
.world-infrastructure-marker.infra-kind-campaign-office { background: #708d4a; }
.world-infrastructure-marker.infra-state-building { outline: 1px solid #203f36; outline-offset: 1px; }
.world-infrastructure-marker.infra-state-deployed { border-radius: 2px; box-shadow: 0 0 0 1px #3f7558; }
.world-cell.terrain-meadow { background: #b9d49a; }
.world-cell.terrain-grove { background: #67925c; background-image: radial-gradient(circle at 35% 35%, rgba(234, 243, 200, .24) 0 1px, transparent 1.5px), radial-gradient(circle at 72% 68%, rgba(34, 78, 49, .22) 0 1px, transparent 1.5px); background-size: 8px 8px; }
.world-cell.terrain-water { background: #77b8c0; background-image: linear-gradient(155deg, transparent 44%, rgba(240, 251, 245, .32) 48%, transparent 53%); background-size: 12px 12px; }
.world-cell.terrain-path { background: #e4c487; }
.world-cell.terrain-stone { background: #969b8c; background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .2) 0 1px, transparent 1.5px); background-size: 7px 7px; }
.world-3d-stage { position: relative; width: 100%; height: min(72vh, 760px); min-height: 390px; overflow: hidden; border: 1px solid #c6d3bd; background: #e7eee1; }
.world-3d-stage[hidden] { display: none; }
.world-3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.world-3d-hint { position: absolute; right: 12px; bottom: 12px; max-width: min(360px, calc(100% - 24px)); padding: 8px 10px; border: 1px solid rgba(190, 205, 179, .8); background: rgba(255, 254, 250, .9); color: #586c5c; font-size: 9px; line-height: 1.4; }
.world-map-footer { display: flex; justify-content: space-between; gap: 12px; padding: 7px 1px; color: #849087; font-size: 8px; letter-spacing: .06em; }

@media (max-width: 620px) {
  .world-page { padding-top: 35px; }
  .world-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 17px; }
  .world-heading h1 { font-size: 34px; }
  .world-intro { font-size: 11px; }
  .world-map-size { width: 100%; flex-basis: auto; }
  .world-map-size > div { grid-template-columns: 65px minmax(0, 1fr); }
  .world-map-size .cancel-button { justify-self: start; }
  .world-map-toolbar { align-items: stretch; flex-direction: column; }
  .world-terrain-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .world-terrain-button { min-width: 0; justify-content: flex-start; padding: 0 5px; font-size: 9px; }
  .world-map-actions { justify-content: space-between; }
  .world-infrastructure-panel { margin: 15px 0 19px; }
  .world-infrastructure-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .world-infrastructure-heading > p { max-width: 100%; text-align: left; }
  .world-infrastructure-list { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .world-infrastructure-card { padding: 9px; }
  .world-map-stage { padding-bottom: 7px; }
  .world-view-switch { align-items: flex-start; flex-direction: column; gap: 6px; }
  .world-view-controls { width: 100%; flex-wrap: wrap; }
  .world-player-picker { width: 100%; }
  .world-player-picker select { width: 100%; min-width: 0; flex: 1; }
  .world-view-switch > span { max-width: 100%; text-align: left; }
  .world-3d-stage { height: 62vh; min-height: 340px; }
  .world-3d-hint { right: 7px; bottom: 7px; padding: 6px 8px; font-size: 8px; }
  .world-grid { width: min(100%, 560px); gap: 1px; padding: 2px; }
  .world-coordinate-top { gap: 1px; margin-bottom: 3px; padding-left: 16px; font-size: 7px; }
  .world-coordinate-left { width: 13px; flex-basis: 13px; font-size: 7px; }
  .world-board-row { gap: 3px; }
  .world-cell { border-radius: 0; }
  .world-map-footer { font-size: 7px; }
}

.manifesto-page { padding: 48px 0 0; }
.manifesto-hero { padding: 24px 0 22px; }
.manifesto-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 48px; }
.manifesto-hero .eyebrow span { color: var(--coral); }
.manifesto-hero h1 { font-size: 62px; line-height: .96; }
.manifesto-hero h1 em { color: var(--coral); }
.manifesto-lede { max-width: 390px; margin: 0 0 5px; color: #52665a; font-family: var(--serif); font-size: 20px; line-height: 1.42; }
.manifesto-coordinates { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 30px; padding: 13px 0; border-top: 1px solid #d5ded3; border-bottom: 1px solid #d5ded3; }
.manifesto-coordinates span, .manifesto-quest-summary > span { color: #849087; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.manifesto-coordinates strong { color: #344b3e; font-size: 11px; font-weight: 600; }
.manifesto-values-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(235, 241, 221, .24); }
.manifesto-values-layout .manifesto-role { padding: 0; border-right: 0; }
.manifesto-values-section { min-width: 0; padding: 0; }
.manifesto-section-heading, .manifesto-game-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.manifesto-section-heading .eyebrow, .manifesto-game-heading .eyebrow { margin-bottom: 6px; }
.manifesto-section-heading h2, .manifesto-game-heading h2 { font-size: 27px; }
.manifesto-section-heading > p { max-width: 290px; margin: 0 0 2px; color: #819087; font-size: 10px; line-height: 1.5; text-align: right; }
.manifesto-values-section .manifesto-section-heading { display: block; margin-bottom: 12px; }
.manifesto-values-section .manifesto-section-heading .eyebrow { color: #d7ec7b; font-size: 8px; }
.manifesto-values-section .manifesto-section-heading .eyebrow span { color: #adc08e; }
.manifesto-values-section .manifesto-section-heading h3 { margin: 0; color: #fffefa; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.manifesto-values-section .manifesto-section-heading > p { max-width: 500px; margin: 8px 0 0; color: #c1d0c4; text-align: left; }
.manifesto-values { border-top: 1px solid #cad7ca; }
.manifesto-value { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 150px; padding: 25px 5px; border-bottom: 1px solid #cad7ca; animation: row-in .32s both; }
.manifesto-value-number { align-self: start; padding-top: 7px; color: var(--coral); font-family: var(--serif); font-size: 15px; font-variant-numeric: tabular-nums; }
.manifesto-value-copy { min-width: 0; }
.manifesto-value-copy h3 { margin: 0 0 8px; color: #193b30; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.12; }
.manifesto-value-copy p { max-width: 710px; margin: 0; color: #627268; font-size: 13px; line-height: 1.7; }
.manifesto-vote-controls { display: flex; align-items: center; gap: 7px; }
.manifesto-vote-button { display: inline-flex; width: 52px; height: 39px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d2ddd2; border-radius: 3px; background: #fffefa; color: #607267; cursor: pointer; font-size: 11px; font-variant-numeric: tabular-nums; transition: color .16s, border-color .16s, background .16s, transform .16s; }
.manifesto-vote-button:hover { transform: translateY(-1px); }
.manifesto-vote-button.vote-up:hover, .manifesto-vote-button.vote-up.is-selected { border-color: #71a18a; background: #e5f0e7; color: #155c43; }
.manifesto-vote-button.vote-down:hover, .manifesto-vote-button.vote-down.is-selected { border-color: #df927c; background: #fff0e9; color: #ae4e3a; }
.manifesto-vote-button[aria-pressed="true"] { font-weight: 700; }
.manifesto-vote-icon { font-size: 18px; line-height: 1; }
.manifesto-vote-note { margin: 11px 0 0 64px; color: #87928b; font-size: 9px; }
.manifesto-game .manifesto-values { border-color: rgba(235, 241, 221, .24); }
.manifesto-game .manifesto-value { grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 12px; min-height: 0; padding: 15px 0; border-color: rgba(235, 241, 221, .18); }
.manifesto-game .manifesto-value-number { color: #d7ec7b; font-size: 13px; }
.manifesto-game .manifesto-value-copy h3 { margin-bottom: 6px; color: #fffefa; font-size: 21px; }
.manifesto-game .manifesto-value-copy p { color: #c1d0c4; font-size: 11px; line-height: 1.55; }
.manifesto-game .manifesto-vote-button { width: 43px; height: 34px; border-color: rgba(235, 241, 221, .35); background: #f6f5e9; }
.manifesto-game .manifesto-vote-note { margin: 10px 0 0; color: #adc0b3; font-size: 9px; line-height: 1.5; }
.manifesto-game-quests { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(235, 241, 221, .24); }
.manifesto-game-quests .manifesto-quest-board { padding: 0; }
.manifesto-game { margin: 48px calc((1160px - min(1160px, 100vw - 64px)) / -2) 0; padding: 30px 32px 25px; background: #163e34; color: #f6f5e9; }
.manifesto-game-heading { margin-bottom: 23px; }
.manifesto-game-heading .eyebrow { color: #adc08e; }
.manifesto-game-heading h2 { color: #fffefa; }
.manifesto-quest-link { display: inline-flex; align-items: center; gap: 8px; color: #d7ec7b; font-size: 10px; text-decoration-color: rgba(215, 236, 123, .55); text-underline-offset: 4px; }
.manifesto-game-layout { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); border-top: 1px solid rgba(235, 241, 221, .24); border-bottom: 1px solid rgba(235, 241, 221, .24); }
.manifesto-role { min-width: 0; padding: 0 20px 0 0; border-right: 1px solid rgba(235, 241, 221, .24); }
.manifesto-role-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid rgba(215, 236, 123, .42); border-bottom: 0; background: #214a3d; }
.manifesto-role-card-head .eyebrow { margin: 0; color: #d7ec7b; font-size: 8px; }
.manifesto-role-profile { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1fr); align-items: stretch; gap: 14px; padding: 12px; border: 1px solid rgba(215, 236, 123, .42); background: #1d463a; }
.manifesto-role-avatar-wrap { position: relative; width: 100%; aspect-ratio: .82; overflow: hidden; border: 1px solid rgba(235, 241, 221, .25); background: #294f42; }
.manifesto-role-avatar { display: block; width: 100%; height: 100%; }
.manifesto-avatar-status { position: absolute; top: 8px; right: 6px; left: 6px; color: #d4decf; font-size: 8px; text-align: center; }
.manifesto-avatar-caption { position: absolute; right: 5px; bottom: 5px; left: 5px; padding: 5px 3px; background: rgba(17, 46, 38, .84); color: #d7ec7b; font-size: 7px; text-align: center; }
.manifesto-role-copy { min-width: 0; }
.manifesto-role-copy > .eyebrow { margin: 0 0 5px; color: #adc08e; font-size: 8px; }
.manifesto-role-title { display: flex; align-items: center; gap: 10px; }
.manifesto-role-title > span { color: #ef795b; font-size: 16px; }
.manifesto-role-title h3 { margin: 0; overflow-wrap: anywhere; color: #fffefa; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.manifesto-role-name { margin: 5px 0 0; color: #d7ec7b; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.manifesto-role-state { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 8px; border: 1px solid rgba(215, 236, 123, .5); color: #d7ec7b; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.manifesto-role-description { max-width: 290px; margin: 14px 0; color: #d0d9cb; font-size: 10px; line-height: 1.55; }
.manifesto-spawn-button { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 0 10px; border: 1px solid rgba(215, 236, 123, .8); border-radius: 2px; background: #d7ec7b; color: #203f36; cursor: pointer; font-size: 9px; font-weight: 700; }
.manifesto-spawn-button:hover { background: #e7f39c; }
.manifesto-spawn-button:disabled { cursor: wait; opacity: .7; }
.manifesto-quest-board { min-width: 0; padding: 19px 0 12px 27px; }
.manifesto-quest-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.manifesto-quest-summary > span { color: #adc08e; }
.manifesto-quest-summary strong { color: #d7ec7b; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.manifesto-quest { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; gap: 11px; min-height: 38px; padding: 9px 0; border-top: 1px solid rgba(235, 241, 221, .16); }
.manifesto-quest-status { color: #ef795b; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.manifesto-quest.quest-in-progress .manifesto-quest-status { color: #d7ec7b; }
.manifesto-quest strong { overflow-wrap: anywhere; color: #f6f5e9; font-size: 11px; font-weight: 500; }
.manifesto-quest-empty { margin: 14px 0 7px; color: #c1d0c4; font-size: 11px; }
.manifesto-game-note { max-width: 690px; margin: 19px 0 0; color: #c1d0c4; font-family: var(--serif); font-size: 15px; line-height: 1.5; }

.ideas-page { min-height: 66vh; padding: 48px 0 0; }
.ideas-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.ideas-heading h1 { margin-bottom: 9px; }
.ideas-heading .eyebrow span { color: var(--coral); }
.ideas-intro { max-width: 610px; margin: 0; color: #718078; font-size: 13px; line-height: 1.55; }
.progress-tree { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 34px; margin: 0 0 38px; padding: 18px 25px 18px 12px; border-top: 1px solid #d2dfc2; border-bottom: 1px solid #d2dfc2; background: #edf4d5; }
.progress-tree-art { display: flex; min-width: 0; align-items: center; gap: 8px; }
.idea-tree { display: block; width: min(52%, 180px); height: 174px; flex: 0 0 auto; overflow: visible; }
.tree-root { fill: none; stroke: #856b4d; stroke-width: 3; stroke-linecap: round; opacity: .35; transition: opacity .3s, stroke-width .3s; }
.tree-root.is-active { stroke-width: 4; opacity: .9; }
.tree-trunk { fill: none; stroke: #806141; stroke-width: 8; stroke-linecap: round; }
.tree-branch, .tree-branch-light { fill: none; stroke: #806141; stroke-width: 5; stroke-linecap: round; opacity: .4; transition: opacity .3s; }
.tree-branch-light { stroke-width: 3; }
.tree-branch.is-active, .tree-branch-light.is-active { opacity: 1; }
.tree-leaf { fill: #bcc69a; opacity: .42; transform-box: fill-box; transform-origin: center; transition: fill .3s, opacity .3s, transform .3s; }
.tree-leaf.is-grown { fill: #6c9b55; opacity: 1; transform: scale(1.12); }
.tree-pot { fill: #d8755a; stroke: #a64f3d; stroke-width: 2; }
.tree-pot-rim { fill: #e79868; stroke: #a64f3d; stroke-width: 2; }
.tree-pot-mark { stroke: #f6c39b; stroke-width: 3; stroke-linecap: round; }
.tree-caption { max-width: 125px; margin: 0; color: #49634d; font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.tree-caption span { display: block; }
.tree-caption span + span { margin-top: 8px; color: #7b896f; font-family: var(--sans); font-size: 9px; line-height: 1.45; }
.tree-ledger { min-width: 0; padding-left: 27px; border-left: 1px solid #cad7b3; }
.tree-ledger > .eyebrow { margin-bottom: 6px; color: #78836c; font-size: 8px; }
.tree-ledger h2 { margin-bottom: 11px; color: #294638; font-size: 22px; }
.tree-metric { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #d7e0c7; color: #556a52; font-size: 11px; }
.tree-metric small { color: #859076; font-size: 9px; }
.tree-metric strong { color: #294638; font-family: var(--serif); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tree-footnote { margin: 9px 0 0; color: #7a876d; font-size: 9px; }
.idea-editor { max-width: 690px; margin: 0 0 35px; }
.idea-pool-section { padding-bottom: 20px; }
.idea-pool-heading { align-items: end; gap: 16px; margin-bottom: 16px; }
.idea-pool-heading .eyebrow { margin-bottom: 6px; }
.idea-pool-heading h2 span { color: #8a968e; font-family: var(--sans); font-size: 12px; }
.idea-pool-note { margin: 0 0 2px; color: #849087; font-size: 10px; }
.idea-list { border-top: 1px solid #cfdacf; }
.idea-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px 17px; min-height: 110px; padding: 17px 7px; border-bottom: 1px solid #cfdacf; animation: row-in .32s both; }
.idea-number { align-self: start; padding-top: 4px; color: var(--coral); font-family: var(--serif); font-size: 13px; font-variant-numeric: tabular-nums; }
.idea-row-copy { min-width: 0; }
.idea-row-copy h3 { margin: 0; color: #294638; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.idea-row-copy p { max-width: 690px; margin: 5px 0 0; color: #718078; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.idea-row-parked .idea-row-copy h3 { color: #88928a; }
.idea-row-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.idea-status-select { width: 126px; min-height: 32px; padding: 5px 7px; font-size: 10px; }
.idea-status-select.status-seed { border-color: #d7c68d; background: #fffbed; }
.idea-status-select.status-growing { border-color: #a9c087; background: #f2f7e8; }
.idea-status-select.status-ready { border-color: #86ae92; background: #eef6ee; }
.idea-status-select.status-parked { border-color: #dce4da; color: #839087; }
.idea-related { grid-column: 2 / -1; min-width: 0; }
.idea-related-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.idea-link-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #d8e0d5; border-radius: 2px; background: rgba(255, 254, 250, .8); color: #596e60; font-size: 9px; }
.idea-link-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-link-chip button { width: 20px; height: 20px; flex: 0 0 20px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #9c6857; cursor: pointer; font-size: 16px; line-height: 1; }
.idea-link-editor { color: #63766a; font-size: 10px; }
.idea-link-editor summary { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.idea-link-editor summary::-webkit-details-marker { display: none; }
.idea-link-editor summary::before { color: var(--coral); content: "+"; font-size: 16px; }
.idea-link-form { display: grid; grid-template-columns: 115px minmax(130px, 1fr) 125px auto; gap: 7px; align-items: center; max-width: 610px; padding: 5px 0 2px; }
.idea-link-form .text-input { min-height: 31px; padding: 5px 7px; font-size: 9px; }
.idea-link-form .save-button { min-height: 31px; padding: 0 9px; font-size: 9px; }
.idea-empty { display: flex; min-height: 175px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); color: #849087; text-align: center; }
.idea-empty strong { color: #47604f; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.idea-empty > span { font-size: 11px; }
.idea-empty[hidden] { display: none; }

.culture-page { min-height: 66vh; padding: 48px 0 0; }
.culture-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.culture-heading .eyebrow span { color: var(--coral); }
.culture-heading h1 { margin-bottom: 9px; }
.culture-intro { max-width: 650px; margin: 0; color: #718078; font-size: 13px; line-height: 1.6; }
.culture-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 32px; align-items: start; }
.culture-library { min-width: 0; }
.culture-library-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 15px; }
.culture-library-heading h2 { font-size: 24px; }
.culture-library-heading h2 span, .playlist-collection-heading h2 span { color: #8a968e; font-family: var(--sans); font-size: 12px; }
.culture-filter-button { min-height: 29px; padding: 5px 10px; border: 0; border-radius: 3px; background: transparent; color: #6c7a71; cursor: pointer; font-size: 10px; white-space: nowrap; }
.culture-filter-button.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .1); }
.culture-link-list { border-top: 1px solid #cfdacf; }
.culture-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 105px; padding: 15px 4px; border-bottom: 1px solid #cfdacf; animation: row-in .32s both; }
.culture-item-copy { min-width: 0; }
.culture-category { display: inline-block; margin-bottom: 4px; color: #a7694f; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.culture-item h3 { margin: 0; color: #294638; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.culture-creator { display: block; margin-top: 3px; color: #77847a; font-size: 9px; }
.culture-item p { margin: 6px 0 0; color: #738078; font-size: 10px; line-height: 1.45; }
.culture-item-actions { display: flex; align-items: center; gap: 12px; }
.culture-item-actions a { color: var(--green); font-size: 9px; text-decoration-color: #b5c8b4; text-underline-offset: 3px; white-space: nowrap; }
.culture-add-button, .playlist-add-source button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #c8d5c6; border-radius: 50%; background: #fffefa; color: var(--green-dark); cursor: pointer; font-size: 17px; }
.culture-add-button:hover, .playlist-add-source button:hover { border-color: var(--green); background: #edf4e9; }
.playlist-collection { min-width: 0; padding-left: 27px; border-left: 1px solid var(--line); }
.playlist-collection-heading { margin-bottom: 16px; }
.playlist-collection-heading .eyebrow { margin-bottom: 6px; }
.playlist-collection-heading h2 { font-size: 24px; }
.playlist-collection-heading > p:last-child { margin: 7px 0 0; color: #839087; font-size: 10px; line-height: 1.5; }
.playlist-editor { margin: 0 0 18px; padding: 16px; }
.playlist-editor .form-panel-top h3 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.playlist-source-row { margin: 15px 0; }
.playlist-source-row > div { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 7px; }
.playlist-source-row .field-label { display: block; }
.playlist-source-row .text-input { min-width: 0; }
.playlist-add-source { width: 34px !important; height: 34px !important; border-radius: 3px !important; }
.playlist-custom-fields { display: grid; gap: 7px; padding: 13px 0; border-top: 1px solid #e6ebe3; }
.playlist-custom-fields .field-label { margin: 0; }
.playlist-custom-fields .text-input { min-width: 0; }
.playlist-custom-fields .cancel-button { justify-self: start; }
.playlist-draft-items, .playlist-share-items { margin: 10px 0 0; padding: 0; list-style: none; }
.playlist-draft-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 48px; padding: 7px 0; border-top: 1px solid #e5eae2; }
.playlist-draft-number, .playlist-share-number { color: var(--coral); font-family: var(--serif); font-size: 12px; font-variant-numeric: tabular-nums; }
.playlist-draft-copy { display: grid; min-width: 0; gap: 3px; }
.playlist-draft-copy strong { overflow: hidden; color: #3b5144; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.playlist-draft-copy span { overflow: hidden; color: #87928a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-draft-actions { display: flex; align-items: center; gap: 3px; }
.playlist-order-button, .playlist-remove-button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #617267; cursor: pointer; font-size: 13px; }
.playlist-order-button:disabled { color: #bec7be; cursor: default; }
.playlist-remove-button { color: #bd6954; font-size: 17px; }
.playlist-list { border-top: 1px solid #cfdacf; }
.playlist-card { padding: 13px 2px; border-bottom: 1px solid #cfdacf; }
.playlist-card-title { color: #294638; font-family: var(--serif); font-size: 17px; text-decoration: none; }
.playlist-card-title:hover { color: var(--coral); }
.playlist-card > p { margin: 4px 0; color: #75827a; font-size: 9px; line-height: 1.45; }
.playlist-card-meta { color: #8a968e; font-size: 8px; }
.playlist-card-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 5px; }
.playlist-card-actions .row-action { font-size: 9px; }
.playlist-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 0; color: #859087; font-size: 10px; }
.playlist-empty[hidden] { display: none; }
.playlist-share-page { min-height: 66vh; padding: 32px 0 0; }
.playlist-share-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 19px 0 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.playlist-share-heading h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
.playlist-share-heading p { max-width: 640px; margin: 0; color: #748078; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.playlist-share-items { max-width: 850px; border-top: 1px solid #cfdacf; }
.playlist-share-item { display: grid; grid-template-columns: 38px minmax(0, .8fr) minmax(180px, 1.2fr); align-items: baseline; gap: 14px; min-height: 72px; padding: 18px 4px; border-bottom: 1px solid #cfdacf; }
.playlist-share-item > a { color: #28483b; font-family: var(--serif); font-size: 18px; text-decoration-color: #b6c9b2; text-underline-offset: 4px; overflow-wrap: anywhere; }
.playlist-share-copy { min-width: 0; color: #77847c; font-size: 10px; }
.playlist-share-copy p { margin: 4px 0 0; color: #849087; font-size: 9px; line-height: 1.45; white-space: pre-wrap; }
.playlist-share-empty { padding: 25px 0; color: #849087; font-size: 11px; }

@media (max-width: 850px) {
  .culture-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .playlist-collection { padding: 21px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
  .culture-page { padding-top: 36px; }
  .culture-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .culture-heading h1 { font-size: 35px; }
  .culture-intro { font-size: 12px; }
  .culture-library-heading { gap: 10px; }
  .culture-library-heading .filter-control { max-width: 100%; flex-wrap: wrap; }
  .culture-item { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 13px 2px; }
  .culture-item h3 { font-size: 17px; }
  .culture-item p { font-size: 9px; }
  .culture-item-actions { flex-direction: column; gap: 6px; }
  .culture-item-actions a { font-size: 8px; }
  .culture-add-button { width: 27px; height: 27px; }
  .playlist-share-page { padding-top: 25px; }
  .playlist-share-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .playlist-share-heading h1 { font-size: 30px; }
  .playlist-share-item { grid-template-columns: 26px minmax(0, 1fr); gap: 7px 10px; padding: 14px 2px; }
  .playlist-share-item > a { font-size: 16px; }
  .playlist-share-copy { grid-column: 2; }
}

@media (max-width: 620px) {
  .ideas-page { padding-top: 36px; }
  .ideas-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .ideas-heading h1 { font-size: 35px; }
  .ideas-intro { max-width: 380px; font-size: 12px; }
  .progress-tree { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 29px; padding: 14px 15px; }
  .progress-tree-art { justify-content: center; gap: 5px; }
  .idea-tree { width: 105px; height: 140px; }
  .tree-caption { max-width: 125px; font-size: 14px; }
  .tree-ledger { padding: 15px 0 0; border-top: 1px solid #cad7b3; border-left: 0; }
  .tree-ledger h2 { font-size: 20px; }
  .idea-pool-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .idea-row { grid-template-columns: 25px minmax(0, 1fr); gap: 8px 10px; padding: 15px 2px; }
  .idea-row-copy h3 { font-size: 18px; }
  .idea-row-controls { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .idea-related { grid-column: 2; }
  .idea-status-select { width: 118px; }
  .idea-link-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .idea-link-form .save-button { grid-column: 2; justify-self: start; }
}

@media (min-width: 621px) and (max-width: 850px) {
  .progress-tree { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 19px; padding-right: 18px; }
  .idea-tree { width: 150px; }
  .tree-caption { font-size: 13px; }
  .manifesto-game { margin-right: -32px; margin-left: -32px; padding-right: 32px; padding-left: 32px; }
  .manifesto-hero-grid { gap: 27px; }
  .manifesto-hero h1 { font-size: 54px; }
}

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

@media (max-width: 850px) {
  .overview-stats { grid-template-columns: minmax(180px, 1fr) 1px minmax(100px, .55fr); gap: 20px; }
  .overview-stats > .stat-divider:nth-of-type(2) { display: none; }
  .milestones { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
  .content-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); gap: 22px; }
  .chart-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
  .goal-pie-wrap { width: 104px; height: 104px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 36px, 460px); }
  .topbar { display: grid; height: auto; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 58px auto; justify-content: initial; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; flex: none; }
  .language-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .main-nav { display: grid; width: 100%; min-width: 0; height: auto; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 7px 0 9px; overflow: visible; border-top: 1px solid var(--line); }
  .main-nav a { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; border: 1px solid #dce4dc; border-radius: 3px; background: rgba(255, 254, 250, .8); font-size: 12px; text-align: center; white-space: nowrap; }
  .main-nav .main-nav-login { display: flex; min-width: 0; min-height: 44px; justify-content: center; padding: 0 4px; border: 1px solid #dce4dc; background: rgba(255, 254, 250, .8); font-size: 12px; }
  .telegram-account-details > div { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); }
  #project-count { display: none; }
  .topbar-meta { display: none; }
  .language-switch { gap: 0; padding: 2px; }
  .language-switch > span { width: 0; overflow: hidden; padding: 0; font-size: 0; }
  .language-switch button { min-width: 22px; height: 24px; padding: 0 3px; font-size: 7px; }
  .topbar-meta { display: none; }
  .storage-label { font-size: 0; }
  .storage-icon { font-size: 11px; }
  .overview { padding: 38px 0 24px; }
  .overview-heading { align-items: flex-end; margin-bottom: 21px; }
  h1 { font-size: 36px; }
  .primary-button { min-height: 38px; padding: 0 10px; font-size: 10px; }
  .primary-button span { font-size: 16px; }
  .overview-stats { grid-template-columns: minmax(0, 1fr) 1px minmax(75px, .52fr); gap: 15px; padding: 17px 15px; }
  .total-amount { font-size: 32px; }
  .small-stat strong { font-size: 27px; }
  .milestones { gap: 13px; }
  .milestone strong { font-size: 19px; }
  .chart-section { margin: 8px 0 34px; padding: 18px 13px 13px; }
  .chart-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .chart-heading h2, .ledger-heading h2 { font-size: 21px; }
  .chart-legend { font-size: 9px; }
  .chart-wrap { height: 190px; margin-top: 13px; }
  .chart-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .timeline-panel .chart-wrap { height: 190px; margin-top: 0; }
  .chart-footer, .timeline-panel .chart-footer { padding-left: 37px; font-size: 8px; }
  .goal-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e2e9df; border-left: 0; }
  .goal-chart { padding: 11px 4px 0; }
  .goal-chart + .goal-chart { border-left: 1px solid #e2e9df; }
  .goal-chart > .eyebrow { margin-bottom: 3px; font-size: 7px; }
  .goal-pie-wrap { width: 94px; height: 94px; }
  .goal-pie-key { width: 100%; max-width: 164px; gap: 4px; }
  .goal-pie-key > div { grid-template-columns: 6px minmax(0, 1fr) auto; gap: 3px; font-size: 6px; }
  .goal-pie-key strong { font-size: 6px; }
  .goal-due { margin-left: 9px; font-size: 6px; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .tasks-page { padding-top: 38px; }
  .manifesto-page { padding-top: 34px; }
  .manifesto-hero { padding: 10px 0 17px; }
  .manifesto-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .manifesto-hero h1 { font-size: 47px; }
  .manifesto-lede { max-width: 380px; font-size: 17px; }
  .manifesto-coordinates { grid-template-columns: auto 1fr; gap: 7px 11px; margin-top: 21px; }
  .manifesto-section-heading, .manifesto-game-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .manifesto-section-heading > p { max-width: 320px; text-align: left; }
  .manifesto-value { grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 20px 2px; }
  .manifesto-value-copy h3 { font-size: 23px; }
  .manifesto-value-copy p { font-size: 12px; }
  .manifesto-vote-controls { grid-column: 2; }
  .manifesto-vote-note { margin-left: 35px; line-height: 1.5; }
  .manifesto-game { margin: 34px -18px 0; padding: 24px 18px 20px; }
  .manifesto-game-layout { grid-template-columns: 1fr; }
  .manifesto-role { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(235, 241, 221, .24); }
  .manifesto-role-profile { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .manifesto-role-avatar-wrap { min-height: 132px; }
  .manifesto-role-description { margin: 9px 0; }
  .manifesto-role-title h3 { font-size: 21px; }
  .manifesto-quest-board { padding: 15px 0 10px; }
  .manifesto-values-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .manifesto-values-layout .manifesto-role { padding: 0 0 16px; border-right: 0; }
  .manifesto-values-section .manifesto-section-heading > p { max-width: 100%; }
  .manifesto-game .manifesto-value { grid-template-columns: 20px minmax(0, 1fr); gap: 9px; }
  .manifesto-game .manifesto-vote-controls { grid-column: 2; margin-top: 4px; }
  .map-page { padding-top: 34px; }
  .map-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .map-heading h1 { font-size: 30px; }
  .map-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 8px; }
  .map-type-control { max-width: 100%; width: 100%; justify-content: space-between; }
  .map-type-button { padding: 0 7px; }
  .map-layer-control { flex-wrap: wrap; gap: 2px 13px; }
  .map-canvas-wrap, #swiss-map { min-height: 430px; height: 62vh; }
  .map-footer { font-size: 8px; }
  .tasks-heading { align-items: flex-start; }
  .tasks-intro { max-width: 340px; font-size: 12px; }
  .task-summary { margin: 23px 0 29px; }
  .task-summary-item { min-height: 63px; padding: 10px 12px; font-size: 10px; }
  .task-summary-item strong { font-size: 23px; }
  .task-list-heading { align-items: flex-start; flex-direction: column; }
  .task-list-heading .filter-control { max-width: 100%; flex-wrap: wrap; }
  .task-row { grid-template-columns: minmax(0, 1fr) 142px; gap: 8px 12px; padding: 14px 3px; }
  .task-row-copy { grid-column: 1; grid-row: 1; }
  .task-due { grid-column: 1; grid-row: 2; }
  .task-status-select { grid-column: 2; grid-row: 1; }
  .task-actions { grid-column: 2; grid-row: 2; }
  .task-form-fields { gap: 9px; }
  .ledger-heading { align-items: flex-start; gap: 8px; }
  .filter-control { gap: 0; }
  .filter-button { padding: 6px 8px; }
  .ledger-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
  .ledger-table { min-width: 680px; }
  .ledger-table th { font-size: 8px; }
  .date-cell { width: 69px; font-size: 10px !important; }
  .description-cell { max-width: 150px; font-size: 14px !important; }
  .kind-cell { width: 46px; }
  .kind-tag { font-size: 8px; }
  .state-cell { width: 66px; }
  .state-tag { min-height: 19px; padding: 0 5px; font-size: 7px; }
  .amount-cell { width: 78px; font-size: 12px !important; }
  .actions-cell { width: 46px; }
  .row-action { font-size: 9px; }
  .form-panel { padding: 18px; }
  .page-footer { margin-top: 36px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root {
  --paper: #f5f7ef;
  --green: #087a54;
  --green-dark: #0b4937;
  --coral: #ef7054;
  --lime: #d8f06a;
}

body {
  background-image: radial-gradient(#c9d5c9 0.65px, transparent 0.65px);
  background-size: 15px 15px;
}

[hidden] { display: none !important; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 7px; }
.main-nav a { display: inline-flex; min-height: 35px; align-items: center; gap: 8px; padding: 0 11px; border-radius: 3px; color: #69786e; font-size: 12px; text-decoration: none; transition: background .16s, color .16s; }
.main-nav a:hover, .main-nav a.is-active { background: #e2edda; color: var(--green-dark); }
.main-nav a.is-active { font-weight: 700; }
.main-nav a span { color: var(--coral); font-size: 9px; font-weight: 700; }

.projects-view { min-height: 75vh; }
.project-index { position: relative; overflow: hidden; margin: 29px 0 42px; padding: 20px 30px 17px; border: 1px solid #cbdc9a; border-radius: 4px; background-color: #eaf4c3; background-image: linear-gradient(90deg, transparent 49.9%, rgba(39, 84, 48, .06) 50%, transparent 50.1%); background-size: 72px 100%; }
.index-kicker { display: flex; align-items: center; gap: 9px; color: #3b6850; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.index-kicker .live-dot { width: 6px; height: 6px; background: #e2684e; box-shadow: 0 0 0 3px rgba(226, 104, 78, .12); }
.index-kicker-year { color: #87956f; }
.index-heading-row { display: flex; min-height: 295px; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0 18px; }
.index-heading-copy { max-width: 650px; }
.index-heading-copy h1 { font-size: 64px; line-height: .99; }
.index-heading-copy h1 em { color: #e3664a; font-weight: 500; }
.index-heading-copy p { max-width: 405px; margin: 17px 0 0; color: #4f6c57; font-size: 14px; line-height: 1.55; }
.index-stamp { width: 151px; height: 151px; flex: 0 0 151px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transform: rotate(8deg); border: 1.5px solid #e56a4e; border-radius: 50%; color: #d85e43; text-align: center; }
.index-stamp span { font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.index-stamp strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.project-index-bottom { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid #cadb9e; color: #75835e; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.project-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.project-list-toolbar > .eyebrow { margin: 0 auto 0 0; }
.project-filter-control { display: flex; gap: 3px; padding: 3px; border: 1px solid #dce3da; border-radius: 4px; background: #e9ede6; }
.project-filter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 3px; background: transparent; color: #6c7a71; cursor: pointer; font-size: 9px; }
.project-filter span { color: #a16d50; font-size: 8px; font-weight: 700; }
.project-filter.is-active { background: var(--white); color: var(--green-dark); box-shadow: 0 1px 3px rgba(26, 48, 35, .1); }
.project-results-count { color: #859187; font-size: 8px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.project-coming-section { margin-top: 6px; padding-top: 17px; border-top: 1px solid var(--line); }
.project-coming-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.project-coming-heading .eyebrow { margin: 0; }
.project-coming-heading > span { color: #8a968e; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.project-slideshow { margin: 0 0 41px; overflow: hidden; border: 1px solid #dce4dc; border-radius: 3px; background: #f0f2ec; color: var(--ink); }
.slideshow-stage { position: relative; display: flex; width: 100%; height: clamp(210px, 42vw, 560px); align-items: center; justify-content: center; overflow: hidden; background: #eceee8; }
.slideshow-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.slideshow-stage img { display: block; flex: 0 1 auto; width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; animation: photo-enter .28s both; }
.slide-position { position: absolute; top: 14px; left: 14px; padding: 7px 9px; background: var(--lime); color: var(--green-dark); font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.slideshow-footer { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 22px; }
.slideshow-copy { min-width: 0; }
.slideshow-copy .eyebrow { margin-bottom: 5px; color: #788763; font-size: 8px; }
.slideshow-copy h2 { margin: 0 0 4px; color: var(--ink); font-size: 25px; }
.slideshow-copy > p:not(.eyebrow) { margin: 0; color: #68776d; font-size: 11px; line-height: 1.45; }
.slideshow-copy > a { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--green); font-size: 9px; text-decoration: none; }
.slideshow-copy > a:hover { color: var(--coral); }
.slideshow-copy > a span { font-size: 13px; }
.slideshow-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.slide-count { min-width: 48px; margin-right: 6px; color: #758279; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.slideshow-controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #aeb8ae; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; }
.slideshow-controls button:hover { border-color: var(--green-dark); background: var(--green-dark); color: white; }
.slideshow-progress { height: 4px; overflow: hidden; background: #dce4dc; }
.slideshow-progress span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .25s ease; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); gap: 30px; align-items: center; padding: 0 0 42px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(210px, .85fr); align-items: center; gap: 23px; color: inherit; text-decoration: none; }
.project-card-no-image { grid-template-columns: minmax(0, 1fr); }
.project-detail-hero.project-detail-no-gallery { grid-template-columns: minmax(0, 1fr); }
.project-detail-no-gallery .project-intro { min-height: 330px; }
.project-card-image { position: relative; display: grid; aspect-ratio: var(--cover-ratio, 1.35); overflow: hidden; place-items: center; background: #eceee8; }
.project-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-card-image img { transform: scale(1.035); }
.project-card-index { position: absolute; top: 11px; left: 11px; padding: 6px 8px; background: var(--lime); color: #234735; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.project-card-content { padding: 7px 7px 7px 0; }
.project-card-content h2 { margin-bottom: 10px; font-size: 29px; }
.project-card-content p { max-width: 250px; margin-bottom: 20px; color: #6e7d73; font-size: 12px; line-height: 1.55; }
.project-card-visit { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 700; }
.project-card-visit span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #b6cabc; border-radius: 50%; font-size: 14px; transition: color .18s, background .18s, transform .18s; }
.project-card:hover .project-card-visit span { transform: translate(2px, -2px); background: var(--green-dark); color: white; }

.project-detail { padding: 24px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #718076; font-size: 11px; text-decoration: none; }
.back-link:hover { color: var(--green); }
.back-link span { color: var(--coral); font-size: 16px; }
.project-detail-hero { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); align-items: start; }
.project-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px 36px 31px; overflow: hidden; background-color: var(--lime); background-image: radial-gradient(rgba(53, 93, 46, .18) .65px, transparent .65px); background-size: 12px 12px; }
.project-intro::after { position: absolute; right: -32px; bottom: -56px; width: 170px; height: 170px; border: 1px solid rgba(39, 86, 47, .27); border-radius: 50%; box-shadow: 0 0 0 15px rgba(39, 86, 47, .045), 0 0 0 30px rgba(39, 86, 47, .035); content: ""; }
.project-intro .eyebrow { position: relative; z-index: 1; color: #557548; font-size: 8px; }
.eyebrow-mark { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--coral); }
.project-intro h1 { position: relative; z-index: 1; max-width: 480px; margin: 15px 0 13px; font-size: 57px; line-height: .99; overflow-wrap: anywhere; }
.project-tagline { position: relative; z-index: 1; max-width: 365px; margin: 0; color: #47654b; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.project-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 25px; }
.support-button { display: inline-flex; min-height: 44px; align-items: center; gap: 14px; padding: 0 14px; border: 0; border-radius: 3px; background: var(--green-dark); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; transition: background .18s, transform .18s; }
.support-button:hover { transform: translateY(-2px); background: #e3674c; }
.support-button span { font-size: 15px; }
.contact-link { color: #42624b; font-size: 10px; text-decoration-color: #8da878; text-underline-offset: 4px; }
.contact-link:hover { color: #d85e43; }
.project-detail-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 31px; color: #668052; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.project-gallery { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #eceee8; }
.gallery-image-wrap { display: grid; width: 100%; min-height: 160px; max-height: min(62vh, 520px); aspect-ratio: var(--slide-ratio, 2.5); place-items: center; background: #eceee8; }
.gallery-image-wrap img { width: 100%; height: auto; max-height: min(62vh, 520px); object-fit: contain; animation: photo-enter .28s both; }
.gallery-bottom { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 17px; background: #f0f2ec; color: var(--ink); }
.gallery-caption { display: flex; min-width: 0; align-items: center; gap: 12px; }
.gallery-count { flex: 0 0 auto; color: #7c8a70; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
#gallery-caption { overflow: hidden; color: #526258; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.gallery-controls { display: flex; gap: 6px; }
.gallery-controls button { width: 31px; height: 31px; flex: 0 0 31px; border: 1px solid #aeb8ae; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; transition: background .15s, color .15s; }
.gallery-controls button:hover { background: var(--green-dark); color: white; }
.gallery-progress { display: flex; height: 5px; gap: 2px; background: #dce4dc; }
.gallery-dot { position: relative; flex: 1; padding: 0; border: 0; background: #aeb9ae; cursor: pointer; }
.gallery-dot::after { position: absolute; inset: -5px 0; content: ""; }
.gallery-dot.is-active { background: var(--coral); }
.gallery-manager-bar { display: flex; justify-content: flex-end; margin-top: 10px; }
.gallery-manager-toggle { padding: 7px 10px; border: 1px solid #d2dcd1; border-radius: 3px; background: var(--white); color: #53675a; cursor: pointer; font-size: 9px; }
.gallery-manager-toggle:hover { border-color: var(--green); color: var(--green-dark); }
.gallery-manager { margin-top: 12px; padding: 16px; border: 1px solid #d9e1d7; border-radius: 3px; background: #fffefa; }
.gallery-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.gallery-manager-heading .eyebrow { margin-bottom: 5px; }
.gallery-manager-heading h2 { font-size: 20px; }
.gallery-manager-heading p:not(.eyebrow) { margin: 5px 0 0; color: #77847a; font-size: 10px; }
.gallery-manager-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.gallery-manager-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.gallery-manager-item { min-width: 0; overflow: hidden; border: 1px solid #e0e6dd; border-radius: 3px; background: #f5f7f1; }
.gallery-manager-item.is-hidden { opacity: .57; }
.gallery-manager-item > img { display: block; width: 100%; height: 100px; object-fit: contain; background: #eceee8; }
.gallery-manager-details { display: grid; gap: 3px; padding: 8px 9px 5px; }
.gallery-manager-details strong { overflow: hidden; color: #34473c; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gallery-manager-details span { color: #849087; font-size: 8px; font-variant-numeric: tabular-nums; }
.gallery-manager-item-controls { display: flex; gap: 5px; padding: 6px 8px 8px; }
.gallery-manager-item-controls button { min-width: 29px; height: 27px; border: 1px solid #d6ded4; border-radius: 3px; background: white; color: #596b5f; cursor: pointer; font-size: 11px; }
.gallery-manager-item-controls .gallery-manager-flag { min-width: 64px; padding: 0 7px; font-size: 8px; }
.gallery-manager-item-controls .gallery-manager-flag.is-selected { border-color: #7b995e; background: #edf4d5; color: #294638; font-weight: 700; }
.gallery-manager-item-controls button:hover:not(:disabled) { border-color: var(--green); color: var(--green-dark); }
.gallery-manager-item-controls button:disabled { opacity: .38; cursor: default; }
.gallery-manager-item-controls .gallery-manager-visibility { margin-left: auto; padding: 0 8px; font-size: 8px; }
@keyframes photo-enter { from { opacity: .45; } to { opacity: 1; } }
.project-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; padding: 48px 8px 61px; }
.project-copy { max-width: 690px; }
.project-copy h2 { margin: 0 0 13px; padding-top: 1px; font-size: 29px; }
.project-copy p { margin: 0 0 19px; color: #586b60; font-size: 14px; line-height: 1.75; }
.project-copy p a { color: var(--green); text-decoration-color: #a5c1a7; text-underline-offset: 3px; }
.project-copy p a:hover { color: #df644a; }
.project-copy ul { display: grid; gap: 7px; margin: 0 0 22px; padding-left: 19px; color: #586b60; font-size: 13px; line-height: 1.6; }
.project-copy li::marker { color: var(--coral); }
.project-support-note { position: sticky; top: 20px; padding: 19px; border: 1px solid #ccdba1; border-radius: 4px; background: #ecf3ca; }
.support-note-label { color: #71824b; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.project-support-note p { margin: 11px 0 16px; color: #294b38; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.support-note-button { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 11px; border: 0; border-radius: 3px; background: var(--green-dark); color: white; cursor: pointer; font-size: 10px; }
.support-note-button:hover { background: #df644a; }
.support-note-button span { font-size: 14px; }
.project-support-note > a { display: block; margin-top: 13px; color: #65775d; font-size: 9px; line-height: 1.4; text-decoration-color: #a3b27f; text-underline-offset: 3px; }
.project-support-note > a:hover { color: var(--green-dark); }
.project-select { appearance: auto; }
.allocation-note { margin: 7px 0 0; color: #77867c; font-size: 9px; line-height: 1.45; }
.project-note { color: #b6634a; }

@media (max-width: 850px) {
  .project-detail-hero { grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); min-height: 405px; }
  .project-intro { padding: 27px 23px; }
  .project-intro h1 { font-size: 45px; }
  .gallery-image-wrap, .gallery-image-wrap img { max-height: min(60vh, 470px); }
  .project-detail-body { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
}

@media (max-width: 620px) {
  .topbar { gap: 0; }
  .brand { gap: 7px; }
  .brand-name { font-size: 19px; }
  .main-nav { display: grid; width: 100%; min-width: 0; height: auto; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 7px 0 9px; overflow: visible; border-top: 1px solid var(--line); }
  .main-nav a { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 3px; padding: 0 3px; border: 1px solid #dce4dc; border-radius: 3px; background: rgba(255, 254, 250, .8); font-size: 12px; text-align: center; white-space: nowrap; }
  .main-nav .main-nav-login { display: flex; min-width: 0; min-height: 44px; justify-content: center; padding: 0 3px; border: 1px solid #dce4dc; background: rgba(255, 254, 250, .8); font-size: 12px; }
  .main-nav .main-nav-login:has(.telegram-account-avatar:not([hidden])) { padding: 0; }
  .main-nav a span { font-size: 8px; }
  .language-switch button { min-width: 24px; height: 27px; font-size: 9px; }
  .project-index { margin: 18px 0 31px; padding: 16px 15px 13px; background-size: 38px 100%; }
  .index-kicker { gap: 6px; font-size: 7px; letter-spacing: .1em; }
  .index-heading-row { min-height: 260px; gap: 8px; padding: 28px 0 20px; }
  .index-heading-copy { min-width: 0; }
  .index-heading-copy h1 { font-size: 42px; }
  .index-heading-copy p { max-width: 270px; margin-top: 12px; font-size: 12px; }
  .index-stamp { width: 83px; height: 83px; flex-basis: 83px; gap: 3px; }
  .index-stamp span { font-size: 5px; }
  .index-stamp strong { font-size: 11px; }
  .project-index-bottom { font-size: 6px; letter-spacing: .08em; }
  .project-list-toolbar { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .project-list-toolbar > .eyebrow { width: 100%; }
  .project-filter { padding: 6px 8px; font-size: 8px; }
  .project-results-count { margin-left: auto; font-size: 7px; }
  .project-coming-section { margin-top: 0; padding-top: 13px; }
  .project-slideshow { margin-bottom: 32px; }
  .slideshow-stage { height: clamp(170px, 54vw, 420px); }
  .slide-position { top: 9px; left: 9px; padding: 6px 7px; font-size: 7px; }
  .slideshow-footer { min-height: 0; flex-direction: column; align-items: stretch; gap: 13px; padding: 15px 14px 13px; }
  .slideshow-copy h2 { font-size: 22px; }
  .slideshow-copy > p:not(.eyebrow) { font-size: 10px; }
  .slideshow-controls { justify-content: flex-end; }
  .slideshow-controls button { width: 31px; height: 31px; }
  .slide-count { margin-right: auto; text-align: left; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 35px; }
  .project-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card-image { aspect-ratio: var(--cover-ratio, 1.25); }
  .project-card-content { padding: 0; }
  .project-card-content h2 { margin-bottom: 5px; font-size: 25px; }
  .project-card-content p { margin-bottom: 9px; }
  .project-detail { padding-top: 16px; }
  .back-link { margin-bottom: 11px; }
  .project-detail-hero { grid-template-columns: minmax(0, 1fr); }
  .project-intro { min-height: 330px; padding: 28px 21px 20px; }
  .project-intro h1 { max-width: 100%; margin-top: 13px; font-size: 43px; }
  .project-tagline { max-width: 300px; font-size: 18px; }
  .project-actions { gap: 12px; margin-top: 20px; }
  .project-detail-meta { padding-top: 23px; font-size: 7px; }
  .gallery-image-wrap { min-height: 130px; max-height: min(68vh, 520px); }
  .gallery-image-wrap img { max-height: min(68vh, 520px); }
  .gallery-bottom { min-height: 49px; gap: 7px; padding: 0 10px; }
  .gallery-caption { gap: 7px; }
  #gallery-caption { font-size: 8px; }
  .gallery-count { font-size: 7px; }
  .gallery-controls { gap: 4px; }
  .gallery-controls button { width: 27px; height: 27px; flex-basis: 27px; }
  .gallery-manager { padding: 12px 10px; }
  .gallery-manager-heading { align-items: flex-start; flex-direction: column; }
  .gallery-manager-heading h2 { font-size: 18px; }
  .gallery-manager-actions { align-self: flex-end; }
  .gallery-manager-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .gallery-manager-item > img { height: 75px; }
  .project-detail-body { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 31px 2px 43px; }
  .project-copy h2 { font-size: 25px; }
  .project-copy p { font-size: 13px; }
  .project-support-note { position: static; }
}