:root {
  color-scheme: dark;
  --bg: #04070d;
  --bg-2: #070c16;
  --panel: rgba(9, 15, 26, 0.72);
  --panel-solid: #0a111d;
  --line: rgba(145, 168, 218, 0.12);
  --line-strong: rgba(145, 168, 218, 0.22);
  --text: #f1f5ff;
  --text-2: #a6b4cc;
  --muted: #7686a3;
  --faint: #4e5e79;
  --blue: #5b7cfa;
  --blue-bright: #8ba4ff;
  --teal: #5de5c8;
  --violet: #9b8cff;
  --red: #ff6b87;
  --gold: #f3ba2f;
  --mono: "SFMono-Regular", "Roboto Mono", "JetBrains Mono", "Cascadia Code", monospace;
  --sans: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 780px at 73% -10%, rgba(58, 87, 210, 0.18), transparent 64%),
    radial-gradient(800px 700px at -8% 36%, rgba(37, 201, 170, 0.06), transparent 64%),
    linear-gradient(180deg, #050911 0%, var(--bg) 48%, #03060b 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(91, 124, 250, .36); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sprite { display: none; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.noise { display: none; }
.page-glow { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(100px); opacity: .45; }
.page-glow-a { width: 600px; height: 500px; top: 220px; right: -220px; background: rgba(74, 106, 255, .18); }
.page-glow-b { width: 500px; height: 460px; top: 900px; left: -280px; background: rgba(43, 195, 162, .08); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(145, 168, 218, .09);
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(22px) saturate(1.25);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 26px rgba(91, 124, 250, .28); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 17px; font-weight: 620; letter-spacing: -.03em; }
.brand-text em { margin-top: 4px; color: #7f94ff; font-family: var(--mono); font-size: 7.5px; font-style: normal; font-weight: 600; letter-spacing: .34em; }
.topnav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(145, 168, 218, .08); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.topnav a { padding: 7px 15px; border-radius: 999px; color: #7e8da8; font-size: 11px; transition: color .2s, background .2s; }
.topnav a:hover { color: #c6d2e9; }
.topnav a.is-active { background: rgba(91, 124, 250, .13); color: #b9c8ff; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; height: 29px; padding: 0 11px; border: 1px solid rgba(93, 229, 200, .18); border-radius: 999px; background: rgba(93, 229, 200, .045); color: #8fd9c8; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); animation: pulse 2.4s ease-in-out infinite; }
.live-chip.is-offline { border-color: rgba(255, 107, 135, .2); background: rgba(255, 107, 135, .05); color: #ff9bad; }
.live-chip.is-offline i { background: var(--red); box-shadow: 0 0 9px var(--red); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .2s, background .2s; }
.wallet-chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.wallet-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(93, 229, 200, .8); }
.wallet-chip code { color: #9dafd1; font-family: var(--mono); font-size: 9px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); color: #8798b7; cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: #c8d5ee; border-color: var(--line-strong); }

main { position: relative; z-index: 1; width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: 30px; min-height: 690px; padding: 62px 0 34px; }
.hero-copy { animation: riseIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.kicker { display: flex; align-items: center; gap: 10px; color: #8194ba; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; }
.kicker-line { width: 24px; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }
.kicker-tag { margin-left: 3px; padding: 3px 6px; border: 1px solid rgba(93, 229, 200, .17); border-radius: 4px; color: #8dd6c5; font-size: 7.5px; }
h1 { margin: 22px 0 0; font-size: clamp(52px, 6.3vw, 88px); font-weight: 620; line-height: 1.04; letter-spacing: -.06em; }
.model-line { display: block; margin-bottom: 8px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.text-gradient { color: transparent; background: linear-gradient(100deg, #e5ecff 0%, #a5b9ff 38%, #5e8bff 64%, #55e1c4 108%); -webkit-background-clip: text; background-clip: text; }
.lede { max-width: 530px; margin: 25px 0 0; color: #8b9ab5; font-size: 13.5px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 11px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-size: 11.5px; font-weight: 520; white-space: nowrap; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #5d7dfa, #435fdf); color: #fff; box-shadow: 0 10px 30px rgba(63, 91, 220, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: linear-gradient(135deg, #6e8cff, #506ceb); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .025); color: #93a3c0; }
.btn-ghost:hover { border-color: var(--line-strong); color: #d3ddf1; }
.hero-meta { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 0; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(145, 168, 218, .1); }
.meta-block { min-width: 0; padding-right: 17px; }
.meta-block + .meta-block { padding-left: 17px; border-left: 1px solid rgba(145, 168, 218, .1); }
.meta-block > span { display: block; color: #5e6f8d; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.address-line { display: flex; align-items: center; gap: 5px; margin-top: 7px; min-width: 0; }
.address-line code { overflow: hidden; color: #bdcbe4; font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.copy-mini { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #647692; cursor: pointer; }
.copy-mini:hover { color: #c8d5ee; background: rgba(255, 255, 255, .04); }
.copy-mini .icon { width: 12px; height: 12px; }
.sync-line { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.sync-line strong { color: #c7d3e8; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.sync-line small { color: #5e6f8d; font-family: var(--mono); font-size: 8px; }
.sync-line .icon { width: 12px; height: 12px; color: #7d92b8; }
.meta-security .sync-line strong { color: #8cd9c6; font-size: 8px; letter-spacing: .06em; }

.hero-stage { position: relative; align-self: stretch; min-height: 580px; overflow: hidden; isolation: isolate; animation: fadeIn 1.2s .1s both; }
#aiCoreCanvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#aiCoreCanvas:active, #aiCoreCanvas.is-dragging { cursor: grabbing; }

.core-hint { position: absolute; z-index: 4; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 4px 8px; border: 1px solid rgba(145, 168, 218, .1); border-radius: 5px; background: rgba(4, 9, 17, .45); color: #6d809d; font-family: var(--mono); font-size: 6.8px; letter-spacing: .1em; white-space: nowrap; pointer-events: none; backdrop-filter: blur(8px); }

.hint-mobile { display: none; }
.stage-halo { position: absolute; z-index: 0; top: 50%; left: 50%; width: min(560px, 92%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(75, 108, 255, .16), rgba(45, 180, 170, .05) 42%, transparent 70%); filter: blur(22px); }
.stage-grid { position: absolute; z-index: 0; inset: 8% 2% 5%; border: 1px solid rgba(126, 154, 255, .055); border-radius: 50%; background-image: linear-gradient(rgba(120, 150, 220, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 220, .055) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, #000 15%, transparent 72%); opacity: .55; }
.core-hud { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px; color: #7385a5; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; white-space: nowrap; pointer-events: none; }
.core-hud b { color: #aab9d4; font-weight: 500; }
.hud-tl { top: 46px; left: 8px; }
.hud-tr { top: 46px; right: 8px; color: #78cbb6; }
.hud-tr i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); animation: pulse 2.2s ease-in-out infinite; }
.hud-bl { bottom: 48px; left: 8px; }
.hud-br { bottom: 48px; right: 8px; }
.hud-bl span, .hud-br span { color: #b3c2dc; }
.hud-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 9px rgba(139, 164, 255, .8); }
.core-caption { position: absolute; z-index: 4; bottom: 78px; left: 50%; transform: translateX(-50%); color: #9eafcb; font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-align: center; white-space: nowrap; pointer-events: none; }
.core-caption span { display: block; margin-top: 4px; color: #4f607d; font-size: 6.8px; letter-spacing: .1em; }
.core-index { position: absolute; z-index: 1; top: 6%; right: 2%; color: rgba(143, 165, 224, .055); font-family: var(--mono); font-size: clamp(100px, 13vw, 180px); font-weight: 600; line-height: 1; letter-spacing: -.08em; pointer-events: none; }

.stats-strip { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); margin-top: 8px; border-top: 1px solid rgba(145, 168, 218, .12); border-bottom: 1px solid rgba(145, 168, 218, .12); animation: riseIn .8s .18s both; }
.stat-cell { display: flex; flex-direction: column; gap: 5px; padding: 21px 22px 22px; min-width: 0; }
.stat-cell + .stat-cell { border-left: 1px solid rgba(145, 168, 218, .1); }
.stat-cell > span { color: #677894; font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; }
.stat-cell strong { color: #eaf0ff; font-family: var(--mono); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.stat-main strong { font-size: 31px; }
.stat-cell small { color: #53647f; font-family: var(--mono); font-size: 7.5px; letter-spacing: .02em; white-space: nowrap; }
.stat-main small { color: #6f85ad; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 68px 0 20px; }
.eyebrow { margin: 0 0 8px; color: #667895; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; }
.section-head h2 { display: flex; align-items: baseline; gap: 7px; margin: 0; color: #edf2ff; font-size: 27px; font-weight: 560; letter-spacing: -.045em; }
.section-head h2 em { color: #687a97; font-family: var(--mono); font-size: 10px; font-style: normal; font-weight: 400; letter-spacing: .02em; }
.head-slash { color: #3e4f69; font-family: var(--mono); font-size: 18px; font-weight: 300; }
.section-side { display: flex; align-items: center; gap: 13px; padding-bottom: 3px; }
.mini-live { display: inline-flex; align-items: center; gap: 5px; color: #78cbb6; font-family: var(--mono); font-size: 7.5px; letter-spacing: .06em; }
.mini-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 7px var(--teal); animation: pulse 2.4s ease-in-out infinite; }
.muted { color: #5b6c88; font-family: var(--mono); font-size: 8px; }

.bento { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 16px; align-items: stretch; }
.bento-side { display: flex; flex-direction: column; gap: 16px; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(158deg, rgba(16, 26, 44, .86), rgba(8, 13, 23, .88)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .03); }
.panel::before { content: ""; position: absolute; top: 0; left: 9%; width: 82%; height: 1px; background: linear-gradient(90deg, transparent, rgba(171, 194, 255, .16), transparent); pointer-events: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px 15px; }
.panel-title { display: flex; align-items: center; gap: 10px; }
.panel-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(126, 154, 255, .13); border-radius: 8px; background: rgba(91, 124, 250, .06); color: #91a8e7; }
.panel-icon .icon { width: 14px; height: 14px; }
.panel-title p { margin: 0 0 2px; color: #566883; font-family: var(--mono); font-size: 6.8px; letter-spacing: .14em; }
.panel-title h3 { margin: 0; color: #dfe8fa; font-size: 13.5px; font-weight: 530; letter-spacing: -.02em; }
.count-pill { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: #8194b8; font-family: var(--mono); font-size: 8px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 21px 13px; border-top: 1px solid var(--line); color: #4f607a; font-family: var(--mono); font-size: 7px; letter-spacing: .04em; }
.panel-foot a { display: inline-flex; align-items: center; gap: 4px; color: #7084a8; transition: color .2s; }
.panel-foot a:hover { color: #b5c6e6; }
.panel-foot .icon { width: 10px; height: 10px; }

.holdings-panel { display: flex; flex-direction: column; min-height: 430px; }
.holdings-list { flex: 1; padding: 0 10px; }
.holding-cols, .holding-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(80px, .8fr) minmax(100px, .9fr) minmax(100px, .9fr) minmax(70px, .55fr); gap: 12px; align-items: center; }
.holding-cols { padding: 7px 11px 9px; color: #4f607b; font-family: var(--mono); font-size: 6.8px; letter-spacing: .1em; }
.holding-row { padding: 12px 11px; border-top: 1px solid rgba(145, 168, 218, .075); animation: rowIn .35s both; }
.holding-row:hover { background: rgba(126, 154, 255, .025); }
.holding-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.token-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border: 1px solid color-mix(in srgb, var(--token, #7590c0) 26%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--token, #7590c0) 12%, transparent); color: var(--token, #a8b9d6); font-family: var(--mono); font-size: 10px; font-weight: 600; }
.holding-name { display: flex; flex-direction: column; min-width: 0; }
.holding-name strong { color: #e2eaf8; font-size: 11.5px; font-weight: 540; }
.holding-name span { overflow: hidden; color: #5c6d88; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.holding-cell { display: flex; flex-direction: column; gap: 2px; }
.holding-cell strong { color: #c5d2e7; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.holding-cell small { color: #52637d; font-family: var(--mono); font-size: 7px; }
.holding-value strong { color: #e5edfb; }
.holding-change strong { color: var(--teal); }
.holding-change strong.negative { color: var(--red); }
.holding-alloc { display: flex; flex-direction: column; gap: 5px; }
.holding-alloc strong { color: #b9c8e0; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.alloc-track { width: 100%; height: 3px; border-radius: 9px; background: rgba(145, 168, 218, .1); overflow: hidden; }
.alloc-track span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--token, #5b7cfa), color-mix(in srgb, var(--token, #5b7cfa) 45%, #fff)); }
.empty-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; padding: 26px; text-align: center; }
.empty-orb { width: 38px; height: 38px; margin-bottom: 14px; border: 1px solid rgba(93, 229, 200, .18); border-radius: 50%; background: radial-gradient(circle, rgba(93, 229, 200, .14), transparent 66%); box-shadow: 0 0 24px rgba(93, 229, 200, .08); }
.empty-panel strong { color: #b5c4dc; font-size: 11.5px; font-weight: 520; }
.empty-panel p { max-width: 310px; margin: 5px 0 0; color: #5c6d88; font-size: 9px; line-height: 1.7; }
.empty-panel .btn { margin-top: 16px; height: 34px; font-size: 9.5px; }

.allocation-panel { padding-bottom: 2px; }
.allocation-total { display: flex; align-items: baseline; gap: 8px; padding: 1px 21px 14px; }
.allocation-total strong { color: #eaf1ff; font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.allocation-total span { color: #53647e; font-family: var(--mono); font-size: 7px; }
.allocation-bars { display: flex; flex-direction: column; gap: 8px; padding: 0 21px 18px; }
.allocation-empty { padding: 11px 0 5px; color: #52637d; font-size: 9px; }
.allocation-row { display: grid; grid-template-columns: 8px minmax(45px, .8fr) minmax(90px, 1.4fr) 43px; gap: 8px; align-items: center; }
.allocation-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--token, #5b7cfa); box-shadow: 0 0 7px color-mix(in srgb, var(--token, #5b7cfa) 65%, transparent); }
.allocation-row span { overflow: hidden; color: #9dafc9; font-family: var(--mono); font-size: 7.5px; text-overflow: ellipsis; }
.allocation-row div { height: 3px; border-radius: 6px; background: rgba(145, 168, 218, .1); overflow: hidden; }
.allocation-row div b { display: block; height: 100%; border-radius: 6px; background: var(--token, #5b7cfa); }
.allocation-row em { color: #7184a4; font-family: var(--mono); font-size: 7px; font-style: normal; text-align: right; }

.monitor-panel { flex: 1; }
.monitor-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid rgba(93, 229, 200, .16); border-radius: 5px; background: rgba(93, 229, 200, .05); color: #83d8c1; font-family: var(--mono); font-size: 6.8px; letter-spacing: .08em; }
.monitor-state i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 7px var(--teal); animation: pulse 2.4s ease-in-out infinite; }
.monitor-state.is-offline { border-color: rgba(255, 107, 135, .18); background: rgba(255, 107, 135, .05); color: #ff9cad; }
.monitor-state.is-offline i { background: var(--red); box-shadow: 0 0 7px var(--red); }
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 0 21px 13px; }
.monitor-grid div { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-top: 1px solid rgba(145, 168, 218, .07); }
.monitor-grid span { color: #566883; font-family: var(--mono); font-size: 6.8px; letter-spacing: .06em; }
.monitor-grid strong { overflow: hidden; color: #b9c8df; font-family: var(--mono); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.monitor-scan { display: flex; align-items: center; gap: 9px; margin: 0 21px 16px; padding: 9px 10px; border: 1px solid rgba(91, 124, 250, .12); border-radius: 7px; background: rgba(91, 124, 250, .035); }
.monitor-scan span { width: 6px; height: 6px; flex: none; border: 1px solid rgba(93, 229, 200, .5); border-radius: 50%; box-shadow: 0 0 9px rgba(93, 229, 200, .45); animation: pulse 1.8s ease-in-out infinite; }
.monitor-scan p { margin: 0; color: #647692; font-family: var(--mono); font-size: 7px; line-height: 1.4; }

.ledger-panel { margin-top: 16px; }
.ledger-head { padding-bottom: 13px; }
.ledger-tools { display: flex; align-items: center; gap: 13px; }
.cursor-chip { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #60738e; font-family: var(--mono); font-size: 7px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: #7e91b3; font-size: 9px; transition: color .2s; }
.text-link:hover { color: #c1d0ea; }
.text-link .icon { width: 11px; height: 11px; }
.ledger-head-row, .ledger-row { display: grid; grid-template-columns: 70px 86px minmax(130px, 1.15fr) 120px minmax(100px, .8fr) 150px; gap: 14px; align-items: center; }
.ledger-head-row { padding: 8px 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #4e5f7a; font-family: var(--mono); font-size: 6.7px; letter-spacing: .05em; background: rgba(255, 255, 255, .01); }
.ledger-list { max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #26354c transparent; }
.ledger-list::-webkit-scrollbar { width: 5px; }
.ledger-list::-webkit-scrollbar-thumb { border-radius: 9px; background: #26354c; }
.ledger-row { padding: 12px 21px; border-bottom: 1px solid rgba(145, 168, 218, .065); transition: background .2s; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: rgba(91, 124, 250, .025); }
.ledger-time { display: flex; flex-direction: column; gap: 2px; }
.ledger-time strong { color: #bdcbe2; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.ledger-time small { color: #52637d; font-family: var(--mono); font-size: 7px; }
.dir-pill { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 4px 7px; border: 1px solid rgba(93, 229, 200, .14); border-radius: 5px; background: rgba(93, 229, 200, .05); color: #83d8c1; font-family: var(--mono); font-size: 7px; }
.dir-pill.out { border-color: rgba(243, 186, 47, .14); background: rgba(243, 186, 47, .05); color: #d9b966; }
.dir-pill .icon { width: 9px; height: 9px; }
.ledger-asset { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ledger-token { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border: 1px solid color-mix(in srgb, var(--token, #7590c0) 26%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--token, #7590c0) 12%, transparent); color: var(--token, #9fb0cb); font-family: var(--mono); font-size: 8px; font-weight: 600; }
.ledger-name { display: flex; flex-direction: column; min-width: 0; }
.ledger-name strong { color: #d6e0ef; font-size: 10px; font-weight: 520; }
.ledger-name span { overflow: hidden; color: #556680; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.ledger-amount { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.ledger-amount strong { font-family: var(--mono); font-size: 10px; font-weight: 500; }
.ledger-amount strong.in { color: var(--teal); }
.ledger-amount strong.out { color: #e6c06b; }
.ledger-amount small { color: #52637d; font-family: var(--mono); font-size: 7px; }
.ledger-party, .ledger-tx { overflow: hidden; color: #7f91af; font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ledger-tx a:hover { color: #c7d6f0; }
.ledger-tx span { color: #5e708b; }
.ledger-empty { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 150px; padding: 28px 21px; text-align: left; }
.scanner { position: relative; width: 42px; height: 42px; flex: none; border: 1px solid rgba(93, 229, 200, .14); border-radius: 50%; background: radial-gradient(circle, rgba(93, 229, 200, .1), transparent 68%); }
.scanner::before, .scanner::after { content: ""; position: absolute; border: 1px solid rgba(93, 229, 200, .12); border-radius: 50%; }
.scanner::before { inset: 7px; }
.scanner::after { inset: 14px; }
.scanner { animation: scannerPulse 3s ease-in-out infinite; }
.ledger-empty strong { color: #aebdd5; font-size: 11px; font-weight: 520; }
.ledger-empty p { margin: 4px 0 0; color: #5a6c86; font-size: 9px; }

.market-section { padding-bottom: 20px; }
.market-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.market-card { position: relative; overflow: hidden; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(160deg, rgba(15, 24, 41, .78), rgba(7, 12, 21, .8)); transition: border-color .2s, transform .2s; }
.market-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.market-top { display: flex; align-items: center; gap: 8px; }
.market-avatar { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--token, #7590c0) 26%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--token, #7590c0) 12%, transparent); color: var(--token, #9fb0cb); font-family: var(--mono); font-size: 9px; font-weight: 600; }
.market-name { display: flex; flex-direction: column; line-height: 1.2; }
.market-name strong { color: #d9e3f4; font-size: 10px; font-weight: 540; }
.market-name span { color: #566883; font-family: var(--mono); font-size: 6.5px; }
.market-change { margin-left: auto; font-family: var(--mono); font-size: 8px; }
.market-change.up { color: var(--teal); }
.market-change.down { color: var(--red); }
.market-price { margin-top: 12px; color: #e7eeff; font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.market-spark { display: block; width: 100%; height: 28px; margin-top: 7px; overflow: visible; }
.market-spark path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1280px, calc(100% - 64px)); margin: 54px auto 0; padding: 25px 0 31px; border-top: 1px solid rgba(145, 168, 218, .1); }
.footer-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; opacity: .9; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: #899ab5; font-size: 9px; font-weight: 540; }
.footer-brand span { color: #445570; font-family: var(--mono); font-size: 6.5px; letter-spacing: .08em; }
.footer p { margin: 0; color: #4d5e79; font-size: 8.5px; }
.footer-links { display: flex; align-items: center; gap: 14px; }
.footer-links button, .footer-links a { padding: 0; border: 0; background: transparent; color: #6d7f9d; font-size: 9px; cursor: pointer; }
.footer-links button:hover, .footer-links a:hover { color: #b9c9e2; }

.modal { position: fixed; z-index: 100; width: min(510px, calc(100vw - 28px)); max-height: calc(100vh - 30px); overflow-y: auto; padding: 28px; border: 1px solid rgba(145, 168, 218, .18); border-radius: 22px; background: linear-gradient(160deg, #101a2c, #070c15 70%); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(1, 4, 9, .76); backdrop-filter: blur(9px); }
.modal[open] { animation: modalIn .28s cubic-bezier(.2, .7, .2, 1) both; }
.modal-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); color: #8193b1; cursor: pointer; }
.modal-close:hover { color: #d3ddf0; }
.modal .eyebrow { margin-bottom: 10px; }
.modal h2 { margin: 0; color: #eef4ff; font-size: 27px; font-weight: 580; letter-spacing: -.045em; }
.modal-lede { margin: 11px 0 20px; color: #7f90ab; font-size: 10.5px; line-height: 1.75; }
.qr-wrap { display: grid; place-items: center; width: 246px; height: 246px; margin: 0 auto 16px; border: 1px solid rgba(145, 168, 218, .16); border-radius: 17px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 50px rgba(91, 124, 250, .12); }
.qr-wrap img { width: 218px; height: 218px; }
.address-box { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.address-box code { overflow: hidden; flex: 1; color: #aebed7; font-family: var(--mono); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .025); color: #8295b3; font-size: 8px; cursor: pointer; }
.copy-btn:hover { color: #c9d7ed; border-color: var(--line-strong); }
.copy-btn .icon { width: 11px; height: 11px; }
.modal-note { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 18px; padding: 10px; border: 1px solid rgba(243, 186, 47, .13); border-radius: 8px; background: rgba(243, 186, 47, .035); color: #927f50; font-size: 8.5px; line-height: 1.6; }
.modal-note .icon { width: 12px; height: 12px; margin-top: 1px; flex: none; }
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; height: 38px; font-size: 10.5px; }
.about-modal { width: min(620px, calc(100vw - 28px)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.about-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .015); }
.about-grid span { color: #5b7cfa; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.about-grid h3 { margin: 7px 0 4px; color: #cfd9ea; font-size: 10.5px; font-weight: 540; }
.about-grid p { margin: 0; color: #667892; font-size: 8.5px; line-height: 1.65; }

.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; max-width: 330px; padding: 10px 13px; border: 1px solid rgba(145, 168, 218, .18); border-radius: 9px; background: rgba(8, 14, 24, .94); color: #bac8de; font-size: 9.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(12px); animation: toastIn .25s both; }
.toast .icon { width: 13px; height: 13px; color: var(--teal); }
.toast.is-error .icon { color: var(--red); }

.skeleton { position: relative; overflow: hidden; color: transparent !important; border-radius: 4px; background: rgba(145, 168, 218, .08); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); animation: shimmer 1.5s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.72); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes scannerPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(93, 229, 200, 0); } 50% { box-shadow: 0 0 0 8px rgba(93, 229, 200, .025); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* AI decision journal */
.journal-section {
  padding-bottom: 16px;
  scroll-margin-top: 90px;
}

.journal-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(91, 124, 250, .13);
  border-radius: 10px;
  background: rgba(91, 124, 250, .035);
}

.journal-pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(93, 229, 200, .65);
  animation: pulse 2.2s ease-in-out infinite;
}

.journal-note p {
  flex: 1;
  margin: 0;
  color: #7185a2;
  font-size: 9px;
  line-height: 1.55;
}

.journal-count {
  flex: none;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #8da1c0;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .04em;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.journal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 322px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(158deg, rgba(15, 25, 43, .84), rgba(6, 11, 20, .9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.journal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--token, #5b7cfa) 36%, transparent), transparent);
}

.journal-card::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--token, #5b7cfa) 9%, transparent);
  filter: blur(35px);
  pointer-events: none;
}

.journal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journal-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.journal-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--token, #7590c0) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--token, #7590c0) 13%, transparent);
  color: var(--token, #9fb0cb);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.journal-asset div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.journal-asset strong {
  color: #dfe8f8;
  font-size: 11px;
  font-weight: 550;
}

.journal-asset span {
  overflow: hidden;
  color: #586a85;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-badge {
  flex: none;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: .07em;
}

.journal-badge.is-watching {
  border-color: rgba(93, 229, 200, .16);
  background: rgba(93, 229, 200, .05);
  color: #86d9c4;
}

.journal-badge.is-neutral {
  color: #647994;
}

.journal-badge.is-buy {
  border-color: rgba(93, 229, 200, .2);
  background: rgba(93, 229, 200, .07);
  color: #8be2cb;
}

.journal-badge.is-sell {
  border-color: rgba(255, 107, 135, .18);
  background: rgba(255, 107, 135, .06);
  color: #ff9cad;
}

.journal-thesis {
  position: relative;
  z-index: 1;
  min-height: 58px;
  margin: 16px 0 14px;
  color: #b3c2d8;
  font-size: 10.5px;
  line-height: 1.7;
}

.journal-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #586b87;
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: .06em;
}

.journal-score strong {
  color: #dbe6f8;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.journal-scorebar {
  height: 3px;
  margin: 6px 0 11px;
  border-radius: 8px;
  background: rgba(145, 168, 218, .1);
  overflow: hidden;
}

.journal-scorebar span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--token, #5b7cfa) 50%, #fff), var(--token, #5b7cfa));
}

.journal-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #7185a2;
  font-family: var(--mono);
  font-size: 7px;
}

.journal-metrics span {
  padding-right: 10px;
  border-right: 1px solid rgba(145, 168, 218, .1);
}

.journal-metrics span:last-child {
  padding-right: 0;
  border-right: 0;
}

.journal-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.journal-reasons li {
  position: relative;
  padding-left: 11px;
  color: #667a96;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.55;
}

.journal-reasons li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--token, #5b7cfa);
}

.journal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(145, 168, 218, .075);
  color: #4d5f79;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .04em;
}

.journal-foot a {
  color: #7e94b9;
}

.journal-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .012);
  text-align: center;
}

.journal-loading strong {
  margin-top: 4px;
  color: #aebed6;
  font-size: 11px;
  font-weight: 520;
}

.journal-loading p {
  margin: 4px 0 0;
  color: #5b6e89;
  font-size: 9px;
}

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { min-height: 510px; margin-top: -10px; }
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .ledger-head-row, .ledger-row { grid-template-columns: 62px 78px minmax(120px, 1.1fr) 110px minmax(100px, .8fr) 130px; gap: 10px; }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  main, .footer { width: calc(100% - 36px); }
  .topbar { height: 66px; padding: 0 18px; }
  .brand-text em { display: none; }
  .top-actions { gap: 6px; }
  .wallet-chip { padding: 0 8px; }
  .wallet-chip code { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
  .live-chip { padding: 0 8px; }
  .live-chip span { display: none; }
  .live-chip { width: 27px; justify-content: center; }
  h1 { font-size: clamp(43px, 10vw, 64px); }
  .hero { gap: 10px; padding-top: 38px; }
  .hero-stage { min-height: 430px; }
  .core-index { display: none; }
  .core-hud { font-size: 6.8px; }
  .hud-tl, .hud-tr { top: 16px; }
  .hud-bl, .hud-br { bottom: 16px; }
  .core-caption { bottom: 42px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid rgba(145, 168, 218, .1); }
  .stat-main { grid-column: 1 / -1; }
  .stat-main + .stat-cell { border-left: 0; }
  .bento { grid-template-columns: 1fr; }
  .holdings-panel { min-height: 360px; }
  .ledger-head-row { display: none; }
  .ledger-row { grid-template-columns: 57px 70px minmax(110px, 1fr) 92px; gap: 9px; padding: 11px 17px; }
  .ledger-party, .ledger-tx { display: none; }
  .ledger-tools .text-link { display: none; }
  .ledger-empty { min-height: 130px; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-wrap: wrap; gap: 14px; }
  .footer p { order: 3; flex-basis: 100%; }
}

@media (max-width: 560px) {
  main, .footer { width: calc(100% - 28px); }
  .topbar { padding: 0 14px; }
  .brand img { width: 33px; height: 33px; }
  .brand-text strong { font-size: 15px; }
  .icon-btn { display: none; }
  .hero { padding-top: 32px; }
  h1 { font-size: 43px; }
  .lede { margin-top: 20px; font-size: 12px; line-height: 1.8; }
  .hero-actions { width: 100%; margin-top: 24px; }
  .hero-actions .btn { flex: 1; padding: 0 10px; font-size: 10.5px; }
  .hero-meta { grid-template-columns: 1.4fr 1fr; margin-top: 30px; }
  .meta-security { display: none; }
  .hero-stage { min-height: 355px; margin: 4px -12px 0; }
  .core-hud { font-size: 6px; letter-spacing: .04em; }
  .hud-tl { left: 16px; }
  .hud-tr { right: 16px; }
  .hud-bl { left: 16px; }
  .hud-br { right: 16px; }
  .core-caption { bottom: 34px; font-size: 7px; }

  .core-hint { bottom: 8px; font-size: 6px; }

  .hint-desktop { display: none; }

  .hint-mobile { display: inline; }
  .core-caption span { font-size: 5.8px; }
  .stats-strip { margin-top: 0; }
  .stat-cell { padding: 16px 14px; }
  .stat-cell strong, .stat-main strong { font-size: 21px; }
  .stat-cell small { font-size: 6.5px; }
  .section-head { margin-top: 46px; }
  .section-head h2 { font-size: 23px; }
  .section-side .muted { display: none; }
  .panel-head { padding: 16px 15px 13px; }
  .panel-foot { padding: 10px 15px; font-size: 6.5px; }
  .holding-cols { grid-template-columns: 1fr 75px 75px; }
  .holding-cols span:nth-child(2), .holding-cols span:nth-child(5) { display: none; }
  .holding-row { grid-template-columns: minmax(120px, 1fr) 75px 75px; gap: 8px; padding: 11px 8px; }
  .holding-cell.qty-cell, .holding-alloc { display: none; }
  .holding-asset { gap: 8px; }
  .token-avatar { width: 27px; height: 27px; font-size: 9px; }
  .holding-name strong { font-size: 10.5px; }
  .holding-cell strong { font-size: 9px; }
  .allocation-total, .allocation-bars { padding-left: 15px; padding-right: 15px; }
  .monitor-grid { padding-left: 15px; padding-right: 15px; }
  .monitor-scan { margin-left: 15px; margin-right: 15px; }
  .ledger-row { grid-template-columns: 48px 63px minmax(95px, 1fr) 76px; gap: 7px; padding: 10px 14px; }
  .ledger-head, .ledger-tools { padding-left: 15px; padding-right: 15px; }
  .cursor-chip { font-size: 6px; }
  .ledger-empty { align-items: flex-start; padding: 22px 15px; }
  .ledger-empty p { font-size: 8px; }
  .market-grid { gap: 8px; }
  .market-card { padding: 11px 11px 8px; }
  .market-price { font-size: 14px; }
  .footer-brand span { display: none; }
  .footer-links { gap: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 17px; }
  .qr-wrap { width: 218px; height: 218px; }
  .qr-wrap img { width: 192px; height: 192px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1000px) {
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .journal-note p {
    flex-basis: calc(100% - 18px);
    order: 2;
  }

  .journal-count {
    margin-left: auto;
    order: 1;
  }

  .journal-card {
    min-height: 300px;
  }
}
