:root {
  --bg: #f6f8f3; --card: #ffffff; --ink: #1c2b1e; --muted: #5f6f62; --line: #e3e9df;
  --brand: #16a34a; --brand-d: #166534; --brand-dd: #0f3d22; --brand-l: #dcfce7; --brand-ll: #f0fdf4;
  --earth: #926c44; --earth-l: #f7f3ea; --warn: #b45309; --warn-l: #fef3c7; --danger: #b91c1c; --danger-l: #fee2e2;
  --info: #1d4ed8; --info-l: #dbeafe; --water: #0e7490; --water-l: #cffafe;
  --s1: #16a34a; --s2: #0ea5e9; --s3: #f59e0b; --s4: #a855f7; --s5: #ef4444;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(16,40,20,.05), 0 4px 16px rgba(16,40,20,.06);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 99; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .tiny { font-size: .78rem; } .center { text-align: center; }
.danger { color: var(--danger); } .max { max-width: 760px; } .mt { margin-top: 24px; } .mb { margin-bottom: 18px; }
.grow { flex: 1; min-width: 0; } .nowrap { white-space: nowrap; } .hide { display: none !important; } .pre { white-space: pre-wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-emoji { font-size: 3rem; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-l); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.eyebrow.light { background: rgba(255,255,255,.15); color: #bbf7d0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 18px; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none !important; transition: .15s; background: #fff; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-d); }
.btn-ghost { border-color: var(--line); background: #fff; } .btn-ghost:hover { border-color: var(--brand); color: var(--brand-d); }
.btn-light { background: #fff; color: var(--brand-dd); } .btn-light:hover { background: var(--brand-l); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { border-color: #fecaca; color: var(--danger); background: #fff; } .btn-danger-ghost:hover { background: var(--danger-l); }
.btn-sm { padding: 6px 12px; font-size: .85rem; } .btn-lg { padding: 13px 24px; font-size: 1.02rem; } .btn-block { width: 100%; }
button.link { background: none; border: 0; color: var(--brand-d); font: inherit; cursor: pointer; padding: 0; }
summary.link { cursor: pointer; color: var(--muted); list-style: none; } summary.link::-webkit-details-marker { display: none; }

/* Header */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none !important; }
.brand b { color: var(--brand); font-weight: 800; }
.links { display: flex; align-items: center; gap: 4px; }
.links > a:not(.btn) { padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .94rem; text-decoration: none; }
.links > a:not(.btn):hover, .links > a.on { background: var(--brand-ll); color: var(--brand-d); }
.links .btn { margin: 0 6px; }
.icon-link { position: relative; font-size: 1.15rem; }
.badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; align-items: center; justify-content: center; }
.icon-link .badge { position: absolute; top: 0; right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: 4px 10px; cursor: pointer; }
.menu { position: relative; margin-left: 6px; } .menu summary { list-style: none; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 220px; padding: 6px; z-index: 60; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--brand-ll); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .menu-head small { display: block; color: var(--muted); }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.who { display: inline-flex; align-items: center; gap: 8px; color: inherit; }

/* Flash */
.flashes { padding-top: 14px; }
.flash { position: relative; padding: 12px 40px 12px 16px; border-radius: 10px; margin-bottom: 10px; border: 1px solid; transition: opacity .6s; }
.flash ul { margin: 0; padding-left: 18px; } .flash.fade { opacity: 0; }
.flash-success { background: var(--brand-ll); border-color: #bbf7d0; color: var(--brand-dd); }
.flash-info { background: var(--info-l); border-color: #bfdbfe; color: #1e3a8a; }
.flash-warning { background: var(--warn-l); border-color: #fde68a; color: #78350f; }
.flash .x { position: absolute; right: 8px; top: 8px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; }
.verify-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 16px; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #bbf7d0 0%, transparent 60%), linear-gradient(180deg, #ecfdf3, var(--bg)); padding: 56px 0 36px; }
.small-hero { padding: 44px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.03em; }
.hero h1 em, h2 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.12rem; color: #3d4f40; max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.hero-stats h3 { margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--brand-ll); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand-d); letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat:nth-child(3) { background: var(--water-l); } .stat:nth-child(3) b { color: var(--water); }
.stat:nth-child(4) { background: var(--earth-l); } .stat:nth-child(4) b { color: var(--earth); }
.hero-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: .9rem; color: var(--muted); }

.cat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 12px; text-align: center; color: var(--ink); transition: .15s; text-decoration: none !important; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile span { font-size: 2.2rem; display: block; } .cat-tile b { display: block; margin: 4px 0 2px; } .cat-tile small { color: var(--brand); font-size: .76rem; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2, .section-head h1 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding-top: 30px; margin: 0; }
.step-n { position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Items grid */
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.item-card { padding: 0; overflow: hidden; color: inherit; text-decoration: none !important; transition: .15s; margin: 0; }
.item-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,40,20,.12); }
.thumb { position: relative; aspect-ratio: 4/3; background: var(--brand-ll); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph, .ph-big { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3.4rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--ink); }
.thumb .chip { position: absolute; } .chip-cat { top: 10px; left: 10px; }
.thumb .chip-res, .thumb .chip-given, .thumb .chip-want { top: 10px; right: 10px; }
.chip.static { position: static; background: var(--brand-ll); }
.chip-res { background: var(--warn-l) !important; color: var(--warn); } .chip-given { background: var(--brand-l) !important; color: var(--brand-d); } .chip-want { background: var(--info-l) !important; color: var(--info); }
.status-available { background: var(--brand-l) !important; color: var(--brand-d); } .status-reserved { background: var(--warn-l) !important; color: var(--warn); }
.card-body { padding: 13px 15px 15px; }
.card-body h3 { font-size: 1rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; justify-content: space-between; gap: 6px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; margin-top: 4px; }
.eco { color: var(--brand-d); font-weight: 600; }

/* Bands */
.band { background: linear-gradient(135deg, var(--brand-dd), #14532d 60%, #1e5d36); color: #e8f5ea; padding: 56px 0; margin: 24px 0; }
.band h2 { color: #fff; font-size: 1.7rem; } .band h2 s { opacity: .6; } .band h2 em { color: #86efac; }
.band p { color: #cfe7d4; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.band .two-col { gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; } .ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: #86efac; color: var(--brand-dd); border-radius: 50%; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ticks.dark li::before { background: var(--brand-l); color: var(--brand-d); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 18px; }
.fact b { display: block; font-size: 1.6rem; color: #86efac; font-weight: 800; } .fact span { font-size: .88rem; color: #cfe7d4; }
.facts .tiny { grid-column: 1/-1; color: #9fc7a8; margin: 0; }

.sdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 18px; }
.sdg-card { display: flex; gap: 14px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.sdg-num { background: var(--sdg); color: #fff; font-size: 2rem; font-weight: 800; min-width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sdg-num small { font-size: .6rem; letter-spacing: .1em; font-weight: 700; opacity: .85; }
.sdg-card > div:last-child { padding: 14px 14px 14px 0; } .sdg-card h3 { font-size: .98rem; margin-bottom: 4px; } .sdg-card p { font-size: .87rem; color: var(--muted); margin: 0; }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border: 0; } .rank-list .who { flex: 1; font-weight: 600; } .medal { width: 28px; text-align: center; font-size: 1.2rem; }
.feed { list-style: none; padding: 0; margin: 0; } .feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; } .feed li span { flex: 1; }
.cta-band { background: linear-gradient(120deg, var(--brand), #15803d); color: #fff; border-radius: 20px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; } .cta-band p { margin: 0; color: #dcfce7; }

/* Browse */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.seg a.on { background: var(--brand); color: #fff; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none !important; }
.pill small { color: var(--muted); margin-left: 3px; } .pill.on { background: var(--brand-dd); color: #fff; border-color: var(--brand-dd); } .pill.on small { color: #bbf7d0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; }
.filters input, .filters select { flex: 1; min-width: 150px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); } .pager a.on { background: var(--brand); color: #fff; }
.empty { text-align: center; padding: 44px 20px; }

/* Forms */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
label small, legend small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 .95rem var(--font); padding: 10px 12px; border: 1px solid #cfd8cb; border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; } .check input { margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.av-opt { cursor: pointer; } .av-opt input { position: absolute; opacity: 0; }
.av-opt .avatar { width: 46px; height: 46px; font-size: 25px; transition: .12s; border: 3px solid transparent; }
.av-opt input:checked + .avatar { border-color: var(--brand); transform: scale(1.1); }
.av-opt input:focus-visible + .avatar { outline: 2px solid var(--brand); }
.cat-choose { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-opt input { position: absolute; opacity: 0; }
.cat-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .85rem; text-align: center; }
.cat-opt span b { font-size: 1.8rem; } .cat-opt input:checked + span { border-color: var(--brand); background: var(--brand-ll); }
.drop { display: flex; justify-content: center; padding: 24px; border: 2px dashed #b9c8b4; border-radius: 12px; background: var(--brand-ll); cursor: pointer; font-weight: 400; position: relative; }
.drop.over { border-color: var(--brand); background: var(--brand-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.previews, .photo-edit { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.previews img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.ph-old { font-weight: 400; font-size: .8rem; } .ph-old img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.impact-preview { display: flex; flex-wrap: wrap; gap: 8px 18px; background: var(--brand-ll); border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px; font-size: .92rem; }
.impact-preview > b { width: 100%; color: var(--brand-dd); }

.auth { display: flex; justify-content: center; padding: 44px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; } .auth-card.wide { max-width: 640px; }

/* Item page */
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); }
.item-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.gallery { padding: 10px; }
.main-photo { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f2f5ef; border-radius: 10px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--brand); } .thumbs img { width: 70px; height: 56px; object-fit: cover; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.specs div { background: var(--bg); border-radius: 10px; padding: 10px 12px; } .specs dt { font-size: .76rem; color: var(--muted); } .specs dd { margin: 0; font-weight: 600; }
.sticky { position: sticky; top: 80px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.item-title { font-size: 1.6rem; }
.owner { display: flex; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; text-decoration: none !important; }
.owner span { display: flex; flex-direction: column; }
.impact-box { background: linear-gradient(135deg, var(--brand-ll), var(--water-l)); border-radius: 12px; padding: 14px; margin-bottom: 16px; font-size: .9rem; }
.impact-box div { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.owner-tools { display: flex; gap: 8px; margin-bottom: 16px; }
.side-actions { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; align-items: flex-start; }
.report[open] { width: 100%; } .report .form { margin-top: 10px; }
.tip ul { padding-left: 18px; margin: 8px 0 0; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.req-list li:last-child a { border: 0; } .req-list span:nth-child(2) { flex: 1; }
.req-list.big { padding: 6px 18px; } .req-list.big a { padding: 14px 0; }
.st { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: capitalize; padding: 3px 9px; border-radius: 99px; background: #eef1ec; color: var(--muted); }
.st-pending, .st-reserved, .st-open { background: var(--warn-l); color: var(--warn); }
.st-accepted, .st-available, .st-active { background: var(--info-l); color: var(--info); }
.st-completed, .st-given, .st-resolved { background: var(--brand-l); color: var(--brand-d); }
.st-declined, .st-removed, .st-suspended { background: var(--danger-l); color: var(--danger); }

/* Inbox */
.thread-list { list-style: none; padding: 0; overflow: hidden; }
.thread-list li a { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; align-items: center; }
.thread-list li.unread a { background: var(--brand-ll); } .thread-list li:last-child a { border: 0; }
.tl-thumb { width: 54px; height: 54px; border-radius: 10px; background: var(--brand-ll); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; overflow: hidden; flex-shrink: 0; }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-main { flex: 1; min-width: 0; } .tl-main p { margin: 2px 0 0; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 14px; }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.thanks-form { display: flex; gap: 8px; flex: 1; } .thanks-form input { flex: 1; }
.chat { height: 52vh; min-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #fbfcfa; }
.msg { max-width: 76%; } .msg p { margin: 0; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg small { font-size: .7rem; color: var(--muted); padding: 0 6px; }
.msg.me { align-self: flex-end; text-align: right; } .msg.me p { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.msg.them p { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; max-width: 90%; text-align: center; } .msg.sys p { background: var(--earth-l); color: #5a3e26; font-size: .87rem; border-radius: 10px; }
.composer { display: flex; gap: 10px; align-items: flex-end; } .composer textarea { flex: 1; resize: vertical; }
.notif-list { list-style: none; padding: 0; } .notif-list li { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.notif-list li.unread { background: var(--brand-ll); } .notif-list li > a, .notif-list li > span:nth-child(2) { flex: 1; } .n-ico { font-size: 1.2rem; }

/* Dashboard / profile */
.profile-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-hero h1 { margin-bottom: 4px; }
.level { display: grid; gap: 6px; max-width: 460px; }
.bar { height: 8px; background: #e7ede4; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4ade80); border-radius: 99px; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 6px; }
.stat-card { text-align: center; padding: 16px 10px; } .stat-card b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand-d); } .stat-card span { font-size: .82rem; color: var(--muted); }
.stat-card.water b { color: var(--water); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--brand-d); border-color: var(--brand); } .tabs small { background: var(--bg); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.badge-card { text-align: center; padding: 12px 8px; border-radius: 12px; background: var(--earth-l); }
.badge-card span { font-size: 1.8rem; display: block; } .badge-card b { display: block; font-size: .85rem; } .badge-card small { font-size: .72rem; color: var(--muted); }
.points-list { list-style: none; padding: 0; margin: 0 0 14px; } .points-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); } .points-list b { color: var(--brand); }
.table-wrap { overflow-x: auto; padding: 8px 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border: 0; } .table tr.me td { background: var(--brand-ll); } .table tr.dim td { opacity: .55; }
.mini-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--brand-ll); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
form.inline { display: inline; }

/* Leaderboard */
.me-rank { display: flex; align-items: center; gap: 18px; } .me-rank .big { font-size: 1.5rem; display: block; color: var(--brand-d); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 26px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none !important; width: 150px; text-align: center; }
.pod small { color: var(--muted); }
.pod-block { width: 100%; border-radius: 12px 12px 0 0; display: flex; justify-content: center; padding-top: 10px; font-size: 1.8rem; margin-top: 6px; }
.pod-1 .pod-block { height: 110px; background: linear-gradient(#fde68a, #fbbf24); } .pod-2 .pod-block { height: 80px; background: linear-gradient(#e5e7eb, #cbd5e1); } .pod-3 .pod-block { height: 60px; background: linear-gradient(#fed7aa, #fdba74); }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: center; }
.levels div { background: var(--bg); padding: 12px 6px; border-radius: 12px; } .levels span { font-size: 1.7rem; display: block; } .levels b { display: block; font-size: .85rem; } .levels small { color: var(--muted); font-size: .75rem; }

/* Impact page */
.calc-row { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 6px; }
.calc-row input { accent-color: var(--brand); padding: 0; border: 0; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; text-align: center; }
.calc-out div { background: var(--brand-ll); border-radius: 12px; padding: 12px 6px; } .calc-out b { display: block; font-size: 1.5rem; color: var(--brand-d); } .calc-out span { font-size: .8rem; color: var(--muted); }
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.loop > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 20px; }
.loop span { font-size: 2rem; } .loop b { display: block; color: #fff; margin: 6px 0; } .loop p { font-size: .9rem; margin: 0; }
.hierarchy { list-style: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 0 0; }
.hierarchy li { background: rgba(255,255,255,.1); padding: 9px 16px; border-radius: 8px; text-align: center; font-size: .9rem; }
.hierarchy li:nth-child(1) { width: 100%; max-width: 520px; } .hierarchy li:nth-child(2) { width: 90%; max-width: 470px; } .hierarchy li:nth-child(3) { width: 80%; max-width: 420px; } .hierarchy li:nth-child(4) { width: 70%; max-width: 370px; } .hierarchy li:nth-child(5) { width: 60%; max-width: 320px; }
.hierarchy li.on { background: #86efac; color: var(--brand-dd); font-weight: 600; }
.numbered { padding-left: 20px; } .numbered li { margin-bottom: 8px; }

/* Admin */
.sys-status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: .84rem; }
.sys-status span { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.sys-status .ok { color: var(--brand-d); border-color: #bbf7d0; } .sys-status .warn { color: var(--warn); border-color: #fde68a; background: var(--warn-l); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpi { padding: 16px; margin-bottom: 0; } .kpi span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi b { display: block; font-size: 1.6rem; font-weight: 800; margin: 2px 0; } .kpi small { color: var(--muted); font-size: .78rem; } .kpi.eco b { color: var(--brand-d); }
.ai-card { margin-top: 18px; background: linear-gradient(135deg, #fff 60%, #f3e8ff); border-color: #e9d5ff; }
.ai-summary { font-size: 1.05rem; font-weight: 500; margin-top: 10px; }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.insight { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: 14px; font-size: .9rem; }
.insight p { margin: 6px 0 0; color: #3d4f40; } .insight .act { color: var(--brand-d); font-weight: 600; }
.ins-positive { border-left-color: var(--brand); } .ins-warning { border-left-color: var(--warn); } .ins-opportunity { border-left-color: var(--s4); } .ins-sdg { border-left-color: var(--s2); }
.ai-loading { display: flex; gap: 6px; align-items: center; color: var(--muted); padding: 20px 0; }
.ai-loading span { width: 8px; height: 8px; background: var(--s4); border-radius: 50%; animation: pulse 1s infinite alternate; }
.ai-loading span:nth-child(2) { animation-delay: .2s; } .ai-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .2; transform: scale(.6); } }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.charts .card { margin: 0; } .charts { margin-bottom: 18px; }
.bars { list-style: none; padding: 0; margin: 0; } .bars li { display: grid; grid-template-columns: 120px 1fr 30px; gap: 10px; align-items: center; padding: 6px 0; font-size: .88rem; }

/* Footer */
.footer { background: #0f2416; color: #b8cdbd; margin-top: 40px; padding: 40px 0 20px; }
.footer .brand { color: #fff; } .footer a { color: #d6e8da; display: block; margin-bottom: 6px; font-size: .9rem; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; } .footer .muted { color: #8ea893; font-size: .9rem; margin-top: 10px; }
.sdg-chips { display: flex; gap: 6px; flex-wrap: wrap; } .sdg-chips span { width: 36px; height: 36px; border-radius: 6px; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.foot-bottom { border-top: 1px solid #234030; margin-top: 26px; padding-top: 16px; font-size: .82rem; }

/* Responsive */
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .links.open { display: flex; } .links .btn { margin: 6px 0; } .menu { margin: 6px 0; } .menu-pop { position: static; box-shadow: none; }
  .icon-link .badge { position: static; margin-left: 6px; }
  .hero-grid, .two-col, .item-layout, .charts, .band .two-col { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: repeat(3, 1fr); } .stat-row { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; } .loop { grid-template-columns: 1fr; } .sticky { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 15px; } .card { padding: 16px; }
  .row2, .row3 { grid-template-columns: 1fr; } .cat-choose { grid-template-columns: repeat(3, 1fr); }
  .cat-row { grid-template-columns: repeat(2, 1fr); } .stat-row { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; }
  .sdg-grid { grid-template-columns: 1fr; } .grid-items { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px; } .meta.small .eco { display: none; }
  .levels { grid-template-columns: repeat(3, 1fr); } .podium .pod { width: 30%; } .specs { grid-template-columns: 1fr; }
  .msg { max-width: 88%; } .foot-grid { grid-template-columns: 1fr; } .calc-row { grid-template-columns: 100px 1fr 26px; }
  .me-rank { flex-wrap: wrap; }
}

/* Google admin sign-in */
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { gap: 10px; }

.legal h2 { margin-top: 18px; } .legal h2:first-child { margin-top: 0; } .legal ul { padding-left: 20px; } .legal li { margin-bottom: 6px; }
