:root {
  --canvas: #e7e5df;
  --canvas-sub: #666965;
  --frame: #ffffff;
  --app-bg: #f2f4f6;
  --side-bg: #ffffff;
  --card-bg: #ffffff;
  --text: #191f28;
  --sub: #8b95a1;
  --line: #eceef1;
  --hair: #f0f2f4;
  --chip: #f2f4f6;
  --chip-text: #4e5968;
  --search: #f2f4f6;
  --accent: #3182f6;
  --accent-soft: rgba(49, 130, 246, 0.09);
  --accent-border: rgba(49, 130, 246, 0.22);
  --needs-api: #8b5cf6;
  --needs-api-soft: rgba(139, 92, 246, 0.11);
  --needs-api-border: rgba(139, 92, 246, 0.32);
  --up: #f04452;
  --down: #3182f6;
  --flat: #9aa0aa;
  --shadow: 0 12px 44px rgba(0, 0, 0, 0.14);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #0c0d10;
  --canvas-sub: #737b88;
  --frame: #15171c;
  --app-bg: #15171c;
  --side-bg: #1b1e25;
  --card-bg: #1b1e25;
  --text: #eef0f3;
  --sub: #8f96a3;
  --line: #272b34;
  --hair: #23262e;
  --chip: #262a32;
  --chip-text: #b0b6c0;
  --search: #23262e;
  --accent: #5b9bff;
  --accent-soft: rgba(91, 155, 255, 0.12);
  --accent-border: rgba(91, 155, 255, 0.26);
  --needs-api: #a78bfa;
  --needs-api-soft: rgba(167, 139, 250, 0.14);
  --needs-api-border: rgba(167, 139, 250, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --card-shadow: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.wow-root {
  min-height: 100vh;
}

.wow-app {
  min-height: 100vh;
  padding: 22px clamp(18px, 2vw, 36px) 32px;
}

.view-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--frame) 86%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.segmented button,
.theme-toggle,
.icon-btn {
  border: 0;
  color: var(--canvas-sub);
  background: transparent;
}

.segmented button {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.segmented button[aria-pressed="true"] {
  color: var(--text);
  background: var(--frame);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--frame) 88%, transparent);
  color: var(--text);
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.desktop-board {
  width: min(100%, 1880px);
  min-height: calc(100vh - 54px);
  margin: 0 auto;
}

.desktop-top-ad-row {
  display: flex;
  justify-content: center;
  min-height: 96px;
  margin: 0 auto 18px;
}

.desktop-ad-layout {
  display: grid;
  grid-template-columns: clamp(132px, 8vw, 172px) minmax(0, 1fr) clamp(132px, 8vw, 172px);
  gap: 18px;
  align-items: start;
}

.desktop-workbench {
  min-width: 0;
}

.ad-slot {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--frame) 56%, transparent), color-mix(in srgb, var(--frame) 24%, transparent));
}

.ad-slot-top {
  width: min(970px, 100%);
  height: 96px;
}

.ad-rail {
  position: sticky;
  top: 22px;
  height: min(640px, calc(100vh - 44px));
}

.board-caption {
  margin: 0 0 12px;
  color: var(--canvas-sub);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.desktop-frame {
  display: flex;
  height: min(1040px, calc(100vh - 158px));
  min-height: 860px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--frame);
  box-shadow: var(--shadow);
}

.sidebar {
  flex: none;
  width: clamp(218px, 15vw, 248px);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  overflow-y: auto;
  background: var(--side-bg);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 8px 22px;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  justify-content: center;
  padding: 7px 6px;
  background: var(--accent);
}

.mark i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: #fff;
}

.mark i:nth-child(1) {
  height: 7px;
  opacity: 0.55;
}

.mark i:nth-child(2) {
  height: 11px;
  opacity: 0.8;
}

.mark i:nth-child(3) {
  height: 16px;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.brand span {
  color: var(--sub);
  font-size: 11px;
}

.side-panel,
.mobile-panel,
.asset-card,
.news-card,
.note-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.side-panel {
  padding: 11px;
  margin-bottom: 14px;
}

.side-title,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-title strong,
.section-title strong {
  font-size: 12px;
}

.side-title span,
.section-title span {
  color: var(--sub);
  font-size: 11px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
}

.calendar-monthbar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.calendar-monthbar strong {
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.calendar-monthbar button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--chip);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.weekday,
.day {
  display: flex;
  align-items: center;
  justify-content: center;
}

.weekday {
  height: 18px;
  color: var(--sub);
  font-size: 9px;
  font-weight: 700;
}

.day {
  position: relative;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 0;
  color: var(--sub);
  background: transparent;
  font-size: 10.5px;
  font-weight: 800;
}

.day.today {
  color: var(--text);
  background: var(--chip);
}

.day.selected {
  color: #fff;
  background: var(--accent);
}

.day.has-event {
  color: var(--event-color);
}

.day.selected.has-event {
  color: #fff;
}

.day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--event-color);
}

.event-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.event-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--event-color);
}

.event-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item span {
  color: var(--sub);
  font-size: 10px;
}

.event-item.empty {
  grid-template-columns: 7px minmax(0, 1fr) auto;
}

.event-delete {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: var(--sub);
  background: var(--chip);
  font-size: 15px;
  line-height: 1;
}

.event-delete:hover {
  color: #fff;
  background: var(--up);
}

.calendar-tools {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.calendar-input,
.calendar-add {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.calendar-input {
  padding: 0 10px;
  color: var(--text);
  background: var(--app-bg);
  outline: 0;
  font-size: 12px;
}

.calendar-input:focus {
  border-color: var(--accent);
}

.calendar-add {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.calendar-selected-title {
  margin-top: 12px;
}

.side-nav {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--sub);
  background: transparent;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text);
  background: var(--chip);
}

.nav-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: currentColor;
}

.nav-item.active .nav-dot {
  background: var(--accent);
}

.side-status {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 11px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #21c45d;
}

.desktop-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px clamp(26px, 2vw, 34px) 34px;
  background: var(--app-bg);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--sub);
  background: var(--search);
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
}

.search-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.top-spacer {
  flex: 1;
}

.market-state {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
}

.login-btn,
.sort-btn,
.chip,
.collapse-btn,
.add-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 700;
}

.login-btn {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.headline h1,
.mobile-hero h1 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.headline h1 {
  font-size: 23px;
  line-height: 1.15;
}

.headline p,
.mobile-hero p {
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 13px;
}

.sort-btn {
  height: 38px;
  padding: 0 13px;
  color: var(--sub);
}

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar,
.mobile-scroll::-webkit-scrollbar,
.phone-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chip {
  min-height: 32px;
  padding: 0 15px;
  color: var(--chip-text);
  background: var(--chip);
  border-color: transparent;
  font-size: 13px;
  white-space: nowrap;
}

.chip.active {
  color: #fff;
  background: var(--accent);
}

.board-section {
  margin-top: 18px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title strong {
  font-size: 15px;
  color: var(--text);
}

.section-title small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.section-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.collapse-btn,
.add-btn {
  min-height: 28px;
  padding: 0 11px;
  color: var(--sub);
  background: var(--chip);
  border-color: transparent;
  font-size: 12px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.asset-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1540px) {
  .asset-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  }
}

@media (max-width: 1579px) {
  .desktop-ad-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-rail {
    display: none;
  }

  .desktop-frame {
    min-height: 820px;
  }
}

.asset-card {
  min-width: 0;
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
}

.asset-card.needs-api {
  border-color: var(--needs-api-border);
  background: linear-gradient(180deg, var(--needs-api-soft), var(--card-bg) 42%);
}

.asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-name {
  min-width: 0;
  overflow: hidden;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-value {
  margin-top: 9px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.needs-api .asset-value,
.mobile-asset.needs-api b {
  color: var(--needs-api);
}

.asset-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.change {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.change.up {
  color: var(--up);
}

.change.down {
  color: var(--down);
}

.change.flat {
  color: var(--flat);
}

.needs-api .change {
  color: var(--needs-api);
}

.api-hint {
  margin-top: 9px;
  overflow: hidden;
  color: var(--needs-api);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spark {
  height: 34px;
  min-width: 0;
}

.spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}

.flow-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--sub);
  font-size: 11px;
}

.flow-row b {
  color: var(--flow-color);
}

.section-stack {
  display: grid;
  gap: 16px;
}

.market-group {
  padding-top: 4px;
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.group-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.group-head span {
  color: var(--sub);
  font-size: 12px;
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-card {
  min-width: 0;
  padding: 15px;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.news-head strong {
  color: var(--text);
  font-size: 14px;
}

.news-source-link {
  min-width: 0;
  overflow: hidden;
}

.news-source-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-source-link:hover strong,
.news-list a:hover b {
  color: var(--accent);
}

.news-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
}

.news-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 900;
}

.news-open-link:hover {
  background: var(--accent);
  color: #fff;
}

.badge {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.badge.api-needed {
  color: var(--needs-api);
}

.api-gap-panel {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid var(--needs-api-border);
  border-radius: 14px;
  background: var(--needs-api-soft);
}

.api-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.api-gap-head strong {
  color: var(--needs-api);
  font-size: 13px;
  font-weight: 900;
}

.api-gap-head span {
  color: var(--sub);
  font-size: 11px;
  font-weight: 800;
}

.api-gap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.api-gap-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.api-gap-item b,
.api-gap-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-gap-item b {
  color: var(--text);
  font-size: 12px;
}

.api-gap-item span {
  color: var(--needs-api);
  font-size: 11px;
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: var(--text);
  font-size: 12.5px;
}

.news-list a {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.news-list b {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list span {
  color: var(--sub);
  font-size: 11px;
}

.yt-input {
  display: grid;
  grid-template-columns: minmax(74px, 0.62fr) minmax(0, 1fr) 34px;
  gap: 7px;
  margin-bottom: 10px;
}

.yt-input input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--card-bg);
  outline: 0;
  font-size: 12px;
}

.yt-input button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.yt-list {
  display: grid;
  gap: 7px;
  max-height: 344px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.yt-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px 28px;
  gap: 7px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: var(--card-bg);
  text-align: left;
}

.yt-row.editing {
  grid-template-columns: 30px minmax(68px, 0.58fr) minmax(0, 1fr) 44px 28px;
}

.yt-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #ff0033;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.yt-name {
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-name:hover {
  color: var(--accent);
}

.yt-edit {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: var(--app-bg);
  font-size: 11.5px;
  outline: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-edit:focus {
  border-color: var(--accent);
  background: var(--card-bg);
}

.yt-edit-btn,
.yt-save {
  height: 30px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.yt-edit-btn {
  color: var(--accent);
  background: var(--accent-soft);
}

.yt-save {
  color: #fff;
  background: var(--accent);
}

.yt-delete {
  width: 28px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--sub);
  background: var(--chip);
  font-size: 16px;
  line-height: 1;
}

.yt-delete:hover {
  color: #fff;
  background: var(--up);
}

.add-stock-card {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 138px;
  border: 1px dashed var(--accent-border);
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 900;
}

.add-stock-card b {
  font-size: 16px;
}

.add-stock-card span {
  color: var(--sub);
  font-size: 12px;
}

.note-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.note-table-wrap {
  overflow-x: auto;
}

.note-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.note-table th,
.note-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--hair);
  text-align: right;
  white-space: nowrap;
}

.note-table th:first-child,
.note-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  color: var(--sub);
  background: var(--card-bg);
  text-align: left;
}

.note-table th {
  color: var(--text);
  background: var(--app-bg);
  font-weight: 900;
}

.note-table .selected {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 900;
}

.note-detail {
  margin-top: 12px;
  padding: 15px 17px;
}

.note-detail h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
}

.note-detail p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.mobile-board {
  display: none;
  width: 390px;
  margin: 0 auto;
}

.phone-frame {
  width: 390px;
  height: 844px;
  padding: 11px;
  border-radius: 52px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: var(--app-bg);
}

.phone-scroll {
  position: absolute;
  inset: 0 0 74px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px 12px;
}

.mobile-brand {
  display: flex;
  gap: 9px;
  align-items: center;
}

.mobile-brand .mark {
  width: 30px;
  height: 30px;
}

.mobile-brand strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.mobile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--card-bg);
  font-weight: 900;
}

.round-btn.login {
  padding: 0 15px;
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.mobile-search {
  padding: 0 20px 14px;
}

.mobile-search .search-box {
  max-width: none;
}

.mobile-hero {
  padding: 4px 20px 14px;
}

.mobile-hero h1 {
  font-size: 24px;
}

.mobile-panel {
  margin: 0 20px 14px;
  padding: 15px;
}

.mobile-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 14px;
  scrollbar-width: none;
}

.mobile-scroll .asset-card {
  width: 164px;
  flex: 0 0 auto;
  padding: 14px;
}

.mobile-scroll .asset-value {
  font-size: 21px;
}

.mobile-stack {
  display: grid;
  gap: 10px;
}

.mobile-asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--hair);
}

.mobile-asset:first-child {
  border-top: 0;
}

.mobile-asset.needs-api {
  margin-inline: -2px;
  padding-inline: 2px;
  border-radius: 10px;
  background: var(--needs-api-soft);
}

.mobile-asset strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-asset span {
  color: var(--sub);
  font-size: 12px;
}

.mobile-asset b {
  display: block;
  color: var(--text);
  font-size: 15px;
  text-align: right;
}

.compact-add {
  min-height: 48px;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.phone-scroll .api-gap-panel {
  margin: 0 20px 14px;
}

.phone-scroll .api-gap-list {
  grid-template-columns: 1fr;
}

.mobile-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 74px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.bottom-tab {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  color: var(--sub);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-tab i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.bottom-tab.active {
  color: var(--accent);
}

.toast,
.noscript {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--frame);
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast {
  pointer-events: none;
  min-width: 220px;
  padding: 12px 14px;
  opacity: 0;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.chart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.chart-modal {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.chart-head strong,
.chart-head span {
  display: block;
  min-width: 0;
}

.chart-head strong {
  color: var(--text);
  font-size: 18px;
}

.chart-head span {
  margin-top: 4px;
  color: var(--sub);
  font-size: 12px;
}

.chart-head button {
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 10px;
  color: var(--sub);
  background: var(--chip);
  font-size: 20px;
  line-height: 1;
}

.chart-value {
  margin-top: 18px;
  color: var(--text);
  font-size: 32px;
  font-weight: 900;
}

.chart-svg {
  width: 100%;
  height: 190px;
  margin-top: 12px;
  border-radius: 12px;
  background:
    linear-gradient(to bottom, transparent 24%, var(--hair) 24.5%, transparent 25%),
    linear-gradient(to bottom, transparent 49%, var(--hair) 49.5%, transparent 50%),
    linear-gradient(to bottom, transparent 74%, var(--hair) 74.5%, transparent 75%),
    var(--app-bg);
}

.noscript {
  padding: 14px 16px;
}

@media (max-width: 880px) {
  .wow-app {
    padding: 20px 0 28px;
  }

  .view-switch {
    display: none;
  }

  .desktop-board {
    display: none;
  }

  .mobile-board {
    display: block;
  }
}

[data-device="desktop"] .desktop-board {
  display: block;
}

[data-device="desktop"] .mobile-board {
  display: none;
}

[data-device="mobile"] .desktop-board {
  display: none;
}

[data-device="mobile"] .mobile-board {
  display: block;
}

[data-device="mobile"] .wow-app {
  padding: 48px 0 28px;
}

@media (min-width: 881px) {
  [data-device="auto"] .desktop-board {
    display: block;
  }

  [data-device="auto"] .mobile-board {
    display: none;
  }
}

@media (max-width: 430px) {
  .mobile-board,
  .phone-frame {
    width: 100%;
  }

  .phone-frame {
    height: 100vh;
    min-height: 720px;
    padding: 0;
    border-radius: 0;
    background: var(--app-bg);
    box-shadow: none;
  }

  .phone-screen {
    border-radius: 0;
  }
}
