@charset "UTF-8";
:root {
  /* Shared desktop density; 1 restores the previous full-size layout. */
  --ui-scale: 0.8;
  --ink: #252b27;
  --muted: #626e65;
  --green: #315c48;
  --green-deep: #244735;
  --green-pale: #edf4ee;
  --bg: #f8f9f7;
  --line: #e4e8e2;
  --coral: #b56152;
  --pink: #f9efec;
  --white: #fff;
  --radius: 0.5rem;
  --sidebar-width: 16rem;
  --content-width: 87.5rem;
  --page-gutter: 2rem;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: calc(16px * var(--ui-scale));
  font-synthesis: none;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0.1875rem solid #93b8a0;
  outline-offset: 0.1875rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
}
h2 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.6;
}
p {
  line-height: 1.8;
}
svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  vertical-align: middle;
}
small {
  font-size: 0.875rem;
}
.mono {
  font-family: 'Cascadia Code', 'Consolas', monospace;
}
.muted {
  color: var(--muted);
}
.wrap {
  overflow-wrap: anywhere;
}
.full-width {
  width: 100%;
}
.center {
  display: flex;
  justify-content: center;
  text-align: center;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 1.9375rem 1.125rem 1.375rem;
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 0 0.75rem;
}
.brand-symbol {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 0.75rem 0.1875rem 0.75rem 0.1875rem;
}
.brand-symbol svg {
  width: 1.6875rem;
  height: 1.6875rem;
  transform: rotate(-12deg);
}
.brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.5rem;
}
.nav-caption {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 2.75rem 0.875rem 0.9375rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  flex-shrink: 0;
}
.sidebar nav a {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: background 0.16s;
}
.sidebar nav a:hover {
  background: #f3f6f2;
  color: var(--green);
}
.sidebar nav a.active {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 600;
}
.sidebar nav a.active:after {
  content: '';
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--green);
  border-radius: 50%;
  margin-left: auto;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 1.1875rem 0.8125rem;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}
.sidebar-card {
  background: var(--green-pale);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}
.sidebar-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}
.sidebar-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.sidebar-card .button {
  margin-top: 0.3125rem;
}
.account-card {
  background: #f7f9f6;
}
.account-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.account-card-head .badge {
  font-size: 0.875rem;
}

.status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  display: inline-block;
  background: #a0a9a0;
  flex-shrink: 0;
}
.status-dot.online {
  background: #55906b;
  box-shadow: 0 0 0 0.1875rem #edf5ef;
}
.status-dot.offline {
  background: var(--coral);
}

.workspace {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  padding-inline: max(
    var(--page-gutter),
    calc((100% - var(--content-width)) / 2 + var(--page-gutter))
  );
  background: rgba(255, 255, 255, 0.88);
  gap: 1.125rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb svg {
  width: 1.125rem;
  height: 1.125rem;
}
.breadcrumb strong {
  font-weight: 500;
  color: #38453b;
}
.breadcrumb-divider {
  color: #c7cec7;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
}
.chain-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 0.3125rem;
  padding: 0.75rem 1.25rem;
  line-height: 1.4;
  font-size: 1rem;
  font-weight: 500;
  transition:
    background 0.16s,
    border-color 0.16s;
  flex-shrink: 0;
}
.button svg {
  width: 1.25rem;
  height: 1.25rem;
}
.button.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.button.primary:hover:not(:disabled) {
  background: var(--green-deep);
}
.button.secondary {
  border: 1px solid #dce2d9;
  background: white;
  color: #566252;
}
.button.secondary:hover:not(:disabled) {
  border-color: #9eb39f;
  background: #f5f8f4;
}
.button.text {
  color: var(--muted);
}
.button.small {
  font-size: 1rem;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
}
.wallet-button {
  font-size: 1rem;
  padding: 0.625rem 1rem;
  min-height: 3rem;
}
.wallet-button.connected {
  background: var(--green-pale);
  color: var(--green);
  border-color: #dce8dc;
}
.icon-button {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  color: #66756b;
  border-radius: 0.3125rem;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--green-pale);
}
.icon-button.outlined {
  border: 1px solid var(--line);
}
.icon-button.success {
  color: var(--green);
  background: var(--green-pale);
}
.icon-button.danger {
  color: #b05850;
  background: var(--pink);
}
#main {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.25rem var(--page-gutter) 3.5rem;
  flex: 1;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.9375rem;
}
.page-heading > div {
  min-width: 0;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.page-heading p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}
.page-heading .button {
  margin-top: 0.8125rem;
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
}
.heading-actions .button {
  margin-top: 0;
}
.owner-banner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid #315c48;
  border-radius: 12px;
  background: #eef4f0;
  color: #315c48;
  font-weight: 600;
}
.owner-banner svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}
.owner-banner span {
  flex: 1 1 16rem;
  min-width: 0;
}
.owner-banner .button {
  margin: 0;
}
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.5rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.0625rem;
}
.stat {
  padding: 0 1.75rem;
  min-width: 0;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  color: var(--muted);
  font-size: 1rem;
}
.stat-label svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--green);
}
.stat-value {
  font-family: Georgia, 'Microsoft YaHei', serif;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-top: 0.8125rem;
  display: flex;
  align-items: baseline;
  gap: 0.5625rem;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.stat-value small {
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.section-heading h2 {
  font-size: 1.5rem;
}
.section-heading h2 > span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.6875rem;
}
.quiet-note {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.quiet-note svg {
  width: 1rem;
  height: 1rem;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
}
.segmented {
  display: flex;
  padding: 0.25rem;
  background: #eef0eb;
  border-radius: 0.375rem;
  flex-shrink: 0;
  gap: 0.125rem;
}
.segmented button {
  min-height: 3rem;
  min-width: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  border-radius: 0.1875rem;
}
.segmented button.selected {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 0.25rem #1d35100d;
}
.segmented svg {
  width: 1.125rem;
  height: 1.125rem;
}
.filter-inputs {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}
.filter-inputs select,
.search-field {
  border: 1px solid var(--line);
  border-radius: 0.3125rem;
  background: #fff;
  min-height: 3rem;
  color: var(--muted);
  font-size: 1rem;
}
.filter-inputs select {
  padding: 0 0.75rem;
  min-width: 8.5rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  width: 20rem;
}
.search-field svg {
  width: 1.125rem;
  height: 1.125rem;
}
.search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: 1rem;
  min-height: 2.875rem;
}
.search-field input::placeholder {
  color: #727e73;
}
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.pet-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
  overflow: hidden;
  min-width: 0;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.pet-card:hover {
  box-shadow: 0 0.4375rem 1.375rem #273f2910;
  transform: translateY(-0.1875rem);
}
.pet-photo {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.85;
  flex-shrink: 0;
  background: #e8ece7;
}
.pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.4s;
}
.pet-photo img[src='/assets/dog-2.jpg'] {
  object-position: center 58%;
}
.pet-photo img[src='/assets/cat-3.jpg'] {
  object-position: center 17%;
}
.pet-card:hover img {
  transform: scale(1.035);
}
.pet-photo > .badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: #fffffff0;
  color: #536453;
  box-shadow: 0 1px 0.3125rem #00000008;
}
.photo-id {
  position: absolute;
  right: 0.8125rem;
  bottom: 0.8125rem;
  font-size: 0.875rem;
  color: white;
  background: #28352acc;
  padding: 0.25rem 0.5rem;
  border-radius: 0.1875rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5625rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  font-weight: 400;
  background: var(--green-pale);
  color: var(--green);
}
.badge.state-1 {
  background: #f2eee9;
  color: #775825;
}
.badge.state-2 {
  background: #f7edf0;
  color: #88556d;
}
.badge.state-3,
.badge.state-4 {
  background: #f0f1ed;
  color: var(--muted);
}
.badge.subtle {
  color: var(--green);
  background: #f2f5ef;
}
.pet-card-body {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pet-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pet-card-title > a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pet-card-title h2 {
  font-size: 1.5rem;
}
.verified {
  color: var(--green);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.verified svg {
  width: 1rem;
  height: 1rem;
}
.verified.invalid {
  color: #ba7860;
}
.pet-meta {
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  gap: 0.4375rem;
  flex-wrap: wrap;
  margin: 0.5625rem 0 0.75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.pet-meta > span {
  color: #c2c8bd;
}
.pet-description {
  font-size: 1.125rem;
  color: #4c5a50;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.5em;
  margin-bottom: 1.125rem;
}
.pet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef0e9;
  margin-top: auto;
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.pet-card-footer > span {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.pet-card-footer svg {
  width: 1.125rem;
  height: 1.125rem;
}
.pet-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  color: var(--green);
  white-space: nowrap;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 600;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.375rem;
  padding-inline: max(
    var(--page-gutter),
    calc((100% - var(--content-width)) / 2 + var(--page-gutter))
  );
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.loading {
  min-height: 21.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
}
.spinner {
  width: 1.1875rem;
  height: 1.1875rem;
  border: 0.125rem solid #d8e4d9;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  grid-column: 1/-1;
  padding: 3.75rem 1.25rem;
  text-align: center;
  color: #99a391;
}
.empty-state > svg {
  width: 2.4375rem;
  height: 2.4375rem;
  margin-bottom: 1.0625rem;
  color: #aabc9e;
}
.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #778270;
}
.empty-state p {
  font-size: 1rem;
  margin-top: 0.625rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5625rem;
}
.back-link svg {
  width: 1.125rem;
  height: 1.125rem;
}
.pet-detail {
  display: grid;
  grid-template-columns: minmax(0, min(48%, 35rem)) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.detail-photo {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e9eee5;
  aspect-ratio: 1.07;
}
.detail-photo img {
  width: 100%;
  height: 100%;
}
.detail-info {
  padding: 0.25rem 0;
  min-width: 0;
}
.detail-overline {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.detail-name {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.detail-name h1 {
  font-size: 2.25rem;
}
.detail-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 0.875rem;
  max-width: 70ch;
}
.pet-publisher-line {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  color: var(--muted);
}
.pet-publisher-line svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.pet-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.625rem 0;
  gap: 0.75rem;
}
.pet-facts dt {
  font-size: 0.875rem;
  color: var(--muted);
}
.pet-facts dd {
  margin: 0.5625rem 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.health-line {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  color: var(--green);
  background: #f0f4ea;
  padding: 0.6875rem 0.875rem;
  border-radius: 0.25rem;
  font-size: 1rem;
}
.health-line svg {
  width: 1.25rem;
  height: 1.25rem;
}
.detail-funds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.4375rem 0;
  gap: 0.75rem;
}
.detail-funds span {
  font-size: 0.875rem;
  color: var(--muted);
}
.detail-funds strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.875rem;
  font-weight: 400;
  margin-top: 0.375rem;
  overflow-wrap: anywhere;
}
.detail-funds small {
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
}
.detail-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.admin-inline {
  display: flex;
  gap: 1.375rem;
  margin-top: 0.9375rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--green);
  font-size: 1rem;
  padding: 0.125rem 0;
}
.text-link svg {
  width: 1.125rem;
  height: 1.125rem;
}
.detail-history {
  margin-top: 2.5rem;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tabs > button {
  padding: 0.9375rem 0;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 0.125rem solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.tabs > button.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.tabs > button span {
  font-size: 0.875rem;
  display: inline-block;
  margin-left: 0.4375rem;
  color: var(--muted);
}
.tabs .tab-end {
  margin-left: auto;
  border: 0;
  padding: 0;
}
.growth-entry {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.0625rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.growth-icon {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: #edf3e9;
  display: grid;
  place-items: center;
  color: #738d66;
}
.growth-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.growth-entry h3 {
  margin: 0.625rem 0 0.375rem;
}
.growth-entry p {
  font-size: 1rem;
  color: var(--muted);
}
.growth-bottom {
  display: flex;
  gap: 1.5625rem;
  align-items: center;
  margin-top: 0.8125rem;
  flex-wrap: wrap;
}
.table-scroll {
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
  text-align: left;
  min-width: 40.625rem;
}
th {
  color: var(--muted);
  background: #f3f5f0;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1.125rem;
  white-space: nowrap;
}
td {
  padding: 1.0625rem 1.125rem;
  border-top: 1px solid #edf0e9;
  vertical-align: middle;
  line-height: 1.6;
}
td strong {
  font-weight: 500;
}
td small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
  max-width: 16.25rem;
  overflow-wrap: anywhere;
}
td .verified {
  margin-top: 0.3125rem;
}
.table-pet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.table-pet img {
  border-radius: 0.3125rem;
  flex-shrink: 0;
  object-fit: cover;
}
.row-actions {
  display: flex;
  gap: 0.4375rem;
  align-items: center;
}
.application-reason {
  max-width: 17.5rem;
  min-width: 9.375rem;
  overflow-wrap: anywhere;
}
.expense-amount {
  color: var(--coral);
}
.support-amount {
  color: var(--green);
}
.subsection-title {
  margin: 1.875rem 0 1.125rem;
}
.recent-section {
  margin-top: 2.1875rem;
}
.event-timeline {
  padding: 0.375rem 0;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
  min-width: 0;
}
.timeline-item:not(:last-child):before {
  content: '';
  position: absolute;
  top: 1.8125rem;
  bottom: 0;
  left: 0.9375rem;
  width: 1px;
  background: #dde6d7;
}
.timeline-mark {
  width: 1.9375rem;
  height: 1.9375rem;
  border: 1px solid #e1e9db;
  background: #f7faf4;
  color: #7b956f;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-mark svg {
  width: 0.875rem;
  height: 0.875rem;
}
.timeline-content {
  padding: 0.1875rem 0 1.6875rem;
  min-width: 0;
  flex: 1;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 0.9375rem;
  align-items: center;
}
.timeline-top h3 {
  font-size: 1rem;
  font-weight: 500;
}
.timeline-top time {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-meta {
  display: flex;
  gap: 0.9375rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.4375rem 0;
}
.hash-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.875rem;
  color: var(--green);
  padding: 0.1875rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hash-link svg {
  width: 1rem;
  height: 1rem;
}
.trace-search {
  display: flex;
  gap: 0.75rem;
  max-width: 46.25rem;
  margin: 0 0 2.125rem;
}
.trace-search > label {
  display: flex;
  align-items: center;
  border: 1px solid #dce4d6;
  border-radius: 0.3125rem;
  background: white;
  padding: 0 1rem;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}
.trace-search svg {
  color: #9aa990;
}
.trace-search input {
  min-width: 0;
  width: 100%;
  height: 3rem;
  border: 0;
  outline: 0;
  font-size: 1rem;
  background: transparent;
}
.trace-profile {
  display: flex;
  align-items: center;
  gap: 1.4375rem;
  padding: 1.4375rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.trace-profile > img {
  border-radius: 0.4375rem;
  object-fit: cover;
}
.trace-profile h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}
.trace-profile > div > .mono {
  font-size: 0.875rem;
}
.trace-profile > .button {
  margin-left: auto;
}
.trace-profile .badge {
  margin-left: 0.75rem;
  vertical-align: middle;
}
.trace-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.4375rem;
  gap: 2.8125rem;
}
.trace-summary {
  border-left: 1px solid var(--line);
  padding-left: 1.75rem;
  align-self: start;
  min-width: 0;
}
.key-values {
  margin: 1.125rem 0 1.375rem;
  min-width: 0;
}
.key-values dt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.4375rem;
}
.key-values dd {
  font-size: 1rem;
  margin: 0 0 1.125rem;
  line-height: 1.8;
}
.key-values .mono {
  font-size: 0.875rem;
}
.network-overview {
  max-width: 51.25rem;
}
.network-status {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.network-status > svg {
  width: 2rem;
  height: 2rem;
  color: #719868;
}
.network-status p {
  font-size: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 0.3125rem;
}
.network-status > .icon-button {
  margin-left: auto;
}
.network-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5625rem;
  margin: 1.875rem 0;
}
.network-details .full {
  grid-column: 1/-1;
}
.network-details dt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.625rem;
}
.network-details dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.toast-region {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  max-width: min(30rem, calc(100% - 2rem));
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid #dce7d4;
  background: #fff;
  box-shadow: 0 0.5rem 1.75rem #173d161c;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--green);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.toast.error {
  color: #aa5e4f;
  border-color: #eddbd5;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0;
  width: min(30rem, calc(100% - 1.75rem));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 1rem 5rem #1e332631;
}
dialog.wide {
  width: min(42.5rem, calc(100% - 1.75rem));
}
dialog::backdrop {
  background: #182c2461;
  backdrop-filter: blur(0.125rem);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1.1875rem 1.5rem;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  gap: 0.75rem;
}
.modal-header h2 {
  font-size: 1.25rem;
}
.modal-body {
  padding: 1.5625rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
.form-grid .full {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  margin: 0 0 1.125rem;
  min-width: 0;
}
.field > span {
  font-size: 0.875rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce3d5;
  border-radius: 0.3125rem;
  padding: 0.6875rem 0.75rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.7;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #727e73;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 0.625rem;
}
.form-error {
  color: #ae6253;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.125rem;
}
.privacy-note svg {
  width: 1rem;
  height: 1rem;
}
.form-pet {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  margin-bottom: 1.4375rem;
}
.form-pet img {
  width: 3.875rem;
  height: 3.875rem;
  border-radius: 0.3125rem;
}
.form-pet span {
  font-size: 0.875rem;
  color: var(--muted);
}
.support-balance {
  padding: 0 0 1.5rem;
  margin-bottom: 1.375rem;
  border-bottom: 1px solid var(--line);
}
.support-balance > span {
  font-size: 0.875rem;
  color: var(--muted);
}
.support-balance strong {
  display: block;
  font:
    2rem Georgia,
    serif;
  margin-top: 0.625rem;
}
.support-balance small {
  font:
    0.875rem 'Microsoft YaHei',
    sans-serif;
  color: var(--muted);
}
.amount-presets {
  display: flex;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  flex-wrap: wrap;
}
.amount-presets .button {
  flex: 1;
  font-size: 1rem;
}
.modal-body > p,
.modal-body form > p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0.9375rem;
}
.transaction-success {
  text-align: center;
}
.transaction-success > svg {
  width: 2.9375rem;
  height: 2.9375rem;
  color: #6d995f;
  margin-bottom: 0.9375rem;
}
.transaction-success h3 {
  margin-bottom: 1.25rem;
}
.transaction-success .hash-link {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.5625rem;
}
.verification-state {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.9375rem 0 1.375rem;
  border-bottom: 1px solid var(--line);
}
.verification-state > svg {
  width: 2rem;
  height: 2rem;
}
.verification-state.valid {
  color: #668d58;
}
.verification-state.invalid {
  color: #b56654;
}
.verification-state p {
  font-size: 0.875rem;
  margin-top: 0.375rem;
}
.version-list {
  margin-bottom: 1.4375rem;
}
.version-list > div {
  display: grid;
  grid-template-columns: 3.4375rem minmax(0, 1fr);
  gap: 0.625rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.version-list .hash-link {
  grid-column: 2;
}
.transaction-status {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  color: var(--green);
  font-size: 1rem;
}
.transaction-status .badge {
  margin-left: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 12.5rem;
  overflow: auto;
  background: #f3f6ef;
  padding: 0.875rem;
  font:
    0.875rem/1.9 Consolas,
    monospace;
  border-radius: 0.25rem;
}
.modal-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}
.wallet-empty > svg {
  width: 2.25rem;
  height: 2.25rem;
  color: #739263;
  margin-bottom: 0.9375rem;
}
.wallet-empty h3 {
  margin-bottom: 0.625rem;
}
.wallet-empty > p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.375rem;
}
.wallet-profile {
  text-align: center;
}
.wallet-profile > svg {
  display: block;
  margin: 0 auto 1.125rem;
  width: 2.25rem;
  height: 2.25rem;
  color: #739263;
}
.wallet-profile > p {
  margin: 1.375rem 0;
  font-size: 1rem;
}
.wallet-profile .button {
  margin-top: 0.625rem;
}
.image-failed {
  background: #e9eee5;
  color: #738469;
  font-size: 0.875rem;
}
@media (min-width: 1600px) {
  :root {
    --page-gutter: 2.5rem;
  }
  #main {
    padding-block: 2.5rem 4rem;
  }
  .pet-card-body {
    padding: 1.375rem 1.375rem 0;
  }
}
@media (min-width: 1920px) {
  .pet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 13.75rem;
    --page-gutter: 1.75rem;
  }
  .sidebar {
    padding-inline: 0.75rem;
  }
  #main {
    padding-block: 1.75rem 2.8125rem;
  }
  .stat {
    padding-inline: 1.25rem;
  }
  .pet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .pet-card-body {
    padding: 1.125rem 1.125rem 0;
  }
  .pet-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
  .pet-facts {
    grid-template-columns: repeat(2, 1fr);
    margin: 1.1875rem 0;
  }
  .trace-columns {
    grid-template-columns: minmax(0, 1fr) 15.625rem;
    gap: 1.5625rem;
  }
  .search-field {
    width: 15rem;
  }
  .filter-inputs {
    gap: 0.5rem;
  }
  .segmented button {
    min-width: 4.75rem;
  }
  .breadcrumb > span:first-of-type {
    display: none;
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar-width: 12.5rem;
    --page-gutter: 1.5rem;
  }
  .brand {
    padding-left: 0.3125rem;
    gap: 0.5625rem;
  }
  .brand-symbol {
    width: 2.375rem;
    height: 2.375rem;
  }
  .sidebar nav a {
    padding-inline: 0.75rem;
    gap: 0.625rem;
  }

  .stat {
    padding-inline: 1rem;
  }
  .stat-value {
    gap: 0.3125rem;
  }
  .stat-label svg {
    display: none;
  }
  .filter-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .filter-inputs {
    flex: 1;
    min-width: min(100%, 22.5rem);
  }
  .filter-inputs select {
    width: 8.5rem;
    flex-shrink: 0;
  }
  .search-field {
    width: 100%;
    min-width: 6.25rem;
  }
  .pet-detail {
    grid-template-columns: 1fr;
  }
  .detail-photo {
    max-height: 25rem;
    aspect-ratio: 1.4;
  }
  .pet-facts {
    grid-template-columns: repeat(4, 1fr);
  }
  .detail-info {
    padding-top: 0.3125rem;
  }
  .trace-columns {
    grid-template-columns: 1fr;
  }
  .trace-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5625rem 0 0;
  }
  .trace-summary .key-values {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.625rem;
  }
  .trace-summary .key-values dd {
    margin: 0;
  }
  .trace-summary .button {
    width: auto;
  }
  .topbar-actions {
    gap: 0.9375rem;
  }
  .page-heading {
    gap: 0.9375rem;
  }
  .page-heading > .button {
    padding-inline: 0.75rem;
  }
  .chain-indicator {
    display: none;
  }
}
@media (max-width: 720px) {
  :root {
    --page-gutter: 1.25rem;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1rem 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    padding: 0;
    margin-bottom: 1rem;
    max-width: 9.375rem;
  }
  .brand-symbol {
    width: 3rem;
    height: 3rem;
  }
  .brand-symbol svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  .brand-text small {
    margin-top: 0.3125rem;
  }
  .nav-caption,
  .nav-divider,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sidebar nav a {
    min-height: 3rem;
    border-radius: 0;
    padding: 0 0.8125rem;
    gap: 0.4375rem;
    white-space: nowrap;
    border-bottom: 0.125rem solid transparent;
  }
  .sidebar nav a svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  .sidebar nav a:first-child {
    padding-left: 0;
  }
  .sidebar nav a.active {
    background: none;
    border-bottom-color: var(--green);
  }
  .sidebar nav a.active:after {
    display: none;
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    position: absolute;
    top: 0.875rem;
    right: 1.125rem;
    min-height: 3rem;
    border: 0;
    background: none;
    padding: 0;
    z-index: 30;
  }
  .breadcrumb,
  .chain-indicator {
    display: none;
  }
  .wallet-button {
    padding: 0.4375rem 0.625rem;
  }
  .wallet-button svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  #main {
    padding-block: 1.25rem 2.5rem;
  }
  .page-heading {
    margin-bottom: 1.25rem;
    align-items: flex-start;
  }
  .page-heading p {
    max-width: 18.75rem;
    line-height: 1.65;
  }
  .eyebrow {
    display: none;
  }
  .page-heading > .button {
    padding: 0.5rem;
    min-width: 3rem;
    min-height: 3rem;
    font-size: 0;
    margin-top: 0.125rem;
  }
  .page-heading > .button svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .stat {
    padding: 0.75rem 1rem;
  }
  .stat + .stat {
    border-left: 0;
  }
  .stat:nth-child(2n) {
    border-left: 1px solid var(--line);
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stat-label svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
  }
  .stat-value {
    margin-top: 0.5rem;
    gap: 0.4375rem;
  }
  .section-heading {
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .section-heading h2 > span {
    margin-left: 0.3125rem;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.125rem;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    min-height: 3rem;
  }
  .filter-inputs {
    width: 100%;
  }
  .filter-inputs select {
    width: 8.5rem;
    flex-shrink: 0;
  }
  .search-field {
    width: auto;
    flex: 1;
  }
  .pet-grid {
    gap: 1.25rem;
  }
  .pet-card-body {
    padding: 1.125rem 1.125rem 0;
  }
  .pet-meta {
    column-gap: 0.4375rem;
    row-gap: 0.1875rem;
    margin-top: 0.4375rem;
  }
  .pet-photo > .badge {
    top: 0.5625rem;
    left: 0.5625rem;
    padding: 0.1875rem 0.375rem;
  }
  .photo-id {
    right: 0.625rem;
    bottom: 0.625rem;
  }
  .pet-card-footer {
    padding: 0.75rem 0;
  }
  .pet-card-footer > .pet-detail-link {
    margin-left: auto;
  }
  .pet-card-footer > span {
    max-width: 100%;
  }
  .footer {
    padding-block: 1.125rem;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
  .detail-photo {
    aspect-ratio: 1.2;
  }
  .pet-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-funds {
    margin: 1.4375rem 0;
  }
  .detail-actions .button {
    flex: 1;
  }
  .detail-actions .icon-button {
    height: 3rem;
  }
  .detail-history {
    margin-top: 1.5625rem;
  }
  .tabs {
    gap: 1rem;
  }
  .timeline-top {
    align-items: flex-start;
    gap: 0.625rem;
    flex-wrap: wrap;
  }
  .timeline-meta {
    gap: 0.625rem;
  }
  .trace-search {
    gap: 0.5rem;
  }
  .trace-search > label {
    padding: 0 0.625rem;
    gap: 0.4375rem;
  }
  .trace-search > .button {
    padding: 0.625rem;
  }
  .trace-search > .button svg {
    display: none;
  }
  .trace-profile {
    gap: 0.875rem;
    flex-wrap: wrap;
  }
  .trace-profile > img {
    width: 4.5rem;
    height: 4.5rem;
  }
  .trace-profile > .button {
    margin-left: 5.375rem;
    margin-top: -0.3125rem;
    padding: 0.5rem 0.75rem;
  }
  .network-details {
    grid-template-columns: 1fr 1fr;
    gap: 1.5625rem 0.9375rem;
  }
  .network-status {
    gap: 0.75rem;
  }
  .toast-region {
    bottom: 1rem;
    right: 1rem;
  }
  .toast {
    padding: 0.8125rem 1rem;
  }
  .modal-header {
    padding: 0.9375rem 1.125rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-actions {
    gap: 0.625rem;
  }
  .form-actions > .button {
    flex: 1;
    padding-inline: 0.625rem;
  }
  .modal-bottom {
    flex-wrap: wrap;
  }
  .modal-bottom > .button {
    flex: 1;
    white-space: nowrap;
  }
  .growth-entry {
    gap: 0.75rem;
  }
  .trace-summary .key-values {
    grid-template-columns: 5rem minmax(0, 1fr);
  }
  .application-reason {
    max-width: 14.375rem;
  }
  .table-scroll {
    margin-inline: -0.125rem;
  }
}
@media (max-width: 639px) {
  .pet-grid {
    grid-template-columns: 1fr;
  }
  .section-heading .quiet-note {
    display: none;
  }
}
@media (max-width: 370px) {
  :root {
    --page-gutter: 0.875rem;
  }
  .sidebar {
    padding-inline: 0.875rem;
  }
  .brand {
    max-width: 7.5rem;
  }
  .brand-text small {
    display: none;
  }
  .stat {
    padding: 0.75rem 0.875rem;
  }
  .topbar {
    right: 0.875rem;
  }
}
@media (pointer: coarse) {
  :root {
    --ui-scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pet-card:hover {
    transform: none;
  }
}

/* ---- 图片上传选择器 ---- */
.image-field .image-picker {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.upload-preview {
  width: 6rem;
  height: 6rem;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--green-pale);
}
.upload-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.upload-controls .button {
  margin: 0;
}
.upload-status {
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .image-field .image-picker {
    flex-direction: column;
    align-items: flex-start;
  }
}