:root {
  --bg: #050607;
  --panel: #101316;
  --panel-strong: #171b20;
  --surface: #f6f8f5;
  --text: #f7fbf6;
  --text-dark: #111716;
  --muted: #9da8a4;
  --muted-dark: #53615d;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(17, 23, 22, 0.12);
  --green: #78f26d;
  --green-dark: #298d42;
  --violet: #8c6cff;
  --warning: #f0b44d;
  --danger: #ff6464;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

body.is-authenticated .app-shell {
  width: min(1320px, calc(100% - 32px));
}

html.has-gutty-session .hero,
html.has-gutty-session .exchange-strip,
html.has-gutty-session .market-preview,
html.has-gutty-session #appGate,
body.is-authenticated .hero,
body.is-authenticated .exchange-strip,
body.is-authenticated .market-preview,
body.is-authenticated #appGate {
  display: none !important;
}

html.has-gutty-session #appContent[hidden] {
  display: block !important;
}

html.has-gutty-session .app-shell {
  width: min(1320px, calc(100% - 32px));
}

.top-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.9);
  backdrop-filter: blur(18px);
}

.brand-row,
.hero-actions,
.nav-links,
.score-row,
.section-head,
.community-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: #08100b;
  font-weight: 900;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a,
.nav-action,
.hero-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.nav-links a {
  padding: 0 10px;
}

.nav-action,
.hero-button {
  padding: 0 16px;
  background: var(--text);
  color: #050607;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
  min-height: 560px;
  margin-bottom: 18px;
}

.hero-copy,
.signup-panel,
.exchange-strip,
.market-preview,
.tool-panel,
.score-panel,
.metric-strip,
.locked-message,
.privacy-section article {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: 56px;
  background:
    linear-gradient(130deg, rgba(120, 242, 109, 0.14), transparent 34%),
    linear-gradient(180deg, #12161a, #080a0c);
}

.signup-panel {
  position: sticky;
  top: 86px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  color: var(--text-dark);
}

.signup-panel p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.55;
}

.eyebrow,
.kicker,
.label {
  margin: 0;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signup-panel .kicker,
.signup-panel .label,
.metric-block .label {
  color: var(--green-dark);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 16px 0 18px;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.lede {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions span {
  color: var(--muted);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.exchange-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--line);
}

.exchange-strip article {
  min-height: 154px;
  padding: 22px;
  background: var(--panel);
}

.exchange-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 2rem;
}

.exchange-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.market-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--line);
}

.signal-board {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--panel);
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
}

.signal-row span,
.signal-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.signal-row strong {
  color: var(--text);
}

.signal-row.positive em {
  color: var(--green);
}

.signal-row.warning em {
  color: var(--warning);
}

.signal-row.urgent em {
  color: var(--danger);
}

.market-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.locked-message {
  margin-bottom: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(140, 108, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.locked-message p {
  margin-bottom: 0;
  color: var(--muted);
}

.gate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.gate-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0a0d10;
  font-size: 0.88rem;
  font-weight: 900;
}

.app-content.is-locked {
  display: none;
}

.top-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.main-grid,
.lower-grid,
.community-grid {
  grid-template-columns: 1fr 1fr;
}

.score-panel,
.metric-strip,
.tool-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-row {
  align-items: baseline;
  margin: 14px 0;
}

.score-row strong {
  color: var(--green);
  font-size: 4rem;
  line-height: 1;
}

.score-row span,
.score-panel p,
.tool-panel p,
.recent-item p,
.community-card p,
.care-note,
.empty {
  color: var(--muted);
  line-height: 1.58;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.metric-block {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 16, 0.92);
}

.metric-block strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 2.1rem;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gut-form {
  display: grid;
  gap: 14px;
}


.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hero-trust-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-trust-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.hero-trust-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.signup-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.signup-notes div {
  padding: 8px 10px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(17, 23, 22, 0.04);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.gate-layout h2 {
  margin-top: 10px;
}

.dashboard-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(120, 242, 109, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

body.is-authenticated .dashboard-banner {
  margin-top: 0;
}

.dashboard-banner h2 {
  margin-top: 10px;
  font-size: 2rem;
}

.dashboard-banner p:last-child {
  margin-bottom: 0;
}

.dashboard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-steps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.dashboard-steps a:hover {
  border-color: rgba(120, 242, 109, 0.5);
  background: rgba(120, 242, 109, 0.08);
}

.dashboard-account {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(120, 242, 109, 0.24);
  border-radius: 8px;
  background: rgba(120, 242, 109, 0.06);
}

.dashboard-account strong,
.dashboard-account span {
  overflow-wrap: anywhere;
}

.dashboard-account strong {
  color: var(--text);
  font-size: 1.1rem;
}

.dashboard-account .text-button {
  color: var(--green);
}

.form-row,
.slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-dark);
  font: inherit;
  font-weight: 650;
  padding: 12px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 16, 0.88);
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(120, 242, 109, 0.2);
  border-color: var(--green);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  color: var(--green);
  font-weight: 900;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

fieldset input {
  width: auto;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: #071009;
  background: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

button:hover,
.nav-action:hover,
.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(120, 242, 109, 0.18);
}

.primary {
  background: var(--green);
}

.secondary {
  background: var(--text);
  color: #050607;
}

.google-auth-block {
  margin: 20px 0 4px;
}

.google-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8dfe0;
  background: #ffffff;
  color: #101416;
}

.google-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d8dfe0;
  border-radius: 50%;
  font-weight: 900;
}

.google-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.backup-signup[hidden] {
  display: none;
}

.signed-in-panel {
  display: grid;
  gap: 7px;
  margin: 20px 0 4px;
  padding: 16px;
  border: 1px solid rgba(41, 141, 66, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(41, 141, 66, 0.12), rgba(41, 141, 66, 0.05));
  color: #101416;
}

.signed-in-panel[hidden] {
  display: none;
}

.signed-in-label {
  color: #297d42;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signed-in-panel strong,
.signed-in-panel span {
  overflow-wrap: anywhere;
}

.text-button {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #297d42;
  font-size: 0.92rem;
  font-weight: 900;
}

.text-button:hover {
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

.danger {
  margin-top: 14px;
  background: var(--danger);
  color: #180707;
}

.status-pill,
.flag-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(120, 242, 109, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.signup-panel .status-pill {
  border-color: var(--line-dark);
  background: rgba(41, 141, 66, 0.1);
  color: var(--muted-dark);
}

.next-step-box,
.care-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
}

.next-step-box p {
  margin: 6px 0 0;
}

.action-plan {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(120, 242, 109, 0.26);
  border-radius: 8px;
  background: rgba(120, 242, 109, 0.06);
}

.action-plan h3 {
  margin-bottom: 10px;
}

.action-plan ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.action-plan li + li {
  margin-top: 7px;
}

.pattern-list,
.recent-list,
.community-list {
  display: grid;
  gap: 12px;
}

.pattern-card,
.recent-item,
.community-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
}

.pattern-card.good {
  border-left: 6px solid var(--green);
}

.pattern-card.info {
  border-left: 6px solid var(--violet);
}

.pattern-card.warning {
  border-left: 6px solid var(--warning);
}

.pattern-card.urgent {
  border-left: 6px solid var(--danger);
}

.recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.recent-item span,
.community-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.community-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.launch-card p {
  font-size: 1.03rem;
}

.local-vault {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.local-vault div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
}

.local-vault span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.local-vault strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.import-drop-zone {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 16px;
  border: 1px dashed rgba(157, 241, 132, 0.5);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(157, 241, 132, 0.05);
  cursor: pointer;
}

.import-drop-zone strong {
  color: var(--green);
}

.import-drop-zone.is-dragging {
  background: rgba(157, 241, 132, 0.13);
  border-color: var(--green);
}

.import-audit {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  margin: 12px 0 2px;
  padding: 14px;
  border: 1px solid rgba(157, 241, 132, 0.34);
  border-radius: 8px;
  background: rgba(157, 241, 132, 0.06);
}

.import-audit[hidden] {
  display: none;
}

.import-audit strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.import-audit p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.audit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.audit-metrics span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #0a0d10;
}

.audit-metrics b {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.control-grid .danger {
  margin-top: 0;
}

.privacy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.privacy-section article {
  padding: 24px;
  background: var(--panel);
}

.privacy-section h2 {
  margin-top: 10px;
}

.privacy-section p {
  color: var(--muted);
  line-height: 1.58;
}


.accuracy-panel,
.trigger-list,
.trend-panel,
.heatmap-panel {
  margin-top: 18px;
}

.accuracy-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(157, 241, 132, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(157, 241, 132, 0.1), rgba(10, 13, 16, 0.96));
}

.accuracy-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.accuracy-head strong {
  color: var(--green);
  text-align: right;
}

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

.accuracy-grid span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.accuracy-grid b {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

.accuracy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.insight-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0d10;
}

.insight-box p {
  margin: 0;
}

.trigger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.trigger-row strong {
  color: var(--green);
}

.trigger-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.bristol-bars {
  display: grid;
  gap: 8px;
}

.bristol-bar {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.bristol-bar i {
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--green) calc(var(--bar) * 100%), rgba(255, 255, 255, 0.08) 0);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 6px;
}

.heat-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.heat-cell.level-1 {
  background: rgba(120, 242, 109, 0.22);
}

.heat-cell.level-2 {
  background: rgba(120, 242, 109, 0.48);
}

.heat-cell.level-3 {
  background: rgba(120, 242, 109, 0.78);
}

.heat-cell.has-rough {
  border-color: var(--warning);
}

.heat-cell.has-alert {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 2px rgba(255, 100, 100, 0.45);
}

.donation-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.donation-copy,
.donation-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.donation-copy {
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(140, 108, 255, 0.18), transparent 42%),
    var(--panel);
}

.donation-copy h2 {
  margin-top: 12px;
  font-size: 3rem;
  line-height: 1;
}

.donation-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.amount-grid,
.quick-log {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-log {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amount-grid button,
.quick-log button {
  color: var(--text);
  background: #0a0d10;
  border: 1px solid var(--line);
}

.amount-grid button.is-selected,
.quick-log button.is-selected {
  color: #071009;
  background: var(--green);
}

@media (max-width: 980px) {
  .top-nav,
  .hero,
  .hero-trust-grid,
  .exchange-strip,
  .market-preview,
  .gate-layout,
  .dashboard-banner,
  .donation-section,
  .privacy-section,
  .top-grid,
  .main-grid,
  .lower-grid,
  .community-grid,
  .form-row,
  .slider-grid,
  .metric-strip,
  fieldset {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .app-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .signup-panel,
  .score-panel,
  .metric-strip,
  .tool-panel,
  .donation-copy,
  .donation-card,
  .privacy-section article {
    padding: 18px;
  }

  .market-preview img {
    min-height: 220px;
  }

  .signup-panel {
    position: static;
  }

  .dashboard-banner h2 {
    font-size: 1.6rem;
  }

  .section-head,
  .recent-item,
  .community-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .local-vault {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }

  .top-nav {
    grid-template-columns: 1fr auto;
  }

  .score-row strong {
    font-size: 3.2rem;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .amount-grid,
  .quick-log,
  .control-grid,
  .dashboard-steps,
  .gate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .trigger-row,
  .bristol-bar {
    grid-template-columns: 1fr;
  }

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