:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172c38;
  background: #f5f7f8;
  font-synthesis: none;
  --accent: #217c70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #5dbeb0;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 12px;
}
.app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 20px;
  background: #121c25;
  color: #eaf1f4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #80d4c5;
  border: 1px solid #36504f;
  font-size: 32px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #91a7b1;
  margin-top: 6px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #748991;
  margin: 0;
}
.sidebar > .section-label {
  margin: 54px 12px 16px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #a7b7bf;
  font-size: 14px;
}
nav a span {
  font-size: 20px;
  width: 20px;
  line-height: 18px;
}
nav a[aria-current='page'] {
  background: #233837;
  color: #94dece;
}
nav a:hover {
  background: #1d2b35;
}
.sidebar-note {
  margin-top: auto;
  padding: 48px 8px 24px;
  font-size: 11px;
  line-height: 1.7;
  color: #afbdc3;
}
.sidebar-note p {
  color: #778f9a;
  margin: 8px 0 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fbf9f;
  margin-right: 5px;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #2a3540;
  padding-top: 20px;
  font-size: 12px;
}
.account small {
  display: block;
  color: #8197a0;
  margin-top: 6px;
  font-size: 10px;
}
.avatar {
  background: #27343d;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 19px;
}
main {
  padding: 40px clamp(22px, 4vw, 68px) 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0 26px;
  font-weight: 650;
}
.phase {
  border: 1px solid #d6dfdf;
  border-radius: 30px;
  padding: 8px 12px;
  color: #637981;
  font-size: 11px;
  white-space: nowrap;
}
.notice {
  background: #eef4f1;
  color: #45685f;
  font-size: 12px;
  padding: 14px 18px;
  border: 1px solid #d8e6de;
  border-radius: 8px;
  margin-bottom: 26px;
  line-height: 1.6;
}
#page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.conversation-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.5fr);
  flex: 1;
  min-height: 430px;
  background: white;
  border: 1px solid #dfe5e7;
  border-radius: 12px;
  overflow: hidden;
}
.list-placeholder {
  border-right: 1px solid #e8edef;
  padding: 24px;
}
.list-placeholder h2 {
  font-size: 14px;
  margin: 0 0 32px;
}
.list-placeholder p {
  color: #83959d;
  font-size: 12px;
  line-height: 1.8;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 26px;
  text-align: center;
}
.empty-symbol {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: #edf6f3;
  color: #4c9b8b;
  display: grid;
  place-items: center;
  font-size: 42px;
  margin-bottom: 18px;
}
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
}
.empty-state h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.empty-state p {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.9;
  color: #73868e;
}
.primary {
  background: #237f71;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 13px 20px;
  margin-top: 14px;
  font-size: 12px;
}
.primary:disabled {
  background: #dfe8e4;
  color: #6b827a;
}
.detail {
  font-size: 10px !important;
  color: #8a9c9f !important;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid #dfe5e7;
  padding: 28px;
  border-radius: 12px;
  background: white;
}
.card h2 {
  font-size: 17px;
  margin: 8px 0 18px;
}
.card p {
  font-size: 13px;
  color: #73868e;
  line-height: 1.8;
}
.card strong {
  color: #274b47;
}
.progress {
  height: 5px;
  background: #e7eeeb;
  border-radius: 5px;
  margin: 24px 0 12px;
}
.privacy-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.privacy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e8edef;
  padding-top: 16px;
  font-size: 12px;
}
.privacy-row span:last-child {
  color: #587b6d;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  color: #82949c;
  font-size: 10px;
  line-height: 1.8;
}
.update {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #121c25;
  color: white;
  padding: 16px;
  border-radius: 10px;
  max-width: calc(100vw - 48px);
  font-size: 13px;
}
.update[hidden] {
  display: none;
}
.update button {
  border: 0;
  margin-left: 10px;
  padding: 8px;
  border-radius: 5px;
  background: #9ddaca;
}
#update-result {
  display: block;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px 16px;
  }
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .list-placeholder {
    border-right: 0;
    border-bottom: 1px solid #e8edef;
  }
  .list-placeholder h2 {
    margin-bottom: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 18px 18px 12px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .sidebar > .section-label,
  .sidebar-note,
  .account {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    margin-top: 18px;
    justify-content: space-between;
  }
  nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 3px;
    font-size: 10px;
  }
  main {
    padding: 26px 18px 20px;
  }
  header {
    align-items: flex-start;
    gap: 10px;
  }
  .phase {
    font-size: 9px;
    padding: 6px 8px;
    margin-top: 6px;
  }
  h1 {
    font-size: 25px;
    margin-bottom: 22px;
  }
  .conversation-layout {
    min-height: 400px;
  }
  .empty-state {
    padding: 36px 22px;
  }
  .empty-state h2 {
    font-size: 21px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
}
.account-section {
  margin-bottom: 22px;
}
.wallet-picker {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dce7e5;
  border-radius: 12px;
  background: #f6faf9;
}
.wallet-picker h3 {
  margin: 0 0 8px;
}
.wallet-picker [data-wallet-picker-back] {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.wallet-options {
  display: grid;
  gap: 8px;
}
.wallet-options + .wallet-options:not(:empty) {
  margin-top: 8px;
}
.wallet-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: white;
  color: #21343b;
  text-align: left;
}
.wallet-option:hover {
  border-color: var(--accent);
}
.wallet-option > span:first-child {
  font-weight: 600;
}
.wallet-option small {
  display: block;
  margin-top: 4px;
  color: #60756f;
  font-weight: 400;
}
.wallet-detection {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 12px;
  background: #eef1f1;
  color: #52635f;
  font-size: 11px;
  font-weight: 500;
}
.wallet-detection.is-detected {
  background: #ddf1e7;
  color: #236045;
}
.account-card form {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.account-card label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.account-card input:not([type='checkbox']) {
  width: 100%;
  padding: 12px;
  border: 1px solid #b7c9c7;
  border-radius: 6px;
  font: inherit;
}
.account-card input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.account-card img {
  object-fit: cover;
  border-radius: 50%;
}
.account-address {
  overflow-wrap: anywhere;
}
.account-card [hidden] {
  display: none;
}
.account-card a {
  text-decoration: underline;
  font-size: 13px;
}
