@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@500;600;700&family=IBM+Plex+Mono:wght@600&family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@600;700&family=ZCOOL+XiaoWei&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

:root {
  --font-stack: system-ui, -apple-system, 'SF Pro Text', 'PingFang SC', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --ctl-h: 44px;
  --radius: 10px;
  --pad-x: 12px;
  --pad-y: 10px;
  --lh: 1.4;
  --border-color: #e5e7eb;
  --border-strong: #cbd5f5;
  --text-color: #0f172a;
  --text-muted: #475569;
  --brand-primary: #2563eb;
  --brand-primary-strong: #1d4ed8;
  --brand-secondary: #0f172a;
  --brand-accent: #7c3aed;
  --success: #059669;
  --warning: #f97316;
  --danger: #d93025;
  --bg-soft: #f4f6fb;
  --bg-gradient: linear-gradient(180deg, #f4f6fb 0%, #eef2ff 60%, #fff 100%);
  --noise-on-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='4' cy='8' r='0.7' fill='white' opacity='0.05'/><circle cx='18' cy='14' r='0.6' fill='white' opacity='0.04'/><circle cx='32' cy='6' r='0.8' fill='white' opacity='0.05'/><circle cx='46' cy='20' r='0.7' fill='white' opacity='0.04'/><circle cx='56' cy='12' r='0.6' fill='white' opacity='0.05'/><circle cx='10' cy='30' r='0.7' fill='white' opacity='0.05'/><circle cx='26' cy='34' r='0.6' fill='white' opacity='0.04'/><circle cx='40' cy='32' r='0.8' fill='white' opacity='0.05'/><circle cx='52' cy='38' r='0.6' fill='white' opacity='0.04'/><circle cx='6' cy='50' r='0.7' fill='white' opacity='0.05'/><circle cx='24' cy='54' r='0.6' fill='white' opacity='0.04'/><circle cx='38' cy='48' r='0.7' fill='white' opacity='0.05'/><circle cx='54' cy='56' r='0.6' fill='white' opacity='0.04'/></svg>");
  --noise-on-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='4' cy='8' r='0.7' fill='black' opacity='0.04'/><circle cx='18' cy='14' r='0.6' fill='black' opacity='0.04'/><circle cx='32' cy='6' r='0.8' fill='black' opacity='0.04'/><circle cx='46' cy='20' r='0.7' fill='black' opacity='0.04'/><circle cx='56' cy='12' r='0.6' fill='black' opacity='0.04'/><circle cx='10' cy='30' r='0.7' fill='black' opacity='0.04'/><circle cx='26' cy='34' r='0.6' fill='black' opacity='0.04'/><circle cx='40' cy='32' r='0.8' fill='black' opacity='0.04'/><circle cx='52' cy='38' r='0.6' fill='black' opacity='0.04'/><circle cx='6' cy='50' r='0.7' fill='black' opacity='0.04'/><circle cx='24' cy='54' r='0.6' fill='black' opacity='0.04'/><circle cx='38' cy='48' r='0.7' fill='black' opacity='0.04'/><circle cx='54' cy='56' r='0.6' fill='black' opacity='0.04'/></svg>");
  background-color: var(--bg-soft);
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg-gradient);
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: var(--lh);
  color: var(--text-color);
  background: var(--bg-gradient);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page-with-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.global-footer {
  margin-top: auto;
  padding: 16px 20px 18px;
  text-align: center;
  font-size: 12px;
  color: #cbd5e1;
  border-top: 1px solid #0b1220;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.global-footer__wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.7;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.footer-info__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.footer-info__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.footer-info__label {
  color: #94a3b8;
  font-weight: 500;
}

.footer-info__value {
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
}

.footer-info__value:hover {
  color: #93c5fd;
}

.footer-action {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.footer-action:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-hairline {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 2px auto 0;
  width: min(920px, 100%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.global-footer .footer-divider {
  margin: 0 6px;
  color: #334155;
}

.global-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.global-footer a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .footer-info__row,
  .footer-links {
    gap: 6px;
  }

  .footer-info__item {
    white-space: normal;
    justify-content: center;
  }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.section-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), #4f46e5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.optional-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary);
}

.site-header {
  background: transparent;
  color: #fff;
  padding: 12px 0;
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
  z-index: 0;
  pointer-events: none;
}

.site-header .container {
  padding-bottom: 6px;
  max-width: 1220px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-content h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
}

.site-title a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  font-family: var(--font-stack);
  font-weight: 700;
  letter-spacing: 0;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.site-title a:hover {
  color: var(--brand-primary);
}

.site-title .title-en,
.site-title .title-dot,
.site-title .title-cn {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  position: relative;
  z-index: 3;
}

.main-nav a {
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  white-space: nowrap;
  font-size: clamp(0.94rem, 2.6vw, 1rem);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ctl-h);
  min-height: var(--ctl-h);
  padding: 0 var(--pad-x);
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-stack);
  background-clip: padding-box;
  appearance: none;
  -webkit-appearance: none;
}

.button.primary {
  background: var(--brand-primary);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--brand-primary);
}

.button.muted,
.button.ghost.muted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.button.muted:hover,
.button.ghost.muted:hover {
  transform: none;
  box-shadow: none;
}

.button.ghost.pale {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.12);
  color: var(--brand-primary);
}

.button.ghost.pale:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.22);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button.ghost.danger {
  background: transparent;
  border: 1px solid rgba(217, 48, 37, 0.4);
  color: var(--danger);
}

.site-header .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.user-pill__name {
  display: inline-block;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input,
select,
textarea,
button {
  font-family: var(--font-stack);
}

input:not([type='radio']):not([type='checkbox']):not([type='file']),
select,
textarea {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--pad-y) var(--pad-x);
  font-size: 1rem;
  width: 100%;
  min-height: var(--ctl-h);
  height: var(--ctl-h);
  line-height: var(--lh);
  display: block;
  background: #fff;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
}

textarea {
  height: auto;
  min-height: 140px;
  line-height: 1.5;
  padding: 12px var(--pad-x);
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b2;
  opacity: 0.65;
  line-height: 1.2;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.file-field {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--ctl-h);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0 var(--pad-x);
  background: #fff;
  overflow: hidden;
}

.file-field input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.file-field .file-trigger {
  font-weight: 600;
  margin-right: 12px;
  color: var(--brand-primary);
}

.file-field .file-name {
  flex: 1;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field .file-clear {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 6px;
  cursor: pointer;
}

.file-field .file-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.upload-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--brand-primary);
}

.upload-progress .upload-percent {
  min-width: 44px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

main {
  padding-top: 32px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: -24px;
}

.page-grid.admin-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  height: fit-content;
  border-right: 1px solid #e2e8f0;
  padding: 8px 0 12px;
}

.admin-sidebar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  padding-left: 6px;
  margin: 4px 0 12px;
  letter-spacing: 0.02em;
}

.admin-sidebar__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 14px;
}

.admin-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  position: relative;
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-sidebar__indicator {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
}

.admin-sidebar__item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 2px;
  height: 60%;
  background: currentColor;
  border-radius: 999px;
  transform: translateY(-50%) scaleY(0);
  opacity: 0.2;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-sidebar__text {
  line-height: 1.2;
}

.admin-sidebar__item:hover {
  background: rgba(15, 23, 42, 0.04);
  transform: translateX(1px);
}

.admin-sidebar__item.active {
  background: rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.admin-sidebar__item.active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 0.85;
}

.admin-sidebar__item.active .admin-sidebar__indicator {
  opacity: 0.9;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-grid .card:not(.admin-hero) {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
}

.admin-section {
  padding-left: 32px;
  background: #ffffff;
}

.admin-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 6px 6px 0;
  background: #cbd5e1;
  opacity: 0.9;
}

.admin-section .card-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  overflow: hidden;
}

.admin-hero::after {
  content: none;
}

.admin-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.admin-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
}

.admin-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #0f172a;
}

.admin-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-quick-title {
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.admin-quick-nav {
  margin-top: 10px;
}

.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.85rem;
}

.admin-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.admin-index__trigger {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.admin-index__trigger:hover {
  background: #f8fafc;
}

.admin-index {
  position: absolute;
  top: 46px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 260px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.admin-index__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #0f172a;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-index__link:hover {
  background: #eef2f7;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .admin-section {
    padding-left: 24px;
  }

  .admin-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-index {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 8px;
  }
}

.floating-sidebar {
  position: fixed;
  left: 24px;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 40;
  animation: floaty-bob 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.25));
}

.floating-sidebar__bubble {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid #f5f7fb;
  background: #0b0b0f;
  color: #0f172a;
  font-size: 1.2rem;
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.18),
    0 0 12px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bubble-pulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: visible;
  touch-action: none;
}

.floating-sidebar__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.floating-sidebar__hat {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-sidebar__bubble::before,
.floating-sidebar__bubble::after {
  display: none;
}

.floating-sidebar__bubble .floating-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floating-sidebar__bubble .floating-face::before {
  content: '';
  width: 6px;
  height: 16px;
  background: #f7f8fb;
  border-radius: 999px;
  box-shadow: 14px 0 0 #f7f8fb;
  position: relative;
  display: block;
  animation: eye-blink 5s ease-in-out infinite;
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  transition: transform 0.08s ease-out;
}

.floating-sidebar__bubble .floating-face::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  box-shadow: none;
}

.floating-sidebar__bubble::before,
.floating-sidebar__bubble::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  opacity: 0.75;
  animation: orbit-spin 8s linear infinite;
}

.floating-sidebar__bubble::after {
  inset: -14px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.25);
  animation-duration: 12s;
  animation-direction: reverse;
}

.floating-sidebar__panel {
  width: 300px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.98));
  color: var(--text-primary);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
  padding: 16px 20px 20px;
  transform-origin: top left;
  animation: panel-pop 220ms ease;
  max-height: 80vh;
  overflow: hidden;
}

.floating-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  cursor: grab;
  margin-bottom: 12px;
  color: #0f172a;
}

.floating-sidebar__header:active {
  cursor: grabbing;
}

.floating-sidebar__close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  font-size: 1.2rem;
  cursor: pointer;
  color: #0f172a;
  border-radius: 999px;
  padding: 4px 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.floating-sidebar.open .floating-sidebar__bubble {
  background: radial-gradient(circle at 40% 30%, #e0f2fe, #7dd3fc 45%, #2563eb 85%);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.35);
  transform: translateY(-2px) scale(1.03);
}

.floating-sidebar:not(.open) .floating-sidebar__panel {
  display: none;
}

@keyframes floaty-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bubble-pulse {
  0%, 100% { box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2), 0 0 20px rgba(78, 168, 255, 0.35); transform: scale(1); }
  50% { box-shadow: 0 16px 28px rgba(15, 23, 42, 0.28), 0 0 26px rgba(78, 168, 255, 0.45); transform: scale(1.05); }
}

@keyframes orbit-dot {
  0% { transform: translateX(-50%) rotate(0deg) translateY(0); opacity: 0.9; }
  50% { transform: translateX(-50%) rotate(180deg) translateY(4px); opacity: 0.6; }
  100% { transform: translateX(-50%) rotate(360deg) translateY(0); opacity: 0.9; }
}

@keyframes panel-pop {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes eye-blink {
  0%, 90%, 100% { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(1); }
  94% { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(0.2); }
  96% { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(0.05); }
}

.sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, 0.4) rgba(15, 23, 42, 0.05);
  scrollbar-gutter: stable both-edges;
}

.floating-sidebar .sidebar-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.floating-sidebar .sidebar-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
}

.floating-sidebar .sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.floating-sidebar .sidebar-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.sidebar-scroll-thumb:active {
  cursor: grabbing;
  transform: translateY(1px);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid #eef1f6;
  padding-top: 12px;
}

.sidebar-chat {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sidebar-chat__form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.sidebar-chat__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  background: #fff;
  color: var(--text-primary);
}

.sidebar-chat__input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.sidebar-chat__error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #dc2626;
}

.sidebar-ai-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-ai-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.sidebar-ai-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.sidebar-ai-title a {
  color: inherit;
  text-decoration: none;
}

.sidebar-ai-title a:hover {
  text-decoration: underline;
}

.sidebar-ai-meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-ai-price {
  font-weight: 600;
  color: #0f172a;
}

.sidebar-ai-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-ai-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 600;
}

.sidebar-ai-reason {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
}

.sidebar-ai-followups {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-ai-followup {
  border: 1px dashed rgba(37, 99, 235, 0.4);
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.sidebar-ai-followup:hover {
  background: #dbeafe;
}

.sidebar-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  position: relative;
}

.sidebar-section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc, #2563eb);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sidebar-meta {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.sidebar-username {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-roles span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e0f2fe;
  color: #0f172a;
}

.sidebar-muted {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sidebar-auth-actions {
  display: flex;
  gap: 10px;
}

.sidebar-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-note-list li {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-note-list li p {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.sidebar-note-list li span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-quick-nav__action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #e5edff 0%, #f5f7ff 100%);
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}

.sidebar-quick-nav__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.sidebar-quick-nav__action:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.sidebar-quick-nav__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(37, 99, 235, 0.14);
  font-size: 0.95rem;
}

.sidebar-quick-nav__label {
  flex: 1;
  text-align: left;
  font-size: 0.95rem;
}

.sidebar-quick-nav__chevron {
  font-size: 0.9rem;
  color: #1d4ed8;
}

.sidebar-link.subtle {
  display: inline-block;
  margin-top: 8px;
  color: #2563eb;
  font-size: 0.9rem;
  text-decoration: none;
}

.sidebar-link.subtle:hover {
  text-decoration: underline;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-list li {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.note-list li p {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.note-list li span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.payment-page {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.payment-card {
  max-width: 720px;
}

.payment-material-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 20px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
  justify-items: center;
}

.qr-grid.single {
  grid-template-columns: minmax(240px, 360px);
  justify-content: center;
  align-items: center;
}

.qr-block {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}

.qr-block--wide {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.qr-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 12px;
  background: #fff;
  padding: 8px;
}

.qr-image--large {
  max-width: 320px;
  border-radius: 16px;
}

.payment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

.pay-confirm-button {
  font-size: 1.05rem;
  padding: 14px 32px;
  min-width: 220px;
}

.user-note-tools {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-note-tools textarea {
  width: 100%;
  min-height: 70px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  font-family: inherit;
}

.user-note-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-note-list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.user-note-list li span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sidebar-stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-stat-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sidebar-stat-list strong {
  color: var(--text-primary);
}

.sidebar-stat-list.dense li {
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
  text-align: center;
}

.filter-quick-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.filter-quick-row .form-item {
  margin: 0;
}

.filter-quick-row label {
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-quick-row input,
.filter-quick-row select {
  min-height: 40px;
}

.filter-actions.quick {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.filter-keyword {
  min-width: 0;
}

.filter-keyword__input input {
  border-color: rgba(148, 163, 184, 0.4);
}

@media (max-width: 720px) {
  .filter-quick-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-actions.quick {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
  }

  .filter-quick-row .form-item {
    min-width: 0;
  }

  .filter-actions.quick .button {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    padding: 10px 6px;
    font-size: 0.9rem;
  }
  .site-header {
    padding: 10px 0;
  }

  .site-header .container {
    padding-bottom: 6px;
  }

  .container {
    padding: 0 14px 48px;
  }

  .header-content {
    padding-top: 2px;
  }

  .header-content h1 {
    font-size: 1.1rem;
  }

  .site-title a {
    gap: 4px;
  }

  .header-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .main-nav {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .auth-actions {
    justify-self: start;
  }

  .main-nav a {
    padding: 4px 6px;
    font-size: 0.9rem;
  }
}
.full-width {
  width: 100%;
  text-align: center;
}

.course-type-advanced .course-type-options {
  margin-top: 4px;
}

.material-like,
.material-emoji {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.material-like span[aria-hidden='true'],
.material-emoji span[aria-hidden='true'] {
  font-size: 1rem;
}

.material-emoji .material-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

@media (max-width: 1024px) {
  .floating-sidebar {
    position: static;
    left: auto;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

  .floating-sidebar__panel {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .floating-sidebar {
    position: fixed;
    left: 14px;
    top: 90px;
    gap: 8px;
    animation: none;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.25));
  }

  .floating-sidebar__bubble {
    width: 50px;
    height: 50px;
    border-width: 2px;
    box-shadow:
      0 8px 16px rgba(15, 23, 42, 0.2),
      0 0 10px rgba(0, 0, 0, 0.14);
  }

  .floating-sidebar__panel {
    width: calc(100vw - 24px);
    max-width: 400px;
    padding: 16px 18px 18px;
    max-height: 72vh;
  }

  .floating-sidebar .sidebar-body {
    max-height: 64vh;
  }
}

@media (max-width: 640px) {
  .floating-sidebar__bubble {
    touch-action: none;
    padding: 10px;
    margin: -10px;
  }
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.card.admin-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  overflow: hidden;
  position: relative;
}

.card.admin-hero .admin-hero__eyebrow,
.card.admin-hero .admin-meta-chip,
.card.admin-hero h1 {
  color: #0f172a;
}

.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 32px;
  padding: 32px;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  align-items: stretch;
}

.hero.hero-magazine {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: 18px;
  padding: 18px 22px;
  background-color: #000;
  background-image: var(--noise-on-dark),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='8' cy='12' r='1' fill='white' opacity='0.04'/><circle cx='22' cy='18' r='1' fill='white' opacity='0.03'/><circle cx='35' cy='8' r='1.2' fill='white' opacity='0.04'/><circle cx='48' cy='22' r='0.8' fill='white' opacity='0.03'/><circle cx='62' cy='14' r='1' fill='white' opacity='0.04'/><circle cx='12' cy='35' r='0.9' fill='white' opacity='0.035'/><circle cx='26' cy='42' r='1.1' fill='white' opacity='0.04'/><circle cx='40' cy='36' r='0.8' fill='white' opacity='0.03'/><circle cx='55' cy='38' r='1' fill='white' opacity='0.04'/><circle cx='70' cy='30' r='0.9' fill='white' opacity='0.035'/><circle cx='18' cy='60' r='1.1' fill='white' opacity='0.04'/><circle cx='33' cy='55' r='0.8' fill='white' opacity='0.03'/><circle cx='50' cy='60' r='1' fill='white' opacity='0.04'/><circle cx='66' cy='52' r='0.9' fill='white' opacity='0.035'/><circle cx='10' cy='72' r='0.8' fill='white' opacity='0.03'/><circle cx='28' cy='72' r='1' fill='white' opacity='0.04'/><circle cx='45' cy='70' r='0.9' fill='white' opacity='0.035'/><circle cx='62' cy='72' r='1.1' fill='white' opacity='0.04'/></svg>");
  background-repeat: repeat, repeat;
  background-size: 120px 120px, 160px 160px;
  color: #cbd5e1;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.36);
  box-shadow: 0 18px 30px rgba(3, 7, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  min-height: 200px;
  overflow: hidden;
  z-index: 1;
}

.theme-xmas {
  /* Hat tuning: adjust these to move/scale the hat without changing layout. */
  --hat-scale: 1.6;
  --hat-x: -62%;
  --hat-y: -90%;
  --hat-rot: -10deg;
  --hat-width: 110%;
  --hat-height: 74%;
}

.theme-xmas .xmas-snowfall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.theme-xmas .xmas-snowfall canvas {
  position: absolute;
  inset: 0;
}

.theme-xmas .hero-meteors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.theme-xmas .hero-meteor {
  position: absolute;
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(186, 255, 221, 0.25) 45%,
    rgba(210, 255, 238, 0.85) 85%,
    rgba(255, 255, 255, 1) 100%
  );
  opacity: 0;
  transform: rotate(32deg);
  filter: drop-shadow(0 0 5px rgba(120, 255, 200, 0.32));
  animation: hero-meteor 12s linear infinite;
}

.theme-xmas .hero-meteor::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(219, 255, 240, 0.9) 45%,
    rgba(219, 255, 240, 0.15) 70%,
    rgba(219, 255, 240, 0) 100%
  );
  box-shadow: 0 0 10px rgba(130, 255, 210, 0.45);
}

.theme-xmas .hero.hero-magazine .hero-copy,
.theme-xmas .hero.hero-magazine .hero-panel {
  position: relative;
  z-index: 2;
}

.theme-xmas .floating-sidebar__hat {
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--hat-width);
  height: var(--hat-height);
  transform: translate(calc(var(--hat-x) + 4.5px), calc(var(--hat-y) + 14.5px)) rotate(var(--hat-rot))
    scale(var(--hat-scale));
  transform-origin: 78% 90%;
  background: url('/xmas/hat-ref.svg') no-repeat 50% 0% / contain;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

@media (max-width: 720px) {
  .theme-xmas {
    --hat-scale: 1.5;
    --hat-x: -58%;
    --hat-y: -74%;
    --hat-rot: -9deg;
    --hat-width: 116%;
    --hat-height: 78%;
  }

  .theme-xmas .hero-meteor {
    width: 150px;
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 721px) {
  .theme-xmas .xmas-snowfall {
    display: none;
  }

  .theme-xmas .hero-meteors {
    display: none;
  }
}

@keyframes hero-meteor {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(32deg);
  }
  4% {
    opacity: 0.9;
  }
  16% {
    opacity: 0;
    transform: translate(280px, 220px) rotate(32deg);
  }
  100% {
    opacity: 0;
    transform: translate(280px, 220px) rotate(32deg);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-panel-slide {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes hero-title-wipe {
  from {
    opacity: 0;
    transform: translateY(10px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-kicker-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-stat-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-stat-sheen {
  0% {
    transform: translateX(-140%) skewX(-12deg);
    opacity: 0;
  }
  45% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(160%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes support-sheen {
  0% {
    transform: translateX(-140%) skewX(-12deg);
    opacity: 0;
  }
  35% {
    opacity: 0.35;
  }
  65% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(140%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes hero-panel-scan {
  from {
    transform: translateX(-80%);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  to {
    transform: translateX(220%);
    opacity: 0;
  }
}

.hero.hero-magazine::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 4px;
  background: #2a9d8f;
  box-shadow: 0 0 12px rgba(42, 157, 143, 0.55);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero.hero-magazine .hero-copy {
  justify-content: flex-start;
  gap: 10px;
}

.hero.hero-magazine .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a9d8f;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  animation: hero-fade-up 0.45s ease 0.05s both;
}

.hero.hero-magazine .hero-kicker::after {
  content: '';
  height: 1px;
  width: 26px;
  background: rgba(42, 157, 143, 0.8);
  transform-origin: left;
  animation: hero-kicker-line 0.6s ease 0.2s both;
}

.hero h2 {
  margin-top: 0;
}

.hero.hero-magazine h2 {
  margin: 8px 0 6px;
  font-size: 2.15rem;
  line-height: 1.05;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: hero-title-wipe 0.6s ease 0.1s both;
}

.hero.hero-magazine .hero-subtitle {
  margin: 0;
  color: #a9b4c2;
  font-size: 0.98rem;
  max-width: 34ch;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 500;
  animation: hero-fade-up 0.5s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero.hero-magazine .hero-actions {
  margin-top: 10px;
  animation: hero-fade-up 0.5s ease 0.3s both;
}

.hero-action-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero.hero-magazine .hero-action-buttons {
  gap: 10px;
}

.hero .button.primary {
  background: #fff;
  color: var(--brand-secondary);
  border: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.hero.hero-magazine .button.primary {
  background: #2a9d8f;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(3, 7, 18, 0.4);
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero.hero-magazine .button.ghost {
  border-color: rgba(241, 245, 249, 0.35);
  color: #cbd5e1;
  background: transparent;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
  align-content: stretch;
}

.hero.hero-magazine .hero-panel {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%),
    radial-gradient(circle at top left, rgba(42, 157, 143, 0.12), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 28px rgba(3, 7, 18, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  animation: hero-panel-slide 0.7s ease 0.2s both;
}

.hero.hero-magazine .hero-panel::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -40%;
  height: 2px;
  width: 40%;
  background: rgba(42, 157, 143, 0.75);
  animation: hero-panel-scan 3.6s ease-in-out 1.2s infinite;
}

.hero.hero-magazine .hero-panel-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.hero.hero-magazine .hero-panel-note {
  margin-top: 8px;
  font-size: 11px;
  color: #a9b4c2;
  text-align: right;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hero.hero-magazine .hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero.hero-magazine .hero-stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: #0f1827;
  border: 1px solid rgba(241, 245, 249, 0.12);
  animation: hero-stat-pop 0.5s ease both;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.hero.hero-magazine .hero-stat::before {
  content: '';
  position: absolute;
  inset: -45% -20%;
  background: radial-gradient(circle at 15% 20%, rgba(42, 157, 143, 0.22), transparent 60%);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.25s ease, transform 0.35s ease;
  pointer-events: none;
}

.hero.hero-magazine .hero-stat::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -140%;
  width: 60%;
  height: 160%;
  background: linear-gradient(120deg, transparent, rgba(226, 232, 240, 0.3), transparent);
  opacity: 0.2;
  transform: skewX(-12deg);
  pointer-events: none;
  animation: hero-stat-sheen 9s ease-in-out infinite;
}

.hero.hero-magazine .hero-stat:nth-child(1) {
  animation-delay: 0.32s;
}

.hero.hero-magazine .hero-stat:nth-child(2) {
  animation-delay: 0.4s;
}

.hero.hero-magazine .hero-stat:nth-child(3) {
  animation-delay: 0.48s;
}

.hero.hero-magazine .hero-stat:nth-child(4) {
  animation-delay: 0.56s;
}

.hero.hero-magazine .hero-stat:nth-child(1)::after {
  animation-delay: 0.8s;
}

.hero.hero-magazine .hero-stat:nth-child(2)::after {
  animation-delay: 1.6s;
}

.hero.hero-magazine .hero-stat:nth-child(3)::after {
  animation-delay: 2.4s;
}

.hero.hero-magazine .hero-stat:nth-child(4)::after {
  animation-delay: 3.2s;
}

.hero-stat span {
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero.hero-magazine .hero-stat span {
  text-transform: none;
  font-size: 11px;
  color: #a9b4c2;
  text-align: left;
  letter-spacing: 0;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transition: color 0.25s ease;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 6px;
  text-align: center;
  font-weight: 700;
}

.hero.hero-magazine .hero-stat strong {
  margin-top: 4px;
  font-size: 1.2rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  color: #f1f5f9;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.hero.hero-magazine .hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 157, 143, 0.55);
  box-shadow: 0 12px 18px rgba(3, 7, 18, 0.45), 0 0 0 1px rgba(42, 157, 143, 0.22);
}

.hero.hero-magazine .hero-stat:hover::before {
  opacity: 1;
  transform: scale(1);
}

.hero.hero-magazine .hero-stat:hover::after {
  opacity: 1;
  animation: hero-stat-sheen 0.8s ease;
}

.hero.hero-magazine .hero-stat:hover span {
  color: rgba(226, 232, 240, 0.92);
}

.hero.hero-magazine .hero-stat:hover strong {
  transform: translateY(-2px) scale(1.04);
  color: #e0f2f1;
  text-shadow: 0 8px 18px rgba(42, 157, 143, 0.38);
}

.support-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  min-height: 160px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.support-card p {
  margin: 8px 0;
}

.support-card > * {
  position: relative;
  z-index: 1;
}

.support-card .card-title {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.support-card .help-text {
  color: #475569;
  font-size: 0.98rem;
}

.support-card .button {
  white-space: nowrap;
}

.support-card::before,
.leaderboard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-on-light);
  background-repeat: repeat;
  background-size: 120px 120px;
  pointer-events: none;
  border-radius: inherit;
}

.support-card::before {
  opacity: 0.18;
}

.support-card::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(120deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  animation: support-sheen 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.support-card .button.primary {
  height: 52px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.support-card .button.primary:hover {
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.leaderboard-card::before {
  opacity: 0.3;
}
.modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1100;
}

.modal-card {
  position: relative;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
}

.support-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.support-modal .lazy-image-box {
  margin: 0 auto;
}

.support-modal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.wechat-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4);
}

.wechat-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  width: 100%;
  text-align: center;
}

.wechat-modal__hint {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: -4px;
  width: 100%;
  text-align: center;
}

.wechat-modal img {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.stable-version-mask {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.62);
}

.stable-version-modal {
  width: min(980px, 94vw);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
}

.stable-version-modal__media {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #f4f4f5, #e5e7eb);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.stable-version-modal__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.stable-version-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 34px 34px;
}

.stable-version-modal__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stable-version-modal__title {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  line-height: 1.15;
  color: #0f172a;
}

.stable-version-modal__inline-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.stable-version-modal__inline-link:hover {
  color: #2563eb;
}

.stable-version-modal__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #475569;
}

.stable-version-modal__text strong {
  color: #111111;
  font-weight: 700;
}

.stable-version-modal__meta {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.46);
}

.stable-version-modal__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.46);
}

.stable-version-modal__meta-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: #334155;
}

.stable-version-modal__meta-value,
.stable-version-modal__meta-link {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}

.stable-version-modal__meta-link:hover {
  color: #2563eb;
}

.stable-version-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.stable-version-modal__cta,
.stable-version-modal__stay {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
}

.stable-version-modal__actions .button.primary.stable-version-modal__cta {
  background: var(--brand-primary);
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.92);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.stable-version-modal__actions .button.secondary.stable-version-modal__stay {
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #111111;
  background: #ffffff;
}

.stable-version-modal__actions .button.primary.stable-version-modal__cta:hover,
.stable-version-modal__actions .button.secondary.stable-version-modal__stay:hover {
  transform: translateY(-1px);
}

.stable-version-modal__actions .button.primary.stable-version-modal__cta:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.stable-version-modal__actions .button.secondary.stable-version-modal__stay:hover {
  background: #f5f5f5;
}

.stable-version-modal__close {
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.16);
  transform: scale(1.04);
}

.modal-close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .modal-card {
    padding: 12px;
    border-radius: 14px;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 840px) {
  .stable-version-modal {
    padding: 0;
    width: min(560px, 94vw);
  }

  .stable-version-modal__media {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .stable-version-modal__content {
    padding: 24px 20px 24px;
  }

  .stable-version-modal__meta {
    grid-template-columns: 1fr;
  }

  .stable-version-modal__actions {
    align-items: stretch;
  }
}

.join-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.join-card__copy {
  max-width: 640px;
}

.join-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.join-page {
  max-width: 1100px;
  margin: 44px auto 56px;
}

.join-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.join-hero {
  display: none;
}

.join-sidebar {
  top: 24px;
}

.join-main {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.join-hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding: 26px 28px 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.join-hero-card .me-hero__eyebrow {
  margin-bottom: 0;
}

.join-hero-card .me-hero__title {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.82rem);
}

.join-hero-card .me-hero__meta {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.join-hero-card__meta {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.94rem;
}

.join-hero-card__meta span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.join-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
}

.join-section-head__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.join-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-panel-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.34);
}

.join-section-head--hero {
  gap: 4px;
}

.join-section-head h1,
.join-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 0.35vw + 1.3rem, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.join-hero-card__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.7), rgba(148, 163, 184, 0.18));
}

.join-info-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.join-info-row:first-child {
  padding-top: 2px;
  border-top: none;
}

.join-info-row--inline {
  gap: 4px;
}

.join-info-row--action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.join-info-row__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.join-info-row__label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-info-row__value {
  color: #0f172a;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}

.join-info-row__value--link:hover {
  color: #1d4ed8;
}

.join-inline-action {
  min-width: 124px;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
}

.join-inline-action:hover {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.join-inline-action--soft {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
}

.join-inline-action--dark {
  background: #0f172a;
  color: #f8fafc;
}

.join-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-grid {
  display: none;
}

.join-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.join-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-section-block--overview {
  gap: 18px;
}

.join-section-block--contact {
  gap: 12px;
}

.join-panel-card {
  padding: 24px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.join-channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 0;
  border-top: none;
}

.join-channel-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.join-panel__lead {
  margin: 0;
  max-width: 54ch;
  color: #475569;
  line-height: 1.88;
}

.join-channel-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.join-channel-layout__visual {
  align-items: center;
}

.join-engineering-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border-top: none;
}

.join-engineering-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.join-engineering-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.86rem;
  color: #64748b;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.36);
}

.join-engineering-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.join-engineering-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.join-engineering-link:hover {
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.92);
}

.join-engineering-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.join-engineering-status-item {
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.join-engineering-status-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #0f172a;
}

.join-engineering-status-item p {
  margin: 0;
}

.join-engineering-subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-engineering-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: #0f172a;
}

.join-engineering-module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.join-engineering-module-item {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
}

.join-engineering-module-item__id {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
}

.join-engineering-module-item h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: #0f172a;
}

.join-engineering-module-item p {
  margin: 0;
}

.join-engineering-stack-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.join-engineering-stack-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.join-engineering-stack-item:first-child {
  border-top: none;
}

.join-engineering-stack-item__id {
  color: rgba(15, 23, 42, 0.4);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-top: 3px;
}

.join-engineering-stack-item p {
  margin: 0;
}

.join-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
  border-top: none;
}

.join-summary-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.join-summary-item:first-child {
  padding-top: 0;
  border-top: none;
}

.join-summary-item__index {
  color: rgba(15, 23, 42, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.join-summary-item__body {
  min-width: 0;
}

.join-summary-item h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1rem;
}

.join-summary-item p {
  margin: 0;
}

.join-qr-box {
  width: min(292px, 72vw);
  height: 316px;
}

.engineering-page {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.engineering-hero {
  display: block;
  padding: 30px 32px;
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.engineering-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.engineering-hero__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.engineering-hero h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #0f172a;
}

.engineering-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.engineering-hero__meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 0.86rem;
}

.engineering-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.engineering-hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.engineering-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.engineering-panel {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.engineering-panel h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #0f172a;
}

.engineering-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.engineering-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engineering-section__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.engineering-section__eyebrow {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engineering-section__heading h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #0f172a;
}

.engineering-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.engineering-module-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.engineering-module-card__index {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(15, 23, 42, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.engineering-module-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.engineering-module-card p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.engineering-section--split {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.engineering-focus-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.engineering-focus-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.engineering-focus-item:first-child {
  border-top: none;
  padding-top: 0;
}

.engineering-focus-item__index {
  color: rgba(15, 23, 42, 0.3);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.engineering-focus-item p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

.markdown-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #0f172a;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
}

.markdown-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}

.markdown-body pre code {
  display: block;
  padding: 12px;
}

.join-card__code {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-primary-strong);
}

.wechat-card__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.wechat-card__hint {
  font-size: 0.9rem;
  color: #64748b;
}

.lazy-image-box {
  width: min(180px, 60vw);
  height: 220px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 16px;
  overflow: hidden;
}

.lazy-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lazy-image-box.qr-large {
  width: min(220px, 66vw);
  height: 260px;
}

.lazy-image-box.qr-medium {
  width: min(200px, 62vw);
  height: 220px;
}

.lazy-image-box.qr-small {
  width: min(180px, 60%);
  height: 200px;
}

.lazy-blur {
  filter: blur(14px);
  transform: scale(1.03);
  opacity: 0.85;
  transition: filter 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}

.lazy-blur.is-loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

.community-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-form .button {
  align-self: flex-start;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.skill-group strong {
  font-size: 0.95rem;
  color: var(--text-color);
}

.market-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: -6px;
}

.market-hero {
  grid-column: 1 / -1;
  width: 100%;
  align-self: stretch;
}

.market-notice {
  position: relative;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #94a3b8;
  color: #334155;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.market-notice::before {
  content: none;
}

.market-notice > * {
  position: relative;
  z-index: 1;
}

.market-notice h3 {
  margin-top: 0;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.market-notice p {
  margin-bottom: 0;
  color: #334155;
}

.market-hero h1 {
  margin: 8px 0 6px;
  font-size: 2.15rem;
  line-height: 1.05;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  animation: hero-title-wipe 0.6s ease 0.1s both;
}

.market-hero .hero-subtitle {
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.6vw + 0.4rem, 1rem);
  max-width: 100%;
}

.market-buy-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.market-buy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.market-buy-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-buy-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.market-buy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
}

.market-buy-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.market-buy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.market-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 240px;
}

.market-filters input,
.market-filters select {
  min-height: var(--ctl-h);
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  flex: 1;
  min-width: 180px;
  background: #fff;
}

.market-actions {
  display: flex;
  align-items: center;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.market-list-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.market-list-info {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.market-list-info h3 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
}

.market-list-info:hover h3 {
  color: var(--brand-primary);
}

.market-list-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.market-list-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.market-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-item-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-rows: auto 1fr;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.market-item-card:hover,
.market-list-row.market-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.market-item-card:active,
.market-list-row.market-card-clickable:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.market-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.market-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.market-item__placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.market-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}

.market-media-locked {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(226, 232, 240, 0.9), rgba(248, 250, 252, 1));
  color: #475569;
  position: relative;
  z-index: 3;
}

.market-media-locked__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.market-media-locked__text {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.market-title-cover {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  position: relative;
  z-index: 3;
}

.market-title-cover__tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.market-title-cover__title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-title-cover__meta {
  font-size: 12px;
  color: #64748b;
}

.market-title-cover--detail {
  min-height: 320px;
  justify-content: center;
  text-align: left;
  padding: 28px;
}

.market-title-cover--detail .market-title-cover__title {
  font-size: 1.45rem;
}

.market-card-media.has-lqip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.05);
  opacity: 0.9;
  z-index: 0;
}

.market-card-media.has-lqip picture,
.market-card-media.has-lqip img {
  position: relative;
  z-index: 1;
}

.market-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
  z-index: 2;
}

.market-item-card:hover img {
  transform: scale(1.04);
}

.market-card-clickable {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.market-item__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-item__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-item__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.18);
  white-space: nowrap;
}

.market-item__meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.market-item__meta .text-button {
  font-size: 12px;
}

.market-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.market-meta-line--detail {
  gap: 10px;
}

.market-meta-line--list {
  margin-top: 6px;
}

.market-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  color: #475569;
}

.market-meta-chip.ghost {
  background: #fff;
  border-style: dashed;
}

.market-meta-chip--stat {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  font-weight: 600;
}

.market-meta-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.market-meta-value {
  font-weight: 600;
  color: #0f172a;
}

.market-meta-chip .text-button.market-meta-link {
  font-size: 12px;
  color: #0f172a;
}

.market-item__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-item__price-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.market-item__want {
  font-weight: 600;
  color: #475569;
}

.market-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-want-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.market-want-toggle.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.18);
}

.market-want-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .market-item__title {
    font-size: 1.95rem;
  }

  .market-item__meta {
    font-size: 19px;
  }

  .market-meta-chip {
    font-size: 18px;
  }

  .market-item__price {
    font-size: 2.2rem;
  }

  .market-item__want {
    font-size: 19px;
  }
}

.market-detail-page {
  margin-top: -20px;
}

.market-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.market-detail__gallery {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.market-detail__info-head {
  grid-column: 2;
  grid-row: 1;
}

.market-detail__info-body {
  grid-column: 2;
  grid-row: 2;
}

.market-detail__gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-detail__gallery .gallery-grid .market-detail-media:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.market-detail__locked,
.market-detail__cover {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-detail__locked .market-media-locked,
.market-detail__cover .market-title-cover {
  width: 100%;
  border-radius: 16px;
}

.market-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f5f9;
}

.market-detail-media.has-lqip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.05);
  opacity: 0.9;
  z-index: 0;
}

.market-detail-media picture,
.market-detail-media img {
  position: relative;
  z-index: 1;
}

.market-detail-media picture {
  display: block;
}

.market-detail__gallery img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.market-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-gallery__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.16);
}

.market-gallery__main.is-loading img {
  opacity: 0;
}

.market-gallery__main.is-ready img {
  opacity: 1;
}

.market-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease;
}

.market-gallery__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(241, 245, 249, 0.92)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 56%);
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 1;
}

.market-gallery__main.has-lqip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.05);
  opacity: 0.9;
  z-index: 0;
}

.market-gallery__main.has-lqip picture,
.market-gallery__main.has-lqip img {
  position: relative;
  z-index: 1;
}

.market-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.market-gallery__arrow.left {
  left: 12px;
}

.market-gallery__arrow.right {
  right: 12px;
}

.market-gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.market-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.market-gallery__thumb {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
}

.market-gallery__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.market-gallery__thumb.is-active {
  border-color: rgba(15, 23, 42, 0.6);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.market-detail__info-head,
.market-detail__info-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-detail__category {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-detail__title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #0f172a;
}

.market-detail__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.market-detail__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.market-status-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.market-status-chip.status-sale {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.market-status-chip.status-sold {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.market-status-chip.status-removed {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.market-detail__desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
}

.contact-panel {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.contact-copy {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-success {
  background: #bbf7d0;
  color: #166534;
}

.badge-ghost {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 960px), (max-device-width: 960px) {
  .market-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .market-detail__info-head {
    order: 1;
  }

  .market-detail__gallery {
    order: 2;
  }

  .market-detail__info-body {
    order: 3;
  }

  .market-detail__gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-detail__gallery .gallery-grid .market-detail-media:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .market-gallery__main {
    aspect-ratio: 4 / 5;
  }

  .market-gallery__thumb {
    width: 60px;
    height: 46px;
  }
}

.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.materials-list.list-view {
  gap: 0;
}

.materials-list:not(.materials-grid) li {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.materials-list:not(.materials-grid) li:last-child {
  border-bottom: none;
}

.recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.recommend-item {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-item a {
  font-weight: 600;
  color: #0f172a;
}

.recommend-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
}

.recommend-item a:hover {
  color: var(--brand-primary);
}

.recommend-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.recommend-meta__school {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-meta__downloads {
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.materials-grid .material-card {
  height: 100%;
}

.materials-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.materials-header__actions .selection-tools {
  margin-right: auto;
}

.materials-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  text-align: center;
}

.pagination-summary {
  margin: 0;
  font-size: 0.95rem;
  color: #556477;
}

.pagination-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-button {
  border: 1px solid rgba(30, 144, 255, 0.4);
  background: transparent;
  color: #5c6c80;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 52px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.pagination-button.active {
  background: #1e90ff;
  border-color: #1e90ff;
  color: #fff;
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.45);
}

.pagination-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-button:not(.active):not(:disabled):hover {
  background: rgba(30, 144, 255, 0.08);
  border-color: #63b3ff;
  color: #27496d;
}

.pagination-button:focus-visible {
  outline: 2px solid #63b3ff;
  outline-offset: 2px;
}

.pagination-ellipsis {
  color: #94a3b8;
  padding: 6px 4px;
  font-weight: 600;
}

.materials-pagination .error-text,
.materials-pagination .help-text {
  margin: 0;
}

.materials-pagination .error-text {
  color: #f87171;
}

.materials-pagination .help-text {
  color: #a5b4fc;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.view-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.view-toggle button.active {
  background: var(--brand-primary);
  color: #fff;
}

.material-card {
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.material-card--experience {
  background: #fcfdff;
}

.material-card.material-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.material-card.material-card-clickable:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.material-card.selectable {
  padding-left: 48px;
}


.materials-list.list-view .material-card.selectable {
  padding-left: 0;
}

.material-card.selected {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.materials-list.list-view .material-card.list-variant {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.materials-list.list-view .material-card__selector {
  position: static;
  margin-left: 6px;
  margin-right: 12px;
}

.material-list-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.material-card.list-variant.draggable-row {
  cursor: grab;
}

.material-card.list-variant.dragging {
  opacity: 0.7;
}

.material-card.list-variant.drop-target {
  background: #f1f5f9;
}

.drag-handle {
  color: #cbd5e1;
  font-size: 1.1rem;
  padding: 0 6px 0 0;
  cursor: grab;
  user-select: none;
}

.drag-handle:hover {
  color: #475569;
}

.material-list-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.material-list-link h3 {
  margin: 0;
  font-size: 1.05rem;
}

.material-list-link:hover h3 {
  color: var(--brand-primary);
}

.material-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1;
}

.material-card.list-variant .material-tags {
  gap: 6px;
  flex-wrap: wrap;
}

.material-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.reorder-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reorder-actions .text-button {
  padding: 0;
}

.text-button {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.92rem;
  cursor: pointer;
  font-weight: 600;
  color: inherit;
  transition: color 0.2s ease;
}

.text-button:hover {
  color: #2563eb;
}

.text-button.danger {
  color: var(--danger);
}

.material-card__selector {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5f5;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.material-card__selector span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: transparent;
}

.material-card__selector.checked {
  border-color: #2563eb;
  background: #2563eb;
}

.material-card__selector.checked span {
  background: #fff;
}

.material-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.material-card__header h3 {
  margin: 0 0 4px 0;
}

.material-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.material-title-prefix {
  font-size: 0.72rem;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.material-reading-tag {
  font-size: 0.74rem;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.material-card__header > div {
  flex: 1;
}

.material-card__header .price-tag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.material-card__admin {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.breadcrumb {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.material-desc {
  color: #475569;
  margin: 0;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selection-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.batch-action-bar {
  position: sticky;
  bottom: 24px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  margin-top: 16px;
}

.batch-action-bar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-action-bar strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.batch-action-bar .status-text {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
}

.batch-action-bar .status-text.success {
  color: #86efac;
}

.batch-action-bar .status-text.error {
  color: #fca5a5;
}

.batch-action-bar .status-text.muted {
  color: rgba(148, 163, 184, 0.8);
}

.batch-messages {
  margin: 16px 0;
}

.batch-results {
  grid-column: 1 / -1;
}

.batch-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-result-list li:last-child {
  border-bottom: none;
}

.netdisk-card {
  border-left: 4px solid #2563eb;
}

.delivery-toggle .choice-pill {
  cursor: pointer;
}

.delivery-toggle .choice-pill input {
  display: none;
}

.delivery-toggle .choice-pill span {
  font-weight: 600;
}

.material-meta,
.material-stats {
  color: #64748b;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.material-stats__rating {
  margin-top: 8px;
}

.material-stats__actions {
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.materials-grid .material-stats__rating {
  margin-top: auto;
  justify-content: flex-start;
}

.materials-grid .material-stats__actions {
  margin-top: 6px;
  justify-content: flex-start;
}

.material-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.material-card__cta:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.material-list-meta .material-card__cta {
  margin-top: 6px;
}

.reorder-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  margin: 12px 0 4px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.reorder-hint strong {
  color: #0f172a;
}

.reorder-hint .status-text {
  font-size: 0.9rem;
}

.reorder-hint .status-text.success {
  color: #16a34a;
}

.reorder-hint .status-text.error {
  color: #dc2626;
}

.reorder-hint .status-text.muted {
  color: #475569;
}

.material-meta.small {
  font-size: 0.82rem;
  color: #94a3b8;
}

.me-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7edff 0%, #f6f8ff 100%);
  color: #0f172a;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  cursor: pointer;
  justify-content: space-between;
  flex: 1 1 160px;
  min-width: 160px;
}

.pill-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.pill-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}

.pill-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 12px rgba(37, 99, 235, 0.16);
  font-size: 0.95rem;
}

.pill-label {
  white-space: nowrap;
  font-size: 0.96rem;
}

.pill-chevron {
  font-size: 0.9rem;
  color: #1d4ed8;
}

@media (max-width: 640px) {
  main.container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .materials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .materials-header__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .materials-pagination {
    justify-content: flex-start;
  }

  .material-card {
    padding: 16px;
    gap: 10px;
  }

  .material-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .selection-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .batch-action-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    bottom: 12px;
  }
}


.material-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.material-like span[aria-hidden='true'] {
  font-size: 1rem;
}

.price-tag {
  font-weight: 700;
  color: #2563eb;
}

.price-tag.free {
  color: #059669;
}

.badge-outline {
  border: 1px solid #cbd5f5;
  background: transparent;
  color: #1d4ed8;
}

.filter-card {
  grid-column: 1 / -1;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}


.home-dual-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-dual-panel .card {
  height: 520px;
  min-height: 520px;
}

.home-dual-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.home-page .card:not(.hero) {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-page .card:not(.hero)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.home-page {
  margin-top: -6px;
}


.home-page .card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.home-page .card-title::before {
  content: '';
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a9d8f, #1f7a6f);
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.18);
}

.title-icon {
  width: 1.05em;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: -0.15em;
  color: currentColor;
}

.home-dual-panel .filter-card {
  grid-column: auto;
}

.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.request-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.request-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-card .request-header-actions .button.primary,
.recommend-card .request-header-actions .button.primary {
  background: #2a9d8f;
  box-shadow: 0 10px 18px rgba(42, 157, 143, 0.24);
}

.request-card .request-header-actions .button.primary:hover,
.recommend-card .request-header-actions .button.primary:hover {
  background: #23897d;
  box-shadow: 0 14px 24px rgba(42, 157, 143, 0.32);
}


.request-sort {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.request-sort button {
  border: none;
  background: transparent;
  color: #475569;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.request-sort button.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.request-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.request-anon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.request-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.request-list-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.request-leaderboard {
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  padding-top: 12px;
  margin-top: 6px;
}

.request-leaderboard__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.request-leaderboard__hint {
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
  font-size: 0.82rem;
}

.request-leaderboard__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.request-leaderboard__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.request-leaderboard__item a {
  color: #0f172a;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-leaderboard__item a:hover {
  text-decoration: underline;
}

.request-leaderboard__rank {
  font-weight: 700;
  color: #2563eb;
}

.request-leaderboard__amount {
  font-weight: 600;
  color: #b45309;
}

.request-item {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.request-item:last-child {
  border-bottom: none;
}

.request-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  border-color: rgba(42, 157, 143, 0.35);
}

.request-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-title a {
  color: inherit;
  text-decoration: none;
}

.request-title a:hover {
  text-decoration: underline;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.request-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.request-footer__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-weight: 600;
}

.request-footer__budget {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}

.request-footer__status {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.18);
}

.request-footer__responses {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.request-footer__funded {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
}

.request-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.request-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.request-message textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  background: #ffffff;
  resize: vertical;
}

.request-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.request-responses {
  padding: 8px 0 0;
}

.request-response-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-response-list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
}

.request-response-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #0f172a;
}

.request-response-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.request-response-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.request-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.request-preview img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.request-follow-group {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.request-follow-group .help-text {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.request-detail-card h2 {
  margin: 0;
}

.request-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.request-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 8px;
}

.request-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.request-preview-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: #1f2937;
  font-size: 0.92rem;
  margin-top: 8px;
}

.request-preview-rule strong {
  color: #0f172a;
}

.request-detail-tags span {
  background: #f1f5f9;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.request-detail-body {
  margin-top: 16px;
  line-height: 1.7;
  color: #0f172a;
}

.request-detail-responses {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.filter-header .filter-hint {
  font-size: 0.85rem;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.filter-card .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.filter-card .help-text {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-form.compact .filter-section {
  margin-top: 0;
  padding-top: 8px;
  gap: 12px;
}

.filter-form.compact .filter-section + .filter-section {
  margin-top: 12px;
  padding-top: 12px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-section + .filter-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
}

.filter-controls .form-item {
  flex: 1 1 220px;
  margin: 0;
}

.course-type-options.compact {
  flex-wrap: wrap;
  gap: 10px;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-actions.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.filter-actions.compact .button.primary {
  min-width: 120px;
}

.filter-actions.compact .button.ghost {
  border-color: rgba(15, 23, 42, 0.2);
}

.filter-advanced {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  background: #fff;
}

.filter-advanced.open {
  display: block;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.form-actions .button {
  min-width: 220px;
  height: 48px;
  font-size: 1.05rem;
  font-weight: 600;
}

.form-item label {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 500;
}

.identity-help-link {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: help;
}

.identity-help-link:hover {
  color: var(--brand-primary);
}

.policy-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0 4px;
  color: #2563eb;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.policy-link:hover {
  color: #1d4ed8;
}

.login-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-link:hover {
  color: #1d4ed8;
}

.policy-modal {
  width: min(780px, 94vw);
  padding: 24px;
}

.policy-modal h2 {
  margin: 8px 0 12px;
}

.policy-modal h3 {
  margin: 16px 0 10px;
}

.policy-modal h4 {
  margin: 12px 0 8px;
}

.policy-modal ol,
.policy-modal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.policy-modal li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.button-icon svg {
  width: 16px;
  height: 16px;
}

.form-item.full {
  grid-column: 1 / -1;
}

.filter-card .form-item.full {
  grid-column: 1 / -1;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-group.wrap {
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form input {
  flex: 1;
  min-width: 220px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: normal;
}

.choice.select select {
  min-width: 160px;
}

.choice.agreement {
  align-items: flex-start;
  line-height: 1.5;
}

.choice.agreement span {
  flex: 1;
}

.help-text {
  color: #64748b;
  font-size: 0.9rem;
  writing-mode: horizontal-tb;
  word-break: break-word;
}

.filter-card .help-text {
  margin-top: 12px;
}

.course-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-type-options.stacked {
  flex-direction: column;
}

.choice-pill {
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #f8fafc;
  color: #1d4ed8;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice-pill.course {
  border-radius: 16px;
  padding: 14px 18px;
  align-items: flex-start;
  flex: 1 1 220px;
}

.choice-pill input {
  display: none;
}

.choice-pill.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.choice-pill strong {
  display: block;
  margin-bottom: 2px;
}

.choice-pill small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.85;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-actions__controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-actions .button {
  align-self: flex-start;
}

@media (min-width: 768px) {
  .filter-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .filter-actions__controls {
    flex: 1;
  }

  .course-type-options.stacked {
    flex-direction: row;
  }
}

.materials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.button.small {
  height: var(--ctl-h);
  padding: 0 calc(var(--pad-x) + 2px);
  font-size: 0.92rem;
}

.qq-banner {
  grid-column: 1 / -1;
  background: #e0f2fe;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qq-banner button {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  max-width: 1240px;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.detail-container > .card {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.detail-container .experience-post {
  width: 100%;
  max-width: 100%;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-hero--experience {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px 22px;
  background: #ffffff;
}

.detail-main {
  min-width: 0;
}

.experience-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
  position: relative;
  padding-right: 250px;
}

.experience-hero__top-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.experience-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.experience-hero__section {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.experience-hero__divider {
  width: 20px;
  height: 1px;
  background: rgba(15, 23, 42, 0.18);
}

.experience-hero__channel {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
}

.experience-hero__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  max-width: 760px;
}

.experience-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.experience-hero__fact {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.86rem;
}

.experience-hero__fact--author {
  color: #334155;
  font-weight: 600;
}

.experience-hero__fact-link {
  margin-left: 4px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.experience-hero__fact-link:hover {
  color: #1d4ed8;
}

.experience-hero__fact + .experience-hero__fact::before {
  content: '·';
  margin-right: 14px;
  color: rgba(100, 116, 139, 0.6);
}

.experience-hero__copyright {
  margin: -2px 0 0;
}

.material-tags--experience {
  margin-top: -2px;
}

.detail-hero h1 {
  margin: 0 0 6px;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.detail-hero .material-desc {
  margin-top: 10px;
  line-height: 1.65;
}

.detail-hero .material-tags {
  margin-top: 10px;
}

.detail-share {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-share__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.detail-share__pill:hover {
  border-color: rgba(30, 144, 255, 0.35);
  color: #1d4ed8;
}

.detail-share__pill.like.is-active {
  border-color: rgba(244, 63, 94, 0.35);
  color: #e11d48;
  background: #fff1f2;
}

.detail-share__pill.report {
  color: #475569;
}

.detail-share__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.detail-share__count {
  font-weight: 600;
}

.detail-price-card {
  min-width: 260px;
  background: linear-gradient(160deg, #0f172a 0%, #0b1324 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.35);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-price-card.detail-action-card {
  gap: 12px;
}

.detail-price-card.detail-action-card .button {
  justify-content: center;
}

.experience-hero__inline-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.experience-hero__inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.84rem;
}

.experience-hero__inline-stat svg {
  width: 16px;
  height: 16px;
  color: #475569;
  flex: 0 0 auto;
}

.experience-hero__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.experience-hero__toolbar .button.ghost.small {
  min-height: 34px;
  padding-inline: 13px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  font-size: 0.84rem;
}

.experience-hero__toolbar .button.ghost.small:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
}

.experience-hero__toolbar-minor {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 2px;
}

.experience-hero__toolbar-minor .text-button {
  color: #64748b;
  font-size: 0.84rem;
}

.experience-hero__toolbar-minor .text-button:hover {
  color: #0f172a;
}

.detail-price-card .material-meta,
.detail-price-card .help-text {
  color: #cbd5e1;
}

.price-tag.detail {
  font-size: 2rem;
  color: #fbbf24;
}

.material-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-preview__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.material-preview__header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.material-preview__toggle {
  white-space: nowrap;
}

.material-preview__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.material-preview__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.material-preview__page {
  width: min(720px, 100%);
  position: relative;
  overflow: hidden;
}

.material-preview__page picture,
.material-preview__page img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.material-preview__page.has-lqip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.05);
  opacity: 0.9;
  border-radius: 12px;
  z-index: 0;
}

.material-preview__page.has-lqip picture,
.material-preview__page.has-lqip img {
  position: relative;
  z-index: 1;
}

.material-preview__label {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.material-preview__locked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}

.material-preview__collapsed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: #f8fafc;
  color: var(--text-muted);
}

.material-preview__collapsed-btn {
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  appearance: none;
}

.material-preview__collapsed-btn:hover {
  border-color: rgba(30, 144, 255, 0.35);
  background: rgba(30, 144, 255, 0.06);
  color: #2b3d55;
}

.material-preview__collapsed-btn:focus-visible {
  outline: 2px solid rgba(30, 144, 255, 0.35);
  outline-offset: 2px;
}

.material-preview__pagination {
  margin-top: 4px;
}

.material-custom-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.material-custom-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.material-custom-preview__header h3 {
  margin: 0;
  font-size: 1rem;
}

.material-custom-preview__hint {
  font-size: 0.85rem;
  color: #64748b;
}

.material-custom-preview__text {
  white-space: pre-wrap;
  color: #1f2937;
  line-height: 1.6;
  font-size: 0.95rem;
}

.material-custom-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.material-custom-preview__grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  object-fit: cover;
  background: #fff;
}

.experience-post {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.experience-post__carousel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-post__media-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.experience-post__media {
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  aspect-ratio: 16 / 8.5;
  box-shadow: none;
}

.experience-post__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  cursor: zoom-in;
}

.experience-image-modal {
  width: min(1180px, 96vw);
  max-height: min(90vh, 860px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.experience-image-modal__frame {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-image-modal__frame.is-loading img {
  opacity: 0;
}

.experience-image-modal__frame.is-ready img {
  opacity: 1;
}

.experience-image-modal img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 86px);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: opacity 0.24s ease;
}

.experience-image-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.44));
}

.experience-image-modal__meta {
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
}

.experience-image-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.experience-image-modal__arrow.left {
  left: 14px;
}

.experience-image-modal__arrow.right {
  right: 14px;
}

.experience-post__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  font-size: 0.95rem;
  text-align: center;
  padding: 16px;
}

.experience-post__login {
  border-color: rgba(148, 163, 184, 0.6);
  color: #e2e8f0;
}

.experience-post__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
}

.experience-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-post__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
}

.experience-post__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
  color: #334155;
  text-decoration: none;
  background: #fff;
}

.experience-post__chip:hover {
  border-color: rgba(30, 144, 255, 0.4);
  color: #1d4ed8;
}

.experience-post__text {
  line-height: 1.7;
  color: #0f172a;
}

.experience-attachment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.experience-attachment-card__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-attachment-card__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.experience-attachment-card__copy h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #0f172a;
}

.experience-attachment-card__copy p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.experience-attachment-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.experience-attachment-card__actions .button {
  justify-content: center;
}

.experience-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.experience-post__actions .button {
  padding: 6px 12px;
}

.custom-preview-existing {
  margin-top: 10px;
}

.custom-preview-existing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.custom-preview-existing__grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  object-fit: cover;
  background: #fff;
}

@media (max-width: 960px) {
  .engineering-status-grid,
  .engineering-module-grid {
    grid-template-columns: 1fr;
  }

  .engineering-hero {
    padding: 24px;
  }

  .engineering-hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .engineering-hero__actions {
    justify-content: flex-start;
  }

  .experience-post {
    padding: 14px;
  }

  .experience-post__media {
    aspect-ratio: 4 / 3;
  }

  .experience-attachment-card {
    grid-template-columns: 1fr;
  }

  .experience-hero__top-actions {
    position: static;
    justify-content: flex-start;
    margin-bottom: 4px;
    margin-left: 0;
  }

  .experience-hero__top-actions .button.ghost.small {
    width: auto;
    justify-content: center;
  }

  .experience-hero__toolbar-minor {
    margin-left: 0;
    justify-content: flex-start;
  }

  .experience-image-modal {
    width: min(96vw, 760px);
    padding: 8px;
  }

  .experience-image-modal__arrow {
    width: 34px;
    height: 34px;
  }

  .experience-image-modal__arrow.left {
    left: 10px;
  }

  .experience-image-modal__arrow.right {
    right: 10px;
  }
}

@media (max-width: 640px) {
  .detail-container {
    width: min(100%, calc(100% - 20px));
  }
}

@media (max-width: 640px) {
  .engineering-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .engineering-hero h1 {
    font-size: 2rem;
  }

  .engineering-panel,
  .engineering-module-card,
  .engineering-section--split {
    padding: 18px;
  }

  .engineering-focus-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-price-card {
    width: 100%;
  }
}

.version-list,
.review-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-list li,
.review-list li {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.me-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.me-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.me-sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0 8px 0;
  box-shadow: none;
  position: sticky;
  top: 24px;
  height: fit-content;
  border-right: 1px solid #e2e8f0;
}

.me-sidebar__brand {
  font-weight: 700;
  font-size: 0.94rem;
  color: #0f172a;
  margin: 4px 0 16px;
  padding-left: 6px;
  letter-spacing: 0.02em;
}

.me-sidebar__group + .me-sidebar__group {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.me-sidebar__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 12px 0 10px;
  padding-left: 6px;
  line-height: 1.4;
}

.me-sidebar__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 14px;
}

.me-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  position: relative;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.me-sidebar__indicator {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
}

.me-sidebar__item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 2px;
  height: 60%;
  background: currentColor;
  border-radius: 999px;
  transform: translateY(-50%) scaleY(0);
  opacity: 0.2;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.me-sidebar__text {
  line-height: 1.2;
}

.me-sidebar__item:hover {
  background: rgba(15, 23, 42, 0.04);
  transform: translateX(1px);
}

.me-sidebar__item.active {
  background: rgba(15, 23, 42, 0.08);
  border-color: transparent;
  font-weight: 700;
}

.me-sidebar__item.active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 0.85;
}

.me-sidebar__item.active .me-sidebar__indicator {
  opacity: 0.9;
}

.me-content {
  display: grid;
  gap: 24px;
}

.me-profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.me-profile__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.me-profile__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: #94a3b8;
}

.profile-card__section--follow .follow-list {
  margin-top: 8px;
}

.me-hero {
  position: relative;
  margin-top: 14px;
  padding: 28px 28px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.me-hero::after {
  content: none;
}

.me-hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.me-hero__intro {
  flex: 1 1 60%;
  min-width: 240px;
}

.me-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.me-hero__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-hero__title {
  margin: 0;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.me-hero__title-icon {
  width: 34px;
  height: 34px;
  color: #2563eb;
}

.me-hero__subtitle {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.98rem;
}

.me-hero__stats {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-width: 200px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(6px);
}

.me-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.me-hero__stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.me-hero__stat-label {
  font-size: 0.85rem;
  color: #64748b;
}

.me-hero__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.me-hero__nav-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.me-hero__nav-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.me-hero__nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.me-hero__nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.me-hero__nav-text {
  font-size: 0.95rem;
  font-weight: 700;
}

.me-hero__nav-arrow {
  font-size: 0.9rem;
  color: #64748b;
}

.me-hero__actions {
  margin-top: 14px;
}

.me-hero__meta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.84rem;
  color: #64748b;
}

.me-hero__meta strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .me-hero {
    padding: 22px 20px;
  }

  .me-hero__inner {
    flex-direction: column;
  }

  .me-hero__stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .me-hero__nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .me-hero__meta {
    font-size: 0.8rem;
  }
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
  }

  .admin-sidebar__items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-sidebar__item {
    padding: 8px 12px;
  }
  .me-layout {
    grid-template-columns: 1fr;
  }

  .me-sidebar {
    position: relative;
    top: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
  }

  .me-sidebar__items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .column-track-grid {
    grid-template-columns: 1fr;
  }
}

.me-grid .card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.me-grid .card::before {
  content: none;
}

.me-grid .card .card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 700;
}

.me-grid .card .card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: #94a3b8;
}

.column-page {
  margin: 36px auto 64px;
}

.column-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.column-sidebar {
  top: 92px;
  padding-top: 0;
  margin-top: 0;
}

.column-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.column-hero {
  margin-top: 0;
}

.column-hero__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.column-hero__icon {
  width: 24px;
  height: 24px;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.column-hero__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.column-hero__meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.column-section-card {
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.column-section-overline {
  margin: 0 0 6px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button.primary.column-submit-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(42, 157, 143, 0.65);
  background: #2a9d8f;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.button.primary.column-submit-button:hover {
  background: #2a9d8f;
  border-color: rgba(42, 157, 143, 0.65);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

#column-latest .materials-header {
  flex-wrap: nowrap;
  align-items: flex-start;
}

#column-latest .materials-header__actions {
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.column-latest-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  margin: 2px 0 16px;
}

.column-latest-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.column-latest-tab:hover {
  background: #eef2ff;
  color: #1e3a8a;
}

.column-latest-tab.active {
  background: #ffffff;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.column-pill-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid #e2e8f0;
}

.column-entry-group {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.column-entry-group__label {
  padding: 0 0 10px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.column-entry-split {
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0), rgba(226, 232, 240, 1), rgba(226, 232, 240, 0));
}

.column-pill {
  position: relative;
  width: 100%;
  appearance: none;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  min-height: 76px;
  padding: 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0f172a;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.column-pill::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.column-pill:hover {
  background: rgba(248, 250, 252, 0.72);
}

.column-pill.active {
  background: rgba(248, 251, 255, 0.96);
}

.column-pill.active::before {
  background: #2563eb;
}

.column-pill__index {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  min-width: 2.6rem;
}

.column-pill__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.column-pill__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 0;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.column-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.column-pill.is-open .column-pill__status {
  color: #1d4ed8;
}

.column-pill.is-open .column-pill__dot {
  background: #2563eb;
}

.column-pill__arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-left: auto;
  flex: 0 0 auto;
}

.column-pill__arrow svg {
  width: 14px;
  height: 14px;
}

.column-pill.active .column-pill__arrow {
  color: #1d4ed8;
}

.upload-hero__subtitle {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .column-pill {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-right: 4px;
  }

  .column-editorial-grid {
    grid-template-columns: 1fr;
  }

  .column-latest-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-radius: 14px;
    padding: 6px;
  }

  .column-latest-tab {
    width: 100%;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  #column-latest .materials-header {
    flex-wrap: wrap;
  }

  #column-latest .materials-header__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .column-article-card__eyebrow,
  .column-article-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .column-article-card__meta,
  .column-article-card__stats {
    justify-content: flex-start;
  }
}

.column-materials-grid {
  margin-top: 4px;
}

.column-article-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.column-article-list--skeleton .column-article-card__shell {
  overflow: hidden;
}

.column-article-card--skeleton .column-article-card__shell {
  min-height: 296px;
}

.column-skeleton-line,
.column-skeleton-chip {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.column-skeleton-line::after,
.column-skeleton-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  animation: column-skeleton-shimmer 1.15s ease-in-out infinite;
}

.column-skeleton-line {
  border-radius: 8px;
  height: 12px;
}

.column-skeleton-line.short {
  width: 28%;
}

.column-skeleton-line.title {
  margin-top: 4px;
  height: 20px;
  width: 74%;
}

.column-skeleton-line.text {
  margin-top: 4px;
  width: 92%;
}

.column-skeleton-line.text.wide {
  width: 82%;
}

.column-skeleton-tags {
  display: inline-flex;
  gap: 8px;
  margin-top: auto;
}

.column-skeleton-chip {
  border-radius: 999px;
  height: 24px;
}

.column-skeleton-chip.small {
  width: 56px;
}

.column-skeleton-chip:not(.small):not(.stat) {
  width: 88px;
}

.column-skeleton-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  display: inline-flex;
  gap: 8px;
}

.column-skeleton-chip.stat {
  width: 56px;
}

@keyframes column-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.column-article-card {
  min-width: 0;
}

.column-article-card__shell {
  position: relative;
  overflow: clip;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 18px;
  min-height: 296px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.column-article-card__shell > * {
  position: relative;
  z-index: 1;
}

.column-article-card__shell:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.column-article-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.column-article-card__section {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.column-article-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.column-article-card__meta-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.column-article-card__meta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #64748b;
  opacity: 1;
}

.column-article-card__title-link {
  color: inherit;
  text-decoration: none;
}

.column-article-card__title {
  margin: 0;
  color: #0b1220;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.02em;
  transition: color 0.18s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-article-card__title-link:hover .column-article-card__title {
  color: #0f172a;
}

.column-article-card__excerpt {
  margin: 0;
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.36em;
}

.column-article-card__excerpt-link {
  color: inherit;
  text-decoration: none;
}

.column-article-card__excerpt-link:hover .column-article-card__excerpt {
  color: #334155;
}

.column-article-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  padding-bottom: 0;
}

.column-article-card__publisher-line {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.column-article-card__topic {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 600;
}

.column-article-card__topic--soft {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.column-article-card__topic--count {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.column-article-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.column-article-card__author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.column-article-card__author--head {
  gap: 2px;
}

.column-article-card__author-label {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.column-article-card__author-link,
.column-article-card__author-name {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.column-article-card__author-link:hover {
  color: #1d4ed8;
}

.column-article-card__author-context {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-article-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #64748b;
  font-size: 0.82rem;
}

.column-article-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.column-article-card__metric-value {
  min-width: 2ch;
  text-align: right;
}

.column-article-card__metric-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.column-article-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.column-article-card__readmore-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.column-article-card__readmore:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.column-article-card__readmore:hover .column-article-card__readmore-icon {
  transform: translateX(2px);
}

.column-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.column-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.column-editorial-card {
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.column-editorial-card__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 700;
}

.column-editorial-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.04rem;
}

.column-editorial-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.column-coming-modal {
  width: min(460px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-coming-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.24rem;
}

.column-coming-modal p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.column-coming-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.column-track-card {
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.column-track-card.active {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.98));
}

.column-track-card__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.column-track-card.active .column-track-card__status {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.column-track-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.04rem;
}

.column-track-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.column-tag-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
}

.column-tag-panel__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
}

.column-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.column-tag-cloud__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
}

.column-tag-cloud__item em {
  font-style: normal;
  color: #94a3b8;
  font-weight: 700;
}

@keyframes profile-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  animation: profile-reveal 0.4s ease both;
}

.profile-card__hero {
  position: relative;
  padding: 22px 22px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.profile-card__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-on-light);
  opacity: 0.08;
  pointer-events: none;
}

.profile-card__hero::after {
  content: none;
}

.profile-card__edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #1f2937;
  border-bottom: 1px solid #e2e8f0;
}

.profile-card__edit-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.profile-card__edit-hint {
  font-size: 11px;
  color: #64748b;
}

.share-sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
}

.share-sheet {
  width: min(560px, 100%);
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px 20px 0 0;
  padding: 16px 18px 18px;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
}

.share-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.share-sheet__title {
  font-size: 14px;
  font-weight: 700;
}

.share-sheet__subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.share-sheet__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.share-sheet__body {
  margin-top: 12px;
}

.share-sheet__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  resize: none;
}

.share-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.share-sheet .button.ghost {
  border-color: #e2e8f0;
  color: #0f172a;
}

.share-sheet .button.ghost:hover {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.profile-card__save-button {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.profile-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.profile-card__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-card__name {
  font-size: 20px;
  font-weight: 700;
}

.profile-card__name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card__meta {
  font-size: 12px;
  color: #64748b;
}

.profile-card__stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.profile-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 86px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.profile-card__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.profile-card__stat-label {
  font-size: 11px;
  color: #64748b;
}

.profile-card__section {
  padding: 16px 20px;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}

.profile-card__section--signature {
  border-top: none;
}

.profile-card__label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.profile-card__label-row .profile-card__label {
  margin-bottom: 0;
}

.profile-card__value {
  font-size: 14px;
  font-weight: 600;
}

.profile-card__value.muted {
  color: #9ca3af;
  font-weight: 500;
}

.profile-card__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-card__edit {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
}

.profile-card__edit--icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
  padding: 0;
}

.profile-card__edit--text {
  width: auto;
  height: auto;
  border-radius: 999px;
  font-size: 12px;
}

.profile-card__edit--text svg {
  width: 14px;
  height: 14px;
}

.profile-card__section-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-card__save-inline {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.profile-card__cancel-inline {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #475569;
  background: #f8fafc;
}

.profile-card__input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.profile-card__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-card__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-card__field--wide {
  grid-column: 1 / -1;
}

.profile-card__field-label {
  font-size: 12px;
  color: #94a3b8;
}

.profile-card__select-wrap {
  position: relative;
  width: 100%;
}

.profile-card__input--select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.profile-card__select-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  pointer-events: none;
}

.profile-card__select-indicator svg {
  width: 12px;
  height: 12px;
}

.profile-card__grade-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-card__grade-choice {
  padding: 6px 12px;
  font-size: 12px;
}

.profile-card__grade-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}

.profile-card__grade-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.profile-card__grade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-card__grade-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.profile-card__input:disabled {
  color: #94a3b8;
  background: #f1f5f9;
}

.profile-card__textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: #f8fafc;
  resize: vertical;
  min-height: 84px;
  line-height: 1.6;
}

.profile-card__textarea--signature {
  background: #f8fafc;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-card__textarea--signature:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.profile-card__signature-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.profile-card__signature-editor {
  display: grid;
  gap: 8px;
}

.profile-card__signature-preview {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-card__signature-preview::before {
  content: none;
}

.profile-card__signature-empty {
  font-size: 13px;
  color: #94a3b8;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
  background: #f8fafc;
}

.profile-card__signature-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.profile-card__signature-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-card__signature-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1e3a8a;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.profile-card__signature-tag--muted {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.3);
}

.profile-markdown {
  font-size: 13px;
  line-height: 1.6;
  color: #0f172a;
}

.profile-markdown :where(p, ul, ol, pre, blockquote) {
  margin: 0;
}

.profile-markdown :where(p + p, p + ul, p + ol, ul + p, ol + p, pre + p, p + pre, blockquote + p, p + blockquote) {
  margin-top: 6px;
}

.profile-markdown ul,
.profile-markdown ol {
  padding-left: 18px;
}

.profile-markdown li + li {
  margin-top: 4px;
}

.profile-markdown code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85em;
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

.profile-markdown pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.profile-markdown pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.profile-markdown blockquote {
  border-left: 3px solid rgba(37, 99, 235, 0.35);
  padding-left: 10px;
  color: #475569;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 8px;
}

.profile-card__toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.profile-card__payout-block {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.profile-card__payout-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.profile-card__payout-hint {
  font-size: 12px;
  color: #64748b;
}

.profile-card__payout-file-input {
  display: none;
}

.profile-card__payout-dropzone {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 6px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-card__payout-dropzone.is-dragover {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.profile-card__payout-drop-title {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.profile-card__payout-drop-subtitle {
  font-size: 12px;
  color: #64748b;
}

.profile-card__payout-actions {
  margin-top: 2px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card__payout-preview-link {
  width: fit-content;
  display: inline-flex;
}

.profile-card__payout-preview {
  width: min(220px, 100%);
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
}

.profile-card__payout-empty {
  font-size: 12px;
  color: #94a3b8;
}

.profile-card__actions {
  padding: 12px 20px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.profile-card__count {
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}

.profile-card__empty {
  font-size: 12px;
  color: #9ca3af;
}

.profile-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.profile-card__list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.profile-card__list li::after {
  content: none;
}

.profile-card__list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.profile-card__list-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-card__list a {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.profile-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 11px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.profile-card__badge {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.profile-card__expand {
  margin-top: 10px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 26px 6px 12px;
  border-radius: 999px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-card__expand::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-card__expand[data-expanded='true']::after {
  transform: translateY(-50%) rotate(-135deg);
  opacity: 0.8;
}

.profile-card__expand:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.profile-card__edit-status {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.user-profile-page {
  width: 100%;
  max-width: 1120px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-sidebar {
  top: 24px;
}

.profile-main {
  display: grid;
  gap: 20px;
  width: 100%;
}

.profile-main > section {
  width: 100%;
}

@media (max-width: 1100px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-sidebar {
    position: relative;
    top: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
  }

  .profile-sidebar .me-sidebar__items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .user-profile-page .profile-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .user-profile-page .profile-hero__stat {
    min-width: 0;
  }
}

.me-profile,
.profile-card,
.profile-hero,
.profile-info,
.profile-panel {
  width: 100%;
  max-width: 100%;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 22px;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.36);
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-on-dark);
  opacity: 0.24;
  pointer-events: none;
}

.profile-hero::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 18px;
  width: 46px;
  height: 4px;
  background: #2a9d8f;
  box-shadow: 0 0 12px rgba(42, 157, 143, 0.55);
}

.profile-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #0f1827;
  border: 1px solid rgba(241, 245, 249, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(42, 157, 143, 0.25);
}

.profile-hero__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-hero__name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

.profile-hero__name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legendary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  background: linear-gradient(135deg, #f59e0b, #fde68a);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.18);
  letter-spacing: 0.02em;
}

.profile-hero__handle {
  font-size: 12px;
  color: #a9b4c2;
}

.profile-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero__actions .button {
  border-color: rgba(42, 157, 143, 0.55);
  color: #cfe9e6;
  background: rgba(42, 157, 143, 0.12);
  box-shadow: none;
}

.profile-hero__actions .button.primary {
  background: #2a9d8f;
  color: #ffffff;
  border-color: #2a9d8f;
  box-shadow: 0 10px 20px rgba(3, 7, 18, 0.45);
}

.profile-hero__actions .button.ghost {
  background: rgba(42, 157, 143, 0.12);
  color: #cfe9e6;
}

.profile-hero__actions .profile-hero__share-btn {
  background: #2a9d8f !important;
  color: #ffffff !important;
  border-color: #2a9d8f !important;
  box-shadow: 0 10px 20px rgba(3, 7, 18, 0.45);
}

.profile-hero__actions .profile-hero__share-btn:hover {
  background: #2a9d8f !important;
  color: #ffffff !important;
  border-color: #2a9d8f !important;
}

.profile-hero__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #0f1827;
  border: 1px solid rgba(241, 245, 249, 0.12);
  box-shadow: 0 12px 22px rgba(3, 7, 18, 0.35);
  min-width: 90px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.profile-hero__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.profile-hero__stat-label {
  font-size: 11px;
  color: #a9b4c2;
}

.profile-info {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.profile-info::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-on-light);
  opacity: 0.16;
  pointer-events: none;
}

.profile-info__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}

.profile-info__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.profile-info__item--wide {
  grid-column: 1 / -1;
}

.profile-info__item--signature {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.profile-info__item--payout {
  align-items: flex-start;
}

.profile-info__payout-preview {
  width: min(280px, 100%);
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #ffffff;
}

.profile-info__label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info__value {
  font-weight: 600;
  color: #0f172a;
}

.profile-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-info__tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.profile-info__markdown {
  font-weight: 500;
}

.profile-info__value.muted {
  color: #94a3b8;
  font-weight: 500;
}

.profile-intro {
  position: relative;
  overflow: hidden;
  animation: profile-reveal 0.4s ease both;
}

.profile-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  pointer-events: none;
}

.profile-intro h1 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.profile-intro__subtitle {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  white-space: pre-line;
}

.profile-intro__stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.profile-intro__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  min-width: 90px;
}

.profile-intro__stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.profile-intro__stat-label {
  font-size: 11px;
  color: #64748b;
}

.profile-intro__hint {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.profile-intro__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-panel {
  animation: profile-reveal 0.4s ease both;
  animation-delay: 0.05s;
}

.profile-panel__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .profile-intro,
  .profile-panel,
  .hero.hero-magazine,
  .hero.hero-magazine .hero-kicker,
  .hero.hero-magazine h2,
  .hero.hero-magazine .hero-subtitle,
  .hero.hero-magazine .hero-actions,
  .hero.hero-magazine .hero-panel,
  .hero.hero-magazine .hero-stat {
    animation: none;
  }

  .hero.hero-magazine .hero-panel::after,
  .hero.hero-magazine .hero-kicker::after {
    animation: none;
  }

  .support-card::after {
    animation: none;
  }

}

.profile-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 24, 39, 0.72);
  border: 1px solid rgba(42, 157, 143, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.follow-tabs {
  margin-bottom: 14px;
}

.profile-tab {
  border: none;
  background: transparent;
  color: #b8c7d9;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-tab.active {
  background: #2a9d8f;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(3, 7, 18, 0.35);
}

.profile-tab:not(.active):hover {
  color: #e2e8f0;
  background: rgba(42, 157, 143, 0.16);
}

.material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.material-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.material-row a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.material-row .help-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  width: fit-content;
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0;
}

@media (max-width: 640px) {
  .material-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .material-row .help-text {
    justify-self: start;
  }
}

.profile-content-list {
  margin: 0;
  padding: 0;
}

.profile-content-row {
  list-style: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.65);
  padding: 12px 0;
}

.profile-content-row:first-child {
  border-top: 1px dashed rgba(148, 163, 184, 0.65);
}

.profile-content-row:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(100, 116, 139, 0.8);
}

.profile-content-row .help-text {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.follow-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.follow-list__avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.follow-list__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.follow-list__name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
  color: #111827;
}

.follow-list__handle {
  font-size: 12px;
  color: #94a3b8;
}

.follow-list__school {
  font-size: 12px;
  color: #6b7280;
}

.follow-list__signature {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.follow-list__signature.profile-markdown {
  font-size: 12px;
}

.follow-list__muted {
  color: #9ca3af;
}

@media (max-width: 980px) {
  .me-grid {
    gap: 16px;
  }

  .user-profile-page {
    gap: 16px;
  }

  .profile-main {
    gap: 16px;
  }

  .home-dual-panel {
    grid-template-columns: 1fr;
  }

  .home-dual-panel .card {
    height: auto;
    min-height: 0;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .request-actions {
    justify-content: flex-start;
  }

  .profile-card__field-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero__content {
    grid-template-columns: 1fr;
  }

  .profile-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .profile-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .profile-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .profile-hero__stat {
    min-width: 0;
  }
}

.purchase-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.purchase-row:last-child {
  border-bottom: none;
}

.upload-row strong {
  color: #0f172a;
}

.upload-row .material-meta {
  color: #64748b;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 16px;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.alert.error {
  background: #fee2e2;
  color: #b42318;
}

.success-text {
  color: #16a34a;
}

.error-text {
  color: #b42318;
}
.empty-state {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}

.upload-card {
  max-width: 700px;
  margin: 48px auto;
}

.upload-page {
  max-width: 1180px;
  margin: 36px auto 64px;
}

.upload-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.upload-sidebar {
  top: 92px;
  padding-top: 0;
  margin-top: 0;
}

.upload-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.upload-main > *,
.upload-stacked-form,
.upload-stacked-form > *,
.upload-section-shell {
  width: 100%;
  box-sizing: border-box;
}

.upload-main-card {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid #dbe3ef;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.upload-hero {
  margin-top: 0;
}

.upload-hero .me-hero__inner {
  align-items: center;
}

.upload-hero .me-hero__intro {
  flex: 1 1 auto;
}

.upload-hero .me-hero__title-row {
  align-items: center;
}

.upload-hero__actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.upload-hero__pills,
.upload-option-pills,
.upload-hero__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-hero__tools {
  gap: 12px;
}

.upload-hero__pills {
  justify-content: flex-end;
  align-self: flex-start;
  max-width: 320px;
}

.upload-option-pills .button {
  min-width: 128px;
}

.upload-hero__action {
  min-width: 170px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(71, 85, 105, 0.38);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, #475569 0%, #334155 100%),
    var(--noise-on-dark);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(51, 65, 85, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.upload-hero__action:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 16px 30px rgba(51, 65, 85, 0.22);
}

.upload-hero__action:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.16),
    0 14px 28px rgba(15, 23, 42, 0.11);
}

.upload-hero__action.active {
  border-color: rgba(79, 112, 214, 0.44);
  background:
    linear-gradient(180deg, #4f70d6 0%, #3e5fcb 100%),
    var(--noise-on-dark);
  color: #f8fafc;
  box-shadow: 0 16px 30px rgba(79, 112, 214, 0.24);
}

.upload-hero__action--secondary {
  border-color: rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    var(--noise-on-light);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.upload-hero__action--secondary:hover {
  border-color: rgba(79, 112, 214, 0.32);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11);
}

.upload-hero__action--secondary.active {
  background:
    linear-gradient(180deg, rgba(240, 244, 255, 0.98), rgba(231, 238, 255, 0.98)),
    var(--noise-on-light);
  border-color: rgba(79, 112, 214, 0.42);
  color: #2741a6;
  box-shadow: 0 16px 30px rgba(79, 112, 214, 0.16);
}

.upload-hero__action-label {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.upload-card-header h2 {
  margin: 0;
}

.upload-main-card .upload-card-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.upload-stacked-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.upload-section-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-section-heading {
  display: flex;
  align-items: flex-start;
  padding: 0 2px;
}

.upload-section-heading__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.upload-section-heading__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.upload-section-heading__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.upload-section-card {
  padding: 22px 24px 24px;
}

.upload-course-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.upload-course-type-chip {
  min-height: 0;
  padding: 10px 14px;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: initial;
}

.upload-course-type-chip strong {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.upload-year-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 360px;
}

.upload-year-field .inline-group {
  width: 100%;
}

.upload-year-field input {
  width: 100%;
}

.upload-section-grid {
  row-gap: 14px;
}

.upload-quick-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.upload-quick-summary__item {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%),
    var(--noise-on-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.upload-quick-summary__label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-quick-summary__value {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.upload-meta-empty {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  background: rgba(248, 250, 252, 0.85);
}

.upload-meta-empty .help-text {
  margin: 0;
}

.upload-meta-empty .help-text + .help-text {
  margin-top: 8px;
}

.upload-price-payout-tip {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.upload-price-payout-tip.is-missing {
  border-color: #f59e0b;
  background: #fff7ed;
}

.upload-price-payout-tip.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
}

.upload-price-payout-tip__text {
  font-size: 12px;
  color: #475569;
}

.upload-price-payout-tip__action {
  white-space: nowrap;
}

.upload-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.upload-title-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-card-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.upload-form-grid {
  row-gap: 12px;
}

.upload-form-section {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #dbe4f0;
}

.upload-form-grid > .upload-form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.upload-form-section__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.upload-form-section__hint {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.upload-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.login-page {
  padding-top: 24px;
}

.login-shell {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 32px auto 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.login-aside,
.login-card {
  width: 100%;
  min-width: 0;
}

.login-aside {
  border-radius: 20px;
  padding: 32px;
  background-color: #0b1120;
  background-image: var(--noise-on-dark),
    linear-gradient(150deg, #0b1120 0%, #121c31 55%, #0b1120 100%),
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.3), transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(42, 157, 143, 0.28), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 120px 120px, 100% 100%, 520px 520px, 560px 560px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 20px 40px rgba(3, 7, 18, 0.45);
  position: relative;
  overflow: hidden;
}

.login-aside::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 4px;
  background: #2a9d8f;
  box-shadow: 0 0 12px rgba(42, 157, 143, 0.55);
  opacity: 0.8;
}

.login-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.login-title {
  margin: 16px 0 10px;
  font-size: 2rem;
  line-height: 1.1;
  color: #f8fafc;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-weight: 400;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.login-subtitle {
  margin: 0;
  color: #a9b4c2;
  font-size: 0.98rem;
  max-width: 36ch;
  font-family: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.login-highlights {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.login-highlight__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(180deg, #2a9d8f, #1f7a6f);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.3);
}

.login-highlight strong {
  display: block;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.98rem;
}

.login-highlight span {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 2px;
}

.login-card {
  max-width: none;
  margin: 0;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.login-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 18px;
}

.login-card__header > div {
  flex: 0 1 auto;
  min-width: 0;
}

.login-card__header h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

.login-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.login-dev-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.login-dev-card__copy {
  min-width: 0;
}

.login-dev-card__copy strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.login-dev-card__copy p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

.login-dev-card__copy code {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  font-size: 0.86em;
}

.login-dev-card__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.login-dev-card__button {
  flex: 0 0 188px;
  min-height: 50px;
}

.login-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  width: 100%;
}

.login-tab {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-tab.active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.login-mode-shell {
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

.login-form {
  row-gap: 14px;
  width: 100%;
  min-width: 0;
  align-content: start;
}

.login-form .help-text {
  margin-top: 6px;
}

.login-submit-button {
  gap: 8px;
  width: 100%;
  min-height: 54px;
}

.login-submit-spinner {
  width: 14px;
  height: 14px;
  margin-right: 0;
  animation: login-spin 0.9s linear infinite;
}

.login-submit-spinner svg {
  width: 14px;
  height: 14px;
}

.login-submit-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 18 36;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
}

.login-actions .button,
.login-secondary-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
}

.login-actions--compact {
  margin-top: 6px;
}

.remember-row {
  margin-top: 4px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.remember-label input {
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
}

.remember-label:hover {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.remember-label input:checked + span {
  color: #0f172a;
}

.reset-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.reset-panel .card-title {
  margin: 0 0 12px;
}

.login-reset-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, 0.82);
  backdrop-filter: blur(10px);
}

.login-reset-panel {
  width: min(100%, 520px);
  max-height: calc(100% - 8px);
  margin: 0;
  padding: 22px 22px 18px;
  overflow-y: auto;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
}

.login-reset-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.login-reset-panel__header .card-title {
  margin: 4px 0 0;
}

.login-reset-panel__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.login-reset-panel__close:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
}

.login-reset-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

.login-reset-actions .button {
  flex: 1;
  min-height: 48px;
}

.login-status-slot {
  min-height: 28px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 14px;
}

.login-status-slot p {
  margin: 0;
}

.runtime-environment-badge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.login-code-row {
  gap: 10px;
}

.login-code-row .button {
  flex: 0 0 148px;
  min-width: 148px;
}

@keyframes login-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-aside {
    padding: 28px;
  }

  .login-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-card__header h2 {
    white-space: normal;
  }

  .login-mode-shell {
    min-height: 0;
  }

  .login-dev-card {
    flex-direction: column;
    align-items: stretch;
  }

  .login-dev-card__button {
    flex: 1 1 auto;
    width: 100%;
  }

  .login-reset-overlay {
    padding: 16px;
  }
}

@media (min-width: 1140px) {
  .login-shell {
    width: 1108px;
    max-width: 1108px;
    grid-template-columns: repeat(2, 540px);
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .login-shell {
    margin: 24px auto 48px;
  }

  .login-title {
    font-size: 1.6rem;
  }

  .login-card {
    padding: 24px;
  }

  .login-code-row {
    flex-wrap: wrap;
  }

  .login-code-row .button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .login-reset-panel {
    width: 100%;
    padding: 18px 18px 16px;
  }

  .login-reset-actions {
    flex-direction: column;
  }

  .runtime-environment-badge {
    left: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.7rem;
  }
}

.request-new-page {
  max-width: 1120px;
  margin: 36px auto 64px;
}

.request-new-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.request-new-sidebar {
  top: 92px;
  padding-top: 0;
  margin-top: 0;
}

.request-new-shell {
  width: 100%;
  padding: 24px 24px 20px;
  border: 1px solid #dbe3ef;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.request-new-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.request-new-shell__header h2 {
  margin: 0 0 6px;
}

.request-new-shell__header .help-text {
  margin: 0;
}

.request-new-shell__capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.request-new-shell__capsules span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6dfec;
  color: #334155;
  background: #f8fafd;
  font-size: 0.8rem;
}

.request-new-form {
  row-gap: 12px;
}

.request-new-form input,
.request-new-form select,
.request-new-form textarea {
  border-color: #d7deea;
  background: #fbfcff;
}

.request-new-form input:focus,
.request-new-form select:focus,
.request-new-form textarea:focus {
  border-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18);
}

.request-form-section {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #d7deea;
}

.request-form-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.request-form-section__hint {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.84rem;
}

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.captcha-row > * {
  min-width: 0;
}

.captcha-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.captcha-row .button,
.captcha-row .captcha-image {
  flex: 0 0 auto;
}

.captcha-image {
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  padding: 4px;
}

.leaderboard-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.leaderboard-card .materials-header {
  position: relative;
  padding-right: 180px;
}

.leaderboard-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: absolute;
  top: 0;
  right: 0;
}

.leaderboard-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.leaderboard-tab {
  border: none;
  background: transparent;
  color: #0f172a;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.leaderboard-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.4);
}

.leaderboard-period-hint {
  display: inline-block;
  margin-left: 6px;
  color: #64748b;
}

.leaderboard-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.leaderboard-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leaderboard-actions .button {
  white-space: nowrap;
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  min-height: 90px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drop-zone:hover {
  border-color: #94a3b8;
  background: #eef2f7;
}

.leaderboard-rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
}

.leaderboard-rank.rank-1 {
  background: #fcd34d;
  color: #92400e;
}

.leaderboard-rank.rank-2 {
  background: #e5e7eb;
  color: #6b7280;
}

.leaderboard-rank.rank-3 {
  background: #e5e7eb;
  color: #6b7280;
}

.leaderboard-rank.rank-4,
.leaderboard-rank.rank-5,
.leaderboard-rank.rank-6 {
  background: #f2c79b;
  color: #92400e;
}

.leaderboard-rank.rank-admin {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
}

.leaderboard-meta strong {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.leaderboard-meta span {
  display: block;
  color: #64748b;
  font-size: 0.95rem;
}

.leaderboard-scroll::-webkit-scrollbar {
  width: 6px;
}

.leaderboard-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .upload-page {
    margin: 28px auto 48px;
  }

  .column-page {
    margin: 28px auto 48px;
  }

  .upload-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .upload-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 2px;
  }

  .upload-sidebar .me-sidebar__items {
    padding-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .upload-sidebar .me-sidebar__item {
    width: calc(50% - 4px);
    min-width: 140px;
  }

  .upload-main,
  .upload-stacked-form {
    gap: 14px;
  }

  .upload-hero .me-hero__inner {
    align-items: flex-start;
  }

  .upload-hero__actions,
  .upload-hero__pills,
  .upload-option-pills,
  .upload-hero__tools {
    width: 100%;
  }

  .upload-hero__pills {
    justify-content: flex-start;
    max-width: none;
  }

  .upload-course-type-options {
    grid-template-columns: 1fr;
  }

  .upload-quick-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-hero__action {
    flex: 1 1 220px;
    min-width: 0;
  }

  .request-new-page {
    margin: 28px auto 48px;
  }

  .request-new-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .request-new-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 2px;
  }

  .request-new-sidebar .me-sidebar__items {
    padding-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .request-new-sidebar .me-sidebar__item {
    width: calc(50% - 4px);
    min-width: 140px;
  }

  .request-new-shell {
    padding: 16px;
  }

  .request-new-shell__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-new-shell__capsules {
    justify-content: flex-start;
  }

  .leaderboard-controls {
    position: static;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .leaderboard-card .materials-header {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .header-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .auth-actions {
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero.hero-magazine {
    padding: 18px;
    min-height: auto;
  }

  .hero.hero-magazine::before {
    top: 14px;
    left: 14px;
    width: 36px;
  }

  .hero.hero-magazine h2 {
    font-size: 1.6rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .join-page {
    max-width: 100%;
    margin: 28px auto 40px;
  }

  .join-layout {
    grid-template-columns: 1fr;
  }

  .join-sidebar {
    position: relative;
    top: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
  }

  .join-sidebar .me-sidebar__items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .join-channel-layout {
    grid-template-columns: 1fr;
  }

  .join-engineering-status-grid {
    grid-template-columns: 1fr;
  }

  .join-engineering-module-grid {
    grid-template-columns: 1fr;
  }

  .join-hero-card {
    padding: 22px 22px 18px;
    border-radius: 22px;
  }

  .join-panel-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .join-info-row--action {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .join-inline-action {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .join-hero-card {
    padding: 20px 18px 16px;
    border-radius: 20px;
  }

  .join-panel-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .join-inline-action {
    width: 100%;
    justify-content: center;
  }

  .join-summary-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .join-engineering-stack-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .join-qr-box {
    width: min(248px, 78vw);
    height: 272px;
  }
}

.legal-page {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  gap: 18px;
}

.legal-page .card h1,
.legal-page .card h2,
.legal-page .card h3 {
  margin-bottom: 12px;
}

.legal-page .card ol,
.legal-page .card ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #1f2937;
}

.legal-page .card li {
  margin-bottom: 8px;
  line-height: 1.6;
}
