:root {
  color-scheme: light;
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --green: var(--brand-green);
  --line: var(--brand-line);
  --paper: var(--brand-paper);
  --accent: var(--brand-accent);
  font-family: var(--brand-font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
.account-balance {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0.5rem 0;
}
.account-card {
  position: relative;
}
.account-card > h3 {
  padding-right: 2.5rem;
}
.account-card > .pill {
  max-width: calc(100% - 2.5rem);
}
.card > .account-actions {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}
.account-actions > summary {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  line-height: 1;
  list-style: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
.account-actions > summary::-webkit-details-marker {
  display: none;
}
.account-actions > summary:hover {
  background: var(--line);
}
.account-actions > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.account-actions > button {
  position: absolute;
  right: 0;
  top: 2.5rem;
  min-width: 7rem;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px #00000012;
}
.setup-steps {
  padding-left: 1.5rem;
}
.setup-steps > li {
  padding: 0.6rem 0 1.2rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.setup-steps > li:last-child {
  border-bottom: 0;
}
.setup-steps h3 {
  margin-bottom: 0.3rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
button:hover {
  background: #eaf3ed;
  border-color: #abc6b7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #104c39;
  color: white;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #5c9be6;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.55rem;
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
  font-weight: 650;
}
h2 {
  font-size: 1.13rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
}
small,
.muted,
.help-note {
  color: var(--muted);
}
.help-note {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--green);
  margin-bottom: 14px;
}
.subtitle {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 650px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
}
.brand {
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.08em;
  text-decoration: none;
  color: var(--ink);
}
.invite {
  background: #edf3d6;
  border: 1px solid #dce8b4;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 650;
}
.topbar #logout {
  margin-left: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  padding: 10px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.welcome {
  max-width: 820px;
  margin: 10vh auto;
  padding: 35px;
}
.welcome h1 {
  font-size: 3.5rem;
}
.welcome .primary {
  margin: 14px 0;
}
.welcome > p {
  max-width: 540px;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 76px);
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: white;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px 27px;
}
.workspace strong {
  font-size: 1rem;
  display: block;
}
.workspace small {
  display: block;
  font-size: 0.75rem;
}
.workspace-icon {
  width: 38px;
  height: 38px;
  flex: none;
}
#dashboard {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 1rem;
  display: flex;
  gap: 14px;
  color: var(--muted);
}
nav button[aria-current="page"] {
  background: #e8f2eb;
  color: var(--green);
}
.sidebar-note {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 0.875rem;
}
.sidebar-note p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 7px 0 0;
}
.workspace-body {
  padding: 24px 40px 0;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.8rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat,
.panel,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.stat strong {
  font-size: 2.25rem;
  letter-spacing: -0.045em;
  display: block;
  margin: 8px 0;
}
.stat p {
  font-size: 0.875rem;
  margin: 0;
}
.stat small {
  font-size: 0.8rem;
}
.stat:first-child {
  border-top: 3px solid var(--green);
}
.home-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.panel {
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-head h2,
.section-head h3 {
  margin-bottom: 0;
}
.section-head > span {
  font-size: 0.8rem;
  color: var(--muted);
}
.signer-panel {
  background: #183d32;
  color: white;
  border-color: #183d32;
}
.signer-panel p {
  color: #d5e6de;
}
.signer-panel .eyebrow {
  color: var(--accent);
}
.signer-panel h2 {
  font-size: 1.65rem;
  line-height: 1.25;
}
.signer-panel button {
  background: transparent;
  color: white;
  border-color: #66887a;
}
.activity-row {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row summary {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
}
.activity-row summary::after {
  content: "↗";
  margin-left: auto;
  color: var(--muted);
}
.activity-row summary strong {
  display: block;
  font-size: 0.93rem;
}
.activity-row summary small {
  display: block;
  font-size: 0.8rem;
}
.activity-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef4f0;
  flex-shrink: 0;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  background: #eef3f0;
  color: #3f5c50;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.card h3 {
  overflow-wrap: anywhere;
}
.card details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.card > button {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}
dl {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) minmax(0, 2fr);
  gap: 9px;
  font-size: 0.8rem;
  margin-top: 20px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notice {
  background: #ecf2dd;
  border: 1px solid #d8e3bb;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.notice details {
  margin-top: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  max-width: 270px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
}
.timeline {
  padding-left: 20px;
  font-size: 0.8rem;
}
.timeline li {
  padding: 10px;
}
.timeline time,
.timeline strong,
.timeline small {
  display: block;
}
.steps {
  padding-left: 24px;
}
.steps li {
  padding: 12px;
}
.steps strong,
.steps span {
  display: block;
}
.steps span {
  color: var(--muted);
  font-size: 0.875rem;
}
.status {
  padding: 20px;
  max-width: 1000px;
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.error {
  border-color: #e5b3a8;
  color: #8e3124;
  background: #fff5f0;
}
.empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #bfcfc5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  margin: 8px 0 20px;
}
#activity-search {
  max-width: 480px;
}
label {
  font-weight: 600;
  font-size: 0.875rem;
}
dialog {
  width: min(94vw, 480px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  color: var(--ink);
}
dialog::backdrop {
  background: #122b2855;
}
dialog form > button {
  width: 100%;
}
dialog .section-head button {
  padding: 5px 9px;
}
footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
.mono,
code {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  #dashboard {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .workspace-body {
    padding: 24px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 24px 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 1.8rem;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .invite {
    font-size: 0.7rem;
  }
  #dashboard {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0;
  }
  nav button {
    flex-direction: column;
    gap: 0;
    padding: 6px 10px;
    font-size: 0.875rem;
  }
  nav span {
    font-size: 0.75rem;
  }
  .workspace-body {
    padding: 20px 16px;
  }
  .page-toolbar {
    margin-bottom: 28px;
  }
  h1 {
    font-size: 2rem;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .stat strong {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .stat small {
    grid-column: 1;
  }
  .panel,
  .card {
    padding: 20px;
  }
  .welcome {
    margin: 5vh auto;
    padding: 24px;
  }
  .welcome h1 {
    font-size: 2.5rem;
  }
}
:root {
  color-scheme: light;
}
.integration-example {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  background: #eff5f4;
  border-radius: 12px;
  font-size: 0.875rem;
}
dialog form label {
  display: block;
  margin: 1rem 0;
}
dialog input,
dialog select {
  width: 100%;
}
.network-choices label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.network-choices input[type="checkbox"] {
  width: auto;
}
.activity-evidence {
  padding: 0.5rem 1rem 1rem;
}
.evidence-record {
  border-top: 1px solid var(--border, #dce3eb);
  padding: 0.75rem 0;
}
.activity-row .evidence-record summary {
  font-weight: 600;
  font-size: 0.9rem;
}
.evidence-record dd {
  overflow-wrap: anywhere;
  user-select: text;
}
.sidebar .docs-nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.sidebar .docs-nav-link:hover {
  text-decoration: underline;
}
.context-help {
  font-size: 0.875rem;
  margin: 0 0 12px;
}
.first-use {
  grid-column: 1 / -1;
}
.first-use summary {
  cursor: pointer;
  font-weight: 600;
}
.first-use .steps li {
  display: grid;
  gap: 8px;
}
.first-use .steps button {
  justify-self: start;
}
.setup-status {
  display: block;
  font-size: 0.875rem;
  border-left: 2px solid currentColor;
  padding-left: 0.65rem;
}

#connect-wallet-panel label {
  display: block;
  margin: 16px 0 6px;
}
#connect-wallet-panel select {
  max-width: 100%;
  padding: 10px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}
#wallet-handoff {
  overflow-wrap: anywhere;
}
#wallet-connect-status {
  margin: 16px 0;
}

.connected-account-summary {
  margin-top: 16px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.journey-step,
.allocation-inputs {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.journey-step h3 {
  margin-top: 0;
}
.journey-wallets {
  overflow-wrap: anywhere;
}
.allocation-inputs label {
  display: block;
  margin: 12px 0;
}
.allocation-inputs input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}
.agent-instructions {
  width: 100%;
  box-sizing: border-box;
  line-height: 1.6;
  padding: 12px;
}
#allocation-planner,
#getting-started {
  margin-bottom: 24px;
}
@media (max-width: 800px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-balance-panel {
  border-top: 1px solid var(--line, #dbe5df);
  margin-top: 1rem;
  padding-top: 0.5rem;
  overflow-wrap: anywhere;
}
.wallet-balance-panel h4 {
  margin-bottom: 0.5rem;
}
.wallet-balance-panel p {
  font-size: 0.875rem;
}
