/* ==========================================================================
   课程激活中心 · 全站样式（用户端 + 管理端，自包含无外部依赖）
   ========================================================================== */

:root {
  --bg: #f4f6fb;
  --bg-deep: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --green: #059669;
  --green-soft: #d1fae5;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 8% -10%, rgba(99, 102, 241, .12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(13, 148, 136, .10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.is-modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text-2);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, .10); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--primary), var(--primary-2));
  --btn-fg: #fff;
  --btn-line: transparent;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .24);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(79, 70, 229, .32); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .72); }
.btn--ghost:hover { --btn-bg: #fff; }
.btn--danger { --btn-fg: var(--red); --btn-line: #fecaca; --btn-bg: #fff5f5; }
.btn--danger:hover { --btn-bg: #fee2e2; }
.btn--soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-dark); --btn-line: transparent; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn--lg { min-height: 50px; padding: 13px 24px; font-size: 15.5px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 9px; }

/* ------------------------------------------------------------------ 表单 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.field > span em { color: var(--red); font-style: normal; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .13);
}
.input::placeholder { color: var(--muted-2); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.input--code {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  min-height: 54px;
}
.form-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.form-error {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--red-soft);
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}
.form-ok {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--green-soft);
  color: #065f46;
  font-size: 13px;
  font-weight: 600;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-line { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.check-line input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ------------------------------------------------------------------ 标签 / 徽章 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.tag--grade { background: var(--primary-soft); border-color: #dbe2ff; color: var(--primary-dark); }
.tag--book { background: #ecfeff; border-color: #cffafe; color: #0e7490; }
.tag--custom { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.tag--ok { background: var(--green-soft); border-color: #a7f3d0; color: #047857; }
.tag--warn { background: var(--amber-soft); border-color: #fde68a; color: var(--amber); }
.tag--muted { background: #f1f5f9; border-color: #e2e8f0; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--unused { background: var(--green-soft); color: #047857; }
.pill--used { background: #e0e7ff; color: #4338ca; }
.pill--disabled { background: #f1f5f9; color: #64748b; }
.pill--active { background: var(--green-soft); color: #047857; }
.pill--banned { background: var(--red-soft); color: #b91c1c; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ------------------------------------------------------------------ 用户端头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(244, 246, 251, .82);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed 60%, #0d9488);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}
.brand b { display: block; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.2; }
.brand small { display: block; font-size: 10px; font-weight: 700; color: var(--muted-2); letter-spacing: .16em; text-transform: uppercase; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .16s ease; }
.header__nav a:hover { color: var(--primary); }
.header__account { display: flex; align-items: center; gap: 9px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #0d9488);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
button.user-chip { font-family: inherit; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
button.user-chip:hover { border-color: #c7d2fe; background: #f8faff; }
.user-chip__avatar--lg { width: 42px; height: 42px; font-size: 15px; flex: none; }

/* ------------------------------------------------------------------ Hero */
.hero { padding: 54px 0 26px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 48px; align-items: center; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; font-weight: 900; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, #7c3aed 55%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__copy > p { max-width: 530px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__points li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero__points span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}
.hero__art { position: relative; display: grid; place-items: center; min-height: 390px; }
.hero__art::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .20), rgba(13, 148, 136, .06) 55%, transparent 70%);
  filter: blur(6px);
}
.coupon {
  position: relative;
  width: min(380px, 100%);
  padding: 26px 26px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  border: 1px solid #dfe3ff;
  box-shadow: 0 30px 70px rgba(79, 70, 229, .18);
  transform: rotate(-3deg);
  animation: coupon-float 7s ease-in-out infinite;
}
@keyframes coupon-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-8px); }
}
.coupon__top { display: flex; justify-content: space-between; align-items: center; }
.coupon__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.coupon__dots { color: var(--muted-2); letter-spacing: .2em; }
.coupon__code {
  margin: 24px 0 20px;
  padding: 15px 10px;
  border-radius: 14px;
  background: #0f172a;
  color: #e0e7ff;
  font-family: var(--mono);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.coupon__course { display: grid; gap: 3px; }
.coupon__course span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.coupon__course b { font-size: 16px; letter-spacing: -.01em; }
.coupon__perf {
  margin: 20px -26px;
  border-top: 2px dashed #dfe3ff;
  position: relative;
}
.coupon__perf::before, .coupon__perf::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid #dfe3ff;
}
.coupon__perf::before { left: -12px; border-left: 0; }
.coupon__perf::after { right: -12px; border-right: 0; }
.coupon__foot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.coupon__check { color: var(--green); font-weight: 800; }
.hero__chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-2);
  white-space: nowrap;
}
.hero__chip--a { top: 8%; right: -2%; animation: chip-in 1s .1s both; }
.hero__chip--b { bottom: 5%; left: -3%; animation: chip-in 1s .25s both; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------------ 数据条 */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  padding: 20px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(226, 232, 240, .9);
  backdrop-filter: blur(8px);
}
.stats-strip > div { text-align: center; padding: 4px 16px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip b { display: block; font-size: 22px; letter-spacing: -.03em; }
.stats-strip span { font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------------------ 通用区块 */
.section { padding: 54px 0 20px; }
.section--muted { margin-top: 30px; padding: 34px 26px; border-radius: 24px; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section__head h2 { margin-top: 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; line-height: 1.2; }
.section__head p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.section__count { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 800; }

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.field--inline { min-width: 150px; flex: 0 1 auto; }
.field--search { flex: 1 1 220px; min-width: 180px; }

/* ------------------------------------------------------------------ 课程卡片 */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 18px; }
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-card:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: var(--shadow); }
.course-card.is-activated { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdfa 0%, #fff 42%); }
.course-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-card h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
.course-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-card__desc { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.7; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px dashed var(--line); }
.stock { font-size: 12px; color: var(--muted); font-weight: 600; }
.stock b { color: var(--text-2); font-size: 13px; }
.stock.is-empty { color: var(--red); }
.course-card__actions { display: flex; align-items: center; gap: 8px; }
.course-card__code { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .05em; }

/* ------------------------------------------------------------------ 我的课程 */
.my-course-list { display: grid; gap: 10px; }
.my-course {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.my-course__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 18px;
  font-weight: 900;
}
.my-course__main { flex: 1; min-width: 0; }
.my-course__main b { display: block; font-size: 14px; }
.my-course__main p { color: var(--muted); font-size: 12px; }
.my-course__date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.my-course .tag { margin-left: auto; }
.my-courses__aside { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 账号与登录设备 */
.account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #f0fdfa);
  border: 1px solid #e0e7ff;
}
.account-summary b { display: block; font-size: 15px; }
.account-summary p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.device-list { display: grid; gap: 10px; }
.device-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.device-item.is-current { border-color: #a7f3d0; background: #f0fdfa; }
.device-item__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 18px;
}
.device-item.is-current .device-item__icon { background: #ccfbf1; }
.device-item__main { flex: 1; min-width: 0; }
.device-item__main b { display: block; font-size: 13.5px; line-height: 1.45; }
.device-item__main p { margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.device-item__meta { color: var(--muted-2) !important; font-size: 11.5px !important; }
.device-item__badge { color: var(--teal); font-size: 11.5px; font-weight: 700; white-space: nowrap; padding-top: 9px; }
.device-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.device-note p { color: var(--muted); font-size: 11.8px; line-height: 1.6; }
.device-note .btn { flex: none; }

/* ------------------------------------------------------------------ 空状态 / 骨架 */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty__icon { font-size: 32px; margin-bottom: 8px; }
.empty p { font-size: 14px; font-weight: 700; color: var(--text-2); }
.empty small { display: block; margin-top: 5px; font-size: 12.5px; }
.loading-line { display: grid; gap: 14px; }
.skeleton {
  height: 160px;
  border-radius: 20px;
  background: linear-gradient(100deg, #eef2f7 20%, #f8fafc 40%, #eef2f7 60%);
  background-size: 200% 100%;
  animation: skeleton 1.2s linear infinite;
}
@keyframes skeleton { from { background-position: 180% 0; } to { background-position: -20% 0; } }

/* ------------------------------------------------------------------ 页脚 */
.site-footer { margin-top: 60px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer b { color: var(--text-2); }
.site-footer a { color: var(--primary); font-weight: 700; }

/* ------------------------------------------------------------------ 浮动提示 */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(440px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
.toast__dot { width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; flex: none; }
.toast--success .toast__dot { background: #34d399; }
.toast--error .toast__dot { background: #f87171; }
.toast--warn .toast__dot { background: #fbbf24; }

/* ------------------------------------------------------------------ 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(5px);
  animation: fade-in .16s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(480px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .3);
  animation: modal-in .2s ease;
}
.modal--wide { width: min(720px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal__head h3 { font-size: 19px; letter-spacing: -.02em; }
.modal__head p { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.modal__close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}
.modal__close:hover { background: #eef2ff; color: var(--primary); }
.modal__body { padding: 20px 24px 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 认证 / 激活弹窗 */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 20px; border-radius: 12px; background: var(--surface-2); }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 800; }
.auth-tabs button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-form { display: grid; gap: 15px; }
.activate-course { padding: 16px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-soft); border: 1px solid #dfe3ff; }
.activate-course h4 { margin: 8px 0 4px; font-size: 16px; }
.activate-course p { color: var(--muted); font-size: 12.5px; }
.activate-form { display: grid; gap: 14px; }
.activate-success { padding: 8px 0 2px; text-align: center; }
.success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
}
.activate-success h4 { font-size: 19px; }
.activate-success p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.activate-success .success-meta { margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-strong); text-align: left; font-size: 12.5px; color: var(--muted); }
.activate-success .success-meta b { color: var(--text-2); }

/* ==================================================================
   管理后台
   ================================================================== */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 15px;
  color: #cbd5e1;
  background:
    radial-gradient(400px 300px at 0% 0%, rgba(99, 102, 241, .28), transparent 65%),
    linear-gradient(180deg, #0f172a, #171540 55%, #0f172a);
  overflow: auto;
}
.sidebar .brand { padding: 0 7px; }
.sidebar .brand b { color: #fff; }
.sidebar .brand small { color: #94a3b8; }
.sidebar__label { padding: 0 12px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #64748b; text-transform: uppercase; }
.sidebar__nav { display: grid; gap: 4px; }
.sidebar__nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.sidebar__nav button span:first-child { width: 20px; text-align: center; font-size: 15px; }
.sidebar__nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar__nav button.is-active { background: linear-gradient(135deg, rgba(99, 102, 241, .9), rgba(79, 70, 229, .75)); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.sidebar__foot { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(148, 163, 184, .16); font-size: 11.5px; color: #94a3b8; }
.sidebar__foot b { color: #e2e8f0; display: block; margin-bottom: 3px; }
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
}
.sidebar__logout:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.admin-main { min-width: 0; padding: 26px 30px 70px; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.admin-topbar p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.admin-topbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-badge b { color: var(--text-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2 { font-size: 16px; letter-spacing: -.01em; }
.panel__head p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }
.panel-stack { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 13px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.stat-card__icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); }
.stat-card__icon.is-teal { background: var(--teal-soft); }
.stat-card__icon.is-amber { background: var(--amber-soft); }
.stat-card__icon.is-green { background: var(--green-soft); }
.stat-card__icon.is-red { background: var(--red-soft); }
.stat-card b { display: block; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.stat-card span { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 600;
}
.notice--info { background: var(--primary-soft); border-color: #dbe2ff; color: #3730a3; }
.notice__icon { font-size: 16px; line-height: 1.3; }

.toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.toolbar .field--inline { min-width: 140px; }
.toolbar__search { flex: 1 1 180px; min-width: 170px; }
.toolbar__spacer { flex: 1; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table__code { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); white-space: nowrap; }
.table__main b { display: block; font-size: 13.5px; }
.table__main span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.table__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.table__empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.table th.table__actions, .table td.table__actions { text-align: right; }
.table td.table__actions { justify-content: flex-end; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager__info { color: var(--muted); font-size: 12px; }
.pager__buttons { display: flex; align-items: center; gap: 7px; }
.pager__buttons button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.pager__buttons button:hover:not(:disabled) { border-color: var(--primary-2); color: var(--primary); }
.pager__buttons button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager__buttons button:disabled { opacity: .45; cursor: not-allowed; }

.code-result { max-height: 230px; overflow: auto; margin-top: 14px; padding: 12px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; }
.code-result span { color: #a5b4fc; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 14px; }
.code-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.code-chip button { border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 800; }

.log-list { display: grid; gap: 0; }
.log-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #f1f5f9; }
.log-item:last-child { border-bottom: 0; }
.log-item__icon { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: 14px; }
.log-item__main { flex: 1; min-width: 0; }
.log-item__main b { display: block; font-size: 12.8px; font-weight: 700; line-height: 1.5; }
.log-item__main span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.log-item__time { flex: none; color: var(--muted-2); font-size: 11px; white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.detail-item { padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.detail-item span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.detail-item b { display: block; margin-top: 2px; font-size: 13.5px; word-break: break-all; }
.detail-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; font-size: 13px; font-weight: 800; }

/* ------------------------------------------------------------------ 管理登录 */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 420px at 15% 10%, rgba(99, 102, 241, .38), transparent 60%),
    radial-gradient(600px 400px at 90% 90%, rgba(13, 148, 136, .28), transparent 55%),
    #0b1020;
}
.admin-login__card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 40px 100px rgba(2, 6, 23, .5);
}
.admin-login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.admin-login__brand b { display: block; font-size: 17px; }
.admin-login__brand small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.admin-login__form { display: grid; gap: 15px; }
.admin-login__hint { margin-top: 18px; padding: 11px 13px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.admin-login__hint code { color: var(--text-2); font-weight: 700; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__art { min-height: 330px; order: -1; }
  .hero { padding-top: 34px; }
  .hero__chip--a { right: 0; }
  .hero__chip--b { left: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; overflow-x: auto; }
  .sidebar .brand { flex: none; }
  .sidebar .brand small { display: none; }
  .sidebar__label { display: none; }
  .sidebar__nav { display: flex; gap: 5px; flex: 1; }
  .sidebar__nav button { width: auto; white-space: nowrap; padding: 8px 11px; }
  .sidebar__foot { display: none; }
  .sidebar .sidebar__logout { width: auto; margin: 0; white-space: nowrap; }
  .admin-main { padding: 20px 18px 60px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .header__nav { display: none; }
  .header__account { gap: 6px; }
  .hero__points { flex-direction: column; align-items: flex-start; }
  .stats-strip { margin-top: 18px; }
  .section { padding-top: 40px; }
  .section__head { align-items: flex-start; flex-direction: column; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-topbar { flex-direction: column; }
  .admin-topbar__right { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .my-course { align-items: flex-start; }
  .my-course .tag { display: none; }
}
@media (max-width: 480px) {
  .header__inner { min-height: 64px; }
  .brand small { display: none; }
  .hero h1 { font-size: 34px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats-strip { grid-template-columns: 1fr; gap: 10px; }
  .stats-strip > div { border-right: 0; }
  .course-grid { grid-template-columns: 1fr; }
  .filter-bar .field--inline { flex: 1 1 42%; min-width: 0; }
  .coupon { transform: rotate(-1.5deg); }
  .coupon__code { font-size: 17px; letter-spacing: .07em; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal__head, .modal__body { padding-left: 18px; padding-right: 18px; }
  .modal__foot { padding-left: 18px; padding-right: 18px; }
  .admin-login__card { padding: 24px; }
  .sidebar .brand b { font-size: 13px; }
  .sidebar__nav button span:last-child { font-size: 12.5px; }
}


/* ==================================================================
   客户端下载页
   ================================================================== */
.header__nav a.is-current { color: var(--primary); }
.download-hero {
  padding: 54px 0 20px;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(600px 360px at 10% 20%, rgba(13, 148, 136, .10), transparent 55%);
}
.download-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; }
.download-hero h1 { margin: 14px 0 16px; font-size: clamp(32px, 4.8vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.download-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--primary), #7c3aed 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.download-hero p { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.download-hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 800; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.platform-chip b { font-size: 15px; }
.platform-chip.is-muted { color: var(--muted); background: rgba(255, 255, 255, .55); box-shadow: none; }
.download-hero__art { position: relative; min-height: 260px; display: grid; place-items: center; }
.download-phone {
  width: 128px; height: 226px; border-radius: 26px; background: linear-gradient(160deg, #1e1b4b, #4f46e5);
  border: 6px solid #0f172a; box-shadow: 0 26px 60px rgba(79, 70, 229, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; transform: rotate(-8deg) translateX(-38px); position: relative; z-index: 2;
}
.download-phone span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 25px; font-weight: 900; }
.download-phone small { font-size: 8px; letter-spacing: .16em; color: #c7d2fe; }
.download-laptop {
  position: absolute; right: 8%; bottom: 24px; width: 210px; height: 138px;
  border-radius: 14px 14px 6px 6px; background: linear-gradient(145deg, #0f172a, #334155);
  border: 5px solid #0f172a; box-shadow: 0 24px 50px rgba(15, 23, 42, .28);
  display: grid; place-items: center; transform: rotate(4deg);
}
.download-laptop::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -14px; height: 10px; border-radius: 0 0 10px 10px; background: #94a3b8; }
.download-laptop span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; font-weight: 900; }

.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
.client-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.client-card__head { display: flex; align-items: center; gap: 12px; }
.client-card__icon {
  width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); font-size: 25px;
}
.client-card__title { flex: 1; min-width: 0; }
.client-card__title h3 { margin-top: 3px; font-size: 19px; letter-spacing: -.02em; }
.client-card__version { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.client-card__version span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.client-card__version b { display: block; margin-top: 2px; font-size: 13px; }
.client-card__meta { color: var(--muted); font-size: 12px; }
.client-card__file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.client-card__file code { font-family: var(--mono); font-size: 11px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.client-card__notes { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.client-req-box { padding: 13px 15px; border-radius: 13px; background: #f8fafc; border: 1px dashed var(--line-strong); }
.client-req-box h4 { margin: 0 0 7px; font-size: 12px; color: var(--text-2); }
.client-req { margin: 0; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.client-card__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.client-card__actions .btn { flex: 1 1 auto; }
.client-card__downloads { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.client-hash, .client-history { border-top: 1px solid var(--line); padding-top: 10px; }
.client-hash summary, .client-history summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
.client-hash__row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.client-hash__row code { flex: 1; font-family: var(--mono); font-size: 10.5px; word-break: break-all; color: var(--text-2); background: var(--surface-2); border-radius: 7px; padding: 7px 8px; }
.client-history .table { min-width: 420px; margin-top: 8px; }
.client-card__empty { padding: 24px 10px; text-align: center; color: var(--muted); }
.client-card__empty p { color: var(--text-2); font-weight: 700; font-size: 13.5px; }
.client-card__empty small { font-size: 12px; }
.download-note { margin-top: 22px; }
.download-help { margin-top: 30px; }
.download-help h2 { font-size: 22px; letter-spacing: -.02em; }
.download-help__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.download-help__grid > div { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.download-help__grid h4 { font-size: 14px; }
.download-help__grid p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* ------------------------------------------------------------------ 管理端客户端上传 */
.upload-drop {
  padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: var(--surface-2); text-align: center; color: var(--muted); font-size: 12.5px;
}
.upload-drop input[type="file"] { display: block; width: 100%; margin-top: 10px; font-size: 12px; }
.upload-drop b { color: var(--text-2); }
.upload-progress { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.upload-progress__bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--teal)); transition: width .2s ease; }
.upload-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11.5px; }
.client-req-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-req-editor .field { grid-column: auto; }
.client-req-editor .textarea { min-height: 120px; font-size: 12.5px; }
.client-file-cell { display: flex; flex-direction: column; gap: 2px; }
.client-file-cell code { font-family: var(--mono); font-size: 11px; color: var(--text-2); word-break: break-all; }
.client-file-cell span { color: var(--muted); font-size: 11px; }
.client-platform-cell { display: flex; align-items: center; gap: 8px; }
.client-platform-cell .client-card__icon { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.client-upload-limits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.client-upload-limits span { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.client-upload-limits b { color: var(--text-2); }

@media (max-width: 960px) {
  .download-hero__inner { grid-template-columns: 1fr; }
  .download-hero__art { min-height: 240px; order: -1; }
  .download-help__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .client-grid { grid-template-columns: 1fr; }
  .client-req-editor { grid-template-columns: 1fr; }
  .download-hero__art { display: none; }
}
@media (max-width: 480px) {
  .client-card__version { grid-template-columns: 1fr; }
  .client-card__actions .btn { flex: 1 1 100%; }
  .client-hash__row { align-items: flex-start; flex-direction: column; }
}


@media (max-width: 560px) {
  .device-note { align-items: flex-start; flex-direction: column; }
  .device-item__badge { padding-top: 0; }
  .my-courses__aside { justify-content: flex-start; }
}
