html.sakura-wallet-fixed-convert-route #sakura-convert-card-row > #sakura-wallet-fixed-convert-card,
html.sakura-subconvert-route #sakura-convert-card-row > #sakura-wallet-fixed-convert-card {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  vertical-align: top;
}

.sakura-wallet-fixed-card {
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-left: 3px solid #4f46e5;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(238, 242, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.sakura-wallet-fixed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sakura-wallet-fixed-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.sakura-wallet-fixed-subtitle {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.sakura-wallet-fixed-ratio {
  flex: 0 0 auto;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.sakura-wallet-fixed-warning,
.sakura-wallet-fixed-dialog-warning {
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  padding: 9px 10px;
}

.sakura-wallet-fixed-warning {
  margin-bottom: 10px;
}

.sakura-wallet-fixed-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sakura-wallet-fixed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.sakura-wallet-fixed-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.sakura-wallet-fixed-row strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
}

.sakura-wallet-fixed-body p,
.sakura-wallet-fixed-dialog-note {
  margin: 0;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 10px;
}

.sakura-wallet-fixed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.sakura-wallet-fixed-refresh,
.sakura-wallet-fixed-submit,
.sakura-wallet-fixed-cancel,
.sakura-wallet-fixed-confirm {
  appearance: none;
  border: 0;
  font: inherit;
}

.sakura-wallet-fixed-refresh {
  height: 32px;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.sakura-wallet-fixed-submit {
  flex: 0 0 auto;
  min-width: 104px;
  height: 34px;
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  padding: 0 14px;
}

.sakura-wallet-fixed-submit:disabled,
.sakura-wallet-fixed-confirm:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.sakura-wallet-fixed-message {
  min-height: 18px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.sakura-wallet-fixed-message[data-tone="success"] {
  color: #047857;
}

.sakura-wallet-fixed-message[data-tone="error"] {
  color: #b91c1c;
}

.sakura-wallet-fixed-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.38);
  padding: 20px;
}

.sakura-wallet-fixed-dialog {
  width: min(100%, 430px);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 20px;
}

.sakura-wallet-fixed-dialog-title {
  color: #0f172a;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.sakura-wallet-fixed-dialog-desc {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.sakura-wallet-fixed-dialog-warning {
  margin-top: 12px;
}

.sakura-wallet-fixed-dialog-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.sakura-wallet-fixed-dialog-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
}

.sakura-wallet-fixed-dialog-summary span {
  color: #64748b;
  font-size: 13px;
}

.sakura-wallet-fixed-dialog-summary strong {
  color: #0f172a;
  font-size: 15px;
}

.sakura-wallet-fixed-dialog-note {
  margin-top: 14px;
  font-size: 13px;
}

.sakura-wallet-fixed-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sakura-wallet-fixed-cancel,
.sakura-wallet-fixed-confirm {
  height: 36px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  padding: 0 16px;
}

.sakura-wallet-fixed-cancel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #334155;
}

.sakura-wallet-fixed-confirm {
  background: linear-gradient(135deg, #4f46e5 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

html.dark .sakura-wallet-fixed-card,
body[theme-mode="dark"] .sakura-wallet-fixed-card {
  border-color: rgba(129, 140, 248, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%);
}

html.dark .sakura-wallet-fixed-title,
html.dark .sakura-wallet-fixed-row strong,
body[theme-mode="dark"] .sakura-wallet-fixed-title,
body[theme-mode="dark"] .sakura-wallet-fixed-row strong {
  color: #f8fafc;
}

html.dark .sakura-wallet-fixed-subtitle,
html.dark .sakura-wallet-fixed-row span,
body[theme-mode="dark"] .sakura-wallet-fixed-subtitle,
body[theme-mode="dark"] .sakura-wallet-fixed-row span {
  color: #94a3b8;
}

html.dark .sakura-wallet-fixed-row,
html.dark .sakura-wallet-fixed-refresh,
body[theme-mode="dark"] .sakura-wallet-fixed-row,
body[theme-mode="dark"] .sakura-wallet-fixed-refresh {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
}

@media (max-width: 980px) {
  html.sakura-wallet-fixed-convert-route #sakura-convert-card-row,
  html.sakura-subconvert-route #sakura-convert-card-row {
    width: min(100%, 620px);
  }
}

@media (max-width: 760px) {
  html.sakura-wallet-fixed-convert-route #sakura-convert-card-row,
  html.sakura-subconvert-route #sakura-convert-card-row {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sakura-wallet-fixed-head,
  .sakura-wallet-fixed-footer,
  .sakura-wallet-fixed-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sakura-wallet-fixed-ratio,
  .sakura-wallet-fixed-submit,
  .sakura-wallet-fixed-refresh,
  .sakura-wallet-fixed-cancel,
  .sakura-wallet-fixed-confirm {
    width: 100%;
    text-align: center;
  }
}

.sakura-wallet-fixed-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(79, 70, 229, 0.24);
  border-left-color: #14b8a6;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.24) 0%, transparent 31%),
    radial-gradient(circle at 14% 94%, rgba(245, 158, 11, 0.18) 0%, transparent 34%),
    linear-gradient(135deg, rgba(238, 242, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(240, 253, 250, 0.98) 100%);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.sakura-wallet-fixed-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 140deg, rgba(20, 184, 166, 0.65), rgba(79, 70, 229, 0.55), rgba(245, 158, 11, 0.5), rgba(20, 184, 166, 0.65));
  opacity: 0.72;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  animation: sakura-wallet-fixed-border-spin 8s linear infinite;
}

.sakura-wallet-fixed-card::after {
  content: "";
  position: absolute;
  top: -28%;
  bottom: -28%;
  left: -58%;
  z-index: 0;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.42;
  pointer-events: none;
  animation: sakura-wallet-fixed-sweep 5.5s ease-in-out infinite;
}

.sakura-wallet-fixed-card > * {
  position: relative;
  z-index: 1;
}

.sakura-wallet-fixed-title {
  color: #1e1b4b;
  text-shadow: 0 0 14px rgba(20, 184, 166, 0.2);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sakura-wallet-fixed-title {
    background: linear-gradient(90deg, #312e81 0%, #0f766e 35%, #b45309 68%, #312e81 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: sakura-wallet-fixed-text-flow 6s ease-in-out infinite;
  }
}

.sakura-wallet-fixed-subtitle,
.sakura-wallet-fixed-row span {
  color: #475569;
}

.sakura-wallet-fixed-ratio {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #312e81 0%, #0f766e 58%, #b45309 100%);
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(79, 70, 229, 0.22),
    0 0 18px rgba(20, 184, 166, 0.18);
  text-shadow: 0 1px 7px rgba(15, 23, 42, 0.42);
  animation: sakura-wallet-fixed-ratio-pulse 3.2s ease-in-out infinite;
}

.sakura-wallet-fixed-row {
  position: relative;
  overflow: hidden;
  border-color: rgba(79, 70, 229, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.86) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.sakura-wallet-fixed-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.14), transparent);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.18s ease, transform 0.32s ease;
}

.sakura-wallet-fixed-card:hover .sakura-wallet-fixed-row::before {
  opacity: 1;
  transform: translateX(60%);
}

.sakura-wallet-fixed-row > * {
  position: relative;
  z-index: 1;
}

.sakura-wallet-fixed-row strong {
  color: #111827;
  text-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

.sakura-wallet-fixed-body p,
.sakura-wallet-fixed-dialog-note {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 251, 235, 0.94) 100%);
  color: #854d0e;
}

.sakura-wallet-fixed-submit,
.sakura-wallet-fixed-confirm {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #0f766e 48%, #b45309 100%);
  background-size: 170% 170%;
  box-shadow:
    0 10px 20px rgba(79, 70, 229, 0.24),
    0 0 22px rgba(20, 184, 166, 0.18);
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.42);
  animation: sakura-wallet-fixed-button-flow 4s ease-in-out infinite;
}

.sakura-wallet-fixed-submit::after,
.sakura-wallet-fixed-confirm::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
  animation: sakura-wallet-fixed-button-sheen 4.5s ease-in-out infinite;
}

html.dark .sakura-wallet-fixed-card,
body[theme-mode="dark"] .sakura-wallet-fixed-card {
  border-color: rgba(45, 212, 191, 0.34);
  border-left-color: #5eead4;
  background:
    radial-gradient(circle at 90% 8%, rgba(45, 212, 191, 0.22) 0%, transparent 32%),
    radial-gradient(circle at 10% 96%, rgba(251, 191, 36, 0.16) 0%, transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.98) 50%, rgba(20, 83, 45, 0.82) 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(148, 163, 184, 0.14) inset,
    0 0 34px rgba(20, 184, 166, 0.12);
}

html.dark .sakura-wallet-fixed-title,
body[theme-mode="dark"] .sakura-wallet-fixed-title {
  color: #f8fafc;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.28);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html.dark .sakura-wallet-fixed-title,
  body[theme-mode="dark"] .sakura-wallet-fixed-title {
    background: linear-gradient(90deg, #e0f2fe 0%, #5eead4 38%, #fde68a 70%, #c4b5fd 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

html.dark .sakura-wallet-fixed-subtitle,
html.dark .sakura-wallet-fixed-row span,
body[theme-mode="dark"] .sakura-wallet-fixed-subtitle,
body[theme-mode="dark"] .sakura-wallet-fixed-row span {
  color: #cbd5e1;
}

html.dark .sakura-wallet-fixed-row strong,
body[theme-mode="dark"] .sakura-wallet-fixed-row strong {
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(45, 212, 191, 0.28);
}

html.dark .sakura-wallet-fixed-row,
html.dark .sakura-wallet-fixed-refresh,
body[theme-mode="dark"] .sakura-wallet-fixed-row,
body[theme-mode="dark"] .sakura-wallet-fixed-refresh {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.72) 100%);
}

html.dark .sakura-wallet-fixed-warning,
html.dark .sakura-wallet-fixed-dialog-warning,
body[theme-mode="dark"] .sakura-wallet-fixed-warning,
body[theme-mode="dark"] .sakura-wallet-fixed-dialog-warning {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(127, 29, 29, 0.42);
  color: #fecdd3;
}

html.dark .sakura-wallet-fixed-body p,
html.dark .sakura-wallet-fixed-dialog-note,
body[theme-mode="dark"] .sakura-wallet-fixed-body p,
body[theme-mode="dark"] .sakura-wallet-fixed-dialog-note {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(120, 53, 15, 0.36);
  color: #fed7aa;
}

@keyframes sakura-wallet-fixed-border-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes sakura-wallet-fixed-sweep {
  0%, 62% {
    transform: translateX(0) skewX(-18deg);
  }
  100% {
    transform: translateX(410%) skewX(-18deg);
  }
}

@keyframes sakura-wallet-fixed-text-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sakura-wallet-fixed-ratio-pulse {
  0%, 100% {
    box-shadow:
      0 8px 18px rgba(79, 70, 229, 0.22),
      0 0 18px rgba(20, 184, 166, 0.18);
  }
  50% {
    box-shadow:
      0 10px 24px rgba(79, 70, 229, 0.3),
      0 0 28px rgba(20, 184, 166, 0.3);
  }
}

@keyframes sakura-wallet-fixed-button-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sakura-wallet-fixed-button-sheen {
  0%, 58% {
    transform: translateX(-130%) skewX(-18deg);
  }
  100% {
    transform: translateX(130%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-wallet-fixed-card::before,
  .sakura-wallet-fixed-card::after,
  .sakura-wallet-fixed-title,
  .sakura-wallet-fixed-ratio,
  .sakura-wallet-fixed-submit,
  .sakura-wallet-fixed-submit::after,
  .sakura-wallet-fixed-confirm,
  .sakura-wallet-fixed-confirm::after {
    animation: none;
  }
}
