/* 课堂宝小程序 — 与官网 / 工作台同一套深紫商业风 */
body.mp-desk { background: #eceaf4; }

.mp-deskbar {
  width: min(920px, calc(100% - 24px));
  margin: 16px auto 0;
  font-size: 13px;
  color: var(--ktb-muted);
}
.mp-deskbar a { margin-right: 8px; }

.mp-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ktb-bg);
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}
.mp-app h1,
.mp-app h2,
.mp-app h3 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.mp-status {
  height: 44px;
  padding: 12px 18px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ktb-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  background: #fff;
  z-index: 4;
}
.mp-app.is-hero .mp-status {
  background: transparent;
  color: #f9fafb;
  position: absolute;
  left: 0; right: 0; top: 0;
}
.mp-status__caps { font-weight: 500; letter-spacing: .08em; opacity: .7; font-size: 11px; }
.mp-status__sys { font-size: 11px; letter-spacing: .04em; }

.mp-nav {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 600;
  color: var(--ktb-ink);
  flex: none;
  border-bottom: 1px solid var(--ktb-line-tint);
}
.mp-nav span { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.mp-back, .mp-nav-side {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ktb-ink);
  border-radius: 10px;
  flex: none;
}
.mp-back:hover { background: var(--ktb-primary-soft); color: var(--ktb-primary); }
.mp-nav .chat-ico { width: 28px; height: 28px; }

.mp-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 18px;
  -webkit-overflow-scrolling: touch;
}
.mp-app.is-hero .mp-body { padding: 0 0 18px; }
.mp-app.is-hero .mp-body:has(.mp-login) { padding: 0; }

.mp-hero {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(168, 85, 201, .45), transparent 48%),
    linear-gradient(165deg, #1a1a2e 0%, #3b1050 52%, #8b2d9e 120%);
  color: #fff;
  padding: 52px 16px 28px;
}
.mp-hero h1 { font-size: 20px; font-weight: 600; color: #fff; }
.mp-hero p { margin-top: 4px; color: rgba(249,250,251,.62); font-size: 12px; font-weight: 400; }
.mp-hero-link {
  display: inline-flex;
  align-items: center;
  color: #fde68a !important;
  font-weight: 500;
}
.mp-hero-link:hover { color: #fff !important; }
.mp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.14);
  color: rgba(249,250,251,.78);
  font-size: 13px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,.12);
}
.mp-search:hover { color: #fff; }
.mp-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  font: inherit;
  min-width: 0;
}
.mp-sheet {
  margin: -18px 16px 0;
  position: relative;
  z-index: 1;
}

.mp-tab {
  height: 58px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--ktb-line-tint);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 6px;
  flex: none;
  backdrop-filter: blur(8px);
  z-index: 6;
}
.mp-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ktb-muted);
  gap: 2px;
  font-weight: 500;
}
.mp-tab a svg { width: 22px; height: 22px; }
.mp-tab a.is-on { color: var(--ktb-primary); font-weight: 650; }

.mp-banner {
  display: block;
  min-height: 148px;
  border-radius: 18px;
  color: #fff !important;
  padding: 18px 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ktb-shadow-md);
}
.mp-banner h3 { color: #fff; font-size: 16px; font-weight: 600; margin: 8px 0 6px; max-width: 68%; line-height: 1.35; }
.mp-banner small { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 400; display: block; max-width: 68%; }
.mp-banner .kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
}
.mp-banner-art {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 118px;
  height: 118px;
  pointer-events: none;
}
.mp-banner-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
}
.mp-banner--dark { background: linear-gradient(135deg, #0a0a12, #4c1d6b); }
.mp-banner--purple { background: linear-gradient(135deg, #6b1f7a, #a855c9); }
.mp-banner--ink { background: linear-gradient(135deg, #1a1a2e, #7c3aed); }
.mp-banner--phy { background: linear-gradient(145deg, #0b1220 0%, #1e3a8a 58%, #6d28d9 120%); }
.mp-banner--chem { background: linear-gradient(145deg, #042f2e 0%, #0f766e 52%, #7c3aed 120%); }
.mp-banner--chn { background: linear-gradient(145deg, #3f0d1c 0%, #9f1239 55%, #8b2d9e 120%); }
.mp-banner-track { position: relative; }
.mp-banner-track .mp-poster { display: none; }
.mp-banner-track .mp-poster.is-on { display: block; }
.mp-poster {
  display: block;
  width: 100%;
  aspect-ratio: 75 / 28;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ktb-shadow-md);
  background: #1a1a2e;
}
.mp-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  z-index: 2;
}
.mp-dots i {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.45);
}
.mp-dots i.is-on { width: 16px; background: #fff; }

.mp-ops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
}
.mp-ops a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ktb-ink);
  font-size: 10px;
  font-weight: 500;
}
.mp-ops a:hover { color: var(--ktb-primary); }
.mp-ops i {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ktb-primary-soft);
  color: var(--ktb-primary);
}
.mp-ops i svg { width: 20px; height: 20px; }

.mp-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.mp-sec h2 { font-size: 15px; font-weight: 600; color: var(--ktb-ink); }
.mp-sec a { font-size: 12px; font-weight: 400; color: var(--ktb-muted); }

.mp-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--ktb-shadow);
  border: 1px solid var(--ktb-line-tint);
}
.mp-card h3 { font-size: 15px; font-weight: 600; color: var(--ktb-ink); margin: 0 0 4px; }
.mp-app .agent-title { font-size: 17px; }
.mp-app .agent-facts { grid-template-columns: 1fr; }
.mp-app .agent-stats { grid-template-columns: 1fr 1fr; }
.mp-card.agent-sheet .ktb-disclaimer { margin-top: 12px; }
.mp-card .avatar-edit > .meta { display: none; }
.grow-mini-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.grow-mini-hd h3 { margin: 0; }
.grow-next { font-size: 12px; color: var(--ktb-ink); line-height: 1.5; }
.grow-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.55; }
.grow-do { margin: 8px 0 0; padding: 8px 10px; background: var(--ktb-primary-soft); border-radius: 10px; font-size: 12px; }
.grow-mini .grow-medals-hd { margin: 0 0 6px; font-size: 15px; }
.grow-mini .grow-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 4px; margin-bottom: 2px; }
.grow-mini .grow-mini-hd { margin-top: 12px; }
.grow-mini .ktb-medal { width: auto; }
.grow-mini .ktb-medal__stamp { width: 32px; height: 32px; }

.mp-agent {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ktb-line-tint);
  box-shadow: var(--ktb-shadow);
  color: inherit;
}
.mp-agent:hover { color: inherit; box-shadow: var(--ktb-shadow-md); }
.mp-agent .thumb {
  width: 86px; height: 86px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}
.mp-agent h3 { font-size: 15px; font-weight: 600; color: var(--ktb-ink); }
.mp-agent .desc {
  font-size: 12px;
  color: var(--ktb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  margin-top: 2px;
}
.mp-agent .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}
.mp-agent .try { color: var(--ktb-primary); font-weight: 500; }

.mp-cover--chem { background: linear-gradient(135deg, #7c3aed, #8b2d9e); }
.mp-cover--phy { background: linear-gradient(135deg, #1d4ed8, #6366f1); }
.mp-cover--chn { background: linear-gradient(135deg, #9f1239, #be185d); }
.mp-cover--math { background: linear-gradient(135deg, #6b1f7a, #a855c9); }
.mp-cover--eng { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.mp-cover--sci { background: linear-gradient(135deg, #0369a1, #8b2d9e); }
.mp-cover--gen { background: linear-gradient(135deg, #1a1a2e, #8b2d9e); }

.mp-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ktb-line-tint);
  margin-bottom: 10px;
}
.mp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--ktb-line);
  color: var(--ktb-ink);
  font-size: 15px;
  font-weight: 400;
}
.mp-row .meta { font-size: 12px; font-weight: 400; }
.mp-row:last-child { border-bottom: 0; }
.mp-row:hover { color: var(--ktb-ink); background: #fcfaff; }
.mp-row .chev { color: #c4b5d4; }
.mp-row--card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ktb-line-tint);
  margin-bottom: 10px;
  box-shadow: var(--ktb-shadow);
}

.mp-bundle { padding: 14px 14px 8px; }
.mp-bundle-hd { padding-bottom: 10px; }
.mp-bundle-hd h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.mp-bundle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mp-bundle-meta .meta { min-width: 0; }
.mp-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--ktb-line);
  color: inherit;
}
.mp-file:hover { color: inherit; }
.mp-file-main { flex: 1 1 auto; min-width: 0; }
.mp-file-main strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mp-file-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.mp-file-acts .mp-btn {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.mp-chip-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ktb-line);
  background: #fff;
  color: var(--ktb-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.mp-chip-btn--on {
  border-color: var(--ktb-primary);
  background: var(--ktb-primary-soft);
  color: var(--ktb-primary);
}
.mp-preview {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.mp-preview h3 { margin: 12px 0 8px; }
.mp-code-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ktb-ink);
  margin: 12px 0 4px;
  white-space: nowrap;
}
.mp-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mp-code-row strong { font-size: 15px; font-weight: 600; }
.mp-code-row .meta { margin: 4px 0 0; }

.mp-btn {
  display: block;
  text-align: center;
  background: var(--ktb-primary);
  color: #fff !important;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  width: 100%;
}
.mp-btn:active { transform: scale(.98); }
.mp-btn:disabled { opacity: .45; }
.mp-btn--ghost {
  background: var(--ktb-primary-soft);
  color: var(--ktb-primary) !important;
}
.mp-btn--line {
  background: #fff;
  color: var(--ktb-ink) !important;
  border: 1px solid var(--ktb-line);
}
.mp-btn--danger {
  background: #fff;
  color: var(--ktb-danger) !important;
  border: 1px solid #fecaca;
}

.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mp-chips .chip {
  border: 1px solid var(--ktb-line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ktb-ink);
}
.mp-chips .chip.is-on,
.mp-chips .chip.ktb-tag {
  border-color: var(--ktb-primary);
  background: var(--ktb-primary-soft);
  color: var(--ktb-primary);
}
.mp-goal {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
}
.mp-goal--invite, .mp-goal--拉新 { background: #f3e8f8; color: #8b2d9e; }
.mp-goal--start, .mp-goal--促活 { background: #ede9fe; color: #6d28d9; }
.mp-goal--pace, .mp-goal--留存 { background: #e0e7ff; color: #3730a3; }

.pf-lab { font-size: 13px; color: var(--ktb-ink); margin: 10px 0 6px; font-weight: 600; }
.pick-kicker { font-size: 12px; color: var(--ktb-muted); margin: 8px 0 6px; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ktb-line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  color: var(--ktb-ink);
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick.is-on {
  border-color: var(--ktb-primary);
  background: var(--ktb-primary-soft);
  color: var(--ktb-primary);
  font-weight: 600;
}

.mp-demo {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff8e8;
  border-radius: 12px;
  font-size: 12px;
  color: #7a5a18;
}

.mp-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 12px;
}
.mp-cal span {
  background: var(--ktb-bg);
  border-radius: 10px;
  padding: 10px 0 8px;
  color: var(--ktb-ink);
}
.mp-cal span em { display: block; font-style: normal; color: var(--ktb-primary); font-weight: 600; margin-top: 4px; }

.chat-composer { margin-top: 12px; position: relative; z-index: 2; }
.chat-plus { position: relative; }
.chat-tip {
  position: fixed;
  z-index: 80;
  width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2c2c34;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
}
.chat-tip::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #2c2c34;
  transform: rotate(45deg);
}
.chat-tip button {
  border: 0; padding: 0; background: none;
  color: #a78bfa; cursor: pointer; font: inherit;
}
.chat-pill {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ktb-line);
  background: #fff;
  border-radius: 24px;
  padding: 6px 8px 6px 12px;
}
.chat-pill-row { display: flex; align-items: flex-end; }
.chat-attach {
  display: flex; align-items: center; gap: 6px; width: fit-content;
  margin: 2px 0 6px; font-size: 12px; background: #f3f0f8; border-radius: 8px; padding: 4px 8px;
}
.chat-attach button { border: 0; background: none; }
.chat-field {
  flex: 1; border: 0; outline: none; resize: none; background: transparent;
  font: inherit; font-size: 14px; min-height: 22px; max-height: 88px; padding: 6px 0;
}
.chat-pill-acts { display: flex; align-items: center; flex-shrink: 0; }
.chat-pill-div { width: 1px; height: 14px; background: var(--ktb-line); margin: 0 4px; }
.chat-ico {
  width: 32px; height: 32px; border: 0; background: none; border-radius: 50%;
  color: #8a7a98; display: grid; place-items: center;
}
.chat-ico.is-on { color: var(--ktb-primary); background: var(--ktb-primary-soft); }

.mp-more {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 12px;
  color: var(--ktb-muted);
}

.pwd-wrap { position: relative; }
.pwd-wrap .ktb-input { padding-right: 52px; width: 100%; }
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--ktb-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}

.grow-bar { height: 8px; background: var(--ktb-line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.grow-bar i { display: block; height: 100%; background: var(--ktb-primary); }
.mp-grow-path {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mp-grow-path li {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f4f0fa;
  color: var(--ktb-muted);
}
.mp-grow-path li.is-done { background: #ead6f3; color: var(--ktb-primary); }
.mp-grow-path li.is-now { background: var(--ktb-primary); color: #fff; font-weight: 600; }

.qr-wecom { text-align: center; margin-top: 8px; }
.qr-wecom-code {
  width: 132px; height: 132px;
  margin: 10px auto;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--ktb-line);
}
.qr-wecom-code svg { width: 100%; height: 100%; display: block; }

.auth-mode { display: flex; gap: 8px; margin: 8px 0 12px; }
.auth-mode button {
  flex: 1; height: 32px; border: 1px solid var(--ktb-line); border-radius: 8px; background: #fff;
}
.auth-mode button.is-on { border-color: var(--ktb-primary); color: var(--ktb-primary); background: var(--ktb-primary-soft); }
.mp-card [hidden],
.mp-login-sheet [hidden] { display: none !important; }
.auth-sms { display: flex; gap: 8px; }
.auth-sms input { flex: 1; }
.mp-card.redeem-faq details { border-top: 1px solid var(--ktb-line-tint); padding: 10px 0; }
.mp-card.redeem-faq details:first-child { border-top: 0; }
.mp-card.redeem-faq summary { cursor: pointer; color: var(--ktb-ink); font-size: 15px; font-weight: 600; }
.mp-card.redeem-faq p { margin: 8px 0 0; color: var(--ktb-body); font-size: 13px; font-weight: 400; }

.mp-me-head {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(168,85,201,.4), transparent 50%),
    linear-gradient(160deg, #0a0a12, #4c1d6b);
  color: #fff;
  padding: 18px 16px 16px;
  margin: -12px -14px 14px;
}
.mp-app.is-hero .mp-me-head { margin: 0; padding: 54px 16px 52px; }
.mp-me-id {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mp-me-head .avatar--lg { width: 64px; height: 64px; }
.mp-me-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mp-me-id h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.mp-me-id h2 a { color: inherit; }
.mp-me-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mp-me-id p { color: rgba(249,250,251,.72); font-size: 12px; font-weight: 400; margin: 0; line-height: 1.5; }
.mp-me-id .ktb-tag {
  background: rgba(255,255,255,.16);
  color: #fff;
  height: 22px;
  font-size: 11px;
}
.mp-me-fill { color: #fde68a; }
.mp-me-head .user-sign { color: #f3e8ff; font-size: 13px; margin: 0; line-height: 1.5; }
.mp-me-head .user-sign--empty { color: rgba(249,250,251,.7); font-weight: 400; }
.mp-me-head .user-sign--empty a { color: #fde68a; }
.mp-me-sign {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(249,250,251,.82);
}
.mp-wallet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: -40px 0 12px;
  position: relative;
  z-index: 2;
}
.mp-pad { padding: 0 14px; }
.mp-wallet a, .mp-wallet div {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--ktb-line-tint);
  color: inherit;
}
.mp-wallet b { display: block; font-size: 22px; font-weight: 600; color: var(--ktb-ink); }
.mp-wallet span { font-size: 11px; font-weight: 500; color: var(--ktb-muted); }

.mp-login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(139,45,158,.55), transparent 52%),
    linear-gradient(165deg, #0a0a12, #3b0764 70%);
  color: #fff;
}
.mp-login-brand {
  padding: 56px 24px 22px;
}
.mp-login-brand .ktb-lockup { margin-bottom: 12px; }
.mp-login-brand .kicker {
  margin: 0 0 8px;
  letter-spacing: .14em;
  font-size: 11px;
  color: rgba(249,250,251,.45);
}
.mp-login-brand h1 { color: #fff; font-size: 22px; font-weight: 600; }
.mp-login-brand .lead { color: rgba(249,250,251,.68); margin: 8px 0 0; font-size: 13px; font-weight: 400; line-height: 1.55; }
.mp-login-sheet {
  flex: 1;
  background: var(--ktb-bg);
  border-radius: 24px 24px 0 0;
  padding: 22px 16px 28px;
  color: var(--ktb-body);
}
.mp-login-sheet .ktb-input { width: 100%; }
.mp-login-sheet h3 { font-size: 15px; font-weight: 600; color: var(--ktb-ink); margin: 0 0 12px; }
.mp-login .check { font-size: 12px; display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; color: var(--ktb-body); }
.mp-login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--ktb-muted);
  font-size: 12px;
}
.mp-login-or::before,
.mp-login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ktb-line);
}

.mp-popup {
  position: absolute;
  inset: 0;
  background: rgba(10,10,18,.48);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}
.mp-popup .box {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.mp-popup h3 { margin: 8px 0; font-size: 15px; font-weight: 600; }
.mp-popup .hero-strip {
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6b1f7a, #a855c9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}

.mp-gift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mp-gift .mp-card { margin: 0; }
.mp-gift .mp-btn { padding: 8px; font-size: 13px; }

.mp-pts {
  border-radius: 18px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #6b1f7a, #a855c9);
  margin-bottom: 12px;
}
.mp-pts .kicker {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
}
.mp-pts strong { display: block; font-size: 28px; font-weight: 600; margin: 8px 0 4px; }
.mp-pts small { color: rgba(255,255,255,.78); font-size: 12px; }
.mall-card { text-align: center; padding: 18px 16px 20px; }
.mall-card h2 { margin: 4px 0 8px; font-size: 20px; font-weight: 600; }
.mall-card > p { text-align: left; }
.mall-qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 14px auto 8px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ktb-shadow);
  cursor: pointer;
}
.mall-qr svg { width: 100%; height: 100%; display: block; }
.mall-name { display: block; font-size: 15px; color: var(--ktb-ink); font-weight: 600; }
.mall-name:hover { color: var(--ktb-primary); }
.mall-hello {
  background: linear-gradient(160deg, #0f172a, #134e4a);
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.mall-hello h1 { color: #fff; font-size: 20px; font-weight: 600; margin: 4px 0 8px; }
.mp-app.is-mall { background: #f4f7f6; }

.mp-sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, #fff 28%);
  padding: 12px 0 4px;
}

.mp-bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--ktb-shadow); }
.mp-bubble--me { background: var(--ktb-primary-soft); border-radius: 16px 16px 4px 16px; }

.sign-ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sign-ex button {
  border: 1px solid var(--ktb-line);
  background: #fff;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ktb-body);
}
.meta { color: var(--ktb-muted); font-size: 12px; font-weight: 400; }
.ktb-field { display: block; margin: 10px 0; font-size: 13px; font-weight: 500; color: var(--ktb-ink); }
.ktb-field .ktb-input { margin-top: 6px; width: 100%; }
