@font-face {
  font-family: Inter;
  src: url("assets/inter.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #11121b;
  --panel: #1b1c29;
  --panel-light: #222332;
  --line: #ffffff0d;
  --text: #f3f2fa;
  --muted: #9091a8;
  --accent: #ae9bff;
  --accent-deep: #8570e7;
  --green: #7dd9b6;
  --red: #f193a6;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  color: inherit;
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
input:focus,
select:focus {
  outline: 2px solid #ae9bff66;
}
img {
  display: block;
  object-fit: cover;
}
button {
  touch-action: manipulation;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.warning {
  color: #ebc48b;
}
.compact {
  font-size: 0.8125rem;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.375rem;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.2;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 20px;
  border-right: 1px solid var(--line);
  background: #14151f;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  font-size: 1.4375rem;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  width: 37px;
  height: 40px;
  border-radius: 12px;
  color: #1d163c;
  box-shadow: 0 0 25px #ae9bff0b;
}
.brand-mark .icon {
  width: 28px;
  height: 28px;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 6px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 52px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 11px;
  color: #999bb1;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-item.active {
  background: #a28df01a;
  color: #bbaaff;
}
.nav-item.active::before {
  content: "";
  width: 3px;
  height: 19px;
  background: var(--accent);
  border-radius: 3px;
  position: absolute;
  left: 0;
}
.nav-item:hover {
  color: var(--text);
  background: #ffffff05;
}
.nav-item.active:hover {
  background: #a28df024;
}
.nav-item small {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #ae9bff18;
  border-radius: 6px;
  font-size: 0.75rem;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
}
.local-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff05;
  color: var(--muted);
  margin-bottom: 13px;
}
.sidebar-bottom strong {
  font-size: 0.8125rem;
  font-weight: 500;
}
.sidebar-bottom p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #73758d;
  margin-top: 8px;
}
.text-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.sidebar-bottom .text-button {
  margin-top: 13px;
  font-size: 0.75rem;
}
.local-label {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 26px;
  color: #70738b;
  font-size: 0.6875rem;
}
.local-label span {
  width: 5px;
  height: 5px;
  background: #7f8296;
  border-radius: 50%;
}
.main {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 91px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.8125rem;
  color: #7e8098;
  display: flex;
  gap: 15px;
  align-items: center;
}
.breadcrumb span {
  color: #45485d;
}
.breadcrumb strong {
  color: #babccf;
  font-weight: 400;
}
.topbar-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.mode-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff0d;
  border-radius: 20px;
  color: #a9a8ba;
  font-size: 0.75rem;
  padding: 8px 12px;
}
.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7b77c;
}
.mode-dot.real {
  background: var(--green);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #343045;
  border: 3px solid #242230;
  color: #d2c4f5;
  font-size: 0.625rem;
  font-weight: 700;
}
.content {
  max-width: 1390px;
  margin: auto;
  padding: 36px 40px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--accent);
  color: #21183c;
}
.primary:hover {
  background: #bdaaff;
}
.secondary {
  background: #222332;
  border: 1px solid #ffffff0b;
  color: #cbcbdc;
}
.secondary:hover {
  background: #2c2d40;
}
.refresh-button {
  font-weight: 400;
  color: #b7b6cb;
  min-height: 38px;
  font-size: 0.75rem;
  gap: 8px;
  padding: 10px 12px;
}
.refresh-button .icon {
  width: 14px;
  height: 14px;
}
.demo-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid #d7b77c16;
  background: #d7b77c05;
  border-radius: 9px;
  font-size: 0.75rem;
  color: #a99d8b;
}
.demo-tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: #d7b77c10;
  color: #d7bc95;
  font-size: 0.6875rem;
}
.demo-notice button {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.75rem;
  color: #d7bc95;
}
.demo-notice .icon {
  width: 14px;
  height: 14px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid #ffffff06;
  border-radius: 16px;
}
.ton-card {
  padding: 23px 25px 15px;
  min-width: 0;
  background: linear-gradient(115deg, #1e1f30, #1b1c29);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.asset-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.asset-heading h2 {
  font-size: 1rem;
}
.asset-heading h2 span {
  color: #74778e;
  font-size: 0.75rem;
  margin-left: 5px;
  font-weight: 400;
}
.asset-heading p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.ton-symbol {
  width: 41px;
  height: 41px;
  background: #263d50;
  border: 1px solid #81d0fc14;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7ac9fa;
  font-size: 2.375rem;
  line-height: 1;
}
.segmented {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #12131c80;
  border: 1px solid #ffffff05;
  border-radius: 9px;
  gap: 2px;
}
.segmented button {
  padding: 6px 10px;
  border-radius: 6px;
  color: #74788e;
  font-size: 0.75rem;
  min-width: 30px;
  min-height: 29px;
}
.segmented .active {
  color: #e0deed;
  background: #383649;
}
.ton-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.ton-price-row > strong {
  font-size: 2.75rem;
  letter-spacing: -2px;
  font-weight: 650;
  line-height: 1.15;
}
.ton-price-row > strong > span {
  font-size: 1.875rem;
  margin-left: 7px;
  color: #9294ad;
  font-weight: 400;
}
.change-badge {
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 5px 8px;
  background: #7dd9b60a;
  white-space: nowrap;
}
.change-badge small {
  color: #7f8398;
  font-size: 0.6875rem;
  margin-left: 3px;
}
.chart-container {
  position: relative;
  height: 147px;
  margin: 10px -13px 0;
}
.chart-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.chart-tooltip {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  background: #363248;
  border: 1px solid #ae9bff44;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.6875rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px #0003;
}
.chart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.chart-caption {
  font-size: 0.6875rem;
  color: #6e718a;
}
.time-tabs {
  display: flex;
  gap: 4px;
}
.time-tabs button {
  padding: 6px 10px;
  font-size: 0.6875rem;
  color: #7c7f96;
  border-radius: 6px;
}
.time-tabs .active {
  background: #ae9bff18;
  color: #c7b8ff;
}
.overview-side {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
}
.focus-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 233px;
  border-radius: 16px;
  background: #282132;
  border: 1px solid #c2a6e914;
  isolation: isolate;
}
.focus-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: max-content;
  max-width: 68%;
}
.section-kicker {
  display: block;
  color: #c7b3db;
  font-size: 0.6875rem;
  margin-bottom: 15px;
}
.focus-copy h2 {
  font-size: 1.5rem;
  letter-spacing: -0.6px;
}
.focus-copy p {
  font-size: 0.6875rem;
  color: #a79bb5;
  margin-top: 12px;
}
.focus-copy > strong {
  font-size: 1.25rem;
  display: block;
  margin-top: 6px;
}
.focus-button {
  margin-top: 20px;
  background: #ffffff0d;
  color: #e7dff2;
  font-size: 0.6875rem;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid #ffffff0c;
}
.focus-button .icon {
  width: 12px;
  height: 12px;
}
.gift-image.focus-image {
  position: absolute;
  right: -46px;
  top: -7px;
  width: 260px;
  height: 260px;
  border-radius: 0;
  z-index: 0;
  object-fit: cover;
  transform: rotate(-9deg);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}
.focus-card:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    #282132 1%,
    #28213280 33%,
    transparent 66%
  );
  z-index: 1;
  pointer-events: none;
}
.focus-change {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  background: #16141e8c;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  backdrop-filter: blur(6px);
}
.quick-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  gap: 8px;
}
.quick-stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.quick-stats span {
  display: block;
  color: #8b8ba3;
  font-size: 0.6875rem;
  white-space: nowrap;
}
.quick-stats strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 550;
  margin-top: 9px;
  white-space: nowrap;
}
.quick-stats small {
  font-size: 0.625rem;
  color: #86869d;
  font-weight: 400;
}
.market-section {
  margin-top: 34px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 21px;
}
.section-heading > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.section-heading h2 {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-pill {
  font-size: 0.6875rem;
  border: 1px solid #ffffff0d;
  padding: 3px 7px;
  color: #8e90a7;
  border-radius: 6px;
}
.currency-tabs {
  display: flex;
  gap: 3px;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  padding: 3px;
}
.currency-tabs button {
  font-size: 0.6875rem;
  color: #82869e;
  min-width: 31px;
  min-height: 25px;
  border-radius: 5px;
  padding: 4px 7px;
}
.currency-tabs button.active {
  background: #323044;
  color: #cbbaff;
}
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.category-tabs {
  display: flex;
  gap: 5px;
}
.category-tabs button {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #86899f;
  white-space: nowrap;
}
.category-tabs .active {
  color: #d3c5ff;
  background: #a28df01c;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff0b;
  background: #191a25;
  border-radius: 9px;
  padding: 0 12px;
  height: 36px;
  max-width: 235px;
}
.search-field .icon {
  width: 15px;
  height: 15px;
  color: #6e7289;
}
.search-field input {
  border: none;
  background: none;
  color: var(--text);
  min-width: 0;
  width: 100%;
  font-size: 0.75rem;
  padding: 9px 0;
  outline: none;
}
.search-field input::placeholder {
  color: #6e7289;
}
.search-field kbd {
  color: #5e627b;
  border: 1px solid #ffffff0d;
  border-radius: 4px;
  font: 11px Inter;
  padding: 0 5px;
}
.market-controls {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 17px 0;
  font-size: 0.6875rem;
  color: #6c7088;
}
.market-controls > label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.market-controls select {
  color: #adb0c4;
  background: none;
  border: none;
  font-size: 0.875rem;
  padding: 4px 18px 4px 4px;
  min-height: 28px;
  max-width: 185px;
}
.market-controls input {
  width: 64px;
  background: #1d1e2b;
  border: 1px solid #ffffff08;
  border-radius: 5px;
  font-size: 0.6875rem;
  padding: 4px;
  color: #d9d9e7;
}
.market-controls .sort-control {
  margin-left: auto;
}
.market-controls .sort-control .icon {
  width: 13px;
  height: 13px;
}
.gift-table {
  width: 100%;
}
.table-head,
.gift-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.65fr) minmax(95px, 1fr) minmax(
      62px,
      0.65fr
    ) minmax(110px, 1fr) 105px 30px;
  gap: 10px;
  align-items: center;
}
.table-head {
  font-size: 0.6875rem;
  color: #6d718a;
  padding: 12px 9px;
  border-bottom: 1px solid #ffffff0d;
}
.gift-row {
  padding: 15px 9px;
  border-bottom: 1px solid #ffffff08;
  transition: background 0.17s;
}
.gift-row:hover {
  background: #ffffff02;
}
.gift-title {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-width: 0;
  padding: 0;
}
.gift-image,
.gift-placeholder {
  width: 45px;
  height: 45px;
  flex: none;
  border-radius: 12px;
  background: #292b3c;
}
.gift-placeholder {
  display: grid;
  place-items: center;
  color: #aaa0d4;
}
.gift-title > span {
  min-width: 0;
}
.gift-title strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.gift-title small {
  display: block;
  margin-top: 5px;
  font-size: 0.625rem;
  color: #666b85;
  white-space: nowrap;
}
.floor-cell {
  text-align: left;
  padding: 0;
}
.floor-cell strong {
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}
.floor-cell small {
  display: block;
  margin-top: 5px;
  color: #626780;
  font-size: 0.625rem;
}
.change-cell {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.market-cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.625rem;
  color: #868ba6;
}
.market-cell > span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.market-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}
.market-dot.portals {
  background: #7aa9ea;
}
.market-dot.mrkt {
  background: #b099f0;
}
.sparkline {
  width: 100%;
  height: 34px;
  display: block;
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 36px;
  padding: 7px;
  border-radius: 8px;
  color: #6e728c;
  transition:
    background 0.18s,
    color 0.18s;
}
.icon-button:hover {
  background: #ffffff08;
  color: #cac5dd;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.favorite.selected {
  color: #b7a1ff;
}
.favorite.selected .icon {
  fill: #ae9bff18;
}
.table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 9px;
  font-size: 0.6875rem;
  color: #74788f;
  gap: 10px;
}
.table-caption > span {
  font-size: 0.625rem;
  color: #565c76;
}
.footer {
  max-width: 1390px;
  margin: 20px auto 0;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.625rem;
  color: #575d75;
}
.footer span:last-child {
  white-space: nowrap;
}
.bottom-nav,
.mobile-brand {
  display: none;
}
.empty-state {
  padding: 60px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border: 1px dashed #ffffff12;
  border-radius: 15px;
  margin-top: 20px;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: #8f80c1;
  margin-bottom: 20px;
}
.empty-state p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 12px;
}
.empty-state .button {
  margin-top: 24px;
}
.empty-state.large {
  padding: 85px 20px;
}
.notice {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.notice > .icon {
  color: var(--accent);
  margin-top: 2px;
}
.notice strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.notice p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
  max-width: 650px;
}
.alert-list,
.holding-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-card,
.holding-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.alert-card .asset-heading,
.holding-card .asset-heading {
  margin-right: auto;
}
.alert-card h3,
.holding-card h3 {
  font-size: 0.9375rem;
}
.alert-card p,
.holding-card p {
  font-size: 0.8125rem;
  margin-top: 5px;
}
.alert-symbol {
  height: 45px;
  width: 45px;
  background: #ae9bff12;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 12px;
}
.status-badge {
  font-size: 0.75rem;
  color: #888da7;
  background: #ffffff04;
  padding: 7px 10px;
  border-radius: 7px;
}
.small {
  min-height: 34px;
  font-size: 0.75rem;
  padding: 7px 11px;
}
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 15px;
}
.portfolio-stats > section {
  padding: 23px;
}
.portfolio-stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.portfolio-stats strong {
  font-size: 1.875rem;
  letter-spacing: -1px;
  display: block;
  margin-top: 15px;
}
.holding-list {
  margin-top: 24px;
}
.calculator-section {
  margin-top: 36px;
}
.calculator {
  padding: 24px;
}
.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.calculator label,
.dialog-form label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8125rem;
  color: #b3b5ca;
}
input[type="number"],
.dialog-form select {
  width: 100%;
  min-height: 43px;
  border-radius: 8px;
  border: 1px solid #ffffff0e;
  background: #14151f;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.875rem;
}
input::-webkit-inner-spin-button {
  opacity: 0;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%238589a2' stroke-width='1.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 7px center !important;
  padding-right: 25px !important;
}
option {
  background: #232432;
  color: var(--text);
}
.calculator > .compact {
  margin-top: 14px;
}
.deal-result {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.deal-result span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.deal-result strong {
  display: block;
  font-size: 1.375rem;
  margin-top: 10px;
  font-weight: 550;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.settings-panel {
  padding: 26px;
}
.settings-panel > h2 {
  margin-bottom: 20px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.setting-row strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.setting-row p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.source-list {
  margin-top: 20px;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.source-logo {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #ae9bff15;
  color: #b9abf5;
  font-size: 0.875rem;
}
.source-logo.portals,
.source-logo.coingecko {
  background: #8dc5ff12;
  color: #8dc5ff;
}
.source-row > div {
  min-width: 0;
  flex: 1;
}
.source-row strong {
  font-size: 0.8125rem;
  font-weight: 500;
  display: block;
}
.source-row small {
  font-size: 0.6875rem;
  color: #80859d;
  display: block;
  line-height: 1.5;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.source-state {
  font-size: 0.625rem;
  color: #8c8c9e;
  white-space: nowrap;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: #c2c4d5;
}
.switch-row strong {
  font-weight: 500;
  display: block;
}
.switch-row small {
  display: block;
  font-size: 0.6875rem;
  margin-top: 7px;
  color: #7f849e;
  line-height: 1.5;
}
.switch-row input {
  appearance: none;
  width: 36px;
  height: 21px;
  border-radius: 20px;
  background: #393a4b;
  border: 0;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background 0.2s;
}
.switch-row input:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9092a8;
  transition:
    transform 0.2s,
    background 0.2s;
}
.switch-row input:checked {
  background: #8e79da;
}
.switch-row input:checked:before {
  transform: translateX(15px);
  background: #eee7ff;
}
.range-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  margin: 24px 0;
  color: #c2c4d5;
}
.range-label output {
  color: var(--accent);
}
.range-label input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.danger {
  color: var(--red);
}
.danger-button {
  background: #5e2937;
  color: #ffc7d4;
}
.about-panel {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(130deg, #222033, #1b1c29);
}
.about-panel > .icon {
  color: var(--accent);
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
}
.about-panel h2 {
  margin-bottom: 12px;
}
.about-panel p {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted);
}
.about-panel a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 22px;
}
.about-panel a .icon {
  width: 13px;
  height: 13px;
}
dialog {
  color: var(--text);
  background: #1b1c29;
  border: 1px solid #ffffff15;
  border-radius: 22px;
  max-width: 530px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  padding: 26px;
  box-shadow: 0 24px 100px #0008;
}
dialog::backdrop {
  background: #090a12b3;
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: dialog-in 0.22s ease-out;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-header > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.dialog-header h2 {
  font-size: 1.25rem;
}
.dialog-header .icon-button {
  margin: -7px -7px -7px 0;
}
.detail-hero {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 28px;
}
.detail-hero > .gift-image,
.detail-hero > .gift-placeholder {
  width: 74px;
  height: 74px;
  border-radius: 18px;
}
.detail-hero h2 {
  font-size: 1.5rem;
}
.detail-hero p {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-hero > .icon-button {
  margin-left: auto;
}
.detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.detail-price > span:first-child {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--muted);
}
.detail-price > strong {
  font-size: 2.125rem;
  letter-spacing: -1px;
}
.detail-price > span:last-child {
  font-size: 0.75rem;
}
.detail-chart {
  height: 145px;
  margin: 12px -12px 22px;
}
.detail-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.comparison > div {
  background: #ffffff03;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
}
.comparison span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
}
.comparison strong {
  display: block;
  font-size: 1.125rem;
  margin: 10px 0;
}
.comparison small {
  display: block;
  font-size: 0.6875rem;
  color: #7c819b;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.dialog-actions > .button {
  flex: 1;
}
.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dialog-form .form-grid {
  margin: 0;
}
.dialog-form > .button {
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 15px);
  width: max-content;
  max-width: min(90%, 600px);
  padding: 14px 20px;
  background: #383348;
  border: 1px solid #ae9bff30;
  box-shadow: 0 8px 40px #0007;
  color: #eee7fa;
  font-size: 0.8125rem;
  line-height: 1.6;
  border-radius: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.empty {
  padding: 30px;
  line-height: 1.7;
  color: var(--muted);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.loading > .icon {
  animation: spin 1.4s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .ton-card {
    padding: 28px;
  }
  .chart-container {
    height: 175px;
  }
  .focus-card {
    min-height: 255px;
  }
  .gift-image.focus-image {
    width: 300px;
    height: 300px;
    right: -40px;
  }
  .gift-row {
    padding: 18px 10px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand-mark {
    width: 32px;
    height: 36px;
  }
  .content {
    padding: 30px 27px 0;
  }
  .topbar {
    padding: 0 27px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 15px;
  }
  .focus-copy {
    padding: 21px;
    max-width: 74%;
  }
  .focus-copy h2 {
    font-size: 1.25rem;
  }
  .gift-image.focus-image {
    right: -67px;
  }
  .ton-card {
    padding: 21px 20px 14px;
  }
  .quick-stats {
    padding: 16px 14px;
  }
  .quick-stats > div + div {
    padding-left: 10px;
  }
  .quick-stats small {
    display: none;
  }
  .table-head,
  .gift-row {
    grid-template-columns: minmax(140px, 1.5fr) minmax(90px, 1fr) 62px minmax(
        90px,
        1fr
      ) 30px;
  }
  .trend-column {
    display: none;
  }
  .gift-title {
    gap: 9px;
  }
  .gift-title strong {
    font-size: 0.875rem;
  }
  .gift-title small {
    font-size: 0.625rem;
  }
  .gift-image,
  .gift-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .settings-grid {
    gap: 15px;
  }
  .settings-panel {
    padding: 20px;
  }
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .calculator-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
  .alert-card {
    gap: 10px;
  }
  .alert-card .status-badge {
    font-size: 0.625rem;
  }
  .portfolio-stats > section {
    padding: 18px;
  }
  .portfolio-stats strong {
    font-size: 1.5rem;
  }
  .portfolio-stats span {
    font-size: 0.75rem;
  }
  .footer {
    padding-left: 27px;
    padding-right: 27px;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    align-items: center;
    padding: 25px 10px;
  }
  .brand {
    margin: 0;
  }
  .brand > span:last-child,
  .nav-item > span,
  .nav-item small,
  .sidebar-bottom {
    display: none;
  }
  .brand-mark {
    width: 38px;
    height: 40px;
  }
  .side-nav {
    margin-top: 45px;
    gap: 15px;
  }
  .nav-item {
    padding: 14px;
  }
  .nav-item.active:before {
    height: 22px;
  }
  .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .content {
    padding: 28px 24px 0;
  }
  .topbar {
    height: 76px;
    padding: 0 24px;
  }
  .overview-grid {
    gap: 14px;
  }
  .quick-stats {
    padding: 16px 12px;
  }
  .quick-stats span {
    font-size: 0.625rem;
  }
  .quick-stats strong {
    font-size: 1rem;
  }
  .focus-copy {
    padding: 19px;
  }
  .focus-copy > strong {
    font-size: 1.125rem;
  }
  .focus-copy h2 {
    font-size: 1.25rem;
  }
  .gift-image.focus-image {
    right: -78px;
  }
  .page-heading h1 {
    font-size: 2.125rem;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .alert-card {
    flex-wrap: wrap;
  }
  .alert-card .status-badge {
    margin-left: 57px;
  }
  .alert-card .asset-heading {
    flex-basis: calc(100% - 44px);
  }
  .alert-card > .icon-button {
    position: absolute;
    right: 15px;
    top: 20px;
  }
  .alert-card {
    position: relative;
  }
  .alert-card .small {
    margin-left: auto;
  }
  .portfolio-stats {
    gap: 10px;
  }
  .portfolio-stats > section {
    padding: 16px 14px;
  }
  .portfolio-stats strong {
    font-size: 1.25rem;
  }
  .footer span:last-child {
    display: none;
  }
}
@media (max-width: 650px) {
  :root {
    font-size: 16px;
  }
  .shell {
    display: block;
    padding-bottom: calc(74px + var(--safe-bottom));
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
    border-bottom: 0;
    background: #11121b;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9d3ee;
    font-size: 1.0625rem;
    letter-spacing: -0.5px;
  }
  .mobile-brand > .icon {
    color: var(--accent);
    width: 26px;
    height: 26px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 0.5625rem;
  }
  .mode-pill {
    font-size: 0.625rem;
    padding: 6px 9px;
  }
  .desktop-only {
    display: none;
  }
  .content {
    padding: 19px 20px 0;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 1.9375rem;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 0.8125rem;
    margin-top: 9px;
    line-height: 1.6;
    max-width: 260px;
  }
  .refresh-button {
    font-size: 0.6875rem;
    min-height: 34px;
    padding: 9px;
    gap: 6px;
    margin-top: 3px;
  }
  .refresh-button span {
    display: none;
  }
  .refresh-button .icon {
    width: 16px;
    height: 16px;
  }
  .demo-notice {
    padding: 9px 10px;
    font-size: 0.6875rem;
    gap: 8px;
    margin-bottom: 17px;
    align-items: center;
  }
  .demo-notice button {
    font-size: 0;
    gap: 0;
  }
  .demo-notice button > .icon {
    width: 16px;
    height: 16px;
  }
  .demo-tag {
    font-size: 0.625rem;
    padding: 3px 5px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ton-card {
    padding: 19px 20px 13px;
    border-radius: 15px;
  }
  .asset-heading h2 {
    font-size: 0.9375rem;
  }
  .asset-heading p {
    font-size: 0.6875rem;
  }
  .ton-price-row {
    margin-top: 23px;
    gap: 16px;
  }
  .ton-price-row > strong {
    font-size: 2.625rem;
  }
  .chart-container {
    height: 148px;
    margin-top: 9px;
  }
  .chart-bottom {
    padding-top: 9px;
    margin-top: 4px;
  }
  .chart-caption {
    font-size: 0.625rem;
  }
  .time-tabs button {
    font-size: 0.625rem;
    padding: 6px 9px;
    min-height: 30px;
  }
  .overview-side {
    gap: 14px;
  }
  .focus-card {
    min-height: 174px;
    flex: auto;
    border-radius: 14px;
  }
  .focus-copy {
    padding: 18px 20px;
    max-width: 70%;
  }
  .section-kicker {
    font-size: 0.625rem;
    margin-bottom: 10px;
  }
  .focus-copy h2 {
    font-size: 1.25rem;
  }
  .focus-copy p {
    font-size: 0.625rem;
    margin-top: 9px;
  }
  .focus-copy > strong {
    font-size: 1.125rem;
    margin-top: 4px;
  }
  .focus-button {
    position: absolute;
    left: 185px;
    bottom: 20px;
    padding: 8px 7px;
    font-size: 0;
    min-width: 31px;
    min-height: 31px;
    margin: 0;
    background: #ffffff12;
  }
  .focus-button .icon {
    width: 15px;
    height: 15px;
  }
  .gift-image.focus-image {
    right: -5px;
    top: -40px;
    width: 225px;
    height: 225px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
  }
  .focus-change {
    font-size: 0.625rem;
    right: 13px;
    top: 14px;
  }
  .quick-stats {
    padding: 14px 17px;
    gap: 10px;
  }
  .quick-stats > div + div {
    padding-left: 22px;
  }
  .quick-stats span {
    font-size: 0.625rem;
  }
  .quick-stats strong {
    font-size: 1rem;
    margin-top: 7px;
  }
  .quick-stats small {
    display: inline;
    font-size: 0.5625rem;
  }
  .market-section {
    margin-top: 28px;
  }
  .section-heading {
    margin-bottom: 17px;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 1.0625rem;
  }
  .section-heading > div {
    gap: 8px;
  }
  .count-pill {
    font-size: 0.625rem;
    padding: 3px 6px;
  }
  .currency-tabs button {
    font-size: 0.625rem;
    min-width: 25px;
  }
  .currency-tabs {
    padding: 2px;
  }
  .filter-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .category-tabs {
    gap: 2px;
  }
  .category-tabs button {
    font-size: 0.875rem;
    padding: 8px 9px;
    min-height: 34px;
  }
  .search-field {
    width: 37px;
    max-width: none;
    padding: 0 9px;
    position: relative;
    background: #1b1c29;
    transition: width 0.2s;
  }
  .search-field input {
    width: 0;
    padding: 0;
    min-height: 34px;
    opacity: 0;
    font-size: 0.75rem;
  }
  .search-field:focus-within {
    position: absolute;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    z-index: 3;
  }
  .search-field:focus-within input {
    width: 100%;
    padding-left: 3px;
    opacity: 1;
  }
  .search-field:has(input:not(:placeholder-shown)) {
    width: 130px;
  }
  .search-field:has(input:not(:placeholder-shown)) input {
    width: 100%;
    opacity: 1;
  }
  .search-field kbd {
    display: none;
  }
  .search-field .icon {
    flex: none;
  }
  .market-controls {
    gap: 6px;
    flex-wrap: wrap;
    margin: 13px 0 9px;
    font-size: 0.625rem;
    justify-content: space-between;
  }
  .market-controls > label {
    gap: 3px;
  }
  .market-controls > label:first-child {
    font-size: 0;
  }
  .market-controls select {
    font-size: 0.875rem;
    max-width: 145px;
    padding-left: 0;
    min-height: 30px;
  }
  .market-controls .sort-control {
    margin-left: auto;
  }
  .market-controls .sort-control > .icon {
    display: none;
  }
  .market-controls input {
    width: 43px;
    min-height: 28px;
    font-size: 0.625rem;
    padding: 4px;
  }
  .market-controls .sort-control select {
    max-width: 137px;
    font-size: 0.875rem;
  }
  .table-head,
  .gift-row {
    grid-template-columns: minmax(115px, 1.6fr) minmax(72px, 1fr) 58px 25px;
    gap: 5px;
  }
  .market-column {
    display: none;
  }
  .table-head {
    font-size: 0.625rem;
    padding: 10px 0;
  }
  .gift-row {
    padding: 15px 0;
  }
  .gift-title {
    gap: 10px;
  }
  .gift-image,
  .gift-placeholder {
    width: 39px;
    height: 39px;
    border-radius: 10px;
  }
  .gift-title strong {
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .gift-title small {
    font-size: 0.5625rem;
    margin-top: 4px;
  }
  .floor-cell strong {
    font-size: 0.875rem;
  }
  .floor-cell small {
    font-size: 0.625rem;
    margin-top: 4px;
  }
  .change-cell {
    font-size: 0.875rem;
  }
  .icon-button {
    min-width: 28px;
    padding: 4px;
  }
  .favorite .icon {
    width: 16px;
    height: 16px;
  }
  .table-caption {
    padding: 16px 0;
    font-size: 0.625rem;
  }
  .table-caption > span {
    font-size: 0.5625rem;
    max-width: 180px;
    text-align: right;
    line-height: 1.5;
  }
  .footer {
    padding: 19px 20px;
    margin-top: 14px;
    font-size: 0.5625rem;
    line-height: 1.6;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    background: #171823ed;
    border-top: 1px solid #ffffff0a;
    backdrop-filter: blur(18px);
    padding: 10px 8px calc(10px + var(--safe-bottom));
    z-index: 10;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6f748d;
    min-width: 55px;
    min-height: 45px;
    padding: 0 3px;
    font-size: 0.5625rem;
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav button.active {
    color: #c1aeff;
  }
  .bottom-nav button.active:before {
    content: "";
    position: absolute;
    top: 0;
    height: 2px;
    width: 28px;
    background: #ae9bff;
    border-radius: 0 0 3px 3px;
  }
  .page-heading > .primary {
    font-size: 0;
    padding: 12px;
    min-width: 40px;
    min-height: 40px;
  }
  .page-heading > .primary .icon {
    width: 19px;
    height: 19px;
  }
  .notice {
    padding: 17px;
    border-radius: 13px;
    gap: 12px;
  }
  .notice strong {
    font-size: 0.8125rem;
  }
  .notice p {
    font-size: 0.75rem;
  }
  .alert-card,
  .holding-card {
    padding: 17px;
  }
  .alert-card .status-badge {
    margin-left: 0;
    margin-right: auto;
    font-size: 0.6875rem;
  }
  .alert-card .asset-heading {
    flex-basis: 100%;
    margin-bottom: 6px;
  }
  .alert-card > .icon-button {
    top: 15px;
    right: 13px;
  }
  .empty-state {
    padding: 45px 15px;
  }
  .empty-state h2 {
    font-size: 1.125rem;
  }
  .empty-state p {
    font-size: 0.8125rem;
  }
  .empty-state.large {
    padding: 60px 15px;
  }
  .portfolio-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .portfolio-stats > section:first-child {
    grid-column: 1/-1;
    padding: 23px;
  }
  .portfolio-stats > section:first-child strong {
    font-size: 2.125rem;
    margin-top: 12px;
  }
  .portfolio-stats strong {
    font-size: 1.25rem;
  }
  .portfolio-stats span {
    font-size: 0.6875rem;
  }
  .holding-card h3 {
    font-size: 0.8125rem;
  }
  .holding-card p {
    font-size: 0.6875rem;
  }
  .holding-card > strong {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .holding-card {
    gap: 9px;
  }
  .calculator {
    padding: 18px;
  }
  .calculator-inputs {
    gap: 15px 12px;
  }
  .calculator label {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .deal-result {
    flex-wrap: wrap;
    gap: 21px;
  }
  .deal-result strong {
    font-size: 1.125rem;
  }
  .deal-result > div:last-child {
    width: 100%;
  }
  .deal-result span {
    font-size: 0.6875rem;
  }
  .settings-panel {
    padding: 20px;
  }
  .settings-panel > h2 {
    font-size: 1rem;
  }
  .setting-row {
    flex-direction: row;
    align-items: center;
  }
  .setting-row p {
    font-size: 0.6875rem;
  }
  .segmented button {
    padding: 6px 8px;
    font-size: 0.6875rem;
  }
  .source-row {
    gap: 9px;
  }
  .source-row small {
    font-size: 0.625rem;
  }
  .source-logo {
    width: 29px;
    height: 29px;
  }
  .source-state {
    font-size: 0.5625rem;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid label {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .switch-row {
    font-size: 0.75rem;
    gap: 10px;
  }
  .switch-row small {
    font-size: 0.625rem;
  }
  .settings-panel .compact {
    font-size: 0.75rem;
  }
  .settings-panel > .muted {
    font-size: 0.8125rem;
  }
  .button-row {
    gap: 20px;
  }
  .about-panel {
    min-height: 210px;
  }
  dialog {
    padding: 22px 20px;
    border-radius: 20px;
    max-height: 87dvh;
  }
  .dialog-header h2 {
    font-size: 1.125rem;
  }
  .detail-hero {
    gap: 12px;
  }
  .detail-hero h2 {
    font-size: 1.25rem;
  }
  .detail-hero > .gift-image,
  .detail-hero > .gift-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .detail-price > strong {
    font-size: 1.875rem;
  }
  .detail-price > span:last-child {
    font-size: 0.6875rem;
  }
  .comparison > div {
    padding: 13px;
  }
  .comparison strong {
    font-size: 1rem;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions > .button {
    font-size: 0.6875rem;
    padding: 11px 10px;
  }
  .dialog-actions > .button .icon {
    width: 15px;
    height: 15px;
  }
  .dialog-form label {
    font-size: 0.8125rem;
  }
  #toast {
    bottom: calc(88px + var(--safe-bottom));
    max-width: calc(100% - 28px);
    font-size: 0.75rem;
    padding: 12px 15px;
  }
}
@media (max-width: 370px) {
  .content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .quick-stats {
    padding: 13px;
  }
  .quick-stats > div + div {
    padding-left: 13px;
  }
  .quick-stats small {
    display: none;
  }
  .gift-title small {
    display: none;
  }
  .gift-title {
    gap: 7px;
  }
  .gift-image,
  .gift-placeholder {
    width: 34px;
    height: 34px;
  }
  .table-head,
  .gift-row {
    grid-template-columns: minmax(100px, 1.4fr) minmax(68px, 1fr) 58px 23px;
  }
  .gift-title strong {
    font-size: 0.875rem;
  }
  .floor-cell strong {
    font-size: 0.875rem;
  }
  .market-controls .sort-control select {
    max-width: 122px;
  }
  .search-field:focus-within {
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .focus-button {
    left: 168px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .button:hover,
  .button:active {
    transform: none;
  }
}
