/* Web3 treatment for the AI strategy route. The native form and API remain unchanged. */
body.qdd-quant-route,
body.qdd-quant-route #app,
body.qdd-quant-route #app .contents {
  background: #070b12 !important;
  color: #eef8ff !important;
}

body.qdd-quant-route #app .contents {
  min-height: 100vh;
  overflow: hidden;
}

body.qdd-quant-route #app .header {
  height: 66px !important;
  background: #0a1019 !important;
  border-bottom: 1px solid #1d3342 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28) !important;
}

body.qdd-quant-route #app .header-left,
body.qdd-quant-route #app .header-txt {
  color: #ecf9ff !important;
}

body.qdd-quant-route #app .contents-box {
  position: relative !important;
  box-sizing: border-box;
  width: min(100%, 940px) !important;
  margin: 0 auto !important;
  padding: 18px 20px 110px !important;
}

body.qdd-quant-route #app .contents-balance-box,
body.qdd-quant-route #app .new-create,
body.qdd-quant-route #app .model-mian {
  position: relative;
  overflow: hidden;
  background: #0e1721 !important;
  border: 1px solid #1b3949 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25), 0 0 0 1px rgba(40, 185, 224, .03) !important;
}

body.qdd-quant-route #app .contents-balance-box {
  min-height: 180px;
  margin-top: 16px;
  padding: 22px 24px !important;
  background: #0e1721 !important;
}

body.qdd-quant-route #app .contents-balance-box::before,
body.qdd-quant-route #app .contents-balance-box::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(57, 211, 246, .12);
  transform: rotate(45deg);
}

body.qdd-quant-route #app .contents-balance-box::before { width: 180px; height: 180px; right: -54px; top: -104px; }
body.qdd-quant-route #app .contents-balance-box::after { width: 90px; height: 90px; right: 72px; bottom: -66px; }

body.qdd-quant-route #app .left-bg1,
body.qdd-quant-route #app .left-bg2 {
  display: none !important;
}

body.qdd-quant-route #app .balance-title-box,
body.qdd-quant-route #app .banalce-info,
body.qdd-quant-route #app .balance-infos,
body.qdd-quant-route #app .big-buttons,
body.qdd-quant-route #app .explain,
body.qdd-quant-route #app .new-create,
body.qdd-quant-route #app .model-mian {
  position: relative;
  z-index: 1;
}

body.qdd-quant-route #app .balance-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.qdd-quant-route #app .title-box-card {
  display: grid;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid #2c829b;
  border-radius: 10px;
  background: #102935 !important;
}

body.qdd-quant-route #app .title-box-card img { width: 24px !important; height: 24px !important; }
body.qdd-quant-route #app .title-box-txt { color: #9bb5c3 !important; font-size: 13px !important; }
body.qdd-quant-route #app .banalce-info { margin-top: 12px !important; color: #fff !important; }
body.qdd-quant-route #app .banalce-info > span { color: #36d8ef !important; font-size: 29px !important; font-weight: 700; }
body.qdd-quant-route #app .balance-info-title { color: #7895a4 !important; }
body.qdd-quant-route #app .balance-info-content { color: #e9f8ff !important; }

body.qdd-quant-route #app .big-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px !important;
}

body.qdd-quant-route #app .buttons-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  box-sizing: border-box;
  min-height: 82px !important;
  padding: 14px 16px !important;
  background: #101f2a !important;
  border: 1px solid #1c4858 !important;
  border-radius: 9px !important;
  color: #dceef5 !important;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

body.qdd-quant-route #app .buttons-item:hover {
  transform: translateY(-2px);
  border-color: #39d4eb !important;
  background: #122a36 !important;
}

body.qdd-quant-route #app .button-item-icon {
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 6px;
  border: 1px solid rgba(148, 235, 242, .35);
  border-radius: 10px;
  background: #112d39;
}
body.qdd-quant-route #app .button-item-icon img { width: 100% !important; height: 100% !important; filter: saturate(1.2) brightness(1.2); }
body.qdd-quant-route #app .button-item-name {
  min-width: 0;
  color: #d5e9ef !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35 !important;
  word-break: keep-all;
  overflow-wrap: normal;
}
body.qdd-quant-route #app .explain { color: #7e9aa7 !important; font-size: 12px !important; line-height: 1.7 !important; }

body.qdd-quant-route #app .new-create {
  margin-top: 14px !important;
  padding: 20px !important;
}
body.qdd-quant-route #app .new-create-title { color: #effaff !important; font-size: 18px !important; font-weight: 700; }
body.qdd-quant-route #app .new-create-lable,
body.qdd-quant-route #app .new-create-info-title { color: #7895a4 !important; }
body.qdd-quant-route #app .new-create-input-content,
body.qdd-quant-route #app .new-create-info-content,
body.qdd-quant-route #app .input-content1 {
  background: #09131c !important;
  border: 1px solid #214355 !important;
  border-radius: 8px !important;
  color: #effbff !important;
}
body.qdd-quant-route #app .new-create-input-content input { color: #effbff !important; }
body.qdd-quant-route #app .new-create-info { border-color: #1e3a49 !important; }
body.qdd-quant-route #app .new-create-info-content { color: #37d8eb !important; font-weight: 700; }
body.qdd-quant-route #app .confirm-button {
  min-height: 48px !important;
  margin-top: 18px !important;
  border: 1px solid #2e6e7a !important;
  border-radius: 8px !important;
  background: #1b4a56 !important;
  color: #d8eef1 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2) !important;
}
body.qdd-quant-route #app .confirm-button:hover { background: #245d68 !important; border-color: #3c8790 !important; }
body.qdd-quant-route #app .confirm-button[disabled],
body.qdd-quant-route #app .confirm-button:disabled { background: #17313a !important; border-color: #28464d !important; color: #69838a !important; box-shadow: none !important; cursor: not-allowed; }
body.qdd-quant-route #app .new-create-confirm-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px !important;
  margin-top: 18px !important;
  border: 1px solid #2e6e7a !important;
  border-radius: 8px !important;
  background: #1b4a56 !important;
  color: #d8eef1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2) !important;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
body.qdd-quant-route #app .new-create-confirm-button:hover { background: #245d68 !important; border-color: #3c8790 !important; }
body.qdd-quant-route #app .model-mian {
  position: fixed !important;
  inset: 0 !important;
  z-index: 4000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box;
  background: rgba(3, 8, 14, .78) !important;
  color: #eaf9ff !important;
  backdrop-filter: blur(6px);
}
body.qdd-quant-route #app .model-mian[style*="display: none"] { display: none !important; }
body.qdd-quant-route #app .model-mian .model-content {
  width: min(360px, 100%) !important;
  max-height: calc(100vh - 40px);
  margin: 0 !important;
  overflow: auto;
}
body.qdd-quant-route #app .nav_mobile_bottom { background: #0a1119 !important; border-top: 1px solid #1d3342 !important; }
body.qdd-quant-route #app .bottom_name_active { color: #39d8ee !important; }

.qdd-quant-success-overlay { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px; opacity: 1; transition: opacity .22s ease; }
.qdd-quant-success-overlay.is-closing { opacity: 0; }
.qdd-quant-success-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 14, .82); backdrop-filter: blur(8px); }
.qdd-quant-success-dialog { position: relative; width: min(360px, 100%); padding: 34px 26px 24px; overflow: hidden; border: 1px solid #2a6978; border-radius: 14px; background: #0d1a24; box-shadow: 0 22px 70px rgba(0, 0, 0, .5), inset 0 0 50px rgba(32, 175, 207, .05); text-align: center; color: #e7f8fc; animation: qddQuantSuccessIn .34s ease-out both; }
.qdd-quant-success-dialog::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: #50d3dc; box-shadow: 0 0 18px #50d3dc; }
.qdd-quant-success-orbit { position: relative; width: 104px; height: 104px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid rgba(66, 215, 229, .42); border-radius: 50%; }
.qdd-quant-success-orbit::before, .qdd-quant-success-orbit::after { content: ""; position: absolute; border: 1px solid rgba(66, 215, 229, .24); border-radius: 50%; }
.qdd-quant-success-orbit::before { inset: 10px; }
.qdd-quant-success-orbit::after { inset: -10px; border-style: dashed; animation: qddQuantSpin 10s linear infinite; }
.qdd-quant-success-orbit span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #52edc2; box-shadow: 0 0 12px #52edc2; animation: qddQuantOrbit 2.4s linear infinite; }
.qdd-quant-success-orbit span:last-child { animation-delay: -1.2s; background: #4dd8ef; box-shadow: 0 0 12px #4dd8ef; }
.qdd-quant-success-check { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #53d9cb; border-radius: 50%; background: #123b43; color: #75f1d6; font-size: 28px; animation: qddQuantCheck .5s .18s ease both; }
.qdd-quant-success-kicker { color: #62dbe8; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.qdd-quant-success-dialog h2 { margin: 10px 0 8px; color: #f3fcff; font-size: 24px; line-height: 1.25; }
.qdd-quant-success-dialog p { margin: 0 auto; color: #91acb7; font-size: 13px; line-height: 1.6; }
.qdd-quant-success-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border: 1px solid #245460; border-radius: 6px; background: #102a33; color: #a9dfe1; font-size: 12px; }
.qdd-quant-success-status i { width: 7px; height: 7px; border-radius: 50%; background: #52edc2; box-shadow: 0 0 12px #52edc2; animation: qddQuantBlink 1.1s ease-in-out infinite; }
.qdd-quant-success-bars { display: flex; align-items: end; justify-content: center; gap: 4px; height: 28px; margin: 20px 0 16px; }
.qdd-quant-success-bars b { width: 5px; height: 12px; border-radius: 2px; background: #36b5c5; animation: qddQuantBars .9s ease-in-out infinite alternate; }
.qdd-quant-success-bars b:nth-child(2n) { animation-delay: -.3s; background: #50d8c5; }
.qdd-quant-success-bars b:nth-child(3n) { animation-delay: -.6s; }
.qdd-quant-success-close { width: 100%; min-height: 40px; border: 1px solid #2b6571; border-radius: 7px; background: #173945; color: #cce9ec; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.qdd-quant-success-close:hover { background: #20515c; border-color: #3a8990; }
@keyframes qddQuantSuccessIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes qddQuantCheck { from { opacity: 0; transform: scale(.45); } to { opacity: 1; transform: scale(1); } }
@keyframes qddQuantSpin { to { transform: rotate(360deg); } }
@keyframes qddQuantOrbit { from { transform: rotate(0deg) translateX(48px) rotate(0deg); } to { transform: rotate(360deg) translateX(48px) rotate(-360deg); } }
@keyframes qddQuantBlink { 50% { opacity: .3; } }
@keyframes qddQuantBars { to { height: 27px; } }

.qdd-quant-hero {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border: 1px solid #214e60;
  border-radius: 12px;
  background: #09131d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 0 40px rgba(34, 178, 210, .04);
}
.qdd-quant-particles,
.qdd-quant-hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qdd-quant-hero-grid { opacity: .24; background-image: linear-gradient(rgba(45, 175, 207, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 175, 207, .16) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000, transparent 80%); }
.qdd-quant-hero-content { position: relative; z-index: 2; padding: 32px 30px; }
.qdd-quant-kicker { display: flex; align-items: center; gap: 8px; color: #63d9eb; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
.qdd-quant-pulse { width: 6px; height: 6px; border-radius: 50%; background: #49f2c7; box-shadow: 0 0 0 5px rgba(73, 242, 199, .1), 0 0 14px #49f2c7; }
.qdd-quant-live { margin-left: 4px; padding: 3px 7px; border: 1px solid rgba(73, 242, 199, .35); border-radius: 4px; color: #71e8c9; font-size: 9px; letter-spacing: .8px; }
.qdd-quant-hero h1 { margin: 18px 0 5px; color: #f3fcff; font-size: clamp(26px, 5vw, 42px); line-height: 1.05; font-weight: 750; letter-spacing: 0; }
.qdd-quant-hero p { margin: 0; color: #9db5c0; font-size: 14px; }
.qdd-quant-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #668491; font-size: 10px; letter-spacing: .8px; }
.qdd-quant-divider { width: 28px; height: 1px; background: #2a7180; }
.qdd-quant-hero-mark { position: absolute; right: 40px; top: 45px; z-index: 2; width: 112px; height: 112px; display: grid; place-items: center; border: 1px solid rgba(68, 215, 232, .34); border-radius: 50%; color: #39d8ed; transform: rotate(-13deg); }
.qdd-quant-hero-mark::before, .qdd-quant-hero-mark::after { content: ""; position: absolute; border: 1px solid rgba(68, 215, 232, .2); border-radius: 50%; }
.qdd-quant-hero-mark::before { inset: 10px; }
.qdd-quant-hero-mark::after { inset: -13px; border-style: dashed; opacity: .7; }
.qdd-quant-hero-mark span { font-size: 27px; font-weight: 800; letter-spacing: 0; }
.qdd-quant-hero-mark b { position: absolute; right: -12px; bottom: 2px; padding: 4px 7px; background: #112a36; border: 1px solid #2e8292; border-radius: 4px; color: #94eaf0; font-size: 10px; }

@media (max-width: 560px) {
  body.qdd-quant-route #app .contents-box { padding: 12px 12px 100px !important; }
  .qdd-quant-hero { min-height: 178px; }
  .qdd-quant-hero-content { padding: 26px 20px; }
  .qdd-quant-hero-mark { right: 8px; top: 58px; width: 82px; height: 82px; opacity: .72; }
  .qdd-quant-hero-mark span { font-size: 20px; }
  .qdd-quant-hero h1 { max-width: 220px; font-size: 27px; }
  .qdd-quant-hero-meta { margin-top: 18px; font-size: 9px; }
  body.qdd-quant-route #app .contents-balance-box { padding: 18px 16px !important; }
  body.qdd-quant-route #app .big-buttons { gap: 8px; }
  body.qdd-quant-route #app .buttons-item { min-height: 78px !important; padding: 11px 8px !important; gap: 7px; }
  body.qdd-quant-route #app .button-item-icon { flex-basis: 34px; width: 34px !important; height: 34px !important; padding: 5px; border-radius: 8px; }
  body.qdd-quant-route #app .button-item-name { font-size: 11px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .qdd-quant-hero-mark { transform: none; }
}

/* Standalone Strategy route. It intentionally has no dependency on the Vue page. */
body.qdd-quant-route,
body.qdd-quant-route #app { min-height: 100vh; background: #070b12 !important; color: #eef8ff; }
.qdd-quant-page { width: min(100%, 940px); box-sizing: border-box; margin: 0 auto; padding: 18px 20px 104px; }
.qdd-quant-page .qdd-quant-hero { min-height: 188px; }
.qdd-summary-panel,
.qdd-order-panel { position: relative; overflow: hidden; margin-top: 14px; padding: 22px 24px; border: 1px solid #1b3949; border-radius: 12px; background: #0e1721; box-shadow: 0 16px 40px rgba(0,0,0,.25), inset 0 0 40px rgba(40,185,224,.025); }
.qdd-summary-panel::after,
.qdd-order-panel::after { content: ""; position: absolute; right: -54px; top: -84px; width: 170px; height: 170px; border: 1px solid rgba(57,211,246,.11); transform: rotate(45deg); pointer-events: none; }
.qdd-summary-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.qdd-summary-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #2c829b; border-radius: 10px; background: #102935; color: #64e5ef; font-size: 22px; font-weight: 800; }
.qdd-summary-heading small, .qdd-summary-stats small, .qdd-form-label, .qdd-form-row label > span, .qdd-info-box small, .qdd-detail-row small { display: block; color: #7895a4; font-size: 12px; line-height: 1.4; }
.qdd-summary-heading strong { display: block; margin-top: 3px; color: #f2fcff; font-size: 27px; line-height: 1.1; }
.qdd-summary-heading em { color: #43d6e8; font-size: 11px; font-style: normal; font-weight: 700; }
.qdd-summary-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #1e3a49; }
.qdd-summary-stats b { display: block; margin-top: 4px; color: #dceff4; font-size: 16px; }
.qdd-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.qdd-feature-grid > div { display: flex; align-items: center; gap: 12px; min-height: 70px; box-sizing: border-box; padding: 13px 15px; border: 1px solid #1c4858; border-radius: 9px; background: #101f2a; }
.qdd-feature-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(148,235,242,.35); border-radius: 10px; background: #112d39; color: #54dce7; font-size: 11px; font-weight: 800; }
.qdd-feature-grid b { color: #d5e9ef; font-size: 13px; line-height: 1.35; }
.qdd-quant-note { margin: 14px 4px 0; color: #7e9aa7; font-size: 12px; line-height: 1.7; }
.qdd-panel-title { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.qdd-panel-title small { color: #62dbe8; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.qdd-panel-title h2 { margin: 7px 0 0; color: #effaff; font-size: 19px; line-height: 1.25; }
.qdd-panel-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #245460; border-radius: 4px; color: #71e8c9; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.qdd-panel-status i { width: 6px; height: 6px; border-radius: 50%; background: #52edc2; box-shadow: 0 0 10px #52edc2; }
.qdd-form-label { position: relative; z-index: 1; margin-top: 22px; }
.qdd-plan-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.qdd-plan-card { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 10px 12px; border: 1px solid #214355; border-radius: 8px; background: #09131c; color: #dff6fa; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.qdd-plan-card:hover { transform: translateY(-1px); border-color: #3a8990; background: #10232d; }
.qdd-plan-card.is-selected { border-color: #3bd4df; background: #102b35; box-shadow: inset 3px 0 #4ce1dc; }
.qdd-plan-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #2b6571; border-radius: 7px; color: #66dfeb; font-size: 10px; font-weight: 800; }
.qdd-plan-main { min-width: 0; }
.qdd-plan-main b, .qdd-plan-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qdd-plan-main b { color: #eefbff; font-size: 13px; }
.qdd-plan-main small { margin-top: 4px; color: #7895a4; font-size: 10px; }
.qdd-plan-check { flex: 0 0 11px; width: 11px; height: 11px; margin-left: auto; border: 1px solid #41616a; border-radius: 50%; }
.qdd-plan-card.is-selected .qdd-plan-check { border-color: #52edc2; background: #52edc2; box-shadow: 0 0 10px rgba(82,237,194,.45); }
.qdd-empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed #2b4a56; border-radius: 8px; color: #7895a4; font-size: 12px; text-align: center; }
.qdd-form-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; margin-top: 18px; }
.qdd-form-row label { display: block; min-width: 0; }
.qdd-amount-input { display: flex; align-items: center; height: 46px; box-sizing: border-box; margin-top: 7px; padding: 0 13px; border: 1px solid #214355; border-radius: 8px; background: #09131c; }
.qdd-amount-input:focus-within { border-color: #3bd4df; box-shadow: 0 0 0 3px rgba(59,212,223,.08); }
.qdd-amount-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #effbff; font: inherit; font-size: 16px; }
.qdd-amount-input em { color: #43d6e8; font-size: 11px; font-style: normal; font-weight: 700; }
.qdd-info-box { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 10px 13px; border: 1px solid #214355; border-radius: 8px; background: #09131c; }
.qdd-info-box b, .qdd-detail-row b { display: block; margin-top: 4px; overflow: hidden; color: #38d5e8; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.qdd-detail-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #1e3a49; }
.qdd-submit-button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 18px; border: 1px solid #2e6e7a; border-radius: 8px; background: #1b4a56; color: #d8eef1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.qdd-submit-button:hover { background: #245d68; border-color: #3c8790; }
.qdd-submit-button:disabled { background: #17313a; border-color: #28464d; color: #69838a; box-shadow: none; cursor: not-allowed; }
.qdd-submit-arrow { color: #73e4e1; font-size: 18px; line-height: 1; }
.qdd-confirm-overlay { position: fixed; inset: 0; z-index: 4100; display: grid; place-items: center; padding: 20px; }
.qdd-confirm-backdrop { position: absolute; inset: 0; background: rgba(3,8,14,.82); backdrop-filter: blur(7px); }
.qdd-confirm-dialog { position: relative; width: min(380px, 100%); box-sizing: border-box; padding: 28px 24px 22px; border: 1px solid #2a6978; border-radius: 13px; background: #0d1a24; box-shadow: 0 22px 70px rgba(0,0,0,.55); text-align: center; }
.qdd-confirm-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 13px; border: 1px solid #53d9cb; border-radius: 50%; background: #123b43; color: #75f1d6; font-size: 18px; font-weight: 800; }
.qdd-confirm-dialog > small { color: #62dbe8; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.qdd-confirm-dialog h2 { margin: 10px 0 6px; color: #f3fcff; font-size: 21px; }
.qdd-confirm-dialog p { margin: 0; color: #91acb7; font-size: 13px; line-height: 1.6; }
.qdd-confirm-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 19px; padding: 12px; border: 1px solid #214355; border-radius: 8px; background: #09131c; color: #59dfe7; font-size: 13px; font-weight: 700; }
.qdd-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.qdd-confirm-actions button { min-height: 42px; border: 1px solid #2b6571; border-radius: 7px; background: #122b34; color: #a9dfe1; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.qdd-confirm-actions .qdd-confirm-submit { border-color: #2e7d83; background: #1b4a56; color: #d8eef1; }
.qdd-inline-toast { position: fixed; left: 50%; bottom: 88px; z-index: 6000; max-width: calc(100vw - 32px); padding: 11px 16px; border: 1px solid #2b6571; border-radius: 7px; background: #122b34; color: #d9f5f6; font-size: 13px; transform: translateX(-50%); transition: opacity .2s ease, transform .2s ease; }
.qdd-inline-toast.is-hidden { opacity: 0; transform: translate(-50%, 7px); }

@media (max-width: 600px) {
  .qdd-quant-page { padding: 12px 12px 100px; }
  .qdd-summary-panel, .qdd-order-panel { padding: 18px 16px; }
  .qdd-feature-grid { gap: 8px; }
  .qdd-feature-grid > div { min-height: 78px; padding: 10px 8px; gap: 7px; }
  .qdd-feature-grid b { font-size: 11px; }
  .qdd-feature-icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 9px; }
  .qdd-plan-list { grid-template-columns: 1fr; }
  .qdd-form-row { grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
  .qdd-info-box b { font-size: 12px; }
  .qdd-quant-page .qdd-quant-hero-content { padding: 26px 20px; }
  .qdd-quant-page .qdd-quant-hero-mark { right: 8px; top: 58px; width: 82px; height: 82px; opacity: .72; }
  .qdd-quant-page .qdd-quant-hero-mark span { font-size: 20px; }
  .qdd-quant-page .qdd-quant-hero h1 { max-width: 220px; font-size: 27px; }
}

/* Template 2: a denser terminal-style skin for operators who prefer data-first UI. */
body.qdd-template-terminal,
body.qdd-template-terminal #app { background: #09100d !important; color: #eaf7df !important; }
body.qdd-template-terminal .qdd-quant-hero,
body.qdd-template-terminal .qdd-summary-panel,
body.qdd-template-terminal .qdd-order-panel { border-color: #3d6138 !important; background: #101b15 !important; box-shadow: 0 16px 40px rgba(0,0,0,.32), inset 0 0 50px rgba(159,230,85,.035) !important; }
body.qdd-template-terminal .qdd-quant-hero-grid { background-image: linear-gradient(rgba(145,207,82,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(145,207,82,.14) 1px, transparent 1px); }
body.qdd-template-terminal .qdd-quant-kicker,
body.qdd-template-terminal .qdd-quant-hero-meta,
body.qdd-template-terminal .qdd-panel-title small { color: #b9ec62 !important; }
body.qdd-template-terminal .qdd-quant-hero h1,
body.qdd-template-terminal .qdd-panel-title h2,
body.qdd-template-terminal .qdd-summary-heading strong { color: #f2ffe8 !important; }
body.qdd-template-terminal .qdd-quant-hero p,
body.qdd-template-terminal .qdd-quant-note,
body.qdd-template-terminal .qdd-summary-heading small,
body.qdd-template-terminal .qdd-summary-stats small { color: #9bb39a !important; }
body.qdd-template-terminal .qdd-quant-hero-mark { border-color: rgba(185,236,98,.42); color: #c8f472; }
body.qdd-template-terminal .qdd-quant-hero-mark::before,
body.qdd-template-terminal .qdd-quant-hero-mark::after { border-color: rgba(185,236,98,.24); }
body.qdd-template-terminal .qdd-summary-icon,
body.qdd-template-terminal .qdd-feature-icon { border-color: #597d43; background: #17291a; color: #c6f16c; }
body.qdd-template-terminal .qdd-feature-grid > div,
body.qdd-template-terminal .qdd-plan-card { border-color: #385b36; background: #132119; }
body.qdd-template-terminal .qdd-plan-card:hover,
body.qdd-template-terminal .qdd-plan-card.is-selected { border-color: #b9ec62; background: #1c321d; }
body.qdd-template-terminal .qdd-plan-check { border-color: #638257; }
body.qdd-template-terminal .qdd-plan-card.is-selected .qdd-plan-check { border-color: #c6f16c; background: #c6f16c; box-shadow: 0 0 10px rgba(198,241,108,.45); }
body.qdd-template-terminal .qdd-plan-main b,
body.qdd-template-terminal .qdd-feature-grid b { color: #e6f4da; }
body.qdd-template-terminal .qdd-plan-main small,
body.qdd-template-terminal .qdd-form-label,
body.qdd-template-terminal .qdd-form-row label > span,
body.qdd-template-terminal .qdd-info-box small,
body.qdd-template-terminal .qdd-detail-row small { color: #8fa889; }
body.qdd-template-terminal .qdd-amount-input,
body.qdd-template-terminal .qdd-info-box { border-color: #385b36; background: #0b1610; }
body.qdd-template-terminal .qdd-amount-input input { color: #f0ffe7; }
body.qdd-template-terminal .qdd-amount-input em,
body.qdd-template-terminal .qdd-info-box b,
body.qdd-template-terminal .qdd-detail-row b { color: #c6f16c; }
body.qdd-template-terminal .qdd-submit-button { border-color: #6e9848; background: #385f31; color: #efffdf; }
body.qdd-template-terminal .qdd-submit-button:hover { background: #4d783c; border-color: #b9ec62; }
body.qdd-template-terminal .qdd-panel-status { border-color: #527742; color: #c6f16c; }

/* Template 3: a light, restrained professional skin for users who prefer clarity. */
body.qdd-template-clean,
body.qdd-template-clean #app { background: #f0f4f5 !important; color: #17323b !important; }
body.qdd-template-clean .qdd-quant-page { background: #f0f4f5; }
body.qdd-template-clean .qdd-quant-hero,
body.qdd-template-clean .qdd-summary-panel,
body.qdd-template-clean .qdd-order-panel { border-color: #c7d9de !important; background: #ffffff !important; box-shadow: 0 12px 28px rgba(33,72,82,.10) !important; }
body.qdd-template-clean .qdd-quant-hero-grid { opacity: .34; background-image: linear-gradient(rgba(13,112,128,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(13,112,128,.12) 1px, transparent 1px); }
body.qdd-template-clean .qdd-quant-kicker,
body.qdd-template-clean .qdd-quant-hero-meta,
body.qdd-template-clean .qdd-panel-title small { color: #0b7883 !important; }
body.qdd-template-clean .qdd-quant-hero h1,
body.qdd-template-clean .qdd-panel-title h2,
body.qdd-template-clean .qdd-summary-heading strong { color: #17323b !important; }
body.qdd-template-clean .qdd-quant-hero p,
body.qdd-template-clean .qdd-quant-note,
body.qdd-template-clean .qdd-summary-heading small,
body.qdd-template-clean .qdd-summary-stats small { color: #607980 !important; }
body.qdd-template-clean .qdd-quant-hero-mark { border-color: rgba(11,120,131,.35); color: #0b7883; }
body.qdd-template-clean .qdd-quant-hero-mark::before,
body.qdd-template-clean .qdd-quant-hero-mark::after { border-color: rgba(11,120,131,.22); }
body.qdd-template-clean .qdd-summary-icon,
body.qdd-template-clean .qdd-feature-icon { border-color: #a9c9ce; background: #e7f2f3; color: #0b7883; }
body.qdd-template-clean .qdd-summary-stats,
body.qdd-template-clean .qdd-detail-row { border-color: #d7e4e7; }
body.qdd-template-clean .qdd-summary-stats b,
body.qdd-template-clean .qdd-feature-grid b,
body.qdd-template-clean .qdd-plan-main b { color: #24444d; }
body.qdd-template-clean .qdd-feature-grid > div,
body.qdd-template-clean .qdd-plan-card { border-color: #c7d9de; background: #fbfdfd; }
body.qdd-template-clean .qdd-plan-card:hover,
body.qdd-template-clean .qdd-plan-card.is-selected { border-color: #0b9aa2; background: #edf8f8; }
body.qdd-template-clean .qdd-plan-main small,
body.qdd-template-clean .qdd-form-label,
body.qdd-template-clean .qdd-form-row label > span,
body.qdd-template-clean .qdd-info-box small,
body.qdd-template-clean .qdd-detail-row small { color: #66838a; }
body.qdd-template-clean .qdd-amount-input,
body.qdd-template-clean .qdd-info-box { border-color: #c7d9de; background: #f8fbfb; }
body.qdd-template-clean .qdd-amount-input input { color: #17323b; }
body.qdd-template-clean .qdd-amount-input em,
body.qdd-template-clean .qdd-info-box b,
body.qdd-template-clean .qdd-detail-row b { color: #0b7883; }
body.qdd-template-clean .qdd-submit-button { border-color: #0b7883; background: #0b7883; color: #ffffff; }
body.qdd-template-clean .qdd-submit-button:hover { background: #09636c; border-color: #09636c; }
body.qdd-template-clean .qdd-panel-status { border-color: #a9c9ce; color: #0b7883; }

.qdd-quant-boot { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; color: #7e9aa7; font-family: inherit; }
.qdd-quant-boot-mark { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #2a6978; border-radius: 50%; background: #0e1721; color: #62dbe8; font-size: 17px; font-weight: 800; }
.qdd-quant-boot-mark::before { content: ""; position: absolute; inset: -7px; border: 1px dashed #2a6978; border-radius: 50%; animation: qddBootSpin 4s linear infinite; }
.qdd-quant-boot-mark i { position: absolute; right: -2px; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; background: #52edc2; box-shadow: 0 0 12px #52edc2; animation: qddTerminalBlink 1s steps(2, end) infinite; }
.qdd-quant-boot strong { color: #c9e9ed; font-size: 11px; letter-spacing: 1.8px; }
.qdd-quant-boot small { color: #7895a4; font-size: 12px; }
@keyframes qddBootSpin { to { transform: rotate(360deg); } }

/* These template rules change composition as well as color. */
.qdd-quant-page[data-template="terminal"] { width: min(100%, 1120px); }
body.qdd-template-terminal .qdd-quant-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 232px; border-radius: 5px !important; }
body.qdd-template-terminal .qdd-quant-hero-content { padding: 34px 36px; }
body.qdd-template-terminal .qdd-quant-hero-mark { position: relative; top: auto; right: auto; align-self: center; justify-self: center; width: 148px; height: 148px; transform: rotate(8deg); }
body.qdd-template-terminal .qdd-quant-hero-mark::after { animation: qddTerminalSpin 7s linear infinite; }
body.qdd-template-terminal .qdd-quant-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #b9ec62; box-shadow: 0 0 15px #b9ec62; animation: qddTerminalSweep 4s linear infinite; }
body.qdd-template-terminal .qdd-summary-panel { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 26px; border-radius: 5px !important; }
body.qdd-template-terminal .qdd-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid #385b36; }
body.qdd-template-terminal .qdd-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.qdd-template-terminal .qdd-feature-grid > div { min-height: 58px; border-radius: 4px; }
body.qdd-template-terminal .qdd-plan-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.qdd-template-terminal .qdd-plan-card { position: relative; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 104px; box-sizing: border-box; border-radius: 4px; padding: 12px; }
body.qdd-template-terminal .qdd-plan-icon { width: 34px; height: 24px; flex-basis: 24px; border-radius: 3px; }
body.qdd-template-terminal .qdd-plan-check { position: absolute; top: 14px; right: 12px; }
body.qdd-template-terminal .qdd-plan-main { width: 100%; }
body.qdd-template-terminal .qdd-plan-main b { margin-top: 11px; font-size: 14px; }
body.qdd-template-terminal .qdd-order-panel { border-radius: 5px !important; }
body.qdd-template-terminal .qdd-terminal-status { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 24px; padding: 7px 10px; border: 1px solid #385b36; border-radius: 3px; background: #0b1610; color: #8fa889; font: 10px/1.2 monospace; letter-spacing: .6px; }
body.qdd-template-terminal .qdd-terminal-status b { color: #c6f16c; font-weight: 700; }
body.qdd-template-terminal .qdd-terminal-status i { width: 6px; height: 6px; border-radius: 50%; background: #c6f16c; box-shadow: 0 0 10px #c6f16c; animation: qddTerminalBlink 1.2s steps(2, end) infinite; }
body.qdd-template-terminal .qdd-terminal-status em { color: #b3c8a5; font-style: normal; }
body.qdd-template-terminal .qdd-submit-button { border-radius: 4px; font-family: monospace; letter-spacing: .4px; animation: qddTerminalButton 2.8s ease-in-out infinite; }

.qdd-quant-page[data-template="clean"] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; width: min(100%, 1120px); }
body.qdd-template-clean .qdd-quant-hero { grid-column: 1 / -1; min-height: 206px; border-radius: 6px; }
body.qdd-template-clean .qdd-quant-hero-content { padding: 30px 34px; }
body.qdd-template-clean .qdd-quant-hero-mark { right: 62px; top: 44px; border-radius: 18px; transform: rotate(0); }
body.qdd-template-clean .qdd-quant-hero-mark::before,
body.qdd-template-clean .qdd-quant-hero-mark::after { border-radius: 14px; }
body.qdd-template-clean .qdd-summary-panel { grid-column: 1; margin-top: 0; border-radius: 6px; }
body.qdd-template-clean .qdd-feature-grid { grid-column: 2; grid-template-columns: 1fr; gap: 8px; margin-top: 0; }
body.qdd-template-clean .qdd-feature-grid > div { min-height: 62px; border-radius: 6px; background: #ffffff; }
body.qdd-template-clean .qdd-quant-note { grid-column: 1 / -1; margin: -2px 4px 0; }
body.qdd-template-clean .qdd-order-panel { grid-column: 1 / -1; margin-top: 0; border-radius: 6px; }
body.qdd-template-clean .qdd-plan-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.qdd-template-clean .qdd-plan-card { min-height: 76px; border-radius: 6px; }
body.qdd-template-clean .qdd-clean-trust { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #66838a; font-size: 10px; }
body.qdd-template-clean .qdd-clean-trust span { padding-right: 12px; border-right: 1px solid #c7d9de; color: #0b7883; font-weight: 700; letter-spacing: 1px; }
body.qdd-template-clean .qdd-clean-trust b { font-weight: 500; }
body.qdd-template-clean .qdd-submit-button { border-radius: 5px; animation: qddCleanButton 2.6s ease-in-out infinite; }
body.qdd-template-clean .qdd-quant-hero,
body.qdd-template-clean .qdd-summary-panel,
body.qdd-template-clean .qdd-feature-grid > div,
body.qdd-template-clean .qdd-order-panel { animation: qddCleanRise .45s ease both; }
body.qdd-template-clean .qdd-summary-panel { animation-delay: .05s; }
body.qdd-template-clean .qdd-feature-grid { animation: qddCleanRise .45s .1s ease both; }
body.qdd-template-clean .qdd-order-panel { animation-delay: .15s; }

@keyframes qddTerminalSweep { from { transform: translateY(0); opacity: .15; } 45% { opacity: 1; } to { transform: translateY(230px); opacity: .15; } }
@keyframes qddTerminalSpin { to { transform: rotate(360deg); } }
@keyframes qddTerminalBlink { 50% { opacity: .25; } }
@keyframes qddTerminalButton { 50% { box-shadow: 0 0 0 3px rgba(185,236,98,.08), 0 8px 18px rgba(0,0,0,.2); } }
@keyframes qddCleanRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes qddCleanButton { 50% { box-shadow: 0 8px 22px rgba(11,120,131,.18); } }

@media (max-width: 760px) {
  .qdd-quant-page[data-template="terminal"],
  .qdd-quant-page[data-template="clean"] { display: block; width: min(100%, 940px); }
  body.qdd-template-terminal .qdd-quant-hero { display: block; min-height: 218px; }
  body.qdd-template-terminal .qdd-quant-hero-content,
  body.qdd-template-clean .qdd-quant-hero-content { padding: 26px 20px; }
  body.qdd-template-terminal .qdd-quant-hero-mark { position: absolute; right: 8px; top: 58px; width: 82px; height: 82px; opacity: .72; }
  body.qdd-template-terminal .qdd-summary-panel { display: block; }
  body.qdd-template-terminal .qdd-summary-stats { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid #385b36; border-left: 0; }
  body.qdd-template-terminal .qdd-plan-list,
  body.qdd-template-clean .qdd-plan-list { grid-template-columns: 1fr; }
  body.qdd-template-clean .qdd-feature-grid { grid-template-columns: 1fr; margin-top: 14px; }
  body.qdd-template-clean .qdd-summary-panel,
  body.qdd-template-clean .qdd-order-panel { margin-top: 14px; }
  body.qdd-template-clean .qdd-quant-hero-mark { right: 8px; top: 58px; width: 82px; height: 82px; }
}
