:root {
  color-scheme: light;
  --ink: #18213a;
  --muted: #657086;
  --paper: #fff;
  --canvas: #f6f9fc;
  --line: #e8eaf2;
  --primary: #1769df;
  --primary-dark: #1155bd;
  --primary-soft: #e7f0ff;
  --mint: #def7e9;
  --cyan: #dff7fd;
  --pink: #ffe5ed;
  --yellow: #fff1bc;
  --shadow: 0 8px 32px rgb(35 31 77 / 5%);
  --radius: 20px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { touch-action: manipulation; }
button { transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #65b6f4; outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
svg { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); line-height: 1.23; }
h1 { font-size: clamp(2rem, 2.7vw, 2.65rem); letter-spacing: -.06em; font-weight: 800; margin-bottom: 16px; }
h2 { font-size: 1.45rem; letter-spacing: -.04em; font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
p { margin-bottom: 1rem; }
small { font-size: .875rem; }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 34px 20px 24px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 3px 40px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 38px; height: 38px; flex-shrink: 0; background: conic-gradient(from 20deg, #9971ff, #e863ae, #f9b94d, #75d6a8, #52bde5, #9971ff); border-radius: 50%; }
.brand-mark::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.brand-mark::after { content: ''; position: absolute; width: 12px; height: 12px; top: 1px; left: 12px; border: 3px solid #fff; border-radius: 50%; background: #8b61f2; box-shadow: 14px 11px 0 -1px #57c7e9, 7px 25px 0 -1px #78d7a7, -9px 23px 0 -1px #efbc56, -15px 8px 0 -1px #ed72a5; }
.brand-name { font-family: 'Manrope', sans-serif; display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -.055em; line-height: 1.3; }
.tagline { display: block; font-size: .75rem; color: var(--muted); letter-spacing: -.01em; margin-top: 3px; white-space: nowrap; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; padding: 13px 16px; background: transparent; border-radius: 12px; color: #687187; text-decoration: none; text-align: left; font-size: .9375rem; font-weight: 550; line-height: 1.4; }
.nav-item:hover { background: #eff6ff; color: var(--primary); text-decoration: none; }
.nav-item.active { background: var(--primary-soft); color: #155dc2; font-weight: 700; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item .count { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; color: #fff; background: var(--primary); border-radius: 7px; font-size: .75rem; }
.sidebar-bottom { margin-top: auto; padding-top: 25px; }
.mini-card { border-radius: 16px; background: linear-gradient(140deg, #effaf2, #eef7ff); padding: 20px 16px; margin-bottom: 18px; position: relative; overflow: hidden; }
.mini-card > svg { color: var(--primary); margin-bottom: 13px; }
.mini-card h3 { font-size: .9375rem; margin-bottom: 7px; }
.mini-card p { color: var(--muted); font-size: .875rem; line-height: 1.55; margin-bottom: 15px; }
.mini-card .btn { width: 100%; }
.sidebar-bottom > p { font-size: .75rem; color: #81899b; margin: 15px 10px 0; }
.app-shell { margin-left: 232px; min-height: 100vh; }
.topbar { height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; padding: 0 36px; }
.topbar-title { font-family: 'Manrope', sans-serif; font-size: .9375rem; font-weight: 700; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.location-button { display: inline-flex; align-items: center; gap: 8px; color: #536079; border: 0; background: transparent; font-size: .875rem; font-weight: 500; padding: 8px 0; }
.location-button svg { width: 17px; height: 17px; color: var(--primary); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; color: #1763c7; background: #e6f1ff; border: 0; font-size: .875rem; font-weight: 700; }
.avatar.small { width: 31px; height: 31px; font-size: .6875rem; }
.demo-banner { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 35px; padding: 7px 20px; text-align: center; background: #eaf4fb; color: #45657b; font-size: .8125rem; line-height: 1.45; }
.demo-banner strong { color: #215570; font-weight: 600; }
.demo-banner svg { width: 14px; height: 14px; }
main#main { max-width: 1570px; margin: 0 auto; padding: 32px 36px 60px; }
.page-heading { margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #35657a; margin-bottom: 15px; }
.eyebrow svg { width: 17px; height: 17px; }
.subtitle { color: var(--muted); max-width: 650px; line-height: 1.65; margin-bottom: 0; }

.hero { position: relative; display: flex; justify-content: space-between; min-height: 282px; gap: 20px; padding: 36px 38px; margin-bottom: 34px; border: 1px solid #d6e9e5; border-radius: 22px; background: radial-gradient(ellipse at 97% 95%, #fff1b3 0, transparent 45%), radial-gradient(ellipse at 63% -20%, #c9f5e4 0, transparent 55%), #eaf7ff; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 510px; }
.hero h1 { font-size: clamp(2.1rem, 3.1vw, 2.7rem); line-height: 1.16; letter-spacing: -.065em; margin: 0 0 17px; }
.hero p { color: #4f6b79; font-size: .9375rem; line-height: 1.6; max-width: 405px; margin-bottom: 24px; }
.hero .eyebrow { font-size: .75rem; margin-bottom: 12px; color: #376c76; letter-spacing: .11em; }
.gradient-text { color: #087d74; background: linear-gradient(100deg, #1769df, #069a83 72%, #218765); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; width: 280px; min-width: 230px; align-self: stretch; margin-right: 20px; }
.orbit { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%) rotate(-20deg); border: 1px solid #9cced3; border-radius: 50%; }
.orbit-two { width: 165px; height: 165px; border-color: #a3d4c0; }
.orbit-three { width: 270px; height: 270px; border-color: #adcbd8; border-style: dashed; }
.hero-center { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 113px; height: 113px; border-radius: 32px; background: linear-gradient(140deg, #2f91f5, #0aaa8a); box-shadow: 0 14px 34px #168aa335, inset 0 1px 0 #ffffff40; color: white; transform: translate(-50%, -50%) rotate(-10deg); }
.hero-center svg { width: 53px; height: 53px; transform: rotate(10deg); }
.hero-bubble { position: absolute; display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-radius: 18px; box-shadow: 0 5px 20px #53506d0d; border: 3px solid #fff; transform: rotate(8deg); }
.hero-bubble svg { width: 27px; height: 27px; }
.hero-bubble.b1 { left: 7%; top: 10%; background: #ffd567; color: #886227; transform: rotate(-12deg); }
.hero-bubble.b2 { right: 0; top: 35%; background: #96e6cf; color: #2d8067; transform: rotate(12deg); }
.hero-bubble.b3 { left: 20%; bottom: 2%; background: #ffb696; color: #a04e2a; transform: rotate(-9deg); }
.hero-art::after { content: ''; width: 10px; height: 10px; position: absolute; right: 15%; bottom: 12%; background: #f7b84c; border-radius: 50%; box-shadow: -155px -85px 0 -2px #7e79ed, -20px -155px 0 -1px #ef7980; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 18px; min-height: 44px; border-radius: 10px; border: 1px solid transparent; font-size: .875rem; font-weight: 650; text-decoration: none; white-space: nowrap; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 10px #1769df15; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 5px 16px #1769df25; }
.btn-secondary { background: white; border-color: #d6e2ee; color: #365773; }
.btn-secondary:hover { border-color: #9ac3ed; background: #f3f8ff; }
.btn-small { min-height: 36px; padding: 7px 13px; font-size: .8125rem; border-radius: 8px; }
.btn-icon { width: 40px; height: 40px; padding: 8px; min-height: 40px; background: #fff; border-color: var(--line); }
.btn-icon svg { width: 19px; height: 19px; }
.text-link { border: 0; padding: 5px 0; background: transparent; color: var(--primary); font-size: .875rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--primary-dark); text-decoration: underline; }
.section-heading, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-heading h2, .panel-header h3 { margin: 0; }
.section-heading > div p { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 28px; align-items: start; }
.dashboard-main { min-width: 0; }
.right-rail { min-width: 0; display: flex; flex-direction: column; gap: 23px; }
.search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.search-field { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid #e2e6ef; border-radius: 11px; padding: 0 15px; min-width: 0; flex: 1; }
.search-field:focus-within { border-color: #7bb9ea; box-shadow: 0 0 0 3px #1769df0d; }
.search-field > svg { width: 18px; height: 18px; color: #9a9fb2; }
.search-field input { min-width: 0; width: 100%; height: 47px; padding: 10px 0; border: 0; outline: none; font-size: .875rem; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: #8b93a4; }
.search-field input:focus-visible { outline: 0; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; height: 49px; background: #fff; border: 1px solid #e2e6ef; border-radius: 11px; font-size: .875rem; }
.filter-button svg { width: 18px; height: 18px; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap select, .form-field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23657086' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; }
.select-wrap select { border: 1px solid #e3e6ee; border-radius: 9px; min-height: 40px; padding: 8px 34px 8px 12px; color: #667084; background-color: #fff; font-size: .8125rem; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.chip { display: inline-flex; gap: 7px; align-items: center; background: white; border: 1px solid #e5e7ef; color: #6c7384; border-radius: 9px; min-height: 37px; padding: 8px 12px; font-size: .8125rem; font-weight: 500; line-height: 1.35; }
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: #8dbbe8; color: var(--primary); }
.chip.active { background: #e8f2ff; border-color: #bbd6f6; color: #1c5ca7; font-weight: 600; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: .8125rem; flex-wrap: wrap; }
.results-toolbar p { margin: 0; }
.results-toolbar strong { color: var(--ink); }
.segmented { display: inline-flex; border: 1px solid #e5e6ed; background: #f0f1f6; border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { background: transparent; border: 0; padding: 6px 12px; font-size: .8125rem; color: #758096; border-radius: 6px; font-weight: 500; }
.segmented button.active { color: #1769c0; background: #fff; box-shadow: 0 1px 4px #1e1a4120; }
.request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.request-card { background: #fff; border: 1px solid #e4e7ef; border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; display: flex; flex-direction: column; }
.request-card:hover { border-color: #b7d5e1; box-shadow: 0 8px 22px #19556c0a; transform: translateY(-2px); }
.card-art { height: 118px; padding: 16px 18px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--card-color, var(--color, #e9e1fb)); color: var(--art-color, #7665b0); }
.card-art::before { content: ''; position: absolute; width: 160px; height: 160px; border: 27px solid #ffffff35; border-radius: 50%; left: -54px; bottom: -93px; }
.card-art::after { content: ''; position: absolute; width: 119px; height: 119px; border: 1px solid #ffffff70; border-radius: 50%; right: -20px; top: -48px; }
.art-icon { display: inline-flex; justify-content: center; align-items: center; width: 67px; height: 67px; border-radius: 22px; background: #ffffff76; box-shadow: 0 2px 0 #ffffff25; transform: rotate(-6deg); font-size: 2rem; }
.art-icon svg { width: 35px; height: 35px; transform: rotate(6deg); stroke-width: 1.7; }
.art-caption { position: absolute; left: 17px; bottom: 13px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; opacity: .8; }
.save-button { position: absolute; z-index: 1; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffffc7; color: #7e7a8b; display: flex; align-items: center; justify-content: center; padding: 6px; }
.save-button svg { width: 17px; height: 17px; }
.save-button:hover { color: var(--primary); background: #fff; }
.save-button.saved { color: #1769df; background: #fff; }
.save-button.saved svg { fill: #dcebff; }
.card-body { padding: 20px 19px 17px; display: flex; flex-direction: column; flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; font-size: .6875rem; font-weight: 650; line-height: 1.4; border-radius: 6px; color: #4e7865; background: #e8f5ed; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.volunteer { color: #398261; background: #e8f6ed; }
.badge.sponsored { color: #865000; background: #fff0bd; }
.card-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.card-heading .badge + span { color: var(--muted); font-size: .75rem; }
.request-title { margin: 0 0 9px; font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.4; }
button.request-title { border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
button.request-title:hover { color: var(--primary); }
.request-description { color: #7c8393; font-size: .8125rem; line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-bottom: 16px; color: #7a8395; font-size: .75rem; }
.card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 14px; height: 14px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid #f0f1f5; }
.person { display: flex; align-items: center; gap: 8px; color: #5f6980; font-size: .75rem; font-weight: 500; min-width: 0; }
.person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-footer .btn { font-size: .75rem; padding: 7px 9px; }
.card-stats { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: #7d8395; margin-top: 12px; }
.card-stats svg { width: 14px; height: 14px; }

.panel { padding: 23px; border: 1px solid var(--line); background: #fff; border-radius: 17px; }
.panel-header h3 { font-size: 1rem; }
.panel-header svg { color: #2b8b9a; width: 19px; height: 19px; }
.steps { display: flex; flex-direction: column; gap: 23px; }
.step { position: relative; display: flex; gap: 13px; }
.step:not(:last-child)::after { content: ''; position: absolute; height: 22px; left: 15px; bottom: -23px; border-left: 1px dashed #c9dedc; }
.step-number { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 10px; background: #e5f5f2; color: #197969; font-size: .8125rem; font-weight: 700; }
.step h4 { font-size: .875rem; margin: 2px 0 5px; letter-spacing: -.02em; }
.step p { color: #838999; font-size: .8125rem; line-height: 1.55; margin: 0; }
.sponsor-promo { position: relative; overflow: hidden; background: #fff; border-color: #eadcae; }
.rainbow-line { height: 4px; background: linear-gradient(90deg, #b4a1fd, #e895d5, #f8c675, #a6e5bc, #85d2ee); border-radius: 4px; margin: -23px -23px 21px; }
.sponsor-promo > svg, .sponsor-promo .promo-icon { color: #9270df; background: #f3edff; border-radius: 12px; padding: 9px; width: 41px; height: 41px; margin-bottom: 15px; }
.sponsor-promo h3 { font-size: 1.1rem; margin-bottom: 10px; }
.sponsor-promo p { color: #7a8193; font-size: .875rem; line-height: 1.65; margin-bottom: 18px; }
.sponsor-promo .btn { width: 100%; background: #ffefb9; color: #78530c; box-shadow: none; }
.sponsor-promo .btn:hover { background: #ffe89b; }
.community-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #f0f1f6; }
.community-row:first-of-type { padding-top: 1px; }
.community-row:last-of-type { border: 0; padding-bottom: 0; }
.community-row > div { min-width: 0; flex: 1; }
.community-row strong { display: block; color: #525e75; font-size: .8125rem; font-weight: 600; }
.community-row p { font-size: .75rem; color: #9197a5; margin: 3px 0 0; }
.community-row button { border: 0; color: var(--primary); background: none; padding: 6px; font-size: .8125rem; font-weight: 600; }
.community-icon { width: 39px; height: 39px; border-radius: 12px; background: var(--color, #e4f4ea); color: #567864; display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: .8125rem; font-weight: 700; }
.community-icon svg { width: 19px; height: 19px; }
.progress { height: 6px; border-radius: 8px; background: #eeeaf5; overflow: hidden; margin: 16px 0 9px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #9c71ed, #cd94e7); border-radius: inherit; }
.hint, .field-hint { color: #81889a; font-size: .8125rem; line-height: 1.55; }
.hint { margin-top: 13px; margin-bottom: 0; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 58px 24px; border: 1px dashed #ddd7ec; border-radius: 18px; background: white; color: var(--muted); }
.empty-state > svg { color: #a68fd1; width: 35px; height: 35px; margin-bottom: 17px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 480px; margin: 0 auto 22px; font-size: .9375rem; }

.page-hero { padding: 30px 34px; margin-bottom: 29px; border-radius: 21px; background: linear-gradient(120deg, #efe8ff, #f9eff8 70%, #e4f9f2); border: 1px solid #e9e1f8; }
.page-hero p { color: #726884; max-width: 650px; margin-bottom: 0; }
.page-hero .btn { margin-top: 20px; }
.community-grid, .pledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.community-card, .pledge-card { background: #fff; border: 1px solid var(--line); padding: 26px; border-radius: 18px; }
.community-card > .community-icon { width: 56px; height: 56px; border-radius: 17px; font-size: 1.1rem; margin-bottom: 20px; }
.community-card h3 { font-size: 1.125rem; }
.community-card p, .pledge-card p { color: #758096; font-size: .9375rem; line-height: 1.6; }
.community-card .card-footer { margin-top: 23px; }
.community-card .card-footer span { color: var(--muted); font-size: .8125rem; }
.pledge-card { border-top: 4px solid #f4bb38; }
.pledge-card h3 { font-size: 1.375rem; }
.pledge-card .badge { margin-bottom: 14px; }
.pledge-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .875rem; }
.pledge-card dt { color: var(--muted); }
.pledge-card dd { margin: 0; text-align: right; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.stat-card > svg { width: 23px; height: 23px; color: #158c81; margin-bottom: 13px; }
.stat-card strong { display: block; font-size: 2rem; font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.05em; margin-bottom: 4px; }
.stat-card p { color: #7e8799; font-size: .875rem; margin: 0; }
.activity-list { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 0 24px; }
.activity-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border: 0; }
.activity-row > div { flex: 1; min-width: 0; }
.activity-row h3 { font-size: 1rem; margin: 0 0 6px; }
.activity-row p { margin: 0; font-size: .875rem; color: var(--muted); }
.tabs { display: flex; gap: 23px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { padding: 13px 0; border: 0; border-bottom: 2px solid transparent; color: #7d8293; background: transparent; font-size: .9375rem; font-weight: 550; }
.tabs button.active { color: var(--primary); border-color: var(--primary); }
.conversation-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-height: 500px; }
.thread-list { border-right: 1px solid var(--line); padding: 14px; }
.thread-button { width: 100%; display: flex; gap: 11px; align-items: center; text-align: left; border: 0; border-radius: 12px; background: transparent; padding: 15px 12px; margin-bottom: 6px; }
.thread-button strong { font-size: .875rem; }
.thread-button p { margin: 4px 0 0; color: #82899a; font-size: .8125rem; }
.thread-button.active { background: #edf6ff; }
.conversation { display: flex; flex-direction: column; padding: 25px; min-width: 0; }
.conversation h3 { margin-bottom: 5px; }
.conversation > .hint { margin-top: 0; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.message { max-width: 88%; align-self: flex-start; background: #f2f3f8; color: #4e5870; font-size: .9375rem; padding: 13px 17px; margin: 10px 0; border-radius: 14px 14px 14px 3px; overflow-wrap: anywhere; }
.message.outgoing { align-self: flex-end; background: #e4f1ff; color: #305d8b; border-radius: 14px 14px 3px 14px; }
.message.system { align-self: center; color: #8a8198; background: none; font-size: .8125rem; text-align: center; }
.message small { display: block; margin-top: 6px; opacity: .7; font-size: .6875rem; }
.message-compose { display: flex; gap: 9px; padding-top: 25px; margin-top: auto; }
.message-compose input, .message-compose textarea { flex: 1; min-width: 0; border: 1px solid #e2e3ee; border-radius: 10px; padding: 12px; font-size: .9375rem; resize: vertical; }

dialog#modal { padding: 0; border: 0; border-radius: 23px; width: min(620px, calc(100vw - 36px)); max-height: min(90vh, 900px); color: var(--ink); box-shadow: 0 30px 100px #17162d30; background: #fff; overscroll-behavior: contain; }
dialog#modal::backdrop { background: rgb(25 22 47 / 42%); backdrop-filter: blur(4px); }
.modal-shell { display: flex; flex-direction: column; min-width: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 27px 29px 21px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 1.4rem; margin-bottom: 5px; }
.modal-header p { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0; }
.modal-header .btn-icon { flex-shrink: 0; width: 32px; height: 32px; min-height: 32px; background: #f5f5f9; border-color: transparent; border-radius: 50%; }
.modal-body { padding: 25px 29px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 11px; padding: 20px 29px 25px; border-top: 1px solid var(--line); }
.modal-body .modal-footer { margin: 25px -29px -25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 17px; }
.form-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: #4e5870; font-size: .875rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; color: var(--ink); background-color: #fff; border: 1px solid #dedfe9; border-radius: 9px; padding: 11px 12px; font-size: 1rem; line-height: 1.45; }
.form-field textarea { min-height: 108px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a1a5b2; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #6fb3e8; }
.field-hint { margin: 0; font-size: .8125rem; color: #848a9a; font-weight: 400; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: #657086; font-size: .875rem; line-height: 1.6; }
.checkbox-row input { accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.option-card { display: flex; gap: 9px; flex: 1; align-items: flex-start; min-width: 140px; padding: 15px; border: 1px solid #e3dfec; border-radius: 11px; font-size: .875rem; color: #667086; cursor: pointer; }
.option-card input { accent-color: var(--primary); margin-top: 3px; }
.option-card:has(input:checked) { border-color: #83b8e6; background: #f1f8ff; }
.option-card strong { display: block; color: #55486f; margin-bottom: 4px; }
.option-card span { font-size: .8125rem; line-height: 1.5; }
.detail-art { height: 150px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--color, #eee6fc); color: #8064b5; margin-bottom: 24px; }
.detail-art svg { width: 65px; height: 65px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 0; margin: 20px 0; border-block: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.detail-facts > span, .detail-facts > div { display: flex; align-items: center; gap: 8px; }
.detail-facts svg { width: 18px; height: 18px; color: #428a9f; }
.detail-description { color: #667086; font-size: .9375rem; line-height: 1.75; white-space: pre-line; }
.notice { color: #466979; font-size: .875rem; line-height: 1.65; background: #eff7fb; border: 1px solid #dceaf2; border-radius: 10px; padding: 13px 15px; margin: 18px 0; }
.notice p:last-child { margin: 0; }
.error { color: #a73258; background: #fff1f5; border: 1px solid #f3c9d6; border-radius: 9px; padding: 12px 15px; font-size: .875rem; }
.success { color: #2e7b5d; background: #effaf4; border: 1px solid #cdebdc; border-radius: 9px; padding: 12px 15px; font-size: .875rem; }
.amount-options { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 15px; }
.amount-options button { flex: 1; border: 1px solid #e5dfef; background: #fff; padding: 11px 13px; border-radius: 9px; color: #736285; font-size: .9375rem; font-weight: 650; }
.amount-options button.active { color: #7b5307; background: #fff4cd; border-color: #e2bc5b; }
.toast, #toast { position: fixed; z-index: 100; bottom: 28px; left: calc(50% + 116px); transform: translateX(-50%); max-width: min(500px, calc(100vw - 36px)); padding: 14px 22px; border-radius: 12px; background: #29243d; color: #fff; box-shadow: 0 10px 30px #24213e25; text-align: center; font-size: .875rem; line-height: 1.6; }
#toast:empty { display: none; }
.mobile-nav { display: none; }

/* Shared application elements and semantic color treatments. */
.icon { display: inline-block; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; background: #fff; color: var(--primary); padding: 12px 18px; border: 2px solid var(--primary); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.brand-name > span { color: #0b9a7b; }
.profile-mini { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; padding: 21px 5px 0; margin-top: 17px; }
.profile-mini strong { display: block; font-size: .875rem; color: var(--ink); }
.profile-mini small { display: block; color: #8990a0; font-size: .75rem; margin-top: 2px; }
.nav-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #dcecff; color: #285ea3; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.mobile-brand { display: none; }
.mini-spark { display: block; color: #119675; font-size: 2.3rem; line-height: 1; margin-bottom: 16px; }
.mini-card .text-link { font-size: .8125rem; text-align: left; line-height: 1.5; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
.demo-banner > button { border: 0; background: transparent; color: #1f668c; padding: 0; text-decoration: underline; font-size: .8125rem; white-space: nowrap; }
.sponsor-symbol { width: 52px; height: 52px; border-radius: 17px; background: #fffaf0; color: #bd7b0d; display: flex; align-items: center; justify-content: center; margin-bottom: 21px; box-shadow: 0 4px 15px #8a5ebe0a; transform: rotate(-6deg); }
.sponsor-symbol svg { width: 28px; height: 28px; transform: rotate(6deg); }
.sponsor-promo { background: radial-gradient(circle at 100% 100%, #ffe4b9, transparent 60%), linear-gradient(140deg, #fffbed, #fff3ca); }
.sponsor-promo .eyebrow { letter-spacing: .055em; font-size: .6875rem; white-space: nowrap; margin-bottom: 23px; }
.sponsor-promo h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.045em; margin-bottom: 13px; }
.sponsor-promo .field-hint { display: block; margin-top: 13px; line-height: 1.65; }
.sponsor-promo .btn-primary { background: #9b6509; color: #fff; }
.sponsor-promo .btn-primary:hover { background: #815206; }
.community-row { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #f0f1f6; border-radius: 0; }
.community-row:hover { background: #f6fbff; }
.community-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.community-row small { color: #8a92a1; font-size: .75rem; margin-top: 3px; }
.right-rail .panel > .hint { margin: -7px 0 12px; }
.right-rail .panel > .text-link { margin-top: 16px; }
.step strong { display: block; font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: .875rem; letter-spacing: -.025em; margin-bottom: 5px; }
.how-panel > h3 { margin-bottom: 22px; }
.rail-footer { padding: 7px 14px 0; text-align: center; }
.rail-footer .rainbow-line { margin: 0 auto 17px; height: 3px; width: 85px; }
.rail-footer p { margin: 0; color: #9395a4; font-size: .75rem; line-height: 1.8; }
.results-count { margin: -3px 0 17px; font-size: .75rem; line-height: 1.5; }
.request-title > button { font: inherit; color: inherit; background: transparent; text-align: left; border: 0; padding: 0; line-height: inherit; }
.request-title > button:hover { color: var(--primary); }
.card-heading .hint { margin: 0 0 0 auto; font-size: .6875rem; }
.hero-bubble { gap: 8px; border-width: 2px; width: auto; height: 48px; padding: 0 12px; border-radius: 13px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.hero-bubble svg { width: 22px; height: 22px; }
.hero-bubble.b1 { left: -6%; top: 10%; }
.hero-bubble.b2 { right: -12%; top: 44%; }
.hero-bubble.b3 { left: 15%; bottom: 1%; }
.purple { --color: #ebe3ff; --card-color: #ebe3ff; --art-color: #8870ba; }
.mint { --color: #dff4e8; --card-color: #dff4e8; --art-color: #589576; }
.peach { --color: #ffeadb; --card-color: #ffeadb; --art-color: #bd8763; }
.blue { --color: #e0effb; --card-color: #e0effb; --art-color: #668da9; }
.pink { --color: #fbe3ed; --card-color: #fbe3ed; --art-color: #b77b98; }
.avatar.purple, .avatar.mint, .avatar.peach, .avatar.blue, .avatar.pink { background: var(--color); color: var(--art-color); }
.community-icon.purple, .community-icon.mint, .community-icon.peach, .community-icon.blue, .community-icon.pink { background: var(--color); color: var(--art-color); }
.community-card { padding: 0; overflow: hidden; }
.community-card-top { display: flex; align-items: center; justify-content: space-between; background: var(--color, #ebe3ff); padding: 22px 25px; color: var(--art-color, #8870ba); }
.community-card-top .community-icon { width: 51px; height: 51px; border-radius: 16px; font-size: .9375rem; color: inherit; background: #ffffffb5; }
.community-card-top > svg { width: 42px; height: 42px; opacity: .65; }
.community-card .card-body { padding: 25px; }
.community-card .card-body .eyebrow { font-size: .75rem; letter-spacing: .07em; }
.community-card .card-body h2 { font-size: 1.3rem; }
.community-card .card-body .btn { align-self: start; }
.activity-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.activity-row .activity-actions { flex: 0 0 auto; }
.activity-row .badge { margin-bottom: 10px; }
.tabs button span { font-size: .75rem; margin-left: 7px; padding: 2px 5px; border-radius: 5px; color: #8b839c; background: #efedf5; }
.tabs button.active span { background: #dcecff; color: #285ea3; }
.thread-button small { display: block; color: #9297a7; font-size: .75rem; margin-top: 3px; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-list { display: flex; flex-direction: column; min-height: 230px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.profile-layout aside p { color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.profile-layout aside .rainbow-line { margin: 22px 0; width: 70px; height: 3px; }
.profile-layout form .modal-footer { padding: 23px 0 0; margin: 23px 0 0; }
.sponsor-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.sponsor-hero > div:first-child { max-width: 650px; }
.sponsor-hero-art { flex-shrink: 0; width: 200px; height: 200px; position: relative; border: 1px solid #e5c876; border-radius: 50%; margin-right: 35px; }
.sponsor-hero-art > svg:first-child { width: 95px; height: 95px; position: absolute; left: 52px; top: 55px; color: #d18d14; stroke-width: 1.3; }
.sponsor-hero-art > svg:last-child { width: 55px; height: 55px; position: absolute; right: -10px; top: 0; color: #e78742; fill: #ffe9b6; }
.sponsor-hero-art::before { content: ''; position: absolute; width: 153px; height: 153px; border: 1px solid #eddb9d; border-radius: 50%; left: 23px; top: 23px; }
.sponsor-hero-art::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #8fd6b6; bottom: 7px; left: 24px; }
.detail-art { position: relative; color: var(--art-color, #8064b5); }
.detail-art .badge { position: absolute; bottom: 13px; right: 13px; }
.modal-body > .badge + h3 { margin-top: 25px; }
.modal-body .rainbow-line { margin: 25px 0; height: 3px; }
.stat-card h3 { font-size: 1rem; }
.badge { font-size: .8125rem; }
.request-description { font-size: .9375rem; }
.card-meta, .person, .card-footer .btn, .community-row strong, .step p, .step strong, .card-stats, .hint, .field-hint, .results-count, .tabs button, .card-heading .hint { font-size: .875rem; }
.category-tabs .chip, .segmented button, .select-wrap select, .filter-button { font-size: .875rem; }
.hero p, .sponsor-promo p, .community-card p, .pledge-card p, .profile-layout aside p { font-size: 1rem; }
.card-heading { flex-wrap: wrap; }
.card-heading .hint { font-size: .8125rem; }
.community-grid > .community-card { padding: 0; }
.request-title, .community-card h2, .detail-description, .activity-row h3, .pledge-card p { overflow-wrap: anywhere; }
.activity-row .activity-actions { max-width: 100%; }

@media (min-width: 1600px) {
  main#main { padding-top: 42px; }
  .hero { min-height: 310px; padding: 44px; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; }
  .hero-art { margin-right: 80px; }
  .card-art { height: 140px; }
}
@media (max-width: 1270px) {
  .sidebar { width: 210px; padding-inline: 15px; }
  .brand-name { font-size: 1.1rem; }
  .app-shell { margin-left: 210px; }
  .topbar { padding-inline: 26px; }
  main#main { padding: 28px 26px 50px; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
  .hero { padding: 30px; gap: 10px; }
  .hero-art { margin-right: 0; width: 230px; min-width: 200px; }
  .orbit { width: 190px; height: 190px; }
  .orbit-two { width: 140px; height: 140px; }
  .orbit-three { width: 240px; height: 240px; }
  .hero-center { width: 96px; height: 96px; border-radius: 27px; }
  .hero-center svg { width: 44px; height: 44px; }
  .hero h1 { font-size: 2.25rem; }
  .panel { padding: 19px; }
  .rainbow-line { margin: -19px -19px 19px; }
  .request-grid { gap: 16px; }
  .card-body { padding: 17px 15px 15px; }
  .card-footer { gap: 6px; }
  .person { gap: 5px; }
  .card-footer .avatar { width: 26px; height: 26px; }
  .toast, #toast { left: calc(50% + 105px); }
}
@media (max-width: 1100px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .right-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .right-rail > :last-child:nth-child(odd) { grid-column: 1/-1; }
  .hero-art { min-width: 170px; width: 190px; margin-right: 8px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-copy { max-width: 390px; }
  .hero-bubble.b1 { left: -8%; top: 12%; }
  .hero-bubble.b2 { right: -7%; }
  .hero-bubble.b3 { left: 12%; bottom: 5%; }
  .topbar-actions { gap: 15px; }
  .conversation-layout { grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { width: 190px; padding-inline: 12px; }
  .brand { gap: 8px; margin-inline: 1px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark::before { inset: 8px; }
  .brand-mark::after { display: none; }
  .brand-name { font-size: 1.05rem; }
  .tagline { font-size: .6875rem; }
  .nav-item { padding-inline: 11px; gap: 10px; font-size: .875rem; }
  .app-shell { margin-left: 190px; }
  .topbar { padding-inline: 22px; }
  .topbar-actions { gap: 12px; }
  .location-button { font-size: .8125rem; }
  .topbar .btn { padding-inline: 12px; }
  main#main { padding-inline: 22px; }
  .hero { padding: 28px 26px; }
  .hero-art { display: none; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { max-width: 460px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 19px; }
  .stat-card p { font-size: .8125rem; }
  .conversation-layout { grid-template-columns: 1fr; }
  .thread-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); gap: 7px; }
  .thread-button { width: 210px; flex-shrink: 0; margin: 0; }
  .conversation { min-height: 380px; }
  .toast, #toast { left: calc(50% + 95px); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .sponsor-hero-art { width: 150px; height: 150px; margin-right: 0; }
  .sponsor-hero-art::before { width: 110px; height: 110px; top: 19px; left: 19px; }
  .sponsor-hero-art > svg:first-child { width: 72px; height: 72px; top: 42px; left: 39px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .app-shell { margin-left: 0; }
  .topbar { height: 70px; padding-inline: 20px; }
  .topbar-title { font-size: .875rem; }
  .mobile-brand { display: block; font-size: 1.15rem; letter-spacing: -.055em; font-weight: 800; }
  #page-label { display: none; }
  .topbar-actions { gap: 11px; }
  .topbar .btn { min-height: 37px; padding: 8px 11px; font-size: .8125rem; }
  .topbar .avatar { width: 34px; height: 34px; }
  .location-button { font-size: .75rem; }
  .demo-banner { font-size: .75rem; padding-inline: 18px; gap: 5px; }
  main#main { padding: 24px 20px 106px; }
  .hero { margin-bottom: 28px; padding: 28px; min-height: 0; border-radius: 18px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: .875rem; margin-bottom: 20px; }
  .hero .eyebrow { margin-bottom: 14px; font-size: .6875rem; }
  .hero-actions .btn { padding-inline: 15px; }
  h2 { font-size: 1.25rem; }
  .section-heading { gap: 12px; margin-bottom: 16px; }
  .section-heading .text-link { font-size: .8125rem; }
  .request-grid { gap: 16px; }
  .card-art { height: 115px; }
  .right-rail { margin-top: 8px; }
  .mobile-nav { position: fixed; z-index: 40; inset: auto 0 0; display: flex; justify-content: space-around; background: #fffffff5; backdrop-filter: blur(18px); border-top: 1px solid #e9e6f2; padding: 9px 8px max(10px, env(safe-area-inset-bottom)); }
  .mobile-nav button, .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; color: #8b8d9d; background: transparent; padding: 4px 8px; font-size: .6875rem; font-weight: 550; text-decoration: none; min-width: 55px; }
  .mobile-nav .nav-item { position: relative; }
  .mobile-nav .nav-count { position: absolute; right: 20%; top: 0; min-width: 17px; height: 17px; font-size: .625rem; background: #1769df; color: #fff; }
  .mobile-nav svg { width: 21px; height: 21px; }
  .mobile-nav .active { color: var(--primary); }
  .mobile-nav .active svg { fill: #e4f1ff; }
  .page-hero { padding: 26px; border-radius: 18px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: .9375rem; }
  .community-grid, .pledge-grid { gap: 16px; }
  .community-card, .pledge-card { padding: 22px; }
  .toast, #toast { bottom: 92px; left: 50%; }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 17px; }
  .topbar-title { max-width: 116px; line-height: 1.3; }
  .mobile-brand { font-size: 1.05rem; }
  .topbar-actions { gap: 9px; }
  .location-button { max-width: 106px; overflow: hidden; white-space: nowrap; font-size: .75rem; }
  .location-button svg { width: 15px; height: 15px; }
  .topbar .btn svg { display: none; }
  .topbar .btn { font-size: .75rem; padding: 8px 10px; }
  .topbar .avatar { display: none; }
  main#main { padding: 20px 17px 100px; }
  .hero { padding: 25px 22px; border-radius: 17px; }
  .hero h1 { font-size: 2.05rem; letter-spacing: -.06em; line-height: 1.19; }
  .hero p { font-size: .875rem; }
  .hero .eyebrow { letter-spacing: .07em; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { font-size: .8125rem; padding: 10px 13px; }
  .section-heading h2 { font-size: 1.2rem; }
  .section-heading > div p { font-size: .8125rem; }
  .search-row { gap: 8px; }
  .filter-button { font-size: .8125rem; padding-inline: 11px; }
  .search-field { padding-inline: 12px; }
  .search-field input { font-size: .875rem; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 13px; scrollbar-width: thin; }
  .chip { flex-shrink: 0; font-size: .8125rem; }
  .results-toolbar { font-size: .75rem; gap: 9px; }
  .results-toolbar .select-wrap select { max-width: 140px; font-size: .75rem; }
  .segmented button { padding-inline: 9px; font-size: .75rem; }
  .request-grid, .community-grid, .pledge-grid { grid-template-columns: 1fr; }
  .request-card { border-radius: 17px; }
  .card-art { height: 130px; }
  .card-body { padding: 20px; }
  .request-title { font-size: 1.1rem; }
  .request-description { font-size: .875rem; }
  .card-meta { font-size: .8125rem; gap: 15px; }
  .card-footer .btn { font-size: .8125rem; padding: 8px 14px; }
  .card-footer .avatar { width: 31px; height: 31px; }
  .person { font-size: .8125rem; gap: 9px; }
  .right-rail { grid-template-columns: 1fr; gap: 18px; }
  .right-rail > :last-child:nth-child(odd) { grid-column: auto; }
  .panel { padding: 23px; }
  .rainbow-line { margin: -23px -23px 21px; }
  .panel-header h3 { font-size: 1.1rem; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 17px 13px; }
  .stat-card strong { font-size: 1.65rem; }
  .stat-card p { font-size: .75rem; line-height: 1.5; }
  .activity-list { padding-inline: 19px; }
  .activity-row { flex-wrap: wrap; gap: 12px; }
  .activity-row h3 { font-size: .9375rem; }
  .activity-row p { font-size: .8125rem; }
  .activity-row > .btn { margin-left: auto; }
  .page-hero { padding: 25px 22px; }
  .page-hero h1 { font-size: 1.85rem; }
  .sponsor-hero-art { display: none; }
  .tabs { gap: 18px; }
  .tabs button { font-size: .875rem; }
  .conversation { padding: 20px; }
  .message { max-width: 95%; }
  .message-compose { flex-wrap: wrap; }
  .message-compose .btn { padding-inline: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-field.full { grid-column: auto; }
  dialog#modal { width: calc(100vw - 22px); max-height: calc(100dvh - 28px); border-radius: 19px; }
  .modal-header { padding: 23px 22px 18px; }
  .modal-header h2 { font-size: 1.25rem; }
  .modal-body { padding: 22px; }
  .modal-footer { padding: 18px 22px 22px; }
  .modal-body .modal-footer { margin: 22px -22px -22px; }
  .detail-facts { grid-template-columns: 1fr; }
  .modal-footer .btn { white-space: normal; }
  .notice { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Version 0.2: a full-spectrum identity and three equally clear ways to participate. */
.yellow { --color: #fff0b6; --card-color: #fff0b6; --art-color: #8d6607; }
.orange, .peach { --color: #ffe2c6; --card-color: #ffe2c6; --art-color: #a25119; }
.coral { --color: #ffded8; --card-color: #ffded8; --art-color: #aa443a; }
.cyan { --color: #d5f3fb; --card-color: #d5f3fb; --art-color: #1b718c; }
.mint { --color: #d8f3e4; --card-color: #d8f3e4; --art-color: #247954; }
.blue { --color: #dbeaff; --card-color: #dbeaff; --art-color: #3269ac; }
.purple { --color: #eae2ff; --card-color: #eae2ff; --art-color: #7253a8; }
.pink { --color: #fce0ef; --card-color: #fce0ef; --art-color: #a54b78; }
.avatar:is(.yellow,.orange,.coral,.cyan), .community-icon:is(.yellow,.orange,.coral,.cyan) { background: var(--color); color: var(--art-color); }
.rainbow-line { background: linear-gradient(90deg, #ef737a 0%, #f3aa48 20%, #f5d252 37%, #45bf8a 55%, #4badeb 73%, #9267e5 88%, #e77cae 100%); }
.brand-mark { background: conic-gradient(from 20deg, #7f6ae5, #e773a4, #ed7b66, #f7be47, #5ac593, #4cafe3, #7f6ae5); }
.page-hero { background: linear-gradient(130deg,#eff9ff,#edf9f2); border-color: #dbeae5; }
.sponsor-hero { background: linear-gradient(120deg,#fff9e7,#fff1ce 58%,#e9f8e9); border-color: #eadfbf; }
.sponsor-hero .gradient-text { background-image: linear-gradient(90deg,#ad6813,#db8732 60%,#259377); }
.intent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: -10px 0 34px; }
.intent-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 185px; text-align: left; padding: 23px; border: 1px solid var(--intent-line); border-radius: 17px; background: var(--intent-bg); color: var(--intent-ink); overflow: hidden; }
.intent-card::after { content: ''; position: absolute; right: -35px; top: -45px; width: 120px; height: 120px; border: 18px solid #ffffff60; border-radius: 50%; pointer-events: none; }
.intent-card.need { --intent-bg: #fff1e7; --intent-line: #f3d8c0; --intent-ink: #9c521b; }
.intent-card.giving { --intent-bg: #e9f8ef; --intent-line: #cce8d8; --intent-ink: #247653; }
.intent-card.sponsoring { --intent-bg: #fff7d6; --intent-line: #ecdfa8; --intent-ink: #88600b; }
.intent-card:hover { border-color: currentColor; box-shadow: 0 5px 20px #1e45520a; transform: translateY(-2px); text-decoration: none; }
.intent-card > .icon { width: 28px; height: 28px; margin-bottom: 14px; }
.intent-card h2, .intent-card h3, .intent-card strong { font-size: 1.1rem; color: inherit; letter-spacing: -.025em; margin-bottom: 7px; display: block; }
.intent-card p, .intent-card small, .intent-card > span { font-size: .9375rem; line-height: 1.6; color: #526976; margin: 0; max-width: 310px; }
.intent-card .btn { margin-top: 17px; background: #fff; border-color: var(--intent-line); color: var(--intent-ink); }
.browse-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.browse-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid #dfe5e9; border-radius: 10px; background: #fff; color: #566c79; font-size: .9375rem; font-weight: 600; }
.browse-switch button.active, .browse-switch button[aria-pressed=true] { background: #e9f5ff; border-color: #94c5e8; color: #21649a; box-shadow: inset 0 0 0 1px #94c5e8; }
.browse-switch button[data-value=need].active { background: #fff0e4; color: #99501d; border-color: #edba8d; box-shadow: inset 0 0 0 1px #edba8d; }
.browse-switch button[data-value=giving].active { background: #e5f5eb; color: #24714f; border-color: #8dc9a6; box-shadow: inset 0 0 0 1px #8dc9a6; }
.category-purpose { color: #526e80; font-size: .875rem; margin-bottom: 12px; }
.listing-mode, .map-filter-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 15px 0 20px; }
.listing-mode label, .map-filter-bar label { display: flex; flex-direction: column; gap: 6px; color: #526978; font-size: .875rem; font-weight: 550; min-width: 0; }
.listing-mode select, .map-filter-bar select { width: 100%; min-width: 0; appearance: none; padding: 10px 34px 10px 12px; border: 1px solid #dce5eb; border-radius: 9px; color: #375c73; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526e80' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 11px center / 16px no-repeat; font-size: .875rem; }
.recurrence-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.recurrence-tabs button { border: 1px solid #dde5e8; background: #fff; color: #58717d; border-radius: 8px; padding: 7px 12px; font-size: .875rem; }
.recurrence-tabs button.active { color: #236e58; background: #e7f6ed; border-color: #a2cdb5; }
.badge.giving { background: #ddf5e8; color: #206e4b; }
.badge.recurring, .recurring-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: #e5f3ff; color: #2a6493; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.privacy-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: #57707e; background: #f1f6f9; border-radius: 6px; padding: 4px 8px; }
.recurring-badge .icon, .privacy-badge .icon { width: 15px; height: 15px; }
.availability-note { margin: 8px 0 16px; padding: 10px 12px; border-left: 3px solid #48ae7d; border-radius: 0 7px 7px 0; color: #386851; background: #f0faf4; font-size: .875rem; line-height: 1.6; }
.funding-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 22px; margin: 22px 0; border: 1px solid #ead9a3; border-radius: 13px; background: linear-gradient(100deg,#fff8df,#fff1d5); color: #765617; }
.funding-strip > .icon { width: 26px; height: 26px; }
.funding-strip > div { flex: 1; min-width: 160px; }
.funding-strip h3, .funding-strip strong { margin: 0 0 4px; color: #765617; font-size: 1rem; }
.funding-strip p { margin: 0; font-size: .875rem; color: #81714d; }
.funding-strip .btn { background: #8e610c; color: #fff; border: 0; }
.post-kind-options, .support-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.post-kind-options button, .help-kind { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; padding: 14px; min-height: 72px; border: 1px solid #dce5e9; border-radius: 10px; background: #f9fbfc; color: #496877; }
.post-kind-options button.active, .help-kind.active { border-color: #7ebea1; background: #eaf8f0; color: #226e51; }
.post-kind-options strong, .help-kind strong { color: inherit; margin: 0; font-size: .9375rem; }
.post-kind-options small, .help-kind small { font-size: .8125rem; line-height: 1.5; }
.recurrence-fields, .location-fields { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; padding: 17px; border: 1px solid #dceae4; border-radius: 11px; background: #f7fcf9; }
.location-fields { border-color: #dce8ee; background: #f6fafc; }
.my-post-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 22px; }
.map-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.map-panel { min-width: 0; border: 1px solid #d2e4e8; border-radius: 18px; overflow: hidden; background: #eaf8fd; }
.map-panel .panel-header { padding: 20px 22px 0; }
.map-results { min-width: 0; }
.map-results .request-grid { grid-template-columns: 1fr; }
.map-results .card-art { height: 90px; }
.map-results .card-art .art-icon { height: 50px; width: 50px; border-radius: 15px; }
.map-results .art-icon svg { width: 27px; height: 27px; }
.map-results .card-body { padding: 18px; }
.map-summary { padding: 16px 20px; border-top: 1px solid #d2e4e8; color: #4d7385; background: #f7fcfe; font-size: .875rem; line-height: 1.6; }
.map-summary p { margin: 0; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: #4c6879; font-size: .875rem; padding: 14px 20px; background: #f8fcfe; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .need-dot { background: #e68b3f; }
.map-legend .giving-dot { background: #299c70; }
.map-legend i, .map-legend .legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.area-map { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 720/460; }
.area-map .map-area-button, .area-map [role=button] { cursor: pointer; }
.area-map [role=button]:focus-visible { outline: 0; }
.area-map [role=button]:focus-visible circle { stroke: #174b80; stroke-width: 4; }
.area-map text { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.map-area-button:hover { filter: brightness(.96); }
.map-area-button.selected { color: #165e85; }
.map-panel > .hint, .map-panel > p { padding-inline: 20px; }
.badge + .recurring-badge, .badge + .privacy-badge { margin-left: 5px; }
#storage-warning { margin: 12px 26px; background: #fff3d9; border-color: #f0d29b; color: #79551c; }

@media (max-width: 1270px) {
  .intent-card { padding: 19px; }
  .map-layout { grid-template-columns: minmax(0,1fr); }
  .map-results .request-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .intent-grid { gap: 11px; }
  .intent-card { min-height: 195px; padding: 17px; }
  .intent-card h3, .intent-card strong { font-size: 1rem; }
  .intent-card p, .intent-card small, .intent-card > span { font-size: .875rem; }
  .listing-mode, .map-filter-bar { gap: 9px; }
  .map-layout { gap: 20px; }
}
@media (max-width: 760px) {
  .mobile-nav { padding-inline: 4px; }
  .mobile-nav .nav-item { width: 20%; min-width: 0; padding-inline: 3px; gap: 5px; font-size: .75rem; line-height: 1.25; text-align: center; }
  .mobile-nav .nav-item > span:not(.nav-count) { max-width: 80px; }
  .mobile-nav .nav-count { right: 15%; }
  .intent-grid { margin-top: -8px; margin-bottom: 27px; }
  .intent-card { min-height: 175px; padding: 16px; }
  .intent-card > .icon { width: 24px; height: 24px; margin-bottom: 12px; }
  .hero p { font-size: 1rem; }
  .map-results .request-grid { gap: 16px; }
  .funding-strip { padding: 16px 18px; }
}
@media (max-width: 580px) {
  .intent-grid { grid-template-columns: 1fr; gap: 10px; }
  .intent-card { min-height: 0; padding: 17px 19px 17px 65px; }
  .intent-card > .icon { position: absolute; top: 20px; left: 20px; margin: 0; }
  .intent-card h2, .intent-card h3, .intent-card strong { margin-bottom: 4px; }
  .intent-card p, .intent-card > span { max-width: none; }
  .intent-card .btn { margin-top: 12px; }
  .browse-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .browse-switch button { font-size: .875rem; padding-inline: 9px; }
  .listing-mode, .map-filter-bar { grid-template-columns: 1fr; gap: 12px; }
  .map-results .request-grid { grid-template-columns: 1fr; }
  .recurrence-fields, .location-fields { grid-template-columns: 1fr; padding: 15px; }
  .map-summary { padding: 14px 16px; }
  .map-legend { padding: 12px 16px; gap: 8px 13px; font-size: .8125rem; }
  .funding-strip .btn { width: 100%; }
  .funding-strip > div { min-width: 130px; }
  .post-kind-options button, .help-kind { padding: 12px; }
}
@media (max-width: 370px) {
  .mobile-nav .nav-item { font-size: .6875rem; }
  .mobile-nav svg { width: 20px; height: 20px; }
}

/* Geographic overview: areas, not exact personal locations. */
.area-map-wrap { position: relative; width: 100%; min-width: 0; }
.area-map .map-region-label { fill: #31596b; font-size: 13px; font-weight: 650; paint-order: stroke; stroke: #f5fcff; stroke-width: 3px; stroke-linejoin: round; }
.area-map .map-region-count { font-size: 18px; font-weight: 750; }
.area-map .map-area-button .map-region-halo { transition: opacity .16s ease, stroke-width .16s ease; }
.area-map .map-area-button:hover .map-region-halo { opacity: .55; }
.area-map .map-area-button.is-selected .map-region-halo { stroke: #164e7c; stroke-width: 3; }
.area-map .map-area-button.is-selected .map-region-center { stroke: #fff; stroke-width: 3; }
.area-map .map-area-button:focus-visible .map-region-center { stroke: #102f4f; stroke-width: 4; }
.area-map .map-water-label { fill: #568a9d; font-size: 15px; letter-spacing: .15em; font-weight: 500; }
.area-map .map-compass { fill: #416d81; font-size: 13px; }
.map-legend .map-key { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .map-key::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #537998; }
.map-legend .map-key.need::before { background: #d98031; }
.map-legend .map-key.giving::before { background: #238558; }
.map-caption { padding: 0 20px 14px; color: #547380; line-height: 1.6; font-size: .8125rem; margin: 0; }
.map-area-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px; border-top: 1px solid #cfe3eb; background: #f6fcfe; }
.map-area-choice { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 7px 11px; border: 1px solid #d3e5ec; border-radius: 8px; background: #fff; color: #4d7180; font-size: .8125rem; text-align: left; }
.map-area-choice:hover { border-color: #78abc1; background: #f0f8fc; }
.map-area-choice[aria-pressed=true] { background: #e0f1fc; border-color: #78abc1; color: #205d7b; font-weight: 650; }
.map-area-choice span { border-radius: 4px; padding: 0 5px; background: #eaf4f7; color: #346c80; }
@media (max-width: 580px) {
  .map-caption { padding-inline: 16px; }
  .map-area-list { padding: 12px 14px; }
  .map-area-choice { flex: 1 1 40%; }
}
.map-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid #d4e8ef; background: #f5fbfe; }
.map-panel-header strong { display: block; font-size: 1rem; color: #2c596e; }
.map-panel-header .hint { display: block; margin-top: 3px; font-size: .8125rem; color: #547484; }
.map-area-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.map-area-choice { align-items: flex-start; flex-direction: column; gap: 4px; }
.map-area-choice strong { display: block; font-size: .8125rem; }
.map-area-choice span { display: block; padding: 0; background: transparent; font-size: .75rem; font-weight: 400; line-height: 1.5; }
.map-source { padding: 0 20px 16px; margin: 0; color: #6b8591; font-size: .75rem; line-height: 1.6; }
.map-source a { color: #426f85; text-decoration: underline; }
@media (max-width: 580px) {
  .map-panel-header { padding: 15px 16px; }
  .map-area-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-source { padding-inline: 16px; }
}

/* Source brand spectrum; darker semantic shades keep controls readable. */
:root {
  --spectrum-coral: #FF5277;
  --spectrum-orange: #FF8A34;
  --spectrum-yellow: #FFE55C;
  --spectrum-lime: #C3F53C;
  --spectrum-mint: #37E3B1;
  --spectrum-cyan: #31D6FF;
  --spectrum-blue: #4E7CFF;
  --spectrum-violet: #8B5CF6;
}
.rainbow-line { background: linear-gradient(90deg,var(--spectrum-coral),var(--spectrum-orange),var(--spectrum-yellow),var(--spectrum-lime),var(--spectrum-mint),var(--spectrum-cyan),var(--spectrum-blue),var(--spectrum-violet)); }
.category-tabs .chip:is(.yellow,.orange,.coral,.cyan,.mint,.blue,.purple,.pink) .icon { color: var(--art-color); }
.category-tabs .chip:is(.yellow,.orange,.coral,.cyan,.mint,.blue,.purple,.pink).active { background: var(--color); border-color: var(--art-color); color: var(--art-color); }
.browse-switch button[data-value=all] { flex: 0 0 auto; }
.recurrence-tabs { margin-bottom: 17px; }
.results-toolbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.results-toolbar .select-wrap { min-width: 0; }
.results-toolbar .select-wrap select { width: 100%; max-width: none; }
.form-field.recurrence-fields, .form-field.location-fields { display: flex; flex-direction: column; gap: 7px; }
.support-options { grid-template-columns: 1fr; margin-bottom: 0; }
.support-options .intent-card { min-height: 0; padding: 20px 20px 20px 66px; }
.support-options .intent-card > .icon { position: absolute; top: 23px; left: 22px; margin: 0; }
.support-options .intent-card small { display: block; }
.support-options .intent-card > span { max-width: none; }
.intent-card small { display: block; }
#map-request-results { display: grid; grid-template-columns: 1fr; gap: 18px; }
.community-grid { margin-top: 23px; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; margin-top: 25px; }
.feature-card { min-width: 0; position: relative; border-top: 4px solid #4e9dc8; }
.feature-card > p { color: #607585; font-size: 1rem; line-height: 1.7; }
.feature-card > .eyebrow { color: #316f7f; margin-bottom: 12px; }
.feature-card h2 { font-size: 1.4rem; line-height: 1.35; max-width: 540px; }
.feature-card .panel-header { align-items: start; }
.feature-card .panel-header .hint { margin-bottom: 0; margin-top: 8px; }
.feature-grid .feature-card:nth-child(1) { border-top-color: #3dbb8d; }
.feature-grid .feature-card:nth-child(2) { border-top-color: #eea64d; }
.feature-grid .feature-card:nth-child(3) { border-top-color: #6898e9; }
.feature-grid .feature-card:nth-child(4) { border-top-color: #ea6c85; }
.feature-card .field-hint { display: block; margin-top: 15px; font-size: .875rem; line-height: 1.65; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.feature-actions .btn { flex: 0 1 auto; white-space: normal; }
.feature-status { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.feature-status .badge { background: #edf4f7; color: #506b79; white-space: normal; }
.feature-log { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 23px 0 0; list-style: none; border-top: 1px solid #e2ebee; }
.feature-log-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; border-bottom: 1px solid #e2ebee; }
.feature-log-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-log-item > span:first-child { min-width: 0; flex: 1; }
.feature-log-item strong { display: block; font-size: .9375rem; color: #37596a; overflow-wrap: anywhere; }
.feature-log-item small { display: block; margin-top: 5px; color: #708593; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.feature-log-item .btn { font-size: .8125rem; min-height: 36px; padding: 7px 11px; flex-shrink: 0; }
.impact-total { color: #187a73; font-variant-numeric: tabular-nums; }
.impact-scopes { overflow-x: auto; scrollbar-width: thin; gap: 22px; margin-top: 20px; }
.impact-scopes button { flex-shrink: 0; white-space: nowrap; }
.feature-card .stats-grid { margin-bottom: 20px; }
.feature-card .stat-card { background: #f6fafc; border-color: #e0eaee; padding: 21px; }
.feature-card .stat-card:nth-child(1) { background: #edf9f4; border-color: #d4eadf; }
.feature-card .stat-card:nth-child(2) { background: #eef5ff; border-color: #d9e6f7; }
.feature-card .stat-card p { font-size: .875rem; color: #5d7483; }
.feature-card .stat-card .eyebrow { font-size: .75rem; letter-spacing: .07em; }
.header-sponsor { background: #fff3cb; border: 1px solid #e7d59d; color: #7e5a0f; box-shadow: none; }
.header-sponsor:hover { background: #ffeaa5; color: #6e4b05; }
@media (max-width: 1270px) {
  #map-request-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card .panel-header { flex-wrap: wrap; }
  .feature-card .stats-grid { gap: 10px; }
  .feature-card .stat-card { padding: 17px; }
}
@media (max-width: 580px) {
  .results-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .results-toolbar .select-wrap select { font-size: .875rem; min-height: 42px; }
  .browse-switch:has(button[data-value=all]) { grid-template-columns: 1fr; }
  #map-request-results { grid-template-columns: 1fr; }
  .header-sponsor { display: none; }
  .feature-grid { gap: 18px; }
  .feature-card { padding: 21px; }
  .feature-card h2 { font-size: 1.3rem; }
  .feature-card .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-card .stat-card:last-child { grid-column: 1/-1; }
  .feature-card .stat-card .eyebrow { font-size: .6875rem; letter-spacing: .03em; }
  .feature-card .stat-card p { font-size: .875rem; }
  .feature-log-item { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .feature-log-item > span:first-child { flex-basis: 100%; }
  .feature-actions .btn { flex: 1 1 auto; }
}
.sidebar { overflow-y: auto; }
.intent-card strong { color: var(--intent-ink); }
.intent-card small { color: #526976; }

/* Four discovery selectors stay balanced on narrow content columns. */
@media (min-width: 581px) { .results-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Standing sponsorship criteria remain readable on phones and in nested groups. */
.fund-rule-group { min-width:0; border:1px solid #b9d9d3; border-radius:16px; background:#f6fffb; margin:20px 0; padding:16px; }
.fund-rule-group legend { color:#14604c; font-weight:750; padding:0 8px; }
.fund-rule-group .fund-rule-group { background:white; margin:14px 0; }
.fund-group-toolbar,.fund-rule-actions,.fund-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.fund-group-toolbar { justify-content:space-between; margin-bottom:14px; }
.fund-group-toolbar label { display:flex; gap:8px; align-items:center; }
.fund-group-toolbar select,.fund-rule-row input,.fund-rule-row select { border:1px solid #bac9d5; border-radius:9px; padding:10px; width:100%; min-width:0; background:white; color:#17213d; font:inherit; }
.fund-rule-row { display:flex; align-items:end; gap:8px; flex-wrap:wrap; border-top:1px solid #dbe8e4; padding:12px 0; }
.fund-rule-row label { display:grid; gap:5px; flex:1 1 140px; font-size:.82rem; font-weight:650; }
.fund-rule-row .btn-icon { flex:0 0 36px; height:42px; }
.fund-rule-actions { margin-top:10px; }
.fund-summary { border-left:3px solid #21b396; padding:10px 12px; margin:14px 0; background:#f1fbf7; border-radius:0 10px 10px 0; }
.fund-summary strong { color:#135744; }
.fund-summary p { font-size:.85rem; margin:7px 0 0; }
.fund-card-actions { margin:12px 0; }
.fund-candidate { padding:18px 0; border-bottom:1px solid #dbe3ed; }
.fund-candidate h3 { margin:0 0 8px; font-size:1rem; }
.fund-candidate ul { margin:12px 0; padding-left:20px; font-size:.87rem; color:#465775; }
.form-field input:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:580px) { .fund-rule-group { padding:10px; }.fund-rule-row label { flex-basis:100%; }.fund-group-toolbar label { flex-wrap:wrap; }.fund-rule-actions .btn { flex:1 1 auto; } }
