:root {
  color-scheme: dark;
  --bg: #0d0610;
  --bg-soft: #150a18;
  --panel: rgba(30, 12, 32, 0.78);
  --panel-strong: rgba(38, 15, 40, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 105, 180, 0.28);
  --text: #fff8fc;
  --muted: #ac99ad;
  --pink: #ff5f9e;
  --pink-soft: #ff99c3;
  --plum: #7a244f;
  --gold: #f5c879;
  --green: #55d69f;
  --red: #ff707b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 36, 79, 0.22), transparent 33%),
    radial-gradient(circle at 88% 16%, rgba(255, 95, 158, 0.12), transparent 29%),
    linear-gradient(145deg, #0c050f, #110814 58%, #0b060d);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.site-background::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: 0;
  background: url("/assets/lady-background-poster.webp") center / cover no-repeat;
  opacity: 0.18;
  filter: blur(24px) saturate(0.82);
  transform: scale(1.06);
}

.site-background-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  filter: saturate(0.82) contrast(0.96) brightness(0.82);
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 44%, rgba(7, 3, 10, 0.48) 100%),
    linear-gradient(180deg, rgba(7, 3, 10, 0.1), rgba(7, 3, 10, 0.52));
}

.login-shell, .app-shell { position: relative; z-index: 2; }

button, input, select { font: inherit; }

button { color: inherit; }

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255, 95, 158, 0.38);
  outline-offset: 2px;
}

a { color: var(--pink-soft); }

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 4px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 2.6vw, 2.15rem); letter-spacing: -0.04em; }
h3 { margin-bottom: 8px; font-size: 1.05rem; letter-spacing: -0.02em; }

.hidden { display: none !important; }

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(39, 17, 41, 0.88), rgba(20, 9, 23, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.ambient { position: fixed; z-index: 1; border-radius: 50%; filter: blur(80px); opacity: 0.18; pointer-events: none; }
.ambient-one { width: 360px; height: 360px; top: -120px; left: 18%; background: var(--plum); }
.ambient-two { width: 280px; height: 280px; right: -80px; bottom: 12%; background: var(--pink); }

.eyebrow { margin-bottom: 7px; color: var(--pink-soft); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.55; }
.error { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 0.88rem; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); border-radius: 28px; padding: clamp(28px, 6vw, 48px); text-align: center; }
.login-card form { margin-top: 28px; text-align: left; }

.brand-mark { width: 62px; height: 62px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 20px; color: #210617; background: linear-gradient(145deg, var(--gold), var(--pink)); box-shadow: 0 14px 40px rgba(255, 95, 158, 0.24); font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }
.brand-mark.small { width: 40px; height: 40px; margin: 0; border-radius: 13px; font-size: 1.25rem; }

label { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; color: #e6dbe5; font-size: 0.85rem; font-weight: 650; }
label small { color: var(--muted); font-weight: 500; }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(4, 2, 7, 0.58);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:hover, select:hover { border-color: rgba(255, 255, 255, 0.16); }
input:focus, select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(255, 95, 158, 0.07); }
input::placeholder { color: #6f6170; }

button {
  border: 0;
  border-radius: 13px;
  padding: 11px 15px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: 0.48; }
.primary { color: #210613; background: linear-gradient(135deg, var(--gold), var(--pink)); font-weight: 800; box-shadow: 0 12px 26px rgba(255, 95, 158, 0.14); }
.secondary, .quick-row button { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.045); }
.secondary:hover, .quick-row button:hover { border-color: var(--line-strong); background: rgba(255, 95, 158, 0.08); }
.danger { border: 1px solid rgba(255, 112, 123, 0.28); color: #ffd7da; background: rgba(255, 112, 123, 0.12); font-weight: 700; }
.full { width: 100%; margin-top: 18px; }
.text-button { padding: 6px 2px; color: var(--pink-soft); background: transparent; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding: 24px 18px;
  box-shadow: none;
  background: rgba(15, 7, 17, 0.8);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 0 18px; }
.brand strong, .brand span { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.12rem; }
.brand span { margin-top: 2px; color: var(--muted); font-size: 0.72rem; }
.brand-logo-crop { width: 210px; height: 58px; overflow: hidden; }
.brand-logo-crop img { width: 245px; max-width: none; height: auto; display: block; transform: translate(-13px, -8px); }

nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; color: var(--muted); background: transparent; text-align: left; }
.nav-item span { width: 22px; color: #877788; text-align: center; font-size: 1rem; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-item.active { border-color: rgba(255, 95, 158, 0.14); color: var(--text); background: linear-gradient(90deg, rgba(255, 95, 158, 0.13), rgba(255, 95, 158, 0.035)); }
.nav-item.active span { color: var(--pink-soft); }

.network-card { margin-top: auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.025); }
.network-card strong, .network-card span { display: block; }
.network-card strong { font-size: 0.82rem; }
.network-card div span { margin-top: 2px; color: var(--muted); font-size: 0.68rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px currentColor; }
.status-dot.online { background: var(--green); }
.status-dot.offline { background: var(--red); }

.main { width: min(1440px, 100%); margin: 0 auto; padding: 25px clamp(18px, 3vw, 42px) 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.wallet-button { max-width: 210px; overflow: hidden; border: 1px solid var(--line-strong); color: #ffd5e5; background: rgba(255, 95, 158, 0.09); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.disconnect-wallet { border: 1px solid rgba(255, 112, 123, 0.22); padding: 9px 12px; color: #ffd7da; background: rgba(255, 112, 123, 0.08); font-size: 0.75rem; font-weight: 700; }
.disconnect-wallet:hover:not(:disabled) { border-color: rgba(255, 112, 123, 0.42); background: rgba(255, 112, 123, 0.14); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: #d8cad6; background: rgba(255, 255, 255, 0.035); font-size: 0.75rem; }
.live-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.notice { margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; color: #ffe4ee; background: rgba(255, 95, 158, 0.08); }
.screen { display: none; animation: reveal 220ms ease; }
.screen.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr); align-items: center; gap: 28px; overflow: hidden; position: relative; border-radius: 24px; padding: clamp(24px, 4vw, 38px); }
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; bottom: -150px; border-radius: 50%; background: var(--pink); filter: blur(70px); opacity: 0.14; }
.hero > * { position: relative; z-index: 1; }
.contract-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 15px 0; }
.metric { min-width: 0; border-radius: 18px; padding: 18px; box-shadow: none; }
.metric span, .metric small, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 0.78rem; }
.metric strong { overflow: hidden; margin: 9px 0 6px; font-size: clamp(1.18rem, 2vw, 1.65rem); letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.metric small { color: #7f7081; font-size: 0.69rem; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); gap: 15px; }
.panel { min-width: 0; border-radius: 22px; padding: clamp(19px, 2.8vw, 27px); box-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h3 { margin: 0; }
.change { border-radius: 999px; padding: 6px 9px; font-size: 0.76rem; }
.change.positive { color: var(--green); background: rgba(85, 214, 159, 0.09); }
.change.negative { color: var(--red); background: rgba(255, 112, 123, 0.09); }
.change.neutral { color: var(--muted); background: rgba(255, 255, 255, 0.04); }

.chart-panel { overflow: hidden; }
#marketChart { width: 100%; height: auto; min-height: 180px; overflow: visible; }
.chart-line { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-fill { fill: var(--pink); opacity: 0.12; }
.positive-text { color: var(--green) !important; }
.negative-text { color: var(--red) !important; }

.token-list { display: grid; gap: 4px; }
.token-row, .position-row, .discover-row, .farm-card { border: 1px solid transparent; border-radius: 13px; transition: background 150ms ease, border-color 150ms ease; }
.token-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; }
.token-row:hover, .discover-row:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.025); }
.token-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.token-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 95, 158, 0.16); border-radius: 11px; color: var(--pink-soft); background: rgba(255, 95, 158, 0.07); font-weight: 800; }
.token-main strong, .token-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-main strong { font-size: 0.86rem; }
.token-main span { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.token-value { text-align: right; }
.token-value strong, .token-value span { display: block; }
.token-value strong { font-size: 0.82rem; }
.token-value span { margin-top: 2px; color: var(--muted); font-size: 0.69rem; }

.trade-layout { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(330px, 1.1fr); gap: 15px; max-width: 1040px; margin: 0 auto; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: rgba(0, 0, 0, 0.17); }
.segmented.small { width: 220px; }
.segment { background: transparent; color: var(--muted); }
.segment.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.form-row { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 15px; margin-top: 12px; }
.form-row label { margin: 0; }
.token-identity { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.025); }
.token-safety { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: rgba(5, 2, 7, 0.3); }
.safety-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 0.8rem; }
.safety-heading a { font-size: 0.72rem; text-decoration: none; }
.safety-chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.safety-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; font-size: 0.68rem; line-height: 1; }
.safety-chip.safe { border-color: rgba(85, 214, 159, 0.2); color: var(--green); background: rgba(85, 214, 159, 0.07); }
.safety-chip.danger { border-color: rgba(255, 112, 123, 0.22); color: var(--red); background: rgba(255, 112, 123, 0.07); }
.safety-chip.neutral { color: #d9cad7; background: rgba(255, 255, 255, 0.035); }
.token-safety > p { margin: 10px 0 0; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.compact-toggle { margin-top: 12px; padding: 11px 0; }
.compact-toggle strong { font-size: 0.8rem; }
.compact-toggle input { width: 40px; }
.quote-card { min-height: 460px; }
.empty-state { min-height: 310px; display: grid; align-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-state.compact { min-height: 190px; }
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 330px; margin-bottom: 0; line-height: 1.5; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--pink-soft); background: rgba(255, 95, 158, 0.07); font-size: 1.6rem; }
.quote-token { display: flex; align-items: center; gap: 11px; margin: 22px 0; }
.quote-token strong, .quote-token span { display: block; }
.quote-token span { color: var(--muted); font-size: 0.75rem; }
.quote-output { border: 1px solid var(--line-strong); border-radius: 18px; padding: 20px; background: rgba(255, 95, 158, 0.055); }
.quote-output span, .quote-output strong { display: block; }
.quote-output span { color: var(--muted); font-size: 0.75rem; }
.quote-output strong { margin-top: 8px; font-size: 1.7rem; letter-spacing: -0.04em; }
.detail-list { margin: 18px 0 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; }
.safety-box { margin-top: 16px; border: 1px solid rgba(245, 200, 121, 0.18); border-radius: 13px; padding: 11px 12px; color: #e7c991; background: rgba(245, 200, 121, 0.06); font-size: 0.8rem; line-height: 1.45; }
.route-alternatives { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.route-alternatives > strong { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.route-alternatives div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; font-size: 0.7rem; }
.route-alternatives span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.route-alternatives b { font-weight: 650; }

.positions-list { display: grid; gap: 8px; }
.position-row { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(90px, 0.65fr)) auto; align-items: center; gap: 14px; border-color: var(--line); padding: 13px; background: rgba(255, 255, 255, 0.018); }
.wallet-row, .history-row { grid-template-columns: 1.2fr repeat(3, minmax(90px, 0.65fr)) auto; }
.position-cell span, .position-cell strong { display: block; }
.position-cell span { color: var(--muted); font-size: 0.69rem; }
.position-cell strong { margin-top: 4px; font-size: 0.84rem; }
.link-button { display: inline-block; color: var(--text); text-align: center; text-decoration: none; }

.farm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.farm-card { border-color: var(--line); padding: 16px; background: rgba(255, 255, 255, 0.02); }
.farm-card:hover { border-color: var(--line-strong); }
.farm-card strong, .farm-card span { display: block; }
.farm-card .apr { margin: 18px 0 4px; color: var(--green); font-size: 1.35rem; }
.farm-card span { color: var(--muted); font-size: 0.73rem; }

.discover-table { display: grid; gap: 4px; }
.discover-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(4, minmax(85px, 0.65fr)); align-items: center; gap: 12px; padding: 11px 9px; cursor: pointer; }
.discover-cell { text-align: right; }
.discover-cell span, .discover-cell strong { display: block; }
.discover-cell span { color: var(--muted); font-size: 0.68rem; }
.discover-cell strong { margin-top: 3px; font-size: 0.8rem; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row strong, .toggle-row span { display: block; }
.toggle-row span { margin-top: 4px; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.toggle-row input { width: 40px; accent-color: var(--pink); }
.danger-panel { border-color: rgba(255, 112, 123, 0.15); }

.activity-log { display: grid; gap: 8px; margin-top: 18px; }
.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--pink-soft); background: rgba(255, 95, 158, 0.07); }
.activity-item span { color: var(--muted); font-size: 0.72rem; }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(3, 1, 4, 0.76); backdrop-filter: blur(12px); }
.modal-card { width: min(500px, 100%); border-radius: 24px; padding: clamp(24px, 5vw, 34px); }
.wallet-modal-card { width: min(520px, 100%); }
.wallet-options { display: grid; gap: 10px; margin-top: 22px; }
.wallet-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); padding: 15px; color: var(--text); background: rgba(255, 255, 255, 0.035); text-align: left; }
.wallet-option:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255, 95, 158, 0.08); }
.wallet-option-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--pink-soft); background: rgba(255, 95, 158, 0.1); font-size: 1.15rem; }
.wallet-option strong, .wallet-option small { display: block; }
.wallet-option small { margin-top: 4px; color: var(--muted); line-height: 1.35; }

.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.confirm-check { justify-content: flex-start; align-items: flex-start; margin-top: 18px; line-height: 1.4; }
.confirm-check input { width: auto; margin: 2px 0 0; accent-color: var(--pink); }

.skeleton-list:empty::after { content: "Loading live LadyChain data…"; display: block; border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--muted); text-align: center; }

@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 22px 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand-logo-crop, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 11px; }
  .nav-item span { font-size: 1rem; }
  .network-card { justify-content: center; }
  .network-card div { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .farm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; height: auto; display: block; border-width: 0 0 1px; padding: 10px 12px; overflow-x: auto; }
  .brand, .network-card { display: none; }
  nav { display: flex; min-width: max-content; gap: 4px; }
  .nav-item { width: 43px; flex: 0 0 43px; }
  .main { padding: 18px 14px 40px; }
  .topbar { align-items: flex-start; }
  .top-actions .live-pill { display: none; }
  .hero, .trade-layout, .content-grid, .settings-grid { grid-template-columns: 1fr; }
  .hero { gap: 18px; }
  .contract-search { grid-template-columns: 1fr; }
  .farm-grid { grid-template-columns: 1fr; }
  .position-row { grid-template-columns: 1fr 1fr; }
  .discover-row { grid-template-columns: minmax(120px, 1.4fr) 1fr 1fr; }
  .discover-row .discover-cell:nth-child(4), .discover-row .discover-cell:nth-child(5) { display: none; }
}

@media (max-width: 470px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar { display: block; }
  .top-actions { margin-top: 14px; }
  .wallet-button { flex: 1; width: auto; max-width: none; }
  .disconnect-wallet { flex: 0 0 auto; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .segmented.small { width: 100%; }
  .panel-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
