:root {
  --canvas: #f5f6f3;
  --surface: #fff;
  --ink: #152e2e;
  --muted: #586a69;
  --line: #dbe3df;
  --accent: #08766a;
  --accent-soft: #e6f3ef;
  --sidebar: #132b2b;
  --sidebar-muted: #b8cdca;
  --warning: #755315;
  --warning-soft: #fff5df;
  --danger: #a63a37;
  --radius: 8px;
  --space: 8px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
button {
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 600;
}
button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
input,
select,
textarea {
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
}
@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }
  select {
    cursor: pointer;
    white-space: nowrap;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2308766a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
  select::picker(select) {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: 0 8px 24px #132b2b1f;
    max-height: 50vh;
  }
  select option {
    padding: 8px 12px;
    border-radius: 4px;
  }
  select option:checked,
  select option:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
  select option::checkmark {
    color: var(--accent);
  }
  select::picker-icon {
    display: none;
  }
}
textarea {
  resize: vertical;
  width: 100%;
}
:focus-visible {
  outline: 3px solid #319687;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
label {
  font-weight: 600;
  font-size: 13px;
}
label input,
label select {
  display: block;
  margin-top: 6px;
  width: 100%;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #075b52;
  color: white;
}
.danger {
  color: var(--danger);
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--accent);
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  background: var(--accent);
  color: white;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.loading-page {
  padding: 48px;
}
.workspace {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: 30px;
}
.brand-mark i {
  display: block;
  width: 6px;
  background: #72d2b6;
  border-radius: 2px;
}
.brand-mark i:nth-child(1) {
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 19px;
}
.brand-mark i:nth-child(3) {
  height: 27px;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: var(--sidebar-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  color: #d5e5e1;
  padding: 11px 12px;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover,
nav a[aria-current="page"] {
  background: #24433f;
  color: white;
}
nav a[aria-current="page"] {
  box-shadow: inset 3px 0 #72d2b6;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.main-area {
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.topbar-label {
  color: var(--muted);
  font-size: 12px;
}
.user-link {
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
  max-width: 60%;
  overflow-wrap: anywhere;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}
.content {
  padding: 32px 36px;
  max-width: 1480px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 700px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.4;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.neutral {
  background: #edf0ee;
  color: var(--muted);
}
.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e7d9b9;
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  margin-bottom: 24px;
}
.banner strong {
  font-size: 13px;
}
.banner.sample {
  background: var(--accent-soft);
  border-color: #bddbd1;
  color: #075d52;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
}
.stat-value {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 6px 0;
}
.stat small {
  font-size: 11px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px 24px;
  flex-wrap: wrap;
  background: #fcfdfb;
  border-bottom: 1px solid var(--line);
}
.search-label {
  flex: 1;
  min-width: 180px;
}
.toolbar label {
  font-size: 11px;
  color: var(--muted);
}
.toolbar label:not(.search-label) {
  min-width: 170px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 24px;
  background: #fcfdfb;
  white-space: nowrap;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #e9eeea;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f9fcfa;
}
.token-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.token-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f4f8f5;
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.token-name {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.token-name:hover {
  text-decoration: underline;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.numeric {
  font-weight: 650;
}
.growth {
  color: var(--accent);
}
.reason {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-foot {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.panel-foot[hidden] {
  display: none;
}
.empty {
  padding: 48px 24px;
  text-align: center;
}
.empty h2,
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  max-width: 420px;
  margin: auto;
  color: var(--muted);
  font-size: 13px;
}
.empty button {
  margin-top: 16px;
}
.back {
  display: inline-flex;
  margin-bottom: 20px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.padded {
  padding: 24px;
}
.source-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.source-author {
  font-weight: 650;
}
.post-text {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 12px;
}
.source-images {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.source-images img {
  max-width: 100%;
  width: 240px;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--canvas);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.metric-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.metric-box strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.metric-box span {
  font-size: 11px;
  color: var(--muted);
}
.chart {
  padding: 16px 20px 0;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart svg text {
  fill: var(--muted);
  font-size: 11px;
}
.chart svg .series {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}
.chart svg .point {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}
.chart svg .gridline {
  stroke: var(--line);
  stroke-width: 1;
}
.chart svg .area {
  fill: var(--accent-soft);
}
.chart-caption {
  padding: 0 24px 18px;
  font-size: 11px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  font-size: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.snapshot-table {
  margin-top: 12px;
  font-size: 11px;
}
.snapshot-table th,
.snapshot-table td {
  padding: 8px 10px;
}
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 12px;
  margin: 16px 0 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.threshold-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.threshold-list li {
  display: flex;
  gap: 10px;
}
.check {
  color: var(--accent);
  font-weight: 700;
}
.threshold-list strong {
  font-size: 12px;
}
.threshold-list small {
  display: block;
  font-size: 11px;
}
.note-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note-form button {
  align-self: flex-end;
}
.notes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.note p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.account-grid p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.account-grid h2 {
  margin-bottom: 8px;
}
.account-grid button {
  align-self: start;
}
.account-grid .panel {
  padding: 24px;
}
.account-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.account-status:last-child {
  border-bottom: 0;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
}
.login-story {
  background: var(--sidebar);
  color: #fff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.login-story h1 {
  font-size: 48px;
  max-width: 540px;
  line-height: 1.15;
  letter-spacing: -1.8px;
}
.login-story p {
  color: var(--sidebar-muted);
  max-width: 460px;
  margin-top: 24px;
  font-size: 16px;
}
.login-story .eyebrow {
  color: #72d2b6;
  margin-bottom: 20px;
}
.login-story small {
  color: var(--sidebar-muted);
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  max-width: 360px;
}
.login-card h2 {
  font-size: 28px;
}
.login-card p {
  color: var(--muted);
  margin: 16px 0 24px;
}
.login-card .button-link {
  width: 100%;
  margin-bottom: 20px;
}
.login-card small {
  display: block;
}
.notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  padding: 14px 20px;
  background: var(--sidebar);
  color: #fff;
  border-radius: var(--radius);
  z-index: 50;
  font-size: 13px;
  box-shadow: 0 6px 20px #132b2b26;
}
.notice.error {
  background: #772f2c;
}
.list-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.list-item p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.note-form label textarea {
  display: block;
  margin-top: 8px;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.skeleton {
  height: 90px;
  background: linear-gradient(90deg, #f2f5f1, #fafcf9, #f2f5f1);
  border-bottom: 1px solid var(--line);
}
.inline-error {
  color: var(--danger);
  font-size: 12px;
}
@media (min-width: 1440px) {
  .content {
    padding-top: 40px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1023px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 16px 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 38px;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .stat {
    padding: 16px;
  }
}
@media (max-width: 767px) {
  .workspace {
    display: block;
  }
  .sidebar {
    padding: 16px;
    gap: 16px;
    position: static;
    height: auto;
    overflow: visible;
  }
  .sidebar .brand {
    font-size: 15px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  .nav-icon {
    font-size: 14px;
    width: 16px;
  }
  .topbar {
    padding: 12px 16px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    gap: 12px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading button {
    font-size: 11px;
    white-space: nowrap;
  }
  .stats {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 12px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head,
  .toolbar,
  .padded {
    padding: 16px;
  }
  .panel-foot {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    gap: 16px;
  }
  .stack {
    gap: 16px;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 32px 24px;
    gap: 32px;
  }
  .login-story h1 {
    font-size: 32px;
  }
  .login-story p {
    font-size: 14px;
    margin-top: 16px;
  }
  .login-story > small {
    display: none;
  }
  .login-form {
    padding: 32px 24px;
  }
  .login-card {
    max-width: 100%;
  }
  .source-footer {
    flex-wrap: wrap;
  }
  .banner {
    font-size: 11px;
  }
  .notice {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .user-link {
    font-size: 11px;
  }
  .chart {
    padding: 12px;
  }
  .account-grid .panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Route focus announces the content region without outlining the entire layout. */
#main:focus {
  outline: none;
}
