/* style.css — extracted from base.html and home.html inline styles.
   This is a faithful extraction: it preserves the existing soft-launch look
   exactly. The visual identity pass (typography, real aesthetic direction) is
   a separate future step; this file is the baseline to refactor against. */

/* ============================================================
   THEME TOKENS
   All color/surface/shape values are variables. Themes override them via
   [data-theme] on <html>. Existing rules reference --fg/--fg-dim/--bg/
   --border/--accent (kept), plus new semantic tokens for polish.
   ============================================================ */
:root,
:root[data-theme="light"] {
  --fg: #16201a;
  --fg-dim: #5d6b63;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #f0f2ef;
  --border: #e2e6e1;
  --border-strong: #cdd4cc;
  --accent: #1a4d2e;
  --accent-hover: #143d24;
  --accent-contrast: #ffffff;
  --success: #1a7f4b;
  --danger: #a32a2a;
  --shadow: 0 1px 2px rgba(20, 35, 25, 0.04), 0 2px 8px rgba(20, 35, 25, 0.05);
  --shadow-hover:
    0 2px 6px rgba(20, 35, 25, 0.08), 0 8px 24px rgba(20, 35, 25, 0.09);
  --radius: 10px;
  --radius-sm: 7px;
}

:root[data-theme="dark"] {
  --fg: #e6ebe6;
  --fg-dim: #9aa79f;
  --bg: #0f1411;
  --surface: #161c18;
  --surface-2: #1d2520;
  --border: #28312b;
  --border-strong: #3a463f;
  --accent: #4eb87f;
  --accent-hover: #5fc88f;
  --accent-contrast: #0f1411;
  --success: #4eb87f;
  --danger: #e07a7a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 7px;
}

:root[data-theme="sepia"] {
  --fg: #3b2f23;
  --fg-dim: #7a6a55;
  --bg: #f4ecdd;
  --surface: #fbf5ea;
  --surface-2: #efe5d2;
  --border: #e0d3bc;
  --border-strong: #cdbb9d;
  --accent: #8a5a2b;
  --accent-hover: #744a22;
  --accent-contrast: #fbf5ea;
  --success: #6d7a2b;
  --danger: #a8442a;
  --shadow: 0 1px 2px rgba(80, 60, 30, 0.06), 0 2px 8px rgba(80, 60, 30, 0.07);
  --shadow-hover:
    0 2px 6px rgba(80, 60, 30, 0.1), 0 8px 24px rgba(80, 60, 30, 0.12);
  --radius: 10px;
  --radius-sm: 7px;
}

:root[data-theme="contrast"] {
  --fg: #000000;
  --fg-dim: #1a1a1a;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --border: #000000;
  --border-strong: #000000;
  --accent: #0026d4;
  --accent-hover: #001a99;
  --accent-contrast: #ffffff;
  --success: #006622;
  --danger: #b30000;
  --shadow: none;
  --shadow-hover: none;
  --radius: 4px;
  --radius-sm: 3px;
}

html {
  /* honor OS preference when the user hasn't picked (no-persistence default) */
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

/* ---- header / footer ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
header h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}
header nav a {
  color: var(--fg-dim);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}
header nav a:hover {
  color: var(--accent);
}
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.8rem;
}

/* ---- shared bits ---- */
.addr {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85em;
  color: var(--fg-dim);
}

/* ---- home: list header ---- */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}
.list-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.list-head p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.85rem;
}

/* ---- status banner ---- */
.status {
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  display: none;
  font-size: 0.85rem;
}

/* ---- explainer placeholder ---- */
.explainer {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
}
.explainer p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

/* ---- search ---- */
.search-wrap {
  margin-bottom: 1rem;
}
.search-wrap input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: ui-monospace, monospace;
}

/* ---- empty state ---- */
.empty {
  padding: 2rem;
  text-align: center;
  color: var(--fg-dim);
  border: 1px dashed var(--border);
  border-radius: 4px;
}
.empty a {
  color: var(--accent);
}

/* ---- pool cards ---- */
.pool-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.pool-card .card-body {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.pool-card:hover .card-body {
  border-color: var(--accent);
}
.pool-card .card-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-card .card-title .mono {
  font-family: ui-monospace, monospace;
}
.pool-card .card-meta {
  color: var(--fg-dim);
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.pool-card .card-addr {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ---- pagination ---- */
.pagination {
  display: none;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.pagination button {
  padding: 0.4rem 0.8rem;
  background: white;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
}
.pagination .page-info {
  color: var(--fg-dim);
}

/* ---- no results ---- */
.no-results {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: var(--fg-dim);
  border: 1px dashed var(--border);
  border-radius: 4px;
  margin-top: 1rem;
}
/* ===== Append to style.css — pool detail page ===== */

.back-link {
  margin-bottom: 1.5rem;
}
.back-link a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link a:hover {
  color: var(--accent);
}

.pool-head {
  margin-bottom: 1.5rem;
}
.pool-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.state-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: #f0f0f0;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* stats */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.stat-num {
  font-size: 1.4rem;
  font-weight: 500;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.token-note {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}
.token-note .addr {
  display: block;
  margin-top: 0.2rem;
}

/* sections */
.rules,
.list-section,
.actions {
  margin-bottom: 2rem;
}
.rules h3,
.list-section h3,
.actions h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* key-value lists */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
.kv dt {
  color: var(--fg-dim);
}
.kv dd {
  margin: 0;
}

/* members + claims */
.member-row,
.claim-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.claim-head {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.tag {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85em;
}
.muted {
  color: var(--fg-dim);
}
.small {
  font-size: 0.85rem;
}

/* action blocks */
.action-block {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.action-block h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.action-block label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 0.25rem;
}
.action-block input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.action-block button,
.confirm-actions button {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}
.action-block button:disabled,
.confirm-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* confirmation panel — visually distinct so it reads as a decision point */
.confirm-panel {
  padding: 1rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 1rem;
  background: #f7faf8;
}
.confirm-panel h4 {
  margin: 0 0 0.75rem;
}
.confirm-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.confirm-actions button:last-child {
  background: white;
  color: var(--fg);
  border: 1px solid var(--border);
}

/* status sink */
.status {
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  display: none;
  font-size: 0.85rem;
}

/* ===== detail page: gating + proposals ===== */

.you-banner {
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  background: #f0f4f8;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.vote-actions,
.disburse-action {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.propose-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.propose-row input,
.propose-row select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}
.propose-row button {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* vote buttons distinct from primary actions: one affirm, one deny */
.vote-claim-btn[data-support="true"] {
  background: var(--accent);
  color: white;
}
.vote-claim-btn[data-support="false"] {
  background: white;
  color: var(--fg);
  border: 1px solid var(--border);
}
.vote-claim-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.disburse-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ===== Append to style.css — create pool page ===== */

.create-head {
  margin-bottom: 1.5rem;
}
.create-head h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.create-head p {
  color: var(--fg-dim);
  margin: 0;
}

/* tabs */
.create-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.create-tabs button {
  padding: 0.6rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-dim);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: -1px;
}
.create-tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* the form: consistent vertical rhythm */
#create-form {
  display: grid;
  gap: 1.5rem;
}

/* fieldsets become clean cards */
#create-form fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 0;
}
#create-form legend {
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

/* labels + inputs: uniform */
#create-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
#create-form label:last-child {
  margin-bottom: 0;
}
#create-form label > div:first-child,
#create-form .field-label {
  margin-bottom: 0.35rem;
  color: var(--fg-dim);
}
#create-form input[type="text"],
#create-form input[type="number"],
#create-form select,
#create-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg, #fff);
  color: var(--fg);
  box-sizing: border-box;
}
#create-form input:focus,
#create-form select:focus,
#create-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
#create-form textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  resize: vertical;
}

/* two-column rows for paired fields (min/max etc.) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* template cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (max-width: 560px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}
.template-card {
  display: block;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.template-card:hover {
  border-color: var(--accent);
}
.template-card input {
  width: auto;
  margin-right: 0.4rem;
}

/* the prominent create action region — centered, explainer above */
.create-action {
  margin: 2rem 0 1rem;
  text-align: center;
}
.create-explainer {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.create-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
}
.create-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* confirm panel reused from detail styles (.confirm-panel) */

/* ============================================================
   POLISH LAYER (appended) — refined surfaces, type, focus, motion.
   Uses tokens only, so it adapts to every theme. No webfonts (speed).
   ============================================================ */

/* smoother theme transitions (cheap: only color-ish props) */
body,
.pool-card,
.confirm-panel,
.action-block,
.stat,
.rules,
.list-section,
input,
select,
button,
.state-badge,
.token-note {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

/* typographic rhythm */
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}
h4 {
  font-size: 1rem;
}

/* cards get real surface + shadow + lift on hover */
.pool-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.pool-card:hover {
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.card-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.card-meta {
  color: var(--fg-dim);
}

/* stat tiles */
.stat {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-num {
  font-weight: 600;
}

/* grouped sections as soft panels */
.rules,
.list-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

/* buttons: solid accent primary, with hover/active/focus */
button,
.create-btn {
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
button:focus-visible,
.create-btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.create-btn,
#submit-btn,
#cc-confirm,
#jc-confirm,
#clc-confirm,
#dc-confirm,
#vote-confirm-btn {
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 1.1rem;
}
.create-btn:hover,
#submit-btn:hover,
#cc-confirm:hover,
#jc-confirm:hover,
#clc-confirm:hover,
#dc-confirm:hover,
#vote-confirm-btn:hover {
  background: var(--accent-hover);
}

/* secondary / cancel buttons read quieter */
#cc-cancel,
#jc-cancel,
#clc-cancel,
#dc-cancel,
#vote-cancel-btn,
#create-cancel-btn {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  padding: 0.6rem 1.1rem;
}

/* vote/resolve buttons semantic color */
.vote-claim-btn[data-support="true"],
.vote-poolchange-btn[data-support="true"],
.vote-yield-btn[data-support="true"] {
  color: var(--success);
  border-color: var(--border-strong);
  background: var(--surface);
}
.vote-claim-btn[data-support="false"],
.vote-poolchange-btn[data-support="false"],
.vote-yield-btn[data-support="false"] {
  color: var(--danger);
  border-color: var(--border-strong);
  background: var(--surface);
}
.resolve-btn,
.resolve-claim-btn,
.resolve-poolchange-btn,
.resolve-yield-btn {
  background: var(--accent);
  color: var(--accent-contrast);
}
.vote-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vote-actions button {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* inputs */
input,
select,
textarea {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* confirm panels: elevated */
.confirm-panel {
  background: var(--surface);
  border: 1px solid var(--accent) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* state badge as a pill */
.state-badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* header / footer refinement */
header {
  align-items: baseline;
}
header h1 a {
  letter-spacing: -0.02em;
}
header nav a {
  font-weight: 500;
}

/* home landing */
.home-hero {
  text-align: center;
  margin: 2.5rem 0 1rem;
}
.home-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.home-tagline {
  color: var(--fg-dim);
  font-size: 1.05rem;
}
.explainer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.home-browse {
  text-align: center;
  margin-top: 1rem;
}
.home-browse a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.home-browse a:hover {
  text-decoration: underline;
}

/* ---- theme picker (in header) ---- */
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
}
.theme-picker select {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg-dim);
  border: 1px solid var(--border);
  cursor: pointer;
}

/* footer with theme picker: factory info left, picker right, wraps on narrow */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
footer .theme-picker {
  margin-left: 0;
}

.share-btn {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.5rem;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  margin: 0.75rem 0 1rem;
  max-width: 360px;
}
.share-url-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.35rem 0 0.9rem;
}
.share-url-row input {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
}
.share-url-row button {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.share-url-row button:hover {
  background: var(--accent-hover);
}
.share-qr {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.share-qr svg {
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== Append to style.css — deposit-token picker (create page) ===== */

/* wrapper anchors the absolutely-positioned suggestions dropdown */
.token-picker {
  position: relative;
}

/* suggestions float over the form and scroll if the list is long */
.token-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 0.25rem;
}

/* each suggestion is a full-width, reset button */
.token-option {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fg);
  font: inherit;
}
.token-option:hover {
  background: var(--surface-2);
}
.token-sym {
  font-weight: 600;
  flex: 0 0 auto;
}
.token-name {
  color: var(--fg-dim);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* on-chain confirmation echo under the input (symbol read live) */
.token-echo {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: ui-monospace, SFMono-Regular, monospace;
  word-break: break-all;
}
.token-echo.ok {
  color: var(--success);
}
.token-echo.warn {
  color: var(--danger);
}
.gov-count {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 0.45em;
  margin-left: 0.4em;
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 0.85;
}
.gov-empty {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 10px;
}
.gov-empty-title {
  font-weight: 600;
}
