:root {
  --black: #07111f;
  --navy: #0b1220;
  --blue: #2563eb;
  --orange: #ff7a1a;
  --green: #16c7b7;
  --purple: #7c3aed;
  --yellow: #f5c542;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --soft-blue: #eff6ff;
  --soft-orange: #fff3e8;
  --soft-green: #ecfeff;
  --soft-purple: #f5f3ff;
  --soft-yellow: #fffbeb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
body.library-page {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.result-page {
  background: #f3f6fa;
}
a { color: inherit; text-decoration: none; }
.phone {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 128px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 18px 52px rgba(7, 17, 31, .12);
}
.gate-phone {
  padding-bottom: 0;
}
.hero {
  padding: 24px 18px 20px;
  color: white;
  background: linear-gradient(145deg, #050b14, #0b1220 56%, #153e75);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--blue);
  font-weight: 1000;
}
.brand strong { display: block; line-height: 1.1; }
.brand span {
  display: block;
  margin-top: 3px;
  color: #cfe3ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.icon-link {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 8px 10px;
  color: #e8f1ff;
  font-size: 13px;
}
h1 {
  margin: 22px 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}
.material-detail-title {
  max-width: 100%;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero p, .hint {
  margin: 0;
  color: #e8f1ff;
  font-size: 14px;
}
.home-search-card {
  padding: 12px;
}
.library-search-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.home-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 8px 0 12px;
  color: #98a2b3;
}
.home-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.home-search input::placeholder {
  color: #b7bec9;
}
.home-grade-section {
  padding: 14px;
}
.grade-grid {
  display: grid;
  gap: 16px;
}
.grade-group {
  display: grid;
  gap: 9px;
}
.grade-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}
.grade-group-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--blue);
}
.grade-group-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 15px;
  column-gap: 8px;
}
.grade-entry {
  min-width: 0;
  min-height: 70px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 4px 2px;
  color: #101828;
}
.grade-entry b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f3ff;
  color: #1b8fd7;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}
.grade-entry span {
  max-width: 100%;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grade-entry:active {
  transform: translateY(1px);
}
.home-latest {
  margin-top: 16px;
}
.home-empty-hot {
  display: grid;
  gap: 5px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  color: #667085;
}
.home-empty-hot b {
  color: #344054;
  font-size: 14px;
}
.home-empty-hot span {
  font-size: 13px;
  line-height: 1.5;
}
.category-appbar {
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  padding: 14px 12px 12px;
}
.category-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr 88px;
  align-items: center;
  min-height: 38px;
}
.category-topbar strong {
  text-align: center;
  color: #101828;
  font-size: 17px;
}
.category-back {
  position: relative;
  width: 32px;
  height: 32px;
}
.category-back::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #101828;
  border-bottom: 2px solid #101828;
  transform: rotate(45deg);
}
.category-capsule {
  justify-self: end;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}
.category-search {
  height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 18px;
}
.category-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.category-search input::placeholder {
  color: #b7bec9;
}
.library-main {
  padding: 0 0 90px;
}
.library-search-card {
  margin: 24px 16px 0;
}
.library-phone {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding-bottom: 128px;
}
.library-hero {
  flex: 0 0 auto;
  padding: 24px 18px 16px;
}
.library-hero h1 {
  margin: 22px 0 8px;
  font-size: 30px;
}
.library-hero p {
  margin-bottom: 14px;
}
.library-hero-search {
  height: 44px;
  margin-top: 0;
  border-color: transparent;
  background: #fff;
}
.library-hero-search input {
  color: var(--text);
}
.library-phone .category-appbar {
  flex: 0 0 auto;
}
.library-phone .library-main {
  flex: 1 1 auto;
  min-height: auto;
  overflow: visible;
  padding: 0;
}
.result-phone {
  background: var(--bg);
}
.result-appbar {
  border-bottom: 0;
  background: linear-gradient(145deg, #050b14, #0b1220 56%, #153e75);
  padding: 18px 16px 34px;
}
.result-appbar .topbar {
  min-height: 44px;
}
.result-appbar .brand {
  color: #fff;
}
.result-appbar .brand .mark {
  background: #fff;
  color: var(--blue);
}
.result-appbar .icon-link {
  border-color: rgba(255,255,255,.16);
  color: #e8f1ff;
}
.result-search {
  height: 46px;
  margin: 18px 0 -58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 58px;
  column-gap: 8px;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #fff;
  padding: 0 8px 0 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.result-search input {
  min-width: 0;
  font-size: 14px;
}
.result-search button {
  width: 58px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.result-main {
  padding: 52px 0 72px;
  background: var(--bg);
}
.result-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  gap: 8px;
  padding: 10px 12px;
}
.result-filter-bar select {
  min-width: 0;
  height: 34px;
  border: 1px solid #e5eaf2;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #98a2b3 50%) right 11px center / 5px 5px no-repeat,
    linear-gradient(135deg, #98a2b3 50%, transparent 50%) right 7px center / 5px 5px no-repeat,
    #f8fafc;
  color: #344054;
  padding: 0 20px 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}
.result-list-section {
  min-height: 0;
}
.result-status {
  min-height: 30px;
  padding: 12px 16px 0;
  color: #98a2b3;
  font-size: 12px;
}
.result-list {
  display: grid;
  gap: 12px;
  padding: 10px 16px 224px;
}
.result-empty-card {
  display: block;
  padding: 20px;
  min-height: 140px;
}
.result-empty-card h3 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}
.result-empty-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}
.result-info {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.result-info h3 {
  margin: 0;
  color: #101828;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.result-product .summary {
  margin: 0;
  color: #ff5a1f;
  font-size: 13px;
  font-weight: 800;
}
.result-meta {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #98a2b3;
  font-size: 12px;
}
.result-meta time {
  justify-self: end;
  white-space: nowrap;
}
.gate-hero {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gate-hero h1 {
  margin-top: 34px;
  font-size: 34px;
}
.gate-main {
  padding-top: 22px;
}
.gate-cta {
  min-height: 52px;
  border-radius: 16px;
  font-size: 18px;
}
.main { padding: 16px 16px 190px; }
.section { margin-top: 18px; }
.section:first-child { margin-top: 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
h2 { margin: 0; font-size: 18px; font-weight: 900; }
.more { color: var(--blue); font-size: 13px; font-weight: 800; }
.inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.link-button {
  min-height: 32px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.link-button:active {
  transform: translateY(1px);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(7,17,31,.05);
}
.featured {
  border-color: #fed7aa;
  background: linear-gradient(180deg, var(--soft-orange), #fff);
}
.card h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.35; }
.summary { margin: 8px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.logistics-line {
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1e3a8a;
}
.logistics-line b {
  color: #0f172a;
}
.order-card {
  display: grid;
  gap: 12px;
}
.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.order-card-head b {
  color: var(--orange);
}
.order-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}
.order-progress span {
  position: relative;
  min-height: 24px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}
.order-progress span::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #d0d5dd;
}
.order-progress span.active {
  color: #1d2939;
  font-weight: 800;
}
.order-progress span.active::before {
  background: var(--blue);
}
.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.order-actions .btn {
  width: auto;
  min-width: 92px;
}
.order-logistics-sheet[hidden] {
  display: none;
}
.order-logistics-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78vh;
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: #fff;
  padding: 10px 16px 22px;
  box-shadow: 0 -20px 48px rgba(15, 23, 42, .18);
}
.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d0d5dd;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.sheet-head h2 {
  margin: 0;
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.icon-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  font-size: 22px;
}
.sheet-summary {
  margin: 14px 0;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}
.sheet-summary h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}
.sheet-summary p {
  margin: 0;
  color: var(--muted);
}
.user-logistics-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.user-logistics-timeline li {
  position: relative;
  border-left: 2px solid #dbe3f0;
  padding: 0 0 18px 22px;
}
.user-logistics-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.user-logistics-timeline li.active {
  border-left-color: var(--blue);
}
.user-logistics-timeline li.active::before {
  background: var(--blue);
}
.user-logistics-timeline b,
.user-logistics-timeline span {
  display: block;
}
.user-logistics-timeline span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.detail-section {
  border-bottom: 1px solid #eef2f7;
  padding: 14px 0;
}
.detail-section:last-child {
  border-bottom: 0;
}
.detail-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}
.detail-row b {
  max-width: 68%;
  color: #1d2939;
  font-weight: 700;
  text-align: right;
  line-height: 1.5;
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-card {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.quick-card b {
  color: var(--text);
  font-size: 15px;
}
.quick-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.quick-card:active {
  transform: translateY(1px);
}
.interest {
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: #fff;
}
.interest.active { border-color: #fed7aa; background: linear-gradient(180deg, var(--soft-orange), #fff); }
.interest b { display: block; margin-bottom: 6px; font-size: 15px; }
.interest span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.avatar-box {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.avatar-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.avatar-box.has-image {
  padding: 0;
  overflow: hidden;
  color: transparent;
}
.order-summary {
  padding: 16px 16px 18px;
  border: 0;
  box-shadow: 0 8px 24px rgba(7,17,31,.04);
}
.muted-more {
  color: #98a2b3;
  font-weight: 500;
}
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.order-status-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
}
.order-status-item b {
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.order-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
}
.order-icon::before,
.order-icon::after {
  content: "";
  position: absolute;
  border: 2px solid #1d2939;
  box-sizing: border-box;
}
.order-icon.wallet::before {
  left: 2px;
  top: 5px;
  width: 24px;
  height: 19px;
  border-radius: 4px;
}
.order-icon.wallet::after {
  right: 2px;
  top: 11px;
  width: 10px;
  height: 8px;
  border-radius: 3px;
  background: #fff;
}
.order-icon.bag::before {
  left: 4px;
  top: 8px;
  width: 20px;
  height: 17px;
  border-radius: 3px;
}
.order-icon.bag::after {
  left: 9px;
  top: 3px;
  width: 10px;
  height: 8px;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.order-icon.truck::before {
  left: 2px;
  top: 8px;
  width: 15px;
  height: 13px;
  border-radius: 3px;
}
.order-icon.truck::after {
  right: 2px;
  top: 11px;
  width: 11px;
  height: 10px;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  box-shadow: -12px 9px 0 -5px #1d2939, 0 9px 0 -5px #1d2939;
}
.order-icon.message::before {
  left: 3px;
  top: 6px;
  width: 22px;
  height: 17px;
  border-radius: 4px;
}
.order-icon.message::after {
  left: 9px;
  top: 14px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: #1d2939;
  box-shadow: 6px 0 #1d2939, 12px 0 #1d2939;
}
.order-icon.refund::before {
  left: 4px;
  top: 4px;
  width: 20px;
  height: 21px;
  border-radius: 3px;
}
.order-icon.refund::after {
  left: 10px;
  top: 7px;
  width: 8px;
  height: 14px;
  border: 0;
  content: "\00a5";
  color: #1d2939;
  font-size: 17px;
  font-weight: 900;
  line-height: 14px;
}
.orders-page {
  min-height: calc(100vh - 66px);
  padding: 12px 14px 92px;
  background: #f5f5f5;
}
.order-search {
  height: 42px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 0 14px;
  border-radius: 22px;
  background: #ececec;
  color: #98a2b3;
}
.order-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.order-search input::placeholder {
  color: #98a2b3;
}
.search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid #667085;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #667085;
  transform: rotate(45deg);
}
.order-tabs {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  min-height: 38px;
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar {
  display: none;
}
.order-tab {
  position: relative;
  min-height: 32px;
  color: #344054;
  font-size: 14px;
  white-space: nowrap;
}
.order-tab.active {
  color: var(--text);
  font-weight: 900;
}
.order-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateX(-50%);
}
.order-empty {
  min-height: 560px;
  display: grid;
  place-items: center;
}
.empty-box {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #98a2b3;
  text-align: center;
}
.empty-box p {
  margin: 0;
  font-size: 18px;
  color: #98a2b3;
}
.empty-cube {
  position: relative;
  width: 120px;
  height: 92px;
  opacity: .72;
}
.empty-cube::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  width: 68px;
  height: 48px;
  background: linear-gradient(145deg, #e8ebf5, #f7f8fc);
  transform: skewY(-27deg) rotate(18deg);
  box-shadow: 0 28px 40px rgba(16,24,40,.08);
}
.empty-cube::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 48px;
  width: 42px;
  height: 12px;
  border-radius: 50%;
  background: #e9ebf4;
  box-shadow: -42px 20px 0 -9px #eef0f7, 48px 18px 0 -9px #eef0f7;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff;
  font-size: 13px;
}
.chip.active { border-color: var(--blue); background: var(--soft-blue); color: var(--blue); font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.tag.orange { background: var(--soft-orange); color: var(--orange); }
.tag.green { background: var(--soft-green); color: #0f766e; }
.tag.blue { background: var(--soft-blue); color: var(--blue); }
.tag.purple { background: var(--soft-purple); color: var(--purple); }
.price { color: #ff3b1f; font-size: 22px; font-weight: 1000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-grid {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: stretch;
}
.preview-thumb {
  min-height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f1f5f9);
  color: var(--text);
  text-align: center;
  font-weight: 1000;
  font-size: 14px;
  line-height: 1.35;
}
.preview-lines {
  display: grid;
  gap: 8px;
}
.preview-line {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.preview-line b {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.locked-preview {
  position: relative;
  overflow: hidden;
}
.locked-preview::after {
  content: "\9886\53d6\540e\67e5\770b\5b8c\6574\7248";
  position: absolute;
  inset: auto 12px 12px;
  border-radius: 12px;
  background: rgba(7, 17, 31, .86);
  color: #fff;
  padding: 9px 12px;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
}
.pdf-preview-stack {
  display: grid;
  gap: 16px;
}
.pdf-page {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px 22px;
  box-shadow: 0 14px 28px rgba(7,17,31,.08);
}
.pdf-page::before {
  content: "\5c0f\6ee1\8d44\6599\5e93  \9884\89c8\4f7f\7528";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-28deg);
  color: rgba(37, 99, 235, .13);
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: 0;
  pointer-events: none;
}
.pdf-page::after {
  content: "\9884\89c8\4f7f\7528";
  position: absolute;
  right: 14px;
  top: 14px;
  border: 1px solid rgba(37, 99, 235, .35);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(239, 246, 255, .92);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.pdf-page h3 {
  color: #1d4ed8;
  text-align: center;
  font-size: 17px;
}
.pdf-page h4 {
  margin: 20px 0 10px;
  text-align: center;
  font-size: 15px;
}
.pdf-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.pdf-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dotted #111827;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
}
.pdf-question {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #111827;
  font-size: 13px;
  line-height: 1.75;
}
.pdf-question b { display: block; margin-bottom: 5px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  padding: 0 15px;
  font-weight: 900;
}
.btn.secondary { background: #fff; color: var(--blue); }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.orange { border-color: var(--orange); background: var(--orange); }
.btn.full { width: 100%; }
.btn:disabled {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}
.contact-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 13px;
  align-items: center;
}
.section.is-focused {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 18px 44px rgba(15, 23, 42, 0.14);
}
.qr-box {
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(37,99,235,.08) 25%, transparent 25%),
    #fff;
  color: var(--blue);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}
.contact-info h3 { margin-bottom: 5px; }
.contact-info p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.contact-info strong { color: var(--text); }
.auth-page {
  background:
    linear-gradient(180deg, rgba(239,246,255,.92), rgba(246,248,251,0) 260px),
    var(--bg);
}
.auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 18px;
}
.auth-brand {
  margin-bottom: 22px;
}
.auth-brand .mark {
  background: var(--blue);
  color: white;
}
.auth-brand span {
  color: var(--muted);
}
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px 18px 18px;
  box-shadow: 0 16px 36px rgba(7, 17, 31, .08);
}
.auth-panel h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 28px;
}
.auth-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.wechat-btn {
  border-color: #16a34a;
  background: #16a34a;
}
.list { display: grid; gap: 12px; }
.compact-list { gap: 0; }
.row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.row-line:first-child { border-top: 0; padding-top: 0; }
.row-line:last-child { padding-bottom: 0; }
.row-line b { font-size: 14px; }
.row-line span {
  flex: 0 0 auto;
  max-width: 46%;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}
.my-overview-card {
  display: grid;
  gap: 0;
  padding: 0 16px;
  overflow: hidden;
}
.my-profile-row,
.my-assets-row {
  display: grid;
  gap: 11px;
  padding: 14px 0;
  color: var(--text);
}
.my-profile-row {
  border-bottom: 1px solid var(--line);
}
.my-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.my-row-head b {
  font-size: 15px;
}
.my-row-head em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.my-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.my-profile-tags span {
  max-width: 100%;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.my-assets-row {
  grid-template-columns: minmax(0, 1fr);
}
.my-asset-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.my-asset-metrics span {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e5efff;
  color: var(--muted);
  text-align: center;
}
.my-asset-metrics strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}
.my-asset-metrics small {
  font-size: 11px;
}
.profile-info-list .row-line {
  align-items: flex-start;
}
.profile-info-list .row-line span {
  flex: 1 1 auto;
  max-width: 68%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.status-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}
.status-box b { display: block; font-size: 15px; }
.check-list { display: grid; gap: 10px; margin: 12px 0; }
.check-item,
.claim-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.check-item b,
.claim-option b {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}
.check-item span,
.claim-option span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.check-item.done { border-color: #bbf7d0; background: #f0fdf4; }
.check-item.pending { border-color: #fed7aa; background: #fff7ed; }
.claim-option { align-items: flex-start; }
.claim-option .btn { flex: 0 0 auto; min-height: 36px; padding: 0 12px; font-size: 13px; }
.claim-option.active { border-color: #bbf7d0; background: #f0fdf4; }
.claim-option.purchase { border-color: #bfdbfe; background: #eff6ff; }
.claim-option.vip { border-color: #fed7aa; background: var(--soft-orange); }
.claim-option.download { border-color: #dbeafe; background: #fff; }
.product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}
.cover {
  position: relative;
  width: 58px;
  min-height: 64px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 6px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--blue);
}
.product h3 {
  display: -webkit-box;
  margin-bottom: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.product .summary {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.48;
}
.product .meta {
  max-height: 28px;
  overflow: hidden;
  margin: 0;
}
.product .tag {
  padding: 3px 7px;
  font-size: 11px;
}
.course-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.course-action-row .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.course-audience {
  margin-top: 12px;
}
.course-audience span {
  color: var(--muted);
  font-size: 13px;
}
.course-page .version-context-banner { display: none; }
.course-detail-intro {
  display: grid;
  gap: 10px;
  padding: 2px 2px 0;
}
.course-detail-summary {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.65;
}
.course-audience-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 10px;
}
.course-audience-line b {
  color: #101828;
  font-size: 13px;
  line-height: 1.55;
}
.course-audience-line span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.filters { display: grid; gap: 12px; }
.filter b { display: block; margin-bottom: 8px; font-size: 14px; }
.list-filter {
  display: grid;
  gap: 12px;
  box-shadow: none;
}
.library-category {
  display: grid;
  gap: 14px;
}
.library-classify {
  margin: 10px 16px 0;
  padding-top: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.library-phone .library-classify {
  height: auto;
  min-height: auto;
}
.library-classify > .section-head {
  display: none;
}
.library-classify-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 235px);
}
.library-phone .library-classify-body {
  height: auto;
  min-height: 620px;
  overflow: visible;
}
.library-side-tabs {
  position: sticky;
  top: 0;
  display: grid;
  align-self: stretch;
  background: #f3f5f8;
  border-right: 1px solid #e5e7eb;
}
.library-phone .library-side-tabs {
  position: static;
  height: auto;
  min-height: 620px;
  grid-template-rows: repeat(10, minmax(42px, auto));
  overflow: visible;
}
.library-grade-tab {
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  color: #475467;
  padding: 0 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.library-phone .library-grade-tab {
  min-height: 0;
  display: grid;
  place-items: center;
}
.library-grade-tab.active {
  position: relative;
  background: #fff;
  color: #101828;
  font-weight: 900;
}
.library-grade-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 4px;
  height: 22px;
  border-radius: 0 999px 999px 0;
  background: #38bdf8;
}
.library-category-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 16px 24px 20px;
  background: #fff;
}
.library-phone .library-category-panel {
  height: auto;
  min-height: 620px;
  overflow: visible;
  padding: 0 16px 14px;
}
.library-semester-tabs {
  flex: 0 0 54px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 30px;
  align-items: center;
  background: #fff;
}
.library-semester-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #344054;
  padding: 0 0 8px;
  font: inherit;
  font-size: 14px;
}
.library-semester-tabs button.active {
  color: #101828;
  font-weight: 900;
}
.library-semester-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #38bdf8;
  transform: translateX(-50%);
}
.library-subject-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 20px;
  column-gap: 12px;
  padding-top: 6px;
}
.library-subject-entry {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #344054;
  text-align: center;
}
.library-subject-entry span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf6ff 0%, #dceeff 100%);
  color: #2a7bd8;
  font-size: 23px;
  font-weight: 1000;
  border: 1px solid #d7e9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.library-subject-entry b {
  max-width: 100%;
  color: #101828;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}
.library-semester-stack {
  display: grid;
  gap: 28px;
  padding-top: 14px;
}
.library-semester-block {
  display: grid;
  gap: 8px;
}
.library-semester-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.library-semester-label::before,
.library-semester-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: #d7dee8;
}
.category-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #dbe3f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.category-empty b {
  color: #344054;
  font-size: 14px;
}
.select-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.select-field {
  display: grid;
  gap: 6px;
}
.select-field.wide {
  grid-column: 1 / -1;
}
.select-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.select-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
  font: inherit;
  font-weight: 800;
}
.select-field select option:disabled {
  color: #98a2b3;
  background: #f2f4f7;
}
.select-field select:focus,
.search-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, .12);
}
.result-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.inline-link {
  margin-left: 4px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.search-panel { display: grid; gap: 12px; }
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.search-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
}
.steps { display: grid; gap: 9px; }
.step {
  border-left: 3px solid var(--blue);
  padding: 4px 0 5px 11px;
}
.step b { display: block; }
.step span { color: var(--muted); font-size: 13px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  text-align: center;
  padding: 14px 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field:first-child { margin-top: 0; }
.field label { color: var(--muted); font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.field textarea {
  min-height: 76px;
  resize: vertical;
}
.print-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: var(--soft-orange);
  padding: 12px;
}
.print-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.print-option b,
.print-option em {
  display: block;
}
.print-option b {
  font-size: 14px;
}
.print-option em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}
.print-address {
  margin-top: 12px;
}
.total-line {
  color: var(--orange);
  font-weight: 1000;
}
.total-line span {
  color: var(--orange);
  font-size: 16px;
  font-weight: 1000;
}
.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.form-error {
  margin-top: 8px;
  color: #dc2626;
  font-weight: 800;
}
.advisor-actions { margin-top: 14px; }
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tab {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 4px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.tab.active { color: var(--blue); border-color: var(--blue); background: var(--soft-blue); font-weight: 900; }
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(430px, 100vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(52px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px 2px 9px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.bottom-nav a.active { color: var(--blue); font-weight: 900; }
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: min(430px, 100vw);
  margin: 0 auto;
  padding: 18px;
  background: rgba(7, 17, 31, .48);
}
.modal-mask.show { display: flex; }
.modal-panel {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(7, 17, 31, .22);
}
.modal-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.modal-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.free-code-box {
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
  color: #0f172a;
  padding: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}
.copy-code-button {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}
.existing-right-panel {
  padding: 20px;
}
.existing-right-panel h3 {
  margin-bottom: 6px;
}
.existing-right-panel p {
  margin-bottom: 14px;
  line-height: 1.55;
}
.existing-right-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.existing-right-card {
  display: grid;
  gap: 7px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 13px 14px;
}
.existing-right-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.existing-right-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
.existing-right-using {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  padding: 12px 14px;
}
.existing-right-using span {
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}
.existing-right-using b {
  min-width: 0;
  color: #14532d;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}
.existing-right-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.existing-right-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.existing-right-actions .btn {
  width: 100%;
  min-width: 0;
}
.pdf-preview-frame {
  width: 100%;
  box-sizing: border-box;
  max-height: 620px;
  min-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}
.pdf-preview-frame canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.pdf-fallback {
  display: grid;
  gap: 12px;
  padding: 22px;
  min-height: 220px;
  align-content: center;
  color: var(--muted);
}
.pdf-canvas-shell {
  width: 100%;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 8px;
}
.pdf-canvas-shell canvas {
  display: block;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  image-rendering: auto;
}
.pdf-inline-preview {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.real-pdf-page {
  display: grid;
  gap: 10px;
}
.real-pdf-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}
.real-pdf-page-head strong {
  font-size: 15px;
}
.real-pdf-page-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 999px;
  padding: 3px 8px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
}

.material-list-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 12px;
  align-items: stretch;
}
.material-list-card .result-info {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 124px;
}
.material-list-card h3 {
  margin: 2px 0 8px;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.35;
}
.material-thumb {
  position: relative;
  width: 92px;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.material-thumb-pdf-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}
.material-thumb canvas {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  min-height: 124px;
  background: #fff;
}
.material-thumb[data-pdf-preview] .paper-lines {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  z-index: 1;
}
.material-thumb.rendered .paper-lines { display: none; }
.material-thumb.preview-error canvas { display: none; }
.material-thumb.preview-error .paper-lines { display: none; }
.material-thumb img {
  display: block;
  width: 100%;
  height: 124px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.material-thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 28px;
  padding: 2px 4px;
  border-radius: 5px;
  background: #ff5a1f;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}
.material-thumb-fallback {
  display: grid;
  align-content: start;
  padding: 10px 8px;
}
.material-thumb-fallback b {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.25;
}
.paper-lines {
  display: grid;
  gap: 5px;
}
.paper-lines i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #dbeafe;
}
.paper-lines i:nth-child(2),
.paper-lines i:nth-child(5) { width: 72%; background: #fed7aa; }
.paper-lines i:nth-child(3) { width: 86%; }
.paper-lines i:nth-child(4) { width: 58%; background: #bbf7d0; }
.material-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 28px;
  overflow: hidden;
  margin: 0 0 10px;
}
.material-card-tags .tag {
  padding: 3px 7px;
  font-size: 11px;
}
.material-list-card .result-meta {
  align-self: end;
  margin-top: 8px;
}
.result-product.material-list-card .cover::before { display: none; }
.home-latest .list {
  padding-bottom: 16px;
}
@media (max-width: 380px) {
  .material-list-card { grid-template-columns: 82px minmax(0, 1fr); }
  .material-thumb { width: 82px; min-height: 112px; }
  .material-thumb canvas { min-height: 112px; }
  .material-thumb img { height: 112px; }
  .material-list-card .result-info { min-height: 112px; }
}
.rights-overview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.rights-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rights-stat-grid div {
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 8px;
  text-align: center;
}
.rights-stat-grid strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
}
.rights-stat-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.rights-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
}
.rights-summary-line.available { border-color: #bbf7d0; background: #f0fdf4; }
.rights-summary-line.used { border-color: #fed7aa; background: #fff7ed; }
.rights-summary-line b {
  color: #111827;
  font-size: 14px;
}
.rights-summary-line span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.rights-code-button {
  min-height: 28px;
  border: 1px solid #22c55e;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}
.rights-code-inline {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 145px;
}
.rights-code-inline strong {
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0;
}
.rights-code-inline .copy-code-button {
  width: auto;
  min-height: 28px;
  margin-top: 0;
  padding: 0 10px;
  border-color: #22c55e;
  color: #15803d;
}
.rights-detail-list {
  display: grid;
  gap: 9px;
}
.rights-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.rights-detail-item.active {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.rights-detail-item b,
.rights-empty-state b,
.rights-library-link b {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}
.rights-detail-item span,
.rights-detail-item small,
.rights-empty-state span,
.rights-library-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.rights-detail-item em {
  align-self: start;
  border-radius: 999px;
  background: #ecfdf3;
  padding: 4px 8px;
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.rights-empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 12px;
}
.rights-library-link {
  display: grid;
  gap: 3px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 12px;
}
#myRightsModal .modal-panel {
  max-height: min(76vh, 680px);
  overflow: auto;
}
#myRightsModal .action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#myRightsModal .action-row .btn {
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}
#myRightsModal #goMyOwnedFromRights {
  grid-column: 1 / -1;
}
.standard-my-page .version-context-banner {
  margin: 12px 16px 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
}
.standard-my-page .version-context-banner b {
  margin-bottom: 2px;
  font-size: 13px;
}
.standard-my-page .version-context-banner span {
  font-size: 12px;
  line-height: 1.45;
}
.standard-my-page .main {
  padding-top: 12px;
}
.standard-my-page .my-overview-card {
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.standard-my-page .my-profile-row {
  margin: 0 16px;
  padding: 16px 0 14px;
}
.standard-my-page .my-assets-row {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.standard-my-page .my-row-head b {
  font-size: 16px;
}
.standard-my-page .my-row-head em {
  border-radius: 999px;
  background: #eff6ff;
  padding: 4px 9px;
  color: var(--blue);
  font-size: 12px;
}
.standard-my-page .my-asset-metrics {
  gap: 10px;
}
.standard-my-page .my-asset-metrics span {
  min-height: 58px;
  border-color: #dbeafe;
  background: #fff;
}
.standard-my-page .my-asset-metrics strong {
  font-size: 20px;
}
.standard-my-page .my-entry-card {
  padding: 0;
  border: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.standard-my-page .my-entry-card .row-line {
  border-top: 0;
  padding: 16px;
}
.standard-my-page .my-entry-card .row-line[hidden] {
  display: none !important;
}
.standard-my-page .my-rights-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #fff;
}
.standard-my-page .my-rights-entry b {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}
.standard-my-page .my-rights-entry span {
  max-width: none;
  justify-self: end;
  border-radius: 999px;
  background: #f8fbff;
  padding: 5px 9px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.standard-my-page .my-entry-card::after {
  content: "闁哄被鍎冲﹢鍛般亹閹惧啿顤呴悹鎰剁畱瑜板潡宕ｉ婊勬殢闁哄鍟板▔顓㈠Υ娓氣偓椤ｎ偊宕ｉ弽顒€鐦遍柛銉︽綑閹蜂即宕楅幋鐐插簥閻犱焦婢樼紞?;
  display: block;
  margin: -8px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.standard-rights-list {
  display: grid;
  gap: 12px;
}
.standard-rights-intro {
  display: grid;
  gap: 4px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px 14px;
}
.standard-rights-intro b {
  color: #1e40af;
  font-size: 14px;
  line-height: 1.35;
}
.standard-rights-intro span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.standard-right-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.standard-right-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.standard-right-copy {
  min-width: 0;
}
.standard-right-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #eff6ff;
  padding: 0 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.standard-right-card h3 {
  margin: 7px 0 0;
  color: #101828;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.standard-right-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.standard-right-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.standard-right-chip-row span {
  border-radius: 999px;
  background: #f2f4f7;
  padding: 4px 8px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.standard-right-card .btn {
  width: auto;
  min-width: 92px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .standard-right-card-head {
    grid-template-columns: 1fr;
  }
  .standard-right-card .btn {
    justify-self: start;
  }
}

.owned-toolbar-section {
  margin-bottom: 0;
}
.owned-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
}
.owned-toolbar .tabs {
  min-width: 0;
}
.owned-search-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.owned-search-toggle.active {
  border-color: var(--blue);
  background: #eff6ff;
}
.owned-search-toggle .search-icon {
  width: 15px;
  height: 15px;
}
.owned-search-section {
  margin-top: 10px;
}
.owned-search-section[hidden] {
  display: none;
}
.owned-toolbar-section + .owned-search-section {
  margin-top: 10px;
}
.owned-search-section + .owned-section {
  margin-top: 18px;
}
.owned-search-box > .search-icon {
  display: none;
}
.owned-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  padding: 0 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.owned-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.owned-search-box input::placeholder {
  color: #98a2b3;
}
.owned-search-box button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.owned-search-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}
.owned-empty-card {
  border-style: dashed;
  background: #fff;
}
.rights-page .main {
  padding-top: 14px;
}
.rights-catalog-list {
  gap: 10px;
}
.rights-catalog-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  border-color: #e7ebf2;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.rights-catalog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--blue);
  padding: 5px;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
}
.rights-catalog-copy {
  min-width: 0;
}
.rights-catalog-copy h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.rights-catalog-copy .meta {
  max-height: 24px;
  margin: 0;
  overflow: hidden;
}
.rights-catalog-copy .tag {
  padding: 3px 7px;
  background: #f3f6fa;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}
.rights-catalog-action {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}
.rights-price {
  color: #f97316;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}
.rights-catalog-action .btn {
  min-height: 32px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .rights-catalog-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .rights-catalog-icon {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
  .rights-catalog-action {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
    align-items: center;
  }
}
.my-center-page .hero {
  padding-bottom: 24px;
}
.my-center-main {
  padding-top: 14px;
}
.my-learning-card {
  display: grid;
  gap: 14px;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.my-learning-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.my-learning-head b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}
.my-learning-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.my-learning-head em,
.my-order-card .my-row-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eff6ff;
  padding: 4px 9px;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.my-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.my-module-card {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.my-module-card b {
  color: #101828;
  font-size: 14px;
  line-height: 1.3;
}
.my-module-card span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.my-module-card small {
  max-width: 100%;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 3px 7px;
  color: #475467;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-module-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 11px;
  background: #eff6ff;
}
.my-module-icon::before,
.my-module-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.my-module-icon.profile::before {
  left: 10px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
.my-module-icon.profile::after {
  left: 7px;
  bottom: 6px;
  width: 18px;
  height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: var(--blue);
}
.my-module-icon.rights {
  background: #ecfdf3;
}
.my-module-icon.rights::before {
  left: 7px;
  top: 8px;
  width: 18px;
  height: 14px;
  border: 2px solid #16a34a;
  border-radius: 4px;
}
.my-module-icon.rights::after {
  left: 15px;
  top: 5px;
  width: 2px;
  height: 20px;
  background: #16a34a;
}
.my-module-icon.redeem {
  background: #fff7ed;
}
.my-module-icon.redeem::before {
  left: 7px;
  top: 9px;
  width: 18px;
  height: 14px;
  border: 2px solid #f97316;
  border-radius: 5px;
}
.my-module-icon.redeem::after {
  left: 10px;
  top: 15px;
  width: 12px;
  height: 2px;
  background: #f97316;
}
.my-module-icon.order {
  background: #f5f3ff;
}
.my-module-icon.order::before {
  left: 8px;
  top: 6px;
  width: 16px;
  height: 20px;
  border: 2px solid var(--purple);
  border-radius: 4px;
}
.my-module-icon.order::after {
  left: 12px;
  top: 12px;
  width: 8px;
  height: 2px;
  background: var(--purple);
  box-shadow: 0 5px 0 var(--purple);
}
.my-order-card {
  display: grid;
  gap: 14px;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.my-order-card .my-row-head {
  color: var(--text);
}
.my-order-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.my-order-status-grid a {
  min-width: 0;
  min-height: 66px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}
.my-order-status-grid .order-icon {
  width: 24px;
  height: 24px;
}
.orders-center-main .order-summary {
  padding: 16px;
}
.orders-center-main .order-status-grid {
  margin-top: 0;
}
@media (max-width: 380px) {
  .my-module-grid {
    gap: 7px;
  }
  .my-module-card {
    min-height: 94px;
    padding: 10px;
  }
  .my-order-status-grid {
    gap: 6px;
  }
  .my-order-status-grid a {
    font-size: 11px;
  }
}
.my-service-card {
  display: grid;
  gap: 0;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.my-service-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-top: 1px solid #eef2f7;
  color: var(--text);
}
.my-service-row:first-child {
  border-top: 0;
}
.my-service-row::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  transform: rotate(-45deg);
}
.my-service-row div {
  min-width: 0;
}
.my-service-row b {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.3;
}
.my-service-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.my-service-row small {
  max-width: 100%;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 3px 7px;
  color: #475467;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.redeem-history-card {
  border: 0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.redeem-record-list {
  display: grid;
  gap: 10px;
}
.redeem-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.redeem-record-item b,
.redeem-empty-state b {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.35;
}
.redeem-record-item span,
.redeem-record-item small,
.redeem-empty-state span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.redeem-record-item em {
  border-radius: 999px;
  background: #ecfdf3;
  padding: 4px 8px;
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.redeem-empty-state {
  display: grid;
  gap: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}
.redeem-empty-state .btn {
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

/* Rights detail validation */
.field select.field-error,
.field input.field-error {
  border-color: #ef4444;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}
.scope-note-error {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
}
/* Redeem success next steps */
.redeem-success-note {
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #047857;
  font-weight: 800;
}
.redeem-success-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.redeem-success-actions[hidden] {
  display: none;
}
.redeem-success-actions .btn {
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
#freeClaimOption { display: none !important; }

.existing-right-options {
  margin-top: 10px;
}
.existing-right-select-field {
  display: grid;
  gap: 6px;
}
.existing-right-select-field span {
  color: #526173;
  font-size: 12px;
}
.existing-right-select-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}
/* 20260625 library mobile comfort pass */
.library-phone .library-search-card {
  margin: 16px 14px 0;
  border-radius: 18px;
}
.library-phone .library-classify {
  margin: 12px 14px 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}
.library-phone .library-classify-body {
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 0;
  height: auto;
  overflow: hidden;
}
.library-phone .library-side-tabs {
  align-self: start;
  min-height: 0;
  max-height: min(430px, calc(100vh - 292px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  grid-template-rows: none;
  scrollbar-width: none;
}
.library-phone .library-side-tabs::-webkit-scrollbar {
  display: none;
}
.library-phone .library-grade-tab {
  min-height: 48px;
  padding: 0 6px;
  font-size: 13px;
}
.library-phone .library-grade-tab.active::before {
  top: 13px;
  height: 20px;
}
.library-phone .library-category-panel {
  min-height: 0;
  padding: 10px 14px 18px;
  gap: 12px;
}
.library-phone .library-semester-tabs {
  min-height: 38px;
  flex-basis: auto;
  gap: 26px;
  margin-bottom: 2px;
}
.library-phone .library-semester-tabs button {
  font-size: 14px;
  padding: 8px 0 9px;
}
.library-phone .library-subject-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  padding: 14px 0 2px;
}
.library-phone .library-subject-entry {
  gap: 7px;
  min-height: 72px;
}
.library-phone .library-subject-entry span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 24px;
}
.library-phone .library-subject-entry b {
  font-size: 13px;
}
@media (max-height: 720px) {
  .library-phone .library-side-tabs {
    max-height: min(380px, calc(100vh - 246px));
  }
  .library-phone .library-grade-tab {
    min-height: 44px;
  }
  .library-phone .library-subject-grid {
    gap: 14px 12px;
  }
}
/* 20260625 library semester stacked sections */
.library-phone .library-semester-stack {
  display: grid;
  gap: 18px;
}
.library-phone .library-semester-block {
  display: grid;
  gap: 10px;
}
.library-phone .library-semester-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 900;
}
/* 20260625 library visual balance pass */
.library-phone .library-main {
  padding-bottom: 104px;
}
.library-phone .library-classify {
  margin: 10px 12px 0;
  border-radius: 16px;
  border: 1px solid #e8edf4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}
.library-phone .library-classify-body {
  grid-template-columns: 82px minmax(0, 1fr);
  background: linear-gradient(90deg, #f6f8fb 0 82px, #fff 82px);
}
.library-phone .library-side-tabs {
  max-height: min(520px, calc(100vh - 238px));
  background: transparent;
  border-right: 1px solid #e9edf3;
}
.library-phone .library-grade-tab {
  min-height: 44px;
  justify-content: center;
  border-bottom: 1px solid #edf1f6;
  color: #596579;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}
.library-phone .library-grade-tab.active {
  background: #fff;
  color: #12315c;
  box-shadow: 0 1px 0 #eef2f7, 0 -1px 0 #eef2f7;
}
.library-phone .library-grade-tab.active::before {
  top: 50%;
  width: 3px;
  height: 18px;
  transform: translateY(-50%);
  background: #2f80ed;
}
.library-phone .library-category-panel {
  padding: 14px 14px 18px;
  background: #fff;
}
.library-phone .library-semester-stack {
  gap: 20px;
}
.library-phone .library-semester-block {
  gap: 12px;
}
.library-phone .library-semester-label {
  width: 100%;
  min-height: 28px;
  padding: 0;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}
.library-phone .library-semester-label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 8px;
  border-radius: 999px;
  background: #2f80ed;
}
.library-phone .library-semester-label::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 10px;
  background: #edf1f6;
}
.library-phone .library-subject-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 0;
}
.library-phone .library-subject-entry {
  min-height: 70px;
  padding: 8px 2px;
  gap: 6px;
  border-radius: 14px;
}
.library-phone .library-subject-entry:active {
  background: #f4f8ff;
}
.library-phone .library-subject-entry span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(180deg, #edf8ff, #e6f2ff);
  box-shadow: inset 0 0 0 1px #d8e8f6;
  color: #1d73be;
  font-size: 23px;
}
.library-phone .library-subject-entry b {
  color: #182230;
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 390px) {
  .library-phone .library-classify-body {
    grid-template-columns: 76px minmax(0, 1fr);
    background: linear-gradient(90deg, #f6f8fb 0 76px, #fff 76px);
  }
  .library-phone .library-grade-tab {
    font-size: 12px;
  }
  .library-phone .library-category-panel {
    padding: 12px 12px 16px;
  }
  .library-phone .library-subject-grid {
    gap: 12px 8px;
  }
  .library-phone .library-subject-entry span {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
/* 20260625 search result thumbnail loading */
.material-thumb[data-pdf-preview]:not(.rendered) canvas { display: none; }
.material-thumb[data-pdf-preview].rendered canvas { display: block; }
.material-thumb.preview-error .paper-lines { display: grid; }
.material-thumb.preview-error::after {
  content: "??";
  position: absolute;
  left: 8px;
  bottom: 28px;
  z-index: 2;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

/* 20260626 library sidebar background cleanup */
.library-phone .library-classify-body {
  background: #fff;
}
.library-phone .library-side-tabs {
  background: #f6f8fb;
  border-right: 1px solid #edf1f7;
}
.library-phone .library-category-panel {
  border-left: 0;
}
/* 20260626 library unified scroll */
.library-phone .library-classify-body {
  align-items: stretch;
  overflow: visible;
}
.library-phone .library-side-tabs {
  align-self: stretch;
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow: visible;
}
.library-phone .library-category-panel {
  min-height: 0;
}
@media (max-height: 720px) {
  .library-phone .library-side-tabs {
    max-height: none;
    overflow: visible;
  }
}