:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e6ebf1;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --navy: #0b1220;
  --navy-2: #17243a;
  --green: #14866d;
  --green-2: #21b08d;
  --green-soft: #e9f7f2;
  --gold: #f2b84b;
  --gold-soft: #fff5dc;
  --red: #d94b4b;
  --red-soft: #fff0f0;
  --blue: #3f72e6;
  --blue-soft: #edf3ff;
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-md: 0 18px 42px rgba(16, 24, 40, .1);
  --shadow-lg: 0 30px 80px rgba(8, 15, 28, .2);
  --radius: 20px;
}
* { box-sizing: border-box; }

#appSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .3s ease;
}
#appSplash img {
  width: 240px;
  max-width: 72vw;
  height: auto;
  object-fit: contain;
  animation: appSplashBlink 1.2s ease-in-out infinite;
}
@keyframes appSplashBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
#appSplash.hide {
  opacity: 0;
  pointer-events: none;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(33, 176, 141, .09), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(63, 114, 230, .08), transparent 28%),
    var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: -1; }
.ambient-a { width: 360px; height: 360px; background: rgba(33, 176, 141, .12); top: 80px; left: -120px; }
.ambient-b { width: 380px; height: 380px; background: rgba(63, 114, 230, .1); right: -160px; top: 420px; }

.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(230, 235, 241, .9);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  background: linear-gradient(145deg, #1cb494, #0d6d5b);
  box-shadow: 0 8px 20px rgba(20, 134, 109, .25);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.device-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #eef2f5; }
.device-tab {
  border: 0; border-radius: 10px; padding: 9px 15px; color: #526070; background: transparent;
  font-size: 13px; font-weight: 700; transition: .2s ease;
}
.device-tab:hover { color: var(--green); }
.device-tab.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.server-state { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.server-state i, .live-dot { width: 7px; height: 7px; border-radius: 99px; background: #24b47e; box-shadow: 0 0 0 5px rgba(36, 180, 126, .12); }
.live-dot { display: inline-block; }

.stage { padding: 28px; }
.overview-panel {
  max-width: 1440px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(650px, 1.15fr);
  gap: 52px;
  align-items: center;
}
.overview-copy { padding: 26px 0; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.overview-copy h1 { margin: 16px 0 18px; font-size: clamp(35px, 4vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.overview-copy h1 em { color: var(--green); font-style: normal; }
.overview-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.overview-actions { display: flex; gap: 12px; margin: 26px 0 30px; }
.primary-btn, .secondary-btn, .ghost-btn, .danger-btn {
  border: 0; border-radius: 12px; min-height: 42px; padding: 0 18px; font-weight: 750; transition: .2s ease;
  color: #fff; background: #d92d20;
}
.danger-btn:hover { background: #b42318; }
.primary-btn { color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(11, 18, 32, .18); }
.primary-btn:hover { transform: translateY(-1px); background: #18243a; }
.secondary-btn { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.secondary-btn:hover { border-color: #c8d2dd; background: #fbfcfd; }
.ghost-btn { color: var(--green); background: var(--green-soft); }
.danger-btn { color: var(--red); background: var(--red-soft); }
.compact { min-height: 36px; padding: 0 13px; font-size: 12px; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
.capability-grid > div { position: relative; min-height: 106px; padding: 18px 18px 16px 52px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.capability-grid b { position: absolute; left: 16px; top: 18px; color: var(--green); font-size: 12px; }
.capability-grid span { display: block; font-size: 14px; font-weight: 800; }
.capability-grid small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.overview-devices { min-height: 700px; position: relative; display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: center; }
.mini-preview-card, .admin-preview-card { border: 1px solid rgba(255,255,255,.8); border-radius: 24px; padding: 12px; background: rgba(255,255,255,.58); box-shadow: var(--shadow-md); backdrop-filter: blur(18px); }
.mini-preview-caption { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 10px; font-size: 12px; font-weight: 800; }
.mini-preview-screen { height: 610px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16,24,40,.05); }
.admin-preview-card { align-self: stretch; }
.admin-preview-screen { height: 610px; overflow: hidden; border-radius: 18px; background: #f7f9fb; }
.overview-devices .mini-preview-screen .mini-app { position: relative; width: 100%; height: 100%; border-radius: 18px; }
.overview-devices .admin-preview-screen .admin-shell { display: grid; width: 100%; height: 100%; min-height: 0; border-radius: 18px; }

.phone-wrap { max-width: 430px; margin: 10px auto 70px; }
.phone-frame {
  position: relative;
  width: 390px;
  height: 795px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #111827;
  border-radius: 48px;
  background: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.18);
}
.phone-speaker { position: absolute; z-index: 40; top: 10px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%); border-radius: 99px; background: #080d16; }
.phone-status { position: absolute; z-index: 41; top: 3px; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 0 27px; color: #fff; font-size: 11px; font-weight: 800; }
.phone-status span { margin-left: 5px; }
.wechat-capsule { position: absolute; z-index: 43; top: 54px; right: 17px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; color: #fff; font-size: 14px; background: rgba(0,0,0,.14); backdrop-filter: blur(8px); }
.mini-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #f5f7f8; }
.mini-header { flex: 0 0 auto; color: #fff; }
.mini-header .header-copy { padding: 61px 22px 20px; }
.mini-header .header-copy small { opacity: .74; font-size: 11px; }
.mini-header .header-copy h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.header-copy .home-notice { display: inline-block; margin-top: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-weight: 700; }
.mini-header .header-search { margin: 0 18px 17px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 12px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.16); font-size: 12px; }
.mini-view { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mini-view::-webkit-scrollbar { display: none; }
.mini-nav {
  flex: 0 0 69px; display: flex; gap: 0;
  padding: 7px 10px 6px; border-top: 1px solid #edf0f2; background: rgba(255,255,255,.97); z-index: 20;
}
.mini-nav button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; color: #87909d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; }
.mini-nav button .nav-icon { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .65; }
.mini-nav button.active { color: var(--green); font-weight: 800; }
.mini-nav button.active .nav-icon { filter: none; opacity: 1; }
.android-frame { padding-top: 32px; background: #f2f5f7; }
.android-bar { position: absolute; z-index: 20; top: 0; left: 0; height: 32px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #182230; font-size: 10px; background: #f2f5f7; }
.android-bar div { display: flex; align-items: center; gap: 5px; }
.android-bar i { width: 6px; height: 6px; display: inline-block; border-radius: 2px; background: #748094; }
.android-header { position: absolute; top: 32px; left: 0; right: 0; z-index: 19; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e5e9ed; background: #f2f5f7; font-size: 15px; }
.android-view { position: absolute; top: 78px; bottom: 69px; left: 0; right: 0; }
.android-nav { position: absolute; bottom: 0; left: 0; right: 0; }
.device-note { padding: 22px 12px 0; text-align: center; }
.device-note b { display: block; font-size: 16px; }
.device-note span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.mobile-page { padding-bottom: 26px; }
.mobile-hero { margin: 0 0 18px; padding: 22px 18px; color: #fff; background: linear-gradient(145deg, #0d6e5c, #103f48); }
.mobile-hero.vip { background: linear-gradient(145deg, #282e3c, #10151e); }
.mobile-hero-row { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #0f6d5c; background: #fff; font-weight: 900; }
.mobile-hero p { margin: 0 0 4px; font-size: 11px; opacity: .72; }
.mobile-hero h3 { margin: 0 0 8px; font-size: 22px; }
.member-level { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #503507; background: var(--gold-soft); font-size: 10px; font-weight: 800; }
.mobile-section { padding: 0 15px 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 11px; }
.section-title h4 { margin: 0; font-size: 16px; }
.section-title button { border: 0; color: var(--muted); background: none; font-size: 11px; }
.mobile-search { margin: -34px 15px 18px; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid #edf0f2; border-radius: 14px; color: #8b95a1; background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-item { border: 0; border-radius: 13px; padding: 12px 4px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.04); }
.quick-item .q-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 11px; font-size: 17px; background: var(--green-soft); }
.quick-item:nth-child(2) .q-icon { background: var(--blue-soft); }
.quick-item:nth-child(3) .q-icon { background: var(--gold-soft); }
.quick-item:nth-child(4) .q-icon { background: #f2edff; }
.quick-item span { display: block; font-size: 11px; color: #45505f; font-weight: 700; }
.continue-card { display: flex; gap: 12px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #17243a, #0b1220); box-shadow: var(--shadow-sm); }
.continue-cover { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; font-size: 28px; background: linear-gradient(140deg, #2bb394, #13715d); }
.continue-card h4 { margin: 4px 0 7px; font-size: 14px; }
.continue-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 10px; }
.progress { margin-top: 11px; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.17); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.content-mini-card { display: flex; gap: 12px; margin-bottom: 10px; padding: 11px; border: 1px solid #edf0f2; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(16,24,40,.035); }
.content-cover { position: relative; width: 108px; height: 76px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 27px; }
.content-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.15)); }
.cover-emerald { background: linear-gradient(140deg, #20b08d, #0d6556); }
.cover-blue { background: linear-gradient(140deg, #6d8ef7, #354ea5); }
.cover-gold { background: linear-gradient(140deg, #f2c35d, #c87821); }
.cover-red { background: linear-gradient(140deg, #e27373, #9f3030); }
.cover-navy { background: linear-gradient(140deg, #35445e, #111827); }
.cover-plum { background: linear-gradient(140deg, #aa76df, #59348e); }
.content-info { min-width: 0; flex: 1; }
.content-info h4 { margin: 2px 0 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.4; }
.content-info p { margin: 0; color: var(--muted); font-size: 10px; }
.content-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; }
.mini-tag.vip { color: #78550a; background: var(--gold-soft); }
.mini-tag.svip { color: #5e3e9d; background: #f2edff; }
.mini-tag.free { color: #2760c7; background: var(--blue-soft); }
.lock-label { color: #a06b16; }
.tabs-row { position: sticky; top: 0; z-index: 8; display: flex; gap: 6px; padding: 12px 15px; overflow-x: auto; background: #f5f7f8; }
.tabs-row button { flex: 0 0 auto; border: 0; border-radius: 99px; padding: 7px 12px; color: #667085; background: #fff; font-size: 11px; font-weight: 700; }
.tabs-row button.active { color: #fff; background: var(--green); }
.profile-card { margin: 14px 15px; padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #222c3e, #0c131e); }
.profile-head { display: flex; gap: 13px; align-items: center; }
.profile-head h3 { margin: 0 0 5px; font-size: 18px; }
.profile-head p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.profile-stats b { display: block; font-size: 17px; }
.profile-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 10px; }
.menu-list { margin: 0 15px 18px; overflow: hidden; border-radius: 16px; background: #fff; }
.menu-row { width: 100%; border: 0; border-bottom: 1px solid #f0f2f4; display: flex; align-items: center; gap: 12px; padding: 15px; background: #fff; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .menu-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f1f4f6; }
.menu-row b { flex: 1; font-size: 12px; }
.menu-row span { color: #abb2bd; font-size: 17px; }

.admin-shell { max-width: 1540px; min-height: 850px; margin: 0 auto; display: grid; grid-template-columns: 188px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.admin-sidebar { display: flex; flex-direction: column; padding: 22px 14px 16px; color: #fff; background: var(--navy); }
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 0 7px 22px; }
.admin-logo b { display: block; font-size: 14px; }
.admin-logo span { display: block; margin-top: 2px; color: rgba(255,255,255,.48); font-size: 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; }
.admin-nav button { border: 0; border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: rgba(255,255,255,.62); background: transparent; text-align: left; font-size: 12px; font-weight: 700; }
.admin-nav button .admin-nav-icon { width: 20px; text-align: center; font-size: 15px; }
.admin-nav button.active { color: #fff; background: rgba(255,255,255,.1); }
.admin-nav button.active .admin-nav-icon { color: var(--gold); }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 10px; border-radius: 13px; background: rgba(255,255,255,.06); }
.storage-ring { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: conic-gradient(var(--green-2) 0 68%, rgba(255,255,255,.12) 68% 100%); font-size: 9px; }
.storage-ring span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); }
.sidebar-bottom b { display: block; font-size: 10px; }
.sidebar-bottom span { display: block; margin-top: 3px; color: rgba(255,255,255,.45); font-size: 9px; }
.admin-main { min-width: 0; background: #f7f9fb; }
.admin-topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; }
.admin-breadcrumb { display: block; color: #98a2b3; font-size: 10px; }
.admin-breadcrumb b { color: #667085; }
.admin-topbar h2 { margin: 5px 0 0; font-size: 20px; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-menu-btn { display: none; }
.admin-menu-backdrop { display: none; }
.icon-btn { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.icon-btn i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }
.admin-user { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding-left: 13px; border-left: 1px solid var(--line); }
.admin-user > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(140deg, #24b28f, #0d6b59); font-weight: 800; }
.admin-user b, .admin-user small { display: block; }
.admin-user b { font-size: 11px; }
.admin-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-view { padding: 22px 24px 28px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-page-head .head-actions { display: flex; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stat-card .stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); font-size: 15px; }
.stat-card:nth-child(2) .stat-icon { background: var(--blue-soft); }
.stat-card:nth-child(3) .stat-icon { background: var(--gold-soft); }
.stat-card:nth-child(4) .stat-icon { background: #f2edff; }
.stat-card b { display: block; margin: 10px 0 5px; font-size: 25px; letter-spacing: -.03em; }
.stat-card small { color: #1ca580; font-size: 10px; }
.stat-card small.down { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 10px; }
.panel-head h3 { margin: 0; font-size: 13px; }
.panel-head span, .panel-head button { border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.chart-wrap { padding: 10px 16px 16px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 13px; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--green); }
.chart-legend span:nth-child(2) i { background: var(--gold); }
.bar-chart { height: 180px; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 12px 6px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #f0f3f6 44px); }
.bar-group { flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; }
.bar { width: 9px; min-height: 4px; border-radius: 4px 4px 0 0; background: var(--green); transition: .4s ease; }
.bar.gold { background: var(--gold); }
.bar-labels { display: flex; justify-content: space-between; padding: 7px 9px 0; color: #98a2b3; font-size: 9px; }
.activity-list { padding: 5px 17px 14px; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f3f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-avatar { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 900; }
.activity-item b { display: block; font-size: 11px; }
.activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.activity-item time { display: block; margin-top: 4px; color: #aeb6c1; font-size: 8px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; }
.quick-action .qa-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 17px; }
.quick-action b { display: block; font-size: 11px; }
.quick-action span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.admin-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.admin-toolbar .search-box { flex: 1; max-width: 300px; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-toolbar .search-box input { width: 100%; border: 0; outline: 0; font-size: 11px; background: transparent; }
.admin-toolbar select { height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #526070; background: #fff; font-size: 11px; }
.spacer { flex: 1; }
.data-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 13px; color: #8b95a2; background: #fafbfc; text-align: left; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 12px 13px; border-top: 1px solid #edf0f2; color: #3e4a5a; font-size: 11px; vertical-align: middle; }
.data-table tr:hover td { background: #fbfdfc; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.thumb { width: 48px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 15px; }
.cell-main b { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cell-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.on { color: #16866b; background: var(--green-soft); }
.status.wait { color: #a16b13; background: var(--gold-soft); }
.status.off { color: #7d8794; background: #eef1f3; }
.status.danger { color: #c43f3f; background: var(--red-soft); }
.price { font-weight: 800; color: #1c2736; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { border: 0; padding: 5px 7px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.row-actions button.danger { color: var(--red); background: var(--red-soft); }
.member-cell { display: flex; align-items: center; gap: 9px; }
.member-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #285e52; background: #dff4ed; font-size: 10px; font-weight: 900; }
.member-cell b { display: block; font-size: 11px; }
.member-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.level-pill { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #667085; background: #f0f2f4; font-size: 9px; font-weight: 700; }
.level-pill.vip { color: #8a5b06; background: var(--gold-soft); }
.level-pill.svip { color: #633ca2; background: #f2edff; }
.permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.permission-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.permission-card.highlight { border-color: #b9e2d5; box-shadow: inset 0 0 0 1px #e0f3ed; }
.permission-card-head { display: flex; justify-content: space-between; align-items: start; }
.permission-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); font-size: 17px; }
.permission-card h3 { margin: 14px 0 5px; font-size: 14px; }
.permission-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.permission-count { margin-top: 15px; padding-top: 13px; border-top: 1px solid #eef1f3; color: var(--muted); font-size: 10px; }
.permission-count b { color: var(--ink); }
.rule-list { margin-top: 15px; }
.rule-item { display: flex; align-items: center; gap: 13px; padding: 15px; border-bottom: 1px solid #edf0f2; }
.rule-item:last-child { border-bottom: 0; }
.rule-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f2f5f7; }
.rule-item div { flex: 1; min-width: 0; }
.rule-item b { display: block; font-size: 11px; }
.rule-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.toggle { position: relative; width: 37px; height: 21px; border: 0; border-radius: 99px; background: #d1d7df; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.toggle.on { background: var(--green); }
.toggle.on::after { left: 19px; }
.empty-state { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); font-size: 14px; }
.empty-state p { margin: 8px 0 0; font-size: 11px; }

.modal-layer { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: rgba(8, 15, 28, .55); backdrop-filter: blur(5px); animation: fadeIn .18s ease; }
.modal-card { width: min(720px, 100%); max-height: min(860px, calc(100vh - 44px)); overflow: auto; border-radius: 21px; background: #fff; box-shadow: var(--shadow-lg); animation: slideUp .22s ease; }
.modal-card.wide { width: min(900px, 100%); }
.modal-card.compact { width: min(430px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head span { color: var(--muted); font-size: 11px; }
.modal-close { width: 31px; height: 31px; border: 0; border-radius: 9px; color: #697586; background: #f2f4f6; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: #44505f; font-size: 11px; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #dfe5eb; border-radius: 10px; outline: 0; padding: 10px 11px; color: var(--ink); background: #fff; font-size: 11px; transition: .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #7bcbb6; box-shadow: 0 0 0 3px rgba(33,176,141,.1); }
.form-field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.upload-box { min-height: 120px; display: grid; place-items: center; padding: 18px; border: 1px dashed #c6d0d9; border-radius: 13px; color: var(--muted); background: #fafcfd; text-align: center; }
.upload-box b { display: block; margin-bottom: 5px; color: #44505f; font-size: 12px; }
.upload-box span { font-size: 10px; }
.file-picked { margin-top: 8px; color: var(--green); font-size: 10px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check-option { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 11px; }
.check-option:has(input:checked) { border-color: #8ed3bf; background: #f3fbf8; }
.check-option input { accent-color: var(--green); }
.csv-preview { max-height: 150px; overflow: auto; margin-top: 10px; padding: 11px; border-radius: 10px; color: #526070; background: #f7f9fb; font-family: Consolas, monospace; font-size: 9px; line-height: 1.7; white-space: pre; }
.media-player { position: relative; height: 248px; overflow: hidden; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(140deg, #0d6e5c, #18243a); }
.media-player.audio { height: 210px; background: linear-gradient(140deg, #263954, #101827); }
.media-player.article { height: 140px; background: linear-gradient(140deg, #b77b25, #1e2b42); }
.media-play { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); font-size: 23px; }
.wave { display: flex; align-items: center; gap: 3px; height: 46px; margin-top: 18px; }
.wave i { width: 4px; height: 20%; border-radius: 4px; background: rgba(255,255,255,.35); }
.wave i:nth-child(3n) { height: 80%; }
.wave i:nth-child(4n) { height: 52%; }
.content-detail { padding: 19px 21px 24px; }
.content-detail h2 { margin: 10px 0 9px; font-size: 21px; line-height: 1.35; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 10px; }
.detail-desc { margin: 18px 0; color: #526070; font-size: 12px; line-height: 1.8; }
.access-box { padding: 13px; border-radius: 12px; background: #f7f9fb; }
.access-box b { display: block; margin-bottom: 5px; font-size: 11px; }
.access-box span { color: var(--muted); font-size: 10px; }
.purchase-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid #f0d89f; border-radius: 14px; background: var(--gold-soft); }
.purchase-box .purchase-price { flex: 1; }
.purchase-box b { display: block; color: #76500a; font-size: 22px; }
.purchase-box span { display: block; margin-top: 4px; color: #98702c; font-size: 9px; }
.article-body { margin-top: 16px; color: #3f4b5a; font-size: 13px; line-height: 2; }
.article-body h3 { margin: 20px 0 8px; color: var(--ink); font-size: 15px; }
.article-body blockquote { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-soft); }

.toast { position: fixed; z-index: 900; left: 50%; bottom: 28px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 10px; color: #fff; background: #17243a; box-shadow: var(--shadow-md); font-size: 11px; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1150px) {
  .overview-panel { grid-template-columns: 1fr; gap: 20px; }
  .overview-devices { min-height: auto; grid-template-columns: 310px 1fr; }
  .admin-shell { grid-template-columns: 168px 1fr; }
  .stats-grid, .quick-action-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { height: auto; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
  .brand { min-width: auto; flex: 1; }
  .server-state { display: none; }
  .device-tabs { order: 2; width: 100%; overflow-x: auto; }
  .device-tab { flex: 1 0 auto; }
  .stage { padding: 16px 10px; }
  .overview-copy h1 { font-size: 34px; }
  .overview-devices { grid-template-columns: 1fr; }
  .admin-preview-card { display: none; }
  .admin-shell { display: block; min-height: auto; border: 0; border-radius: 0; box-shadow: none; }
  .admin-sidebar { display: none; }
  .admin-topbar { height: auto; padding: 14px 15px; gap: 10px; }
  .admin-top-actions .admin-user { display: none; }
  .admin-top-actions .secondary-btn { display: none; }
  .admin-view { padding: 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-card b { font-size: 20px; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .data-panel { overflow-x: auto; }
  .data-table { min-width: 760px; }
  .modal-layer { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .phone-wrap { width: 100%; max-width: 390px; margin-inline: auto; }
  .phone-frame { width: 100%; height: min(795px, calc(100vh - 126px)); min-height: 650px; border-width: 5px; border-radius: 40px; }
  .capability-grid { grid-template-columns: 1fr; }
  .overview-actions { flex-direction: column; }
  .primary-btn, .secondary-btn { width: 100%; }
}

/* Customer-installed app mode: show only the member experience. */
body.customer-mode .topbar,
body.customer-mode #overviewPanel,
body.customer-mode #appShell,
body.customer-mode #adminShell,
body.customer-mode .device-note {
  display: none !important;
}
body.customer-mode .stage {
  padding: 0;
}
body.customer-mode .phone-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.customer-mode .phone-frame {
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.customer-mode .phone-speaker,
body.customer-mode .phone-status,
body.customer-mode .wechat-capsule {
  display: none;
}
body.customer-mode .mini-header .header-copy {
  padding: calc(22px + env(safe-area-inset-top)) 22px 20px;
}
body.customer-mode .mini-nav {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
body.customer-mode #miniShell.hidden {
  display: flex !important;
}
body.customer-mode #miniShell {
  display: block;
}

/* High-contrast customer app header */
.mini-header {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #0d6e5c 0%, #103f48 68%, #0b2535 100%);
}
.mini-header::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.mini-header .header-copy,
.mini-header .header-search {
  position: relative;
  z-index: 1;
}
.mini-header .header-copy small {
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.mini-header .header-copy h3 {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.mini-header .header-search {
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.14);
}

/* Membership upgrade card */
.member-benefit-section .benefit-count {
  color: #9a6a12;
  background: #fff5dc;
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
}
.member-upgrade-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 6%, rgba(255,196,72,.28), transparent 34%),
    linear-gradient(135deg, #1d2736 0%, #0c1420 100%);
  box-shadow: 0 12px 28px rgba(11,18,32,.18);
}
.member-upgrade-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -52px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(242,184,75,.2);
  border-radius: 50%;
}
.member-upgrade-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-crown {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #4a3407;
  background: linear-gradient(145deg, #ffe49b, #f2b84b);
  box-shadow: 0 7px 16px rgba(242,184,75,.2);
  font-size: 18px;
  font-weight: 900;
}
.member-copy {
  min-width: 0;
  flex: 1;
}
.member-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-name-row b {
  font-size: 14px;
  white-space: nowrap;
}
.member-name-row span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 6px;
  color: #5a3e02;
  background: #ffdf8e;
  font-size: 8px;
  font-weight: 900;
}
.member-copy p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  line-height: 1.5;
}
.member-upgrade-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.member-price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 3px;
}
.member-price strong {
  color: #ffd875;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
}
.member-price > span {
  color: rgba(255,255,255,.72);
  font-size: 10px;
}
.member-price small {
  width: 100%;
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 8px;
}
.member-open-btn {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  color: #4a3407;
  background: linear-gradient(145deg, #ffe49b, #f2b84b);
  box-shadow: 0 7px 16px rgba(242,184,75,.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
.member-open-btn:active {
  transform: scale(.98);
}

/* Brand logo integration */
.mini-header::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 56px;
  right: 18px;
  width: 115px;
  height: 41px;
  background: url("assets/brand/wenbo-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.18));
  pointer-events: none;
}
.mini-header .header-copy {
  padding-right: 136px;
}
body.customer-mode .mini-header::before {
  top: calc(18px + env(safe-area-inset-top));
  right: 20px;
}
.admin-sidebar .admin-logo .brand-mark.small {
  width: 113px;
  height: 43px;
  border-radius: 0;
  color: transparent;
  background: url("assets/brand/wenbo-logo.png") left center / contain no-repeat;
  box-shadow: none;
}
.admin-logo > div:last-child {
  display: none;
}
.profile-card {
  position: relative;
  overflow: hidden;
}
.profile-card::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -14px;
  width: 158px;
  height: 55px;
  background: url("assets/brand/wenbo-logo.png") center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.profile-head,
.profile-stats {
  position: relative;
  z-index: 1;
}
@media (max-width: 360px) {
  .mini-header::before { width: 98px; height: 36px; }
  .mini-header .header-copy { padding-right: 116px; }
}

body.customer-mode .mini-header .header-copy {
  padding-right: 136px;
}
@media (max-width: 360px) {
  body.customer-mode .mini-header .header-copy {
    padding-right: 116px;
  }
}

/* Material library */
.material-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.material-summary > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.material-summary b { display: block; font-size: 22px; letter-spacing: -.03em; }
.material-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.material-folder-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 13px;
}
.material-folder-strip > button,
.material-folder-chip > button {
  border: 0;
  white-space: nowrap;
  cursor: pointer;
}
.material-folder-strip > button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 99px;
  color: #667085;
  background: #eef2f5;
  font-size: 10px;
  font-weight: 800;
}
.material-folder-strip > button.active { color: #fff; background: var(--green); }
.material-folder-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 99px;
  background: #eef2f5;
}
.material-folder-chip.active { background: var(--green-soft); }
.material-folder-chip > button:first-child {
  min-height: 34px;
  padding: 0 8px 0 13px;
  color: #667085;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}
.material-folder-chip.active > button:first-child { color: var(--green); }
.material-folder-chip .folder-edit,
.material-folder-chip .folder-delete {
  width: 27px;
  height: 34px;
  padding: 0;
  color: #98a2b3;
  background: transparent;
  font-size: 12px;
}
.material-folder-chip .folder-delete:hover { color: var(--red); }
.material-picker-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.material-picker-inline span {
  min-width: 0;
  overflow: hidden;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-upload-status {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #526070;
  background: #f4f7f9;
  font-size: 10px;
}
.material-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.material-picker-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
}
.material-picker-item:hover { border-color: #9bd8c8; background: #f7fcfb; }
.material-picker-item .thumb {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.material-picker-item b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-picker-item small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .material-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-picker-grid { grid-template-columns: 1fr; }
}

/* Inline editing in material list */
.material-inline-name {
  min-width: 220px;
}
.material-inline-name > span {
  display: block;
  margin: 2px 7px 0;
  color: var(--muted);
  font-size: 9px;
}
.material-inline-input,
.material-inline-select {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  color: #1d2939;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: .16s ease;
}
.material-inline-input {
  padding: 0 7px;
}
.material-inline-select {
  min-width: 88px;
  padding: 0 24px 0 7px;
  cursor: pointer;
}
.material-inline-input:hover,
.material-inline-select:hover {
  border-color: #dfe5eb;
  background: #fbfcfd;
}
.material-inline-input:focus,
.material-inline-select:focus {
  border-color: #7bcbb6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33,176,141,.1);
}

/* Course section editor */
.course-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.course-section-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}
.course-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-section-empty {
  padding: 22px 14px;
  border: 1px dashed #cbd5df;
  border-radius: 12px;
  color: var(--muted);
  background: #fafcfd;
  text-align: center;
  font-size: 10px;
}
.course-section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.course-section-index {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 900;
}
.course-section-order {
  width: 44px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0 4px;
  border: 1px solid #d9e1e8;
  border-radius: 9px;
  color: #1d2939;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}
.course-section-order:focus { border-color: #5db99d; }
.course-section-main {
  min-width: 0;
  flex: 1;
}
.course-section-title {
  width: 100%;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  padding: 0 7px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.course-section-title:hover,
.course-section-title:focus {
  border-color: #d9e1e8;
  background: #fff;
}
.course-section-main small {
  display: block;
  margin: 2px 7px 0;
  color: var(--muted);
  font-size: 9px;
}
.course-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.course-section-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #526070;
  background: #f0f3f5;
  font-size: 12px;
}
.course-section-actions button:not(.danger) {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  white-space: nowrap;
}
.course-section-actions button:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.course-section-actions button.danger {
  color: var(--red);
  background: var(--red-soft);
}
.course-section-drag {
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #98a2b3;
  background: #f3f6f8;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 15px;
  font-weight: 900;
}
.course-section-drag:active { cursor: grabbing; }
.course-section-row.is-dragging {
  opacity: .55;
  box-shadow: 0 8px 20px rgba(16,24,40,.18);
  border-color: #5db99d;
}
.material-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.material-picker-count {
  color: #667085;
  font-size: 11px;
}
.material-picker-count b {
  color: var(--green);
}
.material-picker-tip {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #526070;
  background: #f4f8f7;
  font-size: 10px;
}
.material-picker-grid-select .material-picker-item {
  grid-template-columns: auto 44px minmax(0, 1fr);
}
.material-picker-item.selectable {
  cursor: pointer;
}
.material-picker-item.selectable input {
  grid-row: 1 / 3;
  accent-color: var(--green);
}
.material-picker-item.selectable .thumb {
  grid-column: 2;
}
.material-picker-item.selectable b,
.material-picker-item.selectable small {
  grid-column: 3;
}

/* Customer course sections */
.public-section-list {
  margin: 18px 0;
  padding: 14px;
  border-radius: 15px;
  background: #f7f9fb;
}
.public-section-title {
  margin-bottom: 10px;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}
.public-section-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  color: #526070;
  background: transparent;
  text-align: left;
}
.public-section-item + .public-section-item {
  border-top: 1px solid #e8edf1;
}
.public-section-item.active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 5px 16px rgba(16,24,40,.06);
}
.public-section-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9eef2;
  font-size: 9px;
  font-weight: 900;
}
.public-section-item.active > span {
  color: #fff;
  background: var(--green);
}
.public-section-item b {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-section-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.public-section-item i {
  font-style: normal;
  font-size: 11px;
}

/* Course section batch controls */
.course-section-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.course-section-select-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #667085;
  font-size: 10px;
  cursor: pointer;
}
.course-section-select-all input,
.course-section-check {
  accent-color: var(--green);
}
.course-section-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.course-section-status {
  min-width: 76px;
  height: 30px;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  outline: 0;
  color: #526070;
  background: #fff;
  font-size: 9px;
}
.course-section-row.is-draft {
  opacity: .58;
  background: #f8f9fa;
}
.course-section-row.is-draft .course-section-title {
  text-decoration: line-through;
}
@media (max-width: 700px) {
  .course-section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Course management parity upgrade */
.course-toolbar { flex-wrap: wrap; }
.course-toolbar .search-box { max-width: 260px; }
.course-toolbar .spacer { min-width: 12px; }
.danger-outline { color: #c43f3f !important; border-color: #f1caca !important; background: #fff7f7 !important; }
.course-data-panel { overflow-x: auto; }
.course-table { min-width: 1080px; }
.course-table th, .course-table td { padding-left: 8px; padding-right: 8px; }
.course-table th:first-child, .course-table td:first-child { width: 38px; text-align: center; }
.course-table th:first-child input, .course-table td:first-child input { width: 15px; height: 15px; accent-color: #16866b; }
.content-title-cell { min-width: 100px; }
.content-title-cell > div { min-width: 0; }
.content-title-cell b { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; word-break: break-word; line-height: 1.4; }
.type-chip, .benefit-chip, .owner-chip { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 7px; color: #47605a; background: #edf7f3; font-size: 9px; font-weight: 800; white-space: nowrap; }
.benefit-chip { color: #7b5913; background: #fff6df; }
.owner-chip { color: #41536d; background: #f0f4f8; }
.metric-strong { display: block; color: #1d2b3b; font-size: 13px; line-height: 1.1; }
.metric-note { display: block; max-width: 72px; margin-top: 3px; overflow: hidden; color: #9aa3ae; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.date-cell { color: #697584 !important; font-size: 9px !important; white-space: nowrap; }
.course-actions { flex-wrap: nowrap; min-width: 168px; }
.course-actions button { padding: 4px 6px; }
.pagination-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: #7f8996; font-size: 10px; }
.pagination-bar > label { display: flex; align-items: center; gap: 6px; }
.pagination-bar select { height: 30px; padding: 0 24px 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #526070; background: #fff; font-size: 10px; }
.pagination-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pagination-actions button { min-width: 29px; height: 29px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #526070; background: #fff; font-size: 9px; }
.pagination-actions button.active { color: #fff; border-color: #16866b; background: #16866b; }
.pagination-actions button:disabled { opacity: .42; cursor: not-allowed; }
.page-ellipsis { padding: 0 3px; color: #a5aeb8; }
.content-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-data-card { padding: 16px; border: 1px solid #e8eeeb; border-radius: 14px; background: linear-gradient(145deg, #f8fcf9, #fff); }
.content-data-card span, .content-data-card small { display: block; color: #87938f; font-size: 9px; }
.content-data-card b { display: block; margin: 8px 0 5px; color: #183c35; font-size: 20px; }
.content-data-note { margin-top: 14px; padding: 11px 12px; border-radius: 10px; color: #7d6a39; background: #fff9e9; font-size: 9px; line-height: 1.6; }
.share-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e8eeeb; border-radius: 14px; background: #fafcfb; }
.share-card-cover { width: 58px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 18px; }
.share-card b { display: block; font-size: 12px; }
.share-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.share-link-label { display: block; margin: 16px 0 7px; color: #66717e; font-size: 10px; font-weight: 800; }
.share-link-box { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.share-link-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: #526070; background: transparent; font-size: 9px; }
.share-help { margin: 9px 0 0; color: #929ba6; font-size: 9px; line-height: 1.5; }
@media (max-width: 820px) {
  .course-table { min-width: 1020px; }
  .course-toolbar .search-box { max-width: none; width: 100%; }
  .course-toolbar select, .course-toolbar .secondary-btn { flex: 1 1 auto; }
  .pagination-bar { flex-wrap: wrap; }
  .pagination-actions { width: 100%; margin-left: 0; }
  .content-data-grid { grid-template-columns: 1fr; }
}


/* PC maximized course editor and material grid */
.modal-card.max {
  width: min(1520px, calc(100vw - 28px));
  height: calc(100vh - 28px);
  max-height: none;
  border-radius: 18px;
}
.modal-card.max .modal-head { padding: 16px 24px; }
.modal-card.max .modal-body { padding: 22px 24px; }
.modal-card.max .modal-footer { padding: 14px 24px; }
.content-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}
.content-editor-main,
.content-editor-side { min-width: 0; }
.content-editor-side {
  position: sticky;
  top: 72px;
  padding: 18px;
  border: 1px solid #e3ebe7;
  border-radius: 16px;
  background: #f8fbfa;
}
.content-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.content-editor-heading b,
.content-editor-heading span { display: block; }
.content-editor-heading b { color: #1d2939; font-size: 14px; }
.content-editor-heading span { margin-top: 3px; color: #87928f; font-size: 9px; }
.content-editor-heading .editor-mode-tag {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 9px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-weight: 800;
}
.side-heading { margin-bottom: 14px; }
.content-editor-side .editor-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-editor-side .editor-settings-grid .form-field { margin-bottom: 12px; }
.content-editor-side .editor-access-grid { grid-template-columns: 1fr; }
.content-editor-side .check-option { padding: 10px 11px; }
.content-cover-upload { min-height: 108px; }
.course-section-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e3ebe7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.course-section-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.course-section-panel-head b { display: block; color: #1d2939; font-size: 14px; }
.course-section-panel-head span { display: block; margin-top: 3px; color: #87928f; font-size: 9px; }
.course-section-panel-head .section-count-badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 99px;
  color: #16745f;
  background: #e7f7f2;
  font-size: 9px;
  font-weight: 800;
}
.course-section-panel .course-section-toolbar { margin-bottom: 12px; }
.course-section-panel .course-section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.course-section-panel .course-section-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}
.course-section-panel .course-section-main { width: 100%; }
.course-section-panel .course-section-title { height: 30px; font-size: 12px; }
.course-section-panel .course-section-main small { font-size: 9px; }
.course-section-panel .course-section-status { min-width: 72px; height: 30px; font-size: 11px; }
.course-section-panel .course-section-actions { justify-content: flex-end; white-space: nowrap; margin-left: auto; }
.editor-side-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 11px;
  color: #6f7b79;
  background: #edf5f2;
  font-size: 9px;
  line-height: 1.65;
}
.editor-side-note b { display: block; margin-bottom: 3px; color: #2d5d52; font-size: 10px; }
.material-toolbar { flex-wrap: wrap; }
.material-toolbar .search-box { max-width: 320px; }
.material-data-panel { overflow-x: auto; scrollbar-gutter: stable; }
.material-table { min-width: 1080px; table-layout: fixed; }
.material-table col.col-check { width: 42px; }
.material-table col.col-name { width: 390px; }
.material-table col.col-type { width: 112px; }
.material-table col.col-folder { width: 190px; }
.material-table col.col-size { width: 94px; }
.material-table col.col-date { width: 150px; }
.material-table col.col-actions { width: 116px; }
.material-table th,
.material-table td { padding: 11px 12px; }
.material-table thead th { position: sticky; top: 0; z-index: 1; }
.material-table th:first-child,
.material-table td:first-child { text-align: center; }
.material-table th:first-child input,
.material-table td:first-child input { width: 15px; height: 15px; accent-color: #16866b; }
.material-name-cell .cell-main { min-width: 0; }
.material-name-cell .material-inline-name { min-width: 0; width: 100%; }
.material-name-cell .material-inline-input { overflow: hidden; text-overflow: ellipsis; }
.material-type-cell .material-inline-select,
.material-folder-cell .material-inline-select { min-width: 0; width: 100%; }
.material-size-cell { color: #687582 !important; white-space: nowrap; }
.material-date-cell { color: #7b8794 !important; font-size: 9px !important; white-space: nowrap; }
.material-actions { flex-wrap: nowrap; justify-content: flex-start; }
.material-actions button { padding: 6px 8px; white-space: nowrap; }
@media (max-width: 1180px) {
  .content-editor-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .modal-card.max { width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 14px; }
  .content-editor-layout { grid-template-columns: 1fr; }
  .content-editor-side { position: static; }
}
@media (max-width: 700px) {
  .modal-card.max { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .modal-card.max .modal-head,
  .modal-card.max .modal-body,
  .modal-card.max .modal-footer { padding-left: 15px; padding-right: 15px; }
  .content-editor-side .editor-settings-grid { grid-template-columns: 1fr; }
  .material-table { min-width: 980px; }
}


@media (max-width: 900px) {
  .course-section-panel-head { align-items: flex-start; flex-direction: column; }
  .course-section-panel .course-section-row { gap: 10px; }
  .course-section-panel .course-section-status { min-width: 64px; }
}
@media (max-width: 650px) {
  .course-section-panel { padding: 14px; }
  .course-section-panel .course-section-row { gap: 7px; padding: 7px 8px; }
  .course-section-panel .course-section-drag { width: 22px; height: 22px; }
  .course-section-panel .course-section-order { width: 34px; height: 26px; }
  .course-section-panel .course-section-title { height: 28px; font-size: 11px; }
  .course-section-panel .course-section-status { min-width: 56px; height: 28px; font-size: 10px; }
  .course-section-panel .course-section-actions button { width: 24px; height: 24px; }
}


/* Adaptive customer video player */
.media-player.video-player {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 180px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #05080d;
}
.video-player-stage {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}
.customer-video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border: 0;
  outline: 0;
  background: #000;
}
.player-fullscreen-btn {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}
.player-fullscreen-btn:hover { background: rgba(0,0,0,.7); }
@media (max-width: 470px) {
  .media-player.video-player,
  .video-player-stage { min-height: 160px; border-radius: 11px; }
  .player-fullscreen-btn { top: 8px; right: 8px; padding: 5px 8px; font-size: 9px; }
}


/* Full-page customer course experience for older readers */
.mini-app.customer-detail-active .mini-nav { display: none; }
.mini-app.customer-detail-active .mini-view { padding: 0; background: #f4f7f6; }
.customer-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  color: #fff;
}
.customer-back-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: 15px;
  font-weight: 800;
}
.customer-page-heading { min-width: 0; text-align: center; }
.customer-page-heading small { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.customer-page-heading b { display: block; overflow: hidden; margin-top: 4px; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.customer-header-placeholder { width: 66px; }
body.customer-mode .customer-page-header { padding-top: calc(18px + env(safe-area-inset-top)); }
.customer-fullpage { min-height: 100%; padding: 14px 14px 34px; background: #f4f7f6; }
.customer-fullpage-inner { width: 100%; max-width: 760px; margin: 0 auto; }
.customer-fullpage .customer-video-player {
  position: relative;
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #05080d;
}
.customer-fullpage .customer-video { display: block; max-width: 100%; max-height: 72vh; background: #000; }
.customer-fullpage .video-player-stage { width: 100%; height: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; background: #000; position: relative; }
.customer-fullpage .customer-video-player { display: block; }
.customer-subtitle-overlay { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 88%; padding: 8px 14px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.68); font-size: 16px; line-height: 1.4; text-align: center; user-select: none; -webkit-user-select: none; pointer-events: none; }
.customer-subtitle-overlay:empty { display: none; }
.customer-transcript-panel { margin-top: 10px; border: 1px solid #e3ebe7; border-radius: 12px; background: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; }
.transcript-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #edf2f0; background: #f7faf9; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.transcript-toggle { color: #126c59; font-size: 12px; font-weight: 800; }
.customer-transcript-panel.collapsed .transcript-lines { display: none; }
.transcript-head b { color: #1d2939; font-size: 13px; }
.transcript-head span { color: #87928f; font-size: 11px; }
.transcript-lines { max-height: 151px; overflow-y: auto; padding: 8px 12px; position: relative; }
.transcript-line { padding: 6px 10px; border-radius: 8px; color: #526070; font-size: 16px; line-height: 1.35; text-align: center; border-left: 3px solid transparent; }
.transcript-line.active { color: #126c59; background: #e7f7f2; border-left-color: #16866b; font-weight: 700; }
.customer-course-summary { padding: 20px 4px 10px; }
.customer-course-summary .detail-meta { font-size: 12px; }
.customer-course-summary h1 { margin: 11px 0 10px; color: #182230; font-size: 23px; line-height: 1.4; }
.customer-course-summary p { margin: 0; color: #526070; font-size: 15px; line-height: 1.8; }
.customer-page-sections { margin: 18px 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.customer-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.customer-section-heading b { display: block; color: #1d2939; font-size: 17px; }
.customer-section-heading span { display: block; margin-top: 4px; color: #87928f; font-size: 12px; }
.customer-section-list { display: grid; gap: 9px; }
.customer-section-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e8eeec;
  border-radius: 14px;
  color: #44505f;
  background: #fafcfb;
  text-align: left;
}
.customer-section-row.active { border-color: #9bd8c8; color: #126c59; background: #eefaf6; }
.customer-section-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #5d6b78; background: #e9eef1; font-size: 13px; font-weight: 900; }
.customer-section-row.active .customer-section-number { color: #fff; background: #16866b; }
.customer-section-copy { min-width: 0; }
.customer-section-copy b { display: block; overflow: hidden; color: inherit; font-size: 16px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.customer-section-copy small { display: block; margin-top: 5px; color: #87928f; font-size: 12px; }
.customer-section-play { min-width: 54px; color: #16866b; font-size: 12px; font-weight: 900; text-align: right; }
.customer-page-access { margin: 16px 0; padding: 15px; font-size: 14px; }
.customer-page-access b { font-size: 15px; }
.customer-page-access span { font-size: 13px; line-height: 1.65; }
.customer-page-article { padding: 18px; border-radius: 16px; background: #fff; font-size: 16px; line-height: 1.95; }
.customer-page-purchase { margin-top: 18px; }
.customer-page-purchase .primary-btn { min-height: 44px; font-size: 15px; }

body.customer-mode .mini-nav { flex-basis: 76px; }
body.customer-mode .mini-nav button { font-size: 12px; }
body.customer-mode .mini-nav button .nav-icon { font-size: 22px; }
body.customer-mode .mini-header .header-copy small { font-size: 13px; }
body.customer-mode .mini-header .header-copy h3 { font-size: 25px; }
body.customer-mode .mini-header .header-search { height: 44px; font-size: 14px; }
body.customer-mode .section-title h4 { font-size: 17px; }
body.customer-mode .section-title button { font-size: 12px; }
body.customer-mode .mobile-search { font-size: 13px; }
body.customer-mode .quick-item span { font-size: 12px; }
body.customer-mode .content-mini-card h4 { font-size: 15px; }
body.customer-mode .content-mini-card p { font-size: 12px; }
body.customer-mode .detail-meta,
body.customer-mode .access-box span { font-size: 12px; }
body.customer-mode .access-box b { font-size: 14px; }
body.customer-mode .primary-btn,
body.customer-mode .secondary-btn { font-size: 14px; }
.app-shell.customer-detail-active .android-header,
#appShell.customer-detail-active .android-header { min-height: 62px; height: auto; padding: 10px 14px; }
#appShell.customer-detail-active .android-view { top: 94px; bottom: 0; }
#appShell.customer-detail-active .android-nav { display: none; }
.android-customer-header { background: #fff; }
.android-customer-header .customer-back-btn { color: #1d2939; border-color: #dfe5eb; background: #f4f7f9; }
.android-customer-header .customer-page-heading small { color: #87928f; }
.android-customer-header .customer-page-heading b { color: #1d2939; }
@media (max-width: 470px) {
  .customer-fullpage { padding: 10px 10px 28px; }
  .customer-page-header { padding-left: 10px; padding-right: 10px; }
  .customer-back-btn { min-height: 38px; padding: 0 10px; font-size: 14px; }
  .customer-page-heading b { font-size: 15px; }
  .customer-course-summary h1 { font-size: 21px; }
  .customer-course-summary p { font-size: 14px; }
  .customer-section-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 11px 10px; }
  .customer-section-number { width: 36px; height: 36px; }
  .customer-section-copy b { font-size: 15px; }
}


/* Customer course page refinement: no back button, sticky player, branded header */
.mini-app.customer-detail-active .mini-header::before { display: none !important; }
.mini-app.customer-detail-active .mini-header { flex: 0 0 auto; position: relative; z-index: 30; }
.customer-page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 14px 14px 12px;
  text-align: center;
}
.customer-course-header-logo img { display: block; width: 112px; height: auto; object-fit: contain; }
.customer-page-heading { width: 100%; min-width: 0; text-align: center; }
.customer-page-heading small { display: block; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .08em; }
.customer-page-heading b { display: block; max-width: 100%; overflow: hidden; margin-top: 4px; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
#miniShell .customer-page-header { padding-top: 58px; min-height: 128px; }
body.customer-mode #miniShell .customer-page-header { padding-top: calc(16px + env(safe-area-inset-top)); min-height: 88px; }
.customer-sticky-player {
  position: sticky;
  z-index: 25;
  top: 0;
  margin: 0 -2px 4px;
  padding: 8px 2px 11px;
  background: rgba(244,247,246,.97);
  backdrop-filter: blur(12px);
}
.customer-sticky-player .media-player,
.customer-sticky-player .customer-video-player { margin-left: auto; margin-right: auto; }
.customer-fullpage { padding-top: 0; }
.customer-fullpage .customer-course-summary { padding-top: 14px; }
.android-customer-header { min-height: 74px; padding: 10px 14px 8px; background: #fff; }
.android-customer-header .customer-course-header-logo { display: none; }
.android-customer-header .customer-page-heading small { color: #87928f; }
.android-customer-header .customer-page-heading b { color: #1d2939; }
@media (max-width: 470px) {
  #miniShell .customer-page-header { padding-top: 54px; min-height: 120px; }
  body.customer-mode #miniShell .customer-page-header { padding-top: calc(14px + env(safe-area-inset-top)); min-height: 84px; }
  .customer-course-header-logo img { width: 104px; }
  .customer-sticky-player { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
}


/* Independent chapter scroller below the fixed player */
.mini-app.customer-detail-active .mini-view { overflow: hidden; }
.mini-app.customer-detail-active .customer-fullpage {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mini-app.customer-detail-active .customer-fullpage-inner {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mini-app.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 10px;
  z-index: 24;
}
.customer-content-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 34px;
  scrollbar-width: none;
}
.customer-content-scroll::-webkit-scrollbar { display: none; }
.customer-content-scroll .customer-course-summary { padding-top: 8px; }

/* 2026-10-01：课程页单行顶部与双区域滑动 */
.customer-page-header,
#miniShell .customer-page-header,
body.customer-mode #miniShell .customer-page-header,
#appShell .android-customer-header,
#appShell.customer-detail-active .android-customer-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 8px 12px;
  text-align: left;
}

body.customer-mode .customer-page-header,
body.customer-mode #miniShell .customer-page-header {
  padding-top: calc(8px + env(safe-area-inset-top));
}

.customer-course-header-logo {
  flex: 0 0 auto;
  display: block;
}

.customer-course-header-logo img {
  display: block;
  width: 86px;
  max-width: 86px;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}

.customer-page-heading {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  text-align: left;
}

.customer-page-heading small {
  display: none !important;
}

.customer-page-heading b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.android-customer-header {
  color: #1d2939;
  background: #fff;
}

.android-customer-header .customer-course-header-logo {
  display: block;
}

.android-customer-header .customer-page-heading b {
  color: #1d2939;
}

.mini-app.customer-detail-active .mini-view {
  overflow: hidden;
}

.mini-app.customer-detail-active .customer-fullpage {
  height: 100%;
  min-height: 0;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 34px;
  scrollbar-width: none;
}

.mini-app.customer-detail-active .customer-fullpage::-webkit-scrollbar {
  display: none;
}

.mini-app.customer-detail-active .customer-fullpage-inner {
  width: 100%;
  max-width: 760px;
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.mini-app.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
  z-index: 24;
  margin: 0 -2px 4px;
  padding: 8px 2px 11px;
  touch-action: pan-y;
}
#appShell.customer-detail-active .customer-sticky-player {
  position: relative;
  top: auto;
}

.customer-sticky-player .video-player-stage,
.customer-sticky-player .customer-video {
  touch-action: pan-y;
}

.customer-content-scroll {
  height: clamp(280px, 48vh, 520px);
  max-height: none;
  min-height: 240px;
  flex: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: 34px;
}

@media (max-width: 470px) {
  .customer-page-header,
  #miniShell .customer-page-header,
  body.customer-mode #miniShell .customer-page-header {
    gap: 8px;
    padding: 7px 10px;
  }

  body.customer-mode .customer-page-header,
  body.customer-mode #miniShell .customer-page-header {
    padding-top: calc(7px + env(safe-area-inset-top));
  }

  .customer-course-header-logo img {
    width: 78px;
    max-width: 78px;
    max-height: 27px;
  }

  .customer-page-heading b {
    font-size: 16px;
  }

  .mini-app.customer-detail-active .customer-fullpage {
    padding-left: 10px;
    padding-right: 10px;
  }

  .customer-content-scroll {
    height: clamp(260px, 46vh, 440px);
    max-height: none;
    min-height: 240px;
  }
}

/* 播放区域可独立移动到屏幕上方，章节列表自动填满剩余空间 */
.mini-app.customer-detail-active .customer-fullpage-inner {
  min-height: calc(100% + var(--customer-pane-scroll, 0px));
}

/* 内测版权限策略与会员标签 */
.beta-policy-panel .panel-head p { margin: 5px 0 0; color: #87928f; font-size: 11px; }
.beta-policy-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.beta-policy-summary > div { padding: 12px; border: 1px solid #e7eeea; border-radius: 12px; background: #fafcfb; }
.beta-policy-summary span { display: block; color: #87928f; font-size: 11px; }
.beta-policy-summary b { display: block; margin-top: 6px; color: #1d2939; font-size: 13px; line-height: 1.45; word-break: break-word; }
.beta-policy-summary .policy-on { color: #16866b; }
.beta-policy-summary .policy-off { color: #98a2b3; }
.member-group-cell b { display: block; color: #344054; font-size: 12px; }
.member-group-cell small { display: block; margin-top: 4px; color: #98a2b3; font-size: 10px; }
@media (max-width: 900px) { .beta-policy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 章节列表到达边界后，继续滑动可带动上方播放区域 */
.customer-content-scroll { overscroll-behavior-y: contain; }

.beta-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-choice { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid #dfe8e4; border-radius: 10px; color: #475467; background: #fafcfb; font-size: 12px; cursor: pointer; }
.beta-choice:has(input:checked) { border-color: #65bfa3; color: #126c59; background: #eefaf6; }
.beta-choice input { accent-color: #16866b; }
.policy-empty { color: #98a2b3; font-size: 11px; }

/* AI智能体客户端 */
.ai-page { padding-bottom: 16px; }
.ai-welcome-section { padding-top: 14px !important; }
.ai-welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #132b3c, #0d6e5c); box-shadow: 0 12px 26px rgba(13,110,92,.2); }
.ai-welcome-card h3 { margin: 7px 0 5px; font-size: 18px; }
.ai-welcome-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }
.ai-online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #7ee2b8; box-shadow: 0 0 0 4px rgba(126,226,184,.14); }
.ai-quota { flex: 0 0 auto; min-width: 70px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; text-align: center; background: rgba(255,255,255,.1); }
.ai-quota b { display: block; font-size: 24px; }
.ai-quota span { display: block; color: rgba(255,255,255,.7); font-size: 10px; }
.ai-chat-shell { margin: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.ai-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eef2f1; }
.ai-chat-head b { display: block; color: #1d2939; font-size: 14px; }
.ai-chat-head span { display: block; margin-top: 3px; color: #98a2b3; font-size: 10px; }
.ai-chat-head button { border: 0; color: #8a94a3; background: transparent; font-size: 11px; }
.ai-message-list { height: min(46vh, 390px); overflow-y: auto; padding: 12px 2px; }
.ai-message { position: relative; display: flex; align-items: flex-start; gap: 7px; margin-bottom: 12px; }
.ai-message.user { flex-direction: row-reverse; }
.ai-message-avatar { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #16866b; font-size: 10px; font-weight: 800; }
.ai-message.user .ai-message-avatar { background: #344054; }
.ai-message-bubble { max-width: 82%; padding: 10px 12px; border-radius: 4px 13px 13px 13px; color: #344054; background: #f2f6f5; font-size: 13px; line-height: 1.7; }
.ai-message.user .ai-message-bubble { border-radius: 13px 4px 13px 13px; color: #fff; background: #16866b; }
.ai-suggestions { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; }
.ai-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dce9e5; border-radius: 99px; color: #126c59; background: #f5fbf9; font-size: 11px; }
.ai-input-row { display: flex; align-items: flex-end; gap: 8px; }
.ai-input-row textarea { flex: 1; min-height: 44px; max-height: 100px; resize: none; padding: 11px; border: 1px solid #dfe8e4; border-radius: 12px; font-size: 13px; }
.ai-input-row .primary-btn { flex: 0 0 auto; min-width: 62px; min-height: 44px; }
.ai-input-hint { margin-top: 7px; color: #98a2b3; font-size: 10px; }
.ai-locked-card { padding: 30px 20px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.ai-locked-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #103f48, #0d6e5c); font-size: 25px; }
.ai-locked-card h3 { margin: 0 0 8px; color: #1d2939; font-size: 17px; }
.ai-locked-card p { margin: 0; color: #87928f; font-size: 12px; line-height: 1.7; }

/* AI 大输入框与语音操作 */
.ai-input-panel { position: relative; display: grid; gap: 9px; margin-top: 2px; }
.ai-input-panel textarea { width: 100%; min-height: 108px; max-height: 180px; resize: vertical; padding: 14px; border: 1px solid #dce7e3; border-radius: 14px; color: #1d2939; background: #fbfdfc; font-size: 16px; line-height: 1.7; outline: none; }
.ai-input-panel textarea:focus { border-color: #5db99d; box-shadow: 0 0 0 3px rgba(22,134,107,.08); }
.ai-voice-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ai-voice-actions.voice-hide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-voice-actions.voice-hide .ai-send-btn { grid-column: 3; }
.ai-voice-btn { min-height: 48px; padding: 5px 8px; border: 1px solid #bfe0d5; border-radius: 13px; color: #126c59; background: #f1faf7; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ai-voice-icon { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.ai-voice-btn:not(.send) .ai-voice-icon { transform: translateX(-20%); }
.ai-voice-btn.send .ai-voice-icon { transform: translateX(-15%); }
.ai-voice-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.25; text-align: left; }
.ai-voice-text b,
.ai-voice-text i { font-weight: 800; font-size: 14px; }
.ai-voice-text i { font-style: normal; opacity: 1; }
.ai-voice-btn.send { color: #126c59; border-color: #bfe0d5; background: #f1faf7; }
.ai-voice-btn.active,
.ai-voice-btn.send.active-send { border-color: #e0a62f; color: #8b5b00; background: #fff7df; }
.ai-send-btn { width: auto; min-width: 0; min-height: 48px; padding: 0 6px; font-size: 13px; white-space: nowrap; }

/* AI新手设置指引 */
.ai-guide { display: grid; gap: 10px; }
.ai-guide-step { padding: 12px; border: 1px solid #e4ece9; border-radius: 12px; background: #fafcfb; }
.ai-guide-step b { display: block; color: #126c59; font-size: 13px; }
.ai-guide-step p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.7; }

/* 手机端专属管理后台 */
body.admin-mode .topbar { display: none; }
body.admin-mode .stage { padding: 0; }
body.admin-mode .admin-shell { width: 100%; max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
body.admin-mode .admin-main { min-height: 100vh; }
@media (max-width: 820px) {
  body.admin-mode { background: #f3f6f8; }
  body.admin-mode .admin-shell { display: block; overflow: visible; }
  body.admin-mode .admin-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 180; background: rgba(9,17,28,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.admin-mode.admin-menu-open .admin-menu-backdrop { opacity: 1; pointer-events: auto; }
  body.admin-mode .admin-sidebar { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; width: 152px; max-width: 62vw; padding: 14px 10px 16px; background: #132b3c; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; border-radius: 0 16px 16px 0; box-shadow: 8px 0 30px rgba(0,0,0,.22); }
  body.admin-mode.admin-menu-open .admin-sidebar { transform: translateX(0); }
  body.admin-mode .admin-sidebar .admin-logo { display: flex; padding: 0 6px 16px; }
  body.admin-mode .admin-sidebar .storage-meter { display: none; }
  body.admin-mode .admin-nav { flex-direction: column; gap: 4px; }
  body.admin-mode .admin-nav button { flex: none; width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; white-space: normal; }
  body.admin-mode .admin-nav button .admin-nav-icon { width: 22px; font-size: 15px; }
  body.admin-mode .admin-menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #132b3c; font-size: 20px; }
  body.admin-mode .admin-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
  body.admin-mode .admin-main { width: 100%; min-height: auto; }
  body.admin-mode .admin-topbar { position: sticky; top: 0; z-index: 50; min-height: 66px; padding: 10px 13px; }
  body.admin-mode .admin-topbar h2 { font-size: 18px; }
  body.admin-mode .admin-top-actions { gap: 7px; }
  body.admin-mode .admin-top-actions .secondary-btn { display: inline-flex; min-height: 40px; padding: 0 10px; font-size: 12px; }
  body.admin-mode .admin-top-actions .secondary-btn:not(:first-of-type) { display: none; }
  body.admin-mode .admin-view { padding: 12px; }
  body.admin-mode .admin-page-head { gap: 10px; }
  body.admin-mode .admin-page-head .head-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  body.admin-mode .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.admin-mode .stat-card { padding: 13px; }
  body.admin-mode .data-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.admin-mode .data-table { min-width: 700px; }
  body.admin-mode .modal-layer { padding: 8px; align-items: flex-end; }
  body.admin-mode .modal-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  body.admin-mode .modal-card.wide { width: 100%; max-width: none; }
}

/* 微信授权登录 */
.wx-login-panel { text-align: center; padding: 52px 24px; }
.wx-login-mark { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(140deg, #16866b, #0d6e5c); font-size: 28px; font-weight: 800; }
.wx-login-panel h3 { margin: 0 0 10px; font-size: 20px; color: #1d2939; }
.wx-login-panel p { margin: 0 auto 20px; max-width: 260px; color: #667085; font-size: 13px; line-height: 1.7; }
.wx-login-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 280px; margin: 0 auto; }
.wx-login-btns .primary-btn,
.wx-login-btns .secondary-btn { width: 100%; }
.wx-login-note { margin-top: 14px !important; color: #98a2b3; font-size: 11px; }

/* 吉祥物亲和力样式 */
.ai-welcome-card { align-items: center; }
.ai-welcome-mascot { flex: 0 0 auto; width: 74px; height: 104px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); animation: mascotFloat 2.8s ease-in-out infinite; }
.ai-welcome-copy { flex: 1 1 auto; min-width: 0; }
.ai-message-avatar.mascot-avatar { width: 34px; height: 42px; padding: 2px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px rgba(16,24,40,.1); }
.ai-message-avatar.mascot-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-message-avatar.user-avatar { width: 28px; height: 28px; border-radius: 50%; }
.ai-message-bubble { position: relative; }
.ai-message-emote { position: absolute; right: -7px; bottom: -8px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(16,24,40,.12); font-size: 12px; animation: emotePop .35s ease both; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes emotePop { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 470px) { .ai-welcome-mascot { width: 62px; height: 88px; } .ai-welcome-card { padding: 15px; } }

/* AI后台大字体 */
.ai-admin-page { font-size: 15px; }
.ai-admin-page .admin-page-head p { font-size: 15px; line-height: 1.8; }
.ai-admin-page .panel-head h3 { font-size: 19px; }
.ai-admin-page .panel-head p,
.ai-admin-page .panel-head button { font-size: 14px; }
.ai-admin-page .access-box b { font-size: 16px; }
.ai-admin-page .access-box span { font-size: 15px; line-height: 1.8; }
.ai-admin-page .data-table { font-size: 14px; }
.ai-admin-page .data-table th { font-size: 14px; }
.ai-admin-page .data-table td { font-size: 14px; line-height: 1.6; }
.ai-admin-page .row-actions button { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ai-settings-form .form-field label { font-size: 16px; font-weight: 800; }
.ai-settings-form input,
.ai-settings-form select,
.ai-settings-form textarea { min-height: 50px; padding: 12px 13px; font-size: 16px; line-height: 1.6; }
.ai-settings-form textarea { min-height: 130px; }
.ai-settings-form .beta-choice { min-height: 46px; padding: 10px 13px; font-size: 15px; }
.ai-settings-form .check-option { min-height: 48px; font-size: 16px; }
.ai-quota-row { display: grid; grid-template-columns: 110px 1fr 110px 52px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ai-quota-row select, .ai-quota-row input { min-height: 42px; padding: 8px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ai-quota-row .ai-q-value { grid-column: auto; }
.form-hint { margin: 8px 0 0; color: #98a2b3; font-size: 12px; line-height: 1.6; }
#aiQuotaList { margin-bottom: 10px; }
#aiQuotaList:empty { display: none; }
@media (max-width: 560px) {
  .ai-quota-row { grid-template-columns: 92px 1fr 86px 44px; gap: 6px; }
  .ai-quota-row select, .ai-quota-row input { font-size: 13px; padding: 7px 8px; }
}
.ai-admin-page .stat-card b { font-size: 24px; }
.ai-admin-page .stat-card span,
.ai-admin-page .stat-card small { font-size: 13px; }
@media (max-width: 380px) { .ai-voice-actions { gap: 5px; } .ai-voice-btn, .ai-send-btn { font-size: 12px; padding-left: 4px; padding-right: 4px; } }

/* AI聊天页：压缩顶部，输入区固定在底部 */
.mini-app.ai-agent-active .mini-header::after { display: none; }
.mini-app.ai-agent-active .mini-header { background: linear-gradient(135deg, #103f48, #0d6e5c); }
.mini-app.ai-agent-active .mini-header .header-copy { padding: 9px 14px 8px; }
.mini-app.ai-agent-active .mini-header .header-copy small { display: none; }
.mini-app.ai-agent-active .mini-header .header-copy h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.mini-app.ai-agent-active .mini-header .header-search { display: none; }
.mini-app.ai-agent-active .mini-view { padding: 0; overflow: hidden; }
.mini-app.ai-agent-active .mini-nav { flex: 0 0 auto; }
.mini-app.ai-agent-active .ai-page { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mini-app.ai-agent-active .ai-top-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.mini-app.ai-agent-active .ai-welcome-section { padding-top: 10px !important; }
.mini-app.ai-agent-active .ai-chat-shell { margin-bottom: 0; }
.mini-app.ai-agent-active .ai-message-list { height: auto; max-height: none; overflow: visible; }
.mini-app.ai-agent-active .ai-bottom-fixed { flex: 0 0 auto; position: relative; z-index: 20; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid #e1ebe7; background: #fff; box-shadow: 0 -8px 24px rgba(16,24,40,.08); }
.mini-app.ai-agent-active .ai-bottom-fixed textarea { min-height: 78px; max-height: 120px; }
.mini-app.ai-agent-active .ai-bottom-fixed .ai-input-hint { margin-top: 5px; }

/* AI页面：隐藏顶部品牌栏与底部导航，最大化可视区域 */
.mini-app.ai-agent-active .mini-header { display: none !important; }
.mini-app.ai-agent-active .mini-nav { display: none !important; }
.phone-wrap.ai-agent-active .android-header { display: none !important; }
.phone-wrap.ai-agent-active .mini-nav { display: none !important; }
body.customer-mode .mini-app.ai-agent-active .mini-view { padding-top: 0 !important; }
body.customer-mode .mini-app.ai-agent-active .ai-welcome-section { padding-top: calc(12px + env(safe-area-inset-top)) !important; }
.mini-app.ai-agent-active .mini-view { flex: 1 1 auto; }

/* AI语音提示：改用内联卡片，避免AI页弹窗无法点击导致卡死 */
.ai-voice-notice { margin: 0 0 9px; padding: 12px 13px; border: 1px solid #f0c36d; border-radius: 13px; background: #fff9ec; color: #7a4b00; font-size: 14px; line-height: 1.7; }
.ai-voice-notice b { display: block; margin-bottom: 4px; font-size: 16px; color: #8a5200; }
.ai-voice-notice p { margin: 0 0 6px; }
.ai-voice-notice-why { color: #9a7b45; font-size: 12.5px; }
.ai-voice-notice-actions { display: flex; gap: 8px; margin-top: 8px; }
.ai-voice-notice-actions button { flex: 1 1 0; min-height: 44px; border: 1px solid #e2b25a; border-radius: 11px; background: #fff; color: #8a5200; font-size: 15px; font-weight: 800; }
.ai-voice-notice-actions button:first-child { background: #f6a623; border-color: #f6a623; color: #fff; }

/* AI对话管理：新对话 / 历史对话 / 单条消息操作 */
.ai-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ai-chat-head-actions { display: flex; gap: 6px; }
.ai-chat-head-actions button { min-height: 38px; padding: 0 12px; border: 1px solid #cfe3db; border-radius: 10px; background: #f3faf7; color: #126c59; font-size: 14px; font-weight: 800; }
.ai-chat-head-actions button:first-child { background: #0d6e5c; border-color: #0d6e5c; color: #fff; }
.ai-history { margin: 0 0 10px; padding: 10px; border: 1px solid #dbe7e3; border-radius: 13px; background: #fbfdfc; }
.ai-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.ai-history-head button { min-height: 34px; padding: 0 12px; border: 1px solid #cfe3db; border-radius: 9px; background: #fff; color: #126c59; font-size: 13px; font-weight: 700; }
.ai-history-empty { margin: 6px 0; color: #98a2b3; font-size: 13px; }
.ai-conv-row { display: flex; align-items: stretch; gap: 5px; margin-bottom: 6px; }
.ai-conv-row.active .ai-conv-open { border-color: #0d6e5c; background: #eef8f4; }
.ai-conv-open { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1px solid #e1ebe7; border-radius: 10px; background: #fff; text-align: left; }
.ai-conv-open b { display: block; font-size: 13px; color: #1d2939; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-conv-open span { display: block; margin-top: 2px; color: #98a2b3; font-size: 10px; }
.ai-conv-del { flex: 0 0 auto; min-height: 42px; padding: 0 8px; border: 1px solid #f0c7c7; border-radius: 10px; background: #fff7f7; color: #b42318; font-size: 12px; font-weight: 800; }
.ai-message-actions { display: flex; gap: 6px; margin-top: 7px; }
.ai-message-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #d7e5e0; border-radius: 9px; background: rgba(255,255,255,.9); color: #126c59; font-size: 12.5px; font-weight: 700; }
.ai-message.user .ai-message-actions button { border-color: #cfe0ff; color: #1a4fa0; }
.ai-edit-area { width: 100%; min-height: 96px; padding: 10px; border: 1px solid #bcd9cf; border-radius: 11px; background: #fff; color: #1d2939; font-size: 15px; line-height: 1.7; resize: vertical; }

/* AI页：左侧对话抽屉 + 长按操作 + 按钮配色 */
.ai-drawer-mask { position: fixed; inset: 0; z-index: 590; background: rgba(8,15,28,.42); }
.ai-drawer { position: fixed; z-index: 600; top: 0; bottom: 0; left: 0; width: min(50vw, 260px); display: flex; flex-direction: column; padding: 12px 9px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 6px 0 26px rgba(16,24,40,.24); animation: aiDrawerIn .22s ease; }
@keyframes aiDrawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.ai-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.ai-drawer-head button { min-height: 32px; padding: 0 10px; border: 1px solid #cfe3db; border-radius: 9px; background: #f3faf7; color: #126c59; font-size: 13px; font-weight: 800; }
.ai-drawer-new { width: 100%; min-height: 50px; margin-bottom: 10px; border: 0; border-radius: 12px; background: #0d6e5c; color: #fff; font-size: 16px; font-weight: 800; }
.ai-drawer-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ai-drawer-btn { min-height: 40px; padding: 0 13px; border: 1px solid #cfe3db; border-radius: 11px; background: #f3faf7; color: #126c59; font-size: 14px; font-weight: 800; flex: 0 0 auto; }
.ai-chat-head > div { flex: 1 1 auto; text-align: right; }
.ai-voice-btn { background: #e6f6f0 !important; border-color: #7cc4ad !important; color: #0b5a4a !important; }
.ai-voice-btn.send { background: #e6f6f0 !important; border-color: #7cc4ad !important; }
.ai-send-btn, .primary-btn.ai-send-btn { background: #0d6e5c !important; border-color: #0d6e5c !important; color: #fff !important; }
.ai-message-actions button:first-child { background: #f3faf7; }
.ai-message { -webkit-touch-callout: none; }

/* AI对话记录：勾选批量删除 */
.ai-conv-check { flex: 0 0 auto; width: 24px; min-height: 24px; align-self: center; border: 1px solid #cfe3db; border-radius: 7px; background: #fff; color: #fff; font-size: 12px; font-weight: 900; }
.ai-conv-check.on { background: #0d6e5c; border-color: #0d6e5c; }
.ai-conv-row.picked .ai-conv-open { border-color: #0d6e5c; background: #f1faf7; }
.ai-drawer-foot { display: flex; gap: 8px; padding-top: 10px; margin-top: 8px; border-top: 1px solid #eef2f4; }
.ai-drawer-foot button { flex: 1 1 0; min-height: 48px; border: 1px solid #cfe3db; border-radius: 12px; background: #f3faf7; color: #126c59; font-size: 15px; font-weight: 800; }
.ai-drawer-foot .ai-bulk-del { background: #fff4f2; border-color: #f0b4ab; color: #b42318; }

/* AI对话内：长按多选消息 */
.ai-message.pickable { align-items: flex-start; }
.ai-msg-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 5px; border: 1px solid #cfe3db; border-radius: 8px; background: #fff; color: #fff; font-size: 14px; font-weight: 900; }
.ai-msg-check.on { background: #0d6e5c; border-color: #0d6e5c; }
.ai-message.picked .ai-message-bubble { outline: 2px solid #0d6e5c; outline-offset: 1px; }
.ai-select-bar { display: flex; gap: 10px; width: 100%; }
.ai-select-bar button { flex: 0 0 96px; min-height: 54px; padding: 0 16px; border: 1px solid #cfe3db; border-radius: 13px; background: #fff; color: #126c59; font-size: 16px; font-weight: 800; }
.ai-select-bar button.danger { flex: 1 1 auto; background: #fff4f2; border-color: #f0b4ab; color: #b42318; font-size: 17px; }

/* AI语音：长按录音状态 */
.ai-voice-btn.recording { background: #ffe9e6 !important; border-color: #e8735f !important; color: #a32613 !important; animation: aiVoiceGlow 0.8s ease-in-out infinite; }
@keyframes aiVoiceGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(211,47,47,.35), 0 0 6px 1px rgba(211,47,47,.35); }
  50% { box-shadow: 0 0 0 1px rgba(211,47,47,.6), 0 0 16px 5px rgba(211,47,47,.7); }
}

/* AI语音：长按录音时的全屏提示条（中老年友好大字号） */
.ai-voice-live { position: fixed; left: 50%; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 700; transform: translateX(-50%); min-width: min(88vw, 380px); padding: 14px 18px; border-radius: 16px; background: #b42318; color: #fff; box-shadow: 0 12px 30px rgba(180,35,24,.35); text-align: center; pointer-events: none; }
.ai-voice-live b { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 19px; font-weight: 900; }
.ai-voice-live i { width: 12px; height: 12px; border-radius: 50%; background: #ffd8d3; animation: aiVoicePulse .9s ease-in-out infinite; }
.ai-voice-live span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #ffe8e5; }
@keyframes aiVoicePulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* AI聊天：右上角“新对话”按钮 */
.ai-chat-head .ai-new-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: #0d6e5c; color: #fff; font-size: 15px; font-weight: 800; }

/* AI消息：长按后的单条操作弹层 */
.ai-msg-pop { position: absolute; top: calc(100% + 4px); left: 52px; z-index: 32; display: grid; gap: 5px; padding: 6px; border: 1px solid #e1ebe7; border-radius: 12px; background: #fff; box-shadow: 0 12px 26px rgba(16,24,40,.18); }
.ai-msg-pop.above { top: auto; bottom: calc(100% + 4px); }
.ai-message.user .ai-msg-pop { left: auto; right: 46px; }
.ai-msg-pop-row { display: flex; gap: 6px; }
.ai-msg-pop button { min-height: 38px; padding: 0 15px; border: 1px solid #d7e5e0; border-radius: 9px; background: #f7fbf9; color: #126c59; font-size: 15px; font-weight: 800; }
.ai-msg-pop .ai-msg-pop-more { padding: 0 11px; transition: transform .18s ease; }
.ai-msg-pop .ai-msg-pop-more.open { transform: rotate(180deg); }
.ai-msg-pop .ai-msg-pop-del { width: 100%; background: #fff4f2; border-color: #f0b4ab; color: #b42318; }

/* 删除确认弹窗 */
.modal-footer .primary-btn.danger { background: #b42318; border-color: #b42318; color: #fff; }

/* AI消息：正在修改的那一条（内容已放到下方输入框） */
.ai-message.edit-source .ai-message-bubble { outline: 2px solid #0d6e5c; outline-offset: 2px; }
.ai-message.edit-source .ai-message-bubble::after { content: "编辑中"; position: absolute; top: -10px; right: 6px; padding: 1px 7px; border-radius: 8px; background: #0d6e5c; color: #fff; font-size: 10px; font-weight: 800; }

/* AI聊天：左上角「对话记录」按钮放大50%，聊天区文字整体放大20% */
.ai-chat-head .ai-drawer-btn { min-height: 54px; padding: 0 18px; border-radius: 14px; font-size: 17px; font-weight: 900; }
.ai-chat-head .ai-new-btn { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 18px; font-weight: 900; }
.ai-welcome-card h3 { font-size: 22px; }
.ai-welcome-card p { font-size: 14px; }
.ai-welcome-card small { font-size: 13px; }
.ai-quota b { font-size: 29px; }
.ai-quota span { font-size: 12px; }
.ai-message-bubble { font-size: 16px; line-height: 1.75; }
.ai-message.edit-source .ai-message-bubble::after { font-size: 12px; }
.ai-msg-pop button { min-height: 46px; padding: 0 18px; font-size: 18px; }
.ai-select-bar button { min-height: 60px; font-size: 19px; }
.ai-select-bar button.danger { font-size: 20px; }
.ai-input-panel textarea { font-size: 19px; line-height: 1.75; }
.ai-voice-btn { min-height: 56px; font-size: 17px !important; }
.ai-send-btn { min-height: 56px; font-size: 17px !important; }
@media (max-width: 380px) {
  .ai-chat-head .ai-drawer-btn { min-height: 52px; padding: 0 15px; font-size: 17px; }
  .ai-chat-head .ai-new-btn { min-height: 46px; padding: 0 16px; font-size: 17px; }
  .ai-voice-btn { font-size: 15px !important; }
  .ai-send-btn { font-size: 15px !important; }
  .ai-message-bubble { font-size: 15px; }
  .ai-input-panel textarea { font-size: 18px; }
}

/* 推荐分享弹窗 */
.share-box { display: grid; gap: 10px; justify-items: center; }
.share-qr { width: 100%; display: grid; place-items: center; padding: 12px; border: 1px solid #e1ebe7; border-radius: 16px; background: #fbfffd; }
.share-qr img { width: min(70vw, 260px); height: auto; display: block; }
.share-tip { margin: 0; color: #526070; font-size: 14px; line-height: 1.7; text-align: center; }
.share-link-input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #dce7e3; border-radius: 12px; color: #1d2939; background: #fbfdfc; font-size: 14px; }
.share-actions { width: 100%; display: grid; gap: 8px; }
.share-actions button { width: 100%; min-height: 48px; font-size: 16px; }
.share-stats { width: 100%; padding: 12px; border-radius: 12px; background: #f1faf7; color: #126c59; font-size: 15px; text-align: center; }
.share-stats b { font-size: 19px; }
.share-image-wrap { display: grid; place-items: center; }
.share-image-wrap img { width: min(84vw, 380px); height: auto; border: 1px solid #e1ebe7; border-radius: 14px; }

/* 微信里打开分享链接时的安装引导 */
.install-guide-box { display: grid; gap: 10px; }
.install-steps { margin: 0; padding-left: 22px; color: #1d2939; font-size: 16px; line-height: 2; }
.install-steps li { margin: 0; }

/* ===== 商城 ===== */
.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:4px 2px 20px}
.shop-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(16,24,40,.06);cursor:pointer}
.shop-cover{height:96px;display:flex;align-items:flex-end;padding:10px;color:#fff;font-size:11px;font-weight:600}
.shop-cover.big{height:180px;font-size:14px}
.cover-emerald{background:linear-gradient(135deg,#0d6e5c,#14a085)}
.cover-gold{background:linear-gradient(135deg,#b7791f,#e8c06a)}
.cover-blue{background:linear-gradient(135deg,#2563eb,#60a5fa)}
.cover-navy{background:linear-gradient(135deg,#1e293b,#475569)}
.cover-plum{background:linear-gradient(135deg,#7c3aed,#a78bfa)}
.shop-info{padding:10px 12px}
.shop-info b{font-size:14px;display:block;margin-bottom:4px}
.shop-info small{color:#98a2b3;font-size:12px;display:block;height:32px;overflow:hidden}
.shop-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.shop-price{color:#e5484d;font-weight:700;font-size:16px}
.shop-detail{background:#fff;border-radius:16px;overflow:hidden}
.shop-detail-body{padding:14px}
.shop-detail-body h3{font-size:17px;margin:0 0 6px}
.shop-section{margin-top:14px}
.shop-section>b{display:block;font-size:13px;margin-bottom:8px;color:#344054}
.sku-list{display:flex;flex-wrap:wrap;gap:8px}
.sku-option{border:1.5px solid #e4e7ec;border-radius:10px;padding:8px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:90px}
.sku-option.selected{border-color:#0d6e5c;background:#f0faf7}
.sku-option span{font-size:13px}
.sku-option b{color:#e5484d}
.sku-option small{color:#98a2b3;font-size:11px}
.qty-stepper{display:inline-flex;align-items:center;gap:0;border:1.5px solid #e4e7ec;border-radius:10px;overflow:hidden}
.qty-stepper button{width:40px;height:38px;background:#f8fafc;border:none;font-size:18px;color:#344054}
.qty-stepper span{min-width:40px;text-align:center;font-weight:600}
.shop-total{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding:12px;background:#f8fafc;border-radius:10px}
.shop-total b{font-size:20px;color:#e5484d}
.sku-edit-row,.field-edit-row{display:flex;gap:8px;margin-bottom:8px;align-items:center}
.sku-edit-row input,.field-edit-row input,.field-edit-row select{flex:1;min-width:0}
.mini-check{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#667085;white-space:nowrap}
.radio-inline{display:inline-flex;align-items:center;gap:8px;margin-right:12px;font-size:13px}


/* ===== 系统设置：Logo 上传 / 支付排版 / 底部品牌条 ===== */
.logo-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logo-upload-row input { width: auto; flex: 1 1 240px; min-width: 0; }
.logo-upload-row input[type="file"] { flex: 1 1 180px; padding: 7px 8px; }
.logo-preview { margin-top: 8px; }
.logo-preview img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e9ee; background: #fafcfd; padding: 4px; }
.pay-mode-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.pay-mode-row .radio-inline { margin-right: 0; }
.mini-input { width: 100%; border: 1px solid #dfe5eb; border-radius: 9px; padding: 8px 10px; font-size: 13px; color: var(--ink); background: #fff; }

/* 导航菜单管理：移动端自适应卡片行（不依赖宽表格，避免横向滚动） */
.nav-menu-panel { padding: 6px 12px; }
.nav-menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0f2; }
.nav-menu-row:last-child { border-bottom: 0; }
.nav-menu-row .tag { white-space: nowrap; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.nav-menu-row .tag.ok { color: #0d6e5c; background: #e7f7f2; }
.nav-menu-row .tag.muted { color: #8a94a3; background: #eef1f4; }
.nav-menu-row .mini-btn { white-space: nowrap; border: 0; padding: 7px 12px; border-radius: 8px; color: #126c59; background: #e7f7f2; font-size: 12px; font-weight: 700; }


/* ===== 支付设置：卡片式排版（避免与 .form-field label 冲突） ===== */
.pay-panel { padding: 14px; }
.pay-block { margin-bottom: 14px; }
.pay-block:last-child { margin-bottom: 0; }
.pay-label { font-size: 12px; font-weight: 750; color: #44505f; margin-bottom: 8px; }
.pay-mode-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pay-radio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #dfe5eb; border-radius: 10px; font-size: 13px; color: #344054; cursor: pointer; background: #fff; }
.pay-radio:has(input:checked) { border-color: #0d6e5c; background: #eef8f4; color: #0d6e5c; font-weight: 750; }
.pay-radio input { width: auto; margin: 0; accent-color: #0d6e5c; }
.pay-switch-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.pay-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; }
.pay-switch input { width: 16px; height: 16px; accent-color: #0d6e5c; margin: 0; }
