:root {
  color-scheme: dark;
  --bg: #08090c;
  --surface: rgba(16, 18, 24, 0.82);
  --surface-2: rgba(12, 14, 18, 0.95);
  --line: rgba(255, 255, 255, 0.07);
  --line-bright: rgba(255, 255, 255, 0.12);
  --text: #f4f6fa;
  --text-soft: #a8b0c0;
  --sand: #d4a574;
  --sand-glow: rgba(212, 165, 116, 0.35);
  --sand-dim: rgba(212, 165, 116, 0.12);
  --mint: #6ecf9a;
  --rose: #e8837c;
  --r: 6px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--sand);
  background: var(--sand-dim);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

a { color: var(--sand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.22), transparent 70%);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  bottom: 5%;
  right: -6%;
  background: radial-gradient(circle, rgba(110, 207, 154, 0.08), transparent 70%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Topbar */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 1.25rem 0;
}

.topbar-petition {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--r);
  background: rgba(255, 204, 0, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.topbar-petition:hover {
  border-color: rgba(255, 204, 0, 0.55);
  background: rgba(255, 204, 0, 0.14);
}

.topbar-petition-label {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFCC00;
}

.topbar-petition-text {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  color: #dce2ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-petition-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFCC00;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-petition {
    grid-column: 1 / -1;
  }

  .topbar-petition-text {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .topbar-petition-text {
    font-size: 0.7rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-name span { color: var(--sand); }

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 0.25rem 0 1.75rem;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: #FFCC00;
}

.local-chips {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.local-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(110, 207, 154, 0.35);
  background: rgba(110, 207, 154, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.local-chip::before {
  content: "✓ ";
  color: var(--mint);
}

.fact-local {
  border-color: rgba(110, 207, 154, 0.35);
  background: linear-gradient(160deg, rgba(110, 207, 154, 0.12), var(--surface));
}

.fact-local h2 {
  color: var(--mint);
}

.app-local-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.78rem;
  color: var(--mint);
  border-top: 1px solid var(--line);
  background: rgba(110, 207, 154, 0.05);
}

.app-local-note svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.pill-protest {
  color: #FFCC00;
  border-color: rgba(255, 204, 0, 0.35);
  background: rgba(0, 51, 153, 0.35);
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.pill-local {
  color: var(--mint);
  border-color: rgba(110, 207, 154, 0.4);
  background: rgba(110, 207, 154, 0.1);
}

.pill-petition {
  color: #0a1028;
  border-color: #e6b800;
  background: #FFCC00;
  text-decoration: none;
  transition: background 0.15s;
}

.pill-petition:hover {
  background: #ffd633;
}

.petition-jump {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 204, 0, 0.45);
  border-radius: var(--r);
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.14), rgba(0, 51, 153, 0.2));
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.petition-jump:hover {
  border-color: #FFCC00;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.22), rgba(0, 51, 153, 0.28));
}

.petition-jump-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFCC00;
  border: 1px solid rgba(255, 204, 0, 0.5);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.petition-jump-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 12rem;
}

.petition-jump-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFCC00;
  font-variant-numeric: tabular-nums;
}

.foot-petition {
  margin-top: 0.55rem !important;
}

.foot-petition a {
  color: #FFCC00;
  font-weight: 600;
  text-decoration: none;
}

.foot-petition a:hover {
  text-decoration: underline;
}

.protest-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(0, 51, 153, 0.45), rgba(0, 51, 153, 0.15));
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--r);
}

.protest-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: #d8deea;
  line-height: 1.55;
}

.protest-banner strong {
  color: #FFCC00;
}

.fact-protest {
  border-color: rgba(255, 204, 0, 0.35);
  background: linear-gradient(160deg, rgba(0, 51, 153, 0.35), var(--surface));
}

.fact-protest h2 {
  color: #FFCC00;
}

.hero-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* App card */
.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.chrome-left {
  display: flex;
  gap: 0.25rem;
}

.tab {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.chrome-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sand);
  border: 1px dashed var(--line-bright);
  border-radius: var(--r);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-btn:hover {
  background: var(--sand-dim);
}

.file-btn input { display: none; }

.strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.strength select {
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  padding: 0.3rem 0.5rem;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 380px;
}

@media (max-width: 860px) {
  .app-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.editor-stack {
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 340px;
}

@media (max-width: 860px) {
  .editor-stack { border-right: none; border-bottom: 1px solid var(--line); }
}

.pane {
  display: none;
  height: 100%;
}

.pane.active { display: block; }

textarea {
  width: 100%;
  height: 100%;
  min-height: 340px;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 1.1rem 1.15rem;
  font: 0.88rem/1.65 var(--mono);
}

textarea:focus { outline: none; }

textarea::placeholder { color: #5c6578; }

/* Analysis panel */
.analysis {
  padding: 1.1rem;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.analysis-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0.5rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.ring-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--line-bright);
  opacity: 0.6;
}

.analysis-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gauge-wrap {
  text-align: center;
}

.gauge {
  --score: 0;
  width: 112px;
  height: 112px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--gauge-color, var(--sand)) calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.06) 0
  );
  display: grid;
  place-items: center;
  transition: background 0.5s ease;
  box-shadow: 0 0 32px var(--gauge-glow, transparent);
}

.gauge-inner {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gauge-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.gauge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.verdict {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.verdict.yes { color: var(--rose); }
.verdict.no { color: var(--mint); }

.analysis-petition-prompt {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.analysis-petition-prompt a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
}

.analysis-petition-prompt a:hover {
  color: var(--sand);
  text-decoration-color: var(--sand);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.55rem 0.65rem;
}

.mini-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.mini-stat strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 0.1rem;
  letter-spacing: -0.02em;
}

.mini-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.signal-list {
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.signal-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.signal-list li {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-left: 2px solid var(--sand);
}

.signal-list li strong {
  color: var(--sand);
  font-weight: 600;
}

.signals-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0.5rem;
}

.edits {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.edits summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.edits pre {
  margin: 0.5rem 0 0;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--r);
  max-height: 100px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: pre-wrap;
}

/* Actions */
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r);
  padding: 0.55rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn.primary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-bright);
}

.btn.primary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.accent {
  background: var(--sand);
  color: #1a1208;
  box-shadow: 0 4px 20px var(--sand-glow);
}

.btn.accent:hover {
  background: #e0b48a;
}

.btn.accent-outline {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--sand);
}

.btn.accent-outline:hover {
  background: var(--sand-dim);
}

.btn.accent-outline .beta {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sand-dim);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}

.progress-wrap {
  padding: 0 0.85rem 0.85rem;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sand);
  transition: width 0.25s ease;
}

.progress-msg {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.btn.ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
  margin-left: auto;
}

@media (max-width: 560px) {
  .btn.ghost { margin-left: 0; width: 100%; justify-content: center; }
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

.fact {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
}

.fact h2 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.fact p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Petition */
.petition {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem 1.25rem;
  background: linear-gradient(160deg, rgba(0, 51, 153, 0.42), rgba(8, 9, 12, 0.9));
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: calc(var(--r) + 2px);
}

.petition-head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.petition-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFCC00;
  text-transform: uppercase;
}

.petition-law {
  margin: 0 0 1rem;
  max-width: 42ch;
  margin-inline: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #dce2ee;
}

.petition-law strong {
  color: #FFCC00;
}

.petition-act-callout {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #dce2ee;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.2);
}

.act-link {
  color: #FFCC00;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.act-link:hover {
  color: #ffd633;
}

.petition-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.25);
}

.petition-count {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.petition-count-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.petition-summary {
  max-width: 68ch;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.28);
}

.petition-summary h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFCC00;
}

.petition-summary ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.petition-summary li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d0d7e4;
}

.petition-summary strong {
  color: #FFCC00;
}

.petition-body {
  max-width: 62ch;
  margin: 0 auto 1.15rem;
}

.petition-body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #dce2ee;
}

.petition-body strong {
  color: #FFCC00;
}

.petition-close {
  margin-bottom: 0 !important;
  color: var(--text) !important;
}

.petition-actions {
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.petition-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.petition-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field span em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.85;
}

.field span a {
  color: #FFCC00;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.45);
}

.petition-presets {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.2);
}

.petition-presets legend {
  padding: 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFCC00;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.preset-option {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.84rem;
  font-weight: 400;
  color: #dce2ee;
  cursor: pointer;
}

.preset-option input {
  margin-top: 0.2rem;
  accent-color: #FFCC00;
}

.preset-option span {
  line-height: 1.45;
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-soft);
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 0.15rem;
  accent-color: #FFCC00;
}

.petition-form .petition-sign {
  width: 100%;
  margin-top: 0.25rem;
  text-align: center;
}

.petition-comments-link {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.78rem;
}

.petition-comments-link a {
  color: #FFCC00;
  text-decoration: none;
}

.petition-comments-link a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .petition-form-grid {
    grid-template-columns: 1fr;
  }
}

.petition-sign {
  background: #FFCC00;
  color: #0a1028;
  border: 1px solid #e6b800;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(255, 204, 0, 0.25);
}

.petition-sign:hover {
  background: #ffd633;
}

.petition-sign:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.petition-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.petition-note.error {
  color: var(--rose);
}

/* Footer */
.foot {
  margin-top: 1.5rem;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  max-width: 52ch;
  margin-inline: auto;
}
