@font-face {
  font-family: "iconfont";
  src:
    url("https://at.alicdn.com/t/c/font_5015886_4onu2okcerl.woff2?t=1766762797810") format("woff2"),
    url("https://at.alicdn.com/t/c/font_5015886_4onu2okcerl.woff?t=1766762797810") format("woff");
}

.iconfont {
  font-family: "iconfont", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-resou:before { content: "\e61b"; }
.icon-jindu:before { content: "\e669"; }
.icon-reading:before { content: "\e651"; }
.icon-music:before { content: "\e61a"; }
.icon-fav:before { content: "\e604"; }
.icon-tongji6:before { content: "\e6d1"; }
.icon-touxiang:before { content: "\e615"; }

:root {
  --bg: #f3f6f8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(118, 139, 154, 0.12);
  --shadow: 0 18px 44px rgba(67, 84, 95, 0.12);
  --shadow-soft: 0 10px 24px rgba(67, 84, 95, 0.08);
  --primary: #86aebb;
  --primary-strong: #6f97a6;
  --accent: #9db8ab;
  --text: #24313d;
  --muted: #718190;
  --danger: #d2556b;
  --success: #53a575;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-height: 68px;
  --content-width: 1320px;
  --ui-scale: 1;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 142, 159, 0.55) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(127, 179, 179, 0.9), rgba(107, 142, 159, 0.9));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(127, 179, 179, 1), rgba(85, 120, 136, 1));
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 179, 179, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(107, 142, 159, 0.18), transparent 30%),
    linear-gradient(180deg, #faf7f1 0%, #f0ebe1 100%);
}

body {
  min-height: 100vh;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.login-screen {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(107, 142, 159, 0.2), rgba(127, 179, 179, 0.08)),
    linear-gradient(180deg, #f6f1e6, #f1ece2);
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(107, 142, 159, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(47, 64, 74, 0.14);
  padding: 38px 34px 34px;
  backdrop-filter: blur(18px);
}

.auth-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(107, 142, 159, 0.08);
  margin-bottom: 20px;
}

.auth-switch-btn {
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-switch-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #6f97a6, #8ab2af);
  box-shadow: 0 8px 18px rgba(107, 142, 159, 0.18);
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
}

.login-card p {
  margin: 10px 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.input,
.textarea,
.select,
.date-input {
  width: 100%;
  border: 1px solid rgba(107, 142, 159, 0.16);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.textarea:focus,
.select:focus,
.date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(107, 142, 159, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.tag-btn,
.icon-btn,
.secondary-btn {
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  box-shadow: 0 12px 28px rgba(107, 142, 159, 0.24);
}

.secondary-btn {
  color: var(--text);
  background: rgba(107, 142, 159, 0.08);
}

.ghost-btn {
  color: var(--primary-strong);
  background: rgba(107, 142, 159, 0.08);
}

.danger-btn {
  color: #fff;
  background: linear-gradient(135deg, #dc6c81, #c6465d);
}

.tag-btn {
  padding: 9px 14px;
  background: rgba(107, 142, 159, 0.08);
  color: var(--muted);
}

.tag-btn.active {
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: #fff;
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(107, 142, 159, 0.1);
  color: var(--primary-strong);
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.tag-btn:hover,
.icon-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.app-shell {
  width: min(1520px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
}

.app-sidebar,
.workspace {
  min-height: 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(107, 142, 159, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 232, 0.86)),
    linear-gradient(140deg, rgba(127, 179, 179, 0.08), transparent 45%);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: #fff;
  box-shadow: 0 12px 26px rgba(107, 142, 159, 0.22);
}

.sidebar-mark .iconfont {
  font-size: 18px;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 24px;
}

.sidebar-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.audio-nav-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  box-shadow: 0 10px 24px rgba(107, 142, 159, 0.24);
  color: #fff;
}

.audio-nav-btn::before,
.audio-nav-btn::after {
  display: none;
}

.audio-nav-btn .iconfont {
  font-size: 18px;
}

.sidebar-audio-entry {
  margin-top: 4px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,244,242,0.9));
  font-size: 15px;
  border: 1px solid rgba(107, 142, 159, 0.08);
  box-shadow: var(--shadow-soft);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  border-color: transparent;
}

.nav-icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

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

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(107, 142, 159, 0.08);
}

.sidebar-user {
  width: 100%;
  justify-content: center;
}

.avatar-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce6eb, #f5fafb);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(107, 142, 159, 0.14);
}

.workspace {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 6px 4px;
}

.workspace-topbar h2 {
  margin: 0;
  font-size: 28px;
}

.workspace-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.workspace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.audio-entry-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(118, 139, 154, 0.12);
  box-shadow: var(--shadow-soft);
}

.audio-entry-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  background:
    radial-gradient(circle at center, rgba(22, 30, 33, 0.15) 0 18%, transparent 18% 100%),
    linear-gradient(135deg, #dae7ed, #f8fbfd);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.audio-entry-disc.playing {
  animation: spin 4s linear infinite;
}

.workspace-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  min-height: 100%;
  align-items: stretch;
}

.page-main,
.page-side,
.glass-panel,
.section-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-main,
.page-side,
.section-card {
  padding: 22px;
  min-height: 0;
}

.page-main,
.page-side {
  overflow: auto;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-title h3,
.section-title {
  margin: 0;
  font-size: 24px;
}

.page-title p,
.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 142, 159, 0.12);
  box-shadow: var(--shadow-soft);
}

.stat-card small {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.category-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 142, 159, 0.1);
}

.category-block.compact {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
}

.category-header,
.subcategory-header,
.task-row,
.record-row,
.chat-row,
.playlist-row,
.episode-row,
.watch-row,
.profile-row,
.calendar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-header {
  margin-bottom: 14px;
}

.category-header h4,
.subcategory-header h5,
.resource-title,
.episode-row h5 {
  margin: 0;
}

.subcategory-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(245, 244, 241, 0.68);
}

.subcategory-card.compact {
  margin-top: 12px;
  padding: 12px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-resource-grid-wide {
  margin-top: 0;
}

.resource-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(107, 142, 159, 0.1);
  box-shadow: var(--shadow-soft);
}

.resource-card.compact {
  border-radius: 18px;
}

.resource-thumb {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, #d7e2e8, #f8fbfc);
}

.resource-thumb.compact {
  aspect-ratio: 1.18 / 1;
}

.resource-thumb img,
.playlist-thumb img,
.detail-cover img,
.profile-hero img,
.book-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-badge,
.detail-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 50, 64, 0.72);
  color: #fff;
  font-size: 12px;
}

.resource-info {
  padding: 14px;
}

.resource-info.compact {
  padding: 10px 12px 12px;
}

.resource-info h5 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.resource-info.compact h5 {
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #dce7eb, #fefefe);
}

.detail-meta .action-row,
.toolbar,
.task-toolbar,
.profile-actions,
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.episode-list,
.task-list,
.record-list,
.watch-list,
.faq-list,
.playlist-list,
.menu-list {
  display: grid;
  gap: 12px;
}

.episode-row,
.task-item,
.watch-item,
.record-item,
.playlist-item,
.faq-item,
.menu-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 142, 159, 0.08);
}

.episode-actions,
.task-actions,
.watch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(107, 142, 159, 0.1);
  box-shadow: var(--shadow-soft);
}

.task-page {
  display: grid;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.task-page .summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}

.task-hero-bar {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.task-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-section-head h4 {
  margin: 0;
  font-size: 24px;
}

.task-section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.task-date-block {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107, 142, 159, 0.1);
}

.task-date-block strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}

.task-date-block span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.task-carousel {
  display: flex;
  gap: 16px;
  overflow: auto;
  padding-bottom: 8px;
  padding-right: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.task-carousel::-webkit-scrollbar {
  display: none;
}

.task-carousel.dragging {
  cursor: grabbing;
}

.task-card-wide {
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.task-card-makeup {
  background: rgba(255, 255, 255, 0.92);
}

.task-card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, #dce7eb, #fdfefe);
}

.task-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.task-seq-badge,
.task-deadline-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.task-seq-badge {
  left: 12px;
  color: #fff;
  background: rgba(27, 37, 45, 0.72);
}

.task-deadline-badge {
  right: 12px;
  color: #5e7181;
  background: rgba(255, 255, 255, 0.82);
}

.task-deadline-badge.done {
  color: #3d7f5c;
  background: rgba(225, 244, 233, 0.92);
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.task-progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6b8e9f;
  background: rgba(107, 142, 159, 0.12);
  border: 1px solid rgba(107, 142, 159, 0.2);
  font-weight: 700;
}

.task-progress-pill.done {
  color: #4c8b69;
  background: rgba(98, 176, 123, 0.14);
  border-color: rgba(98, 176, 123, 0.22);
}

.task-card-wide .task-actions {
  margin-top: auto;
  padding-top: 16px;
}

.task-card-wide .task-actions .primary-btn {
  width: 120px;
}

.makeup-tasks-section {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.makeup-tasks-wrapper {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(107, 142, 159, 0.12);
  box-shadow: var(--shadow-soft);
}

.makeup-date-group {
  display: grid;
  gap: 12px;
}

.makeup-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #6b8e9f 0%, #7fb3b3 100%);
}

.makeup-date-header strong {
  font-size: 18px;
}

.makeup-date-header span {
  color: rgba(255, 255, 255, 0.88);
}

.stat-card-action {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}

.task-list.compact .task-card {
  padding: 14px;
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.player-page,
.audio-page {
  background: linear-gradient(180deg, #08100e, #0d1714);
  border-color: rgba(90, 120, 114, 0.34);
  color: #f2f7f4;
  overflow: hidden;
}

.audio-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.player-page .page-title p,
.audio-page .page-title p,
.player-page .muted,
.audio-page .muted {
  color: rgba(226, 236, 231, 0.72);
}

.player-page .tag-btn,
.audio-page .tag-btn,
.player-page .secondary-btn,
.audio-page .secondary-btn,
.player-page .ghost-btn,
.audio-page .ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f7f4;
}

.player-page .section-card,
.audio-page .section-card,
.player-side {
  background: rgba(8, 16, 14, 0.82);
  border-color: rgba(84, 132, 120, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f1821;
  min-height: 420px;
}

.video-stage video,
.audio-cover img {
  width: 100%;
  height: 100%;
  display: block;
}

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.slider-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.range-input {
  width: 100%;
}

.subtitle-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 720px;
}

.subtitle-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(107, 142, 159, 0.08);
  cursor: pointer;
}

.player-side .subtitle-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(122, 190, 168, 0.14);
}

.subtitle-item.active {
  border-color: rgba(107, 142, 159, 0.28);
  box-shadow: 0 0 0 3px rgba(107, 142, 159, 0.1);
}

.player-side .subtitle-item.active {
  border-color: rgba(83, 202, 182, 0.65);
  box-shadow: 0 0 0 2px rgba(83, 202, 182, 0.18), 0 0 24px rgba(83, 202, 182, 0.18);
}

.subtitle-time {
  color: var(--primary-strong);
  font-size: 12px;
  margin-bottom: 6px;
}

.subtitle-mask {
  background: linear-gradient(180deg, rgba(22, 33, 42, 0.18), rgba(22, 33, 42, 0.58));
  color: #fff;
}

.book-shell {
  display: grid;
  gap: 16px;
}

.book-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  min-height: 520px;
  display: grid;
  place-items: center;
}

.book-stage img {
  object-fit: contain;
  max-height: 520px;
}

.book-page-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 50, 64, 0.72);
  color: #fff;
  font-size: 12px;
}

.audio-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
  height: 100%;
  align-items: start;
  overflow: hidden;
}

.audio-stage {
  display: grid;
  gap: 16px;
  min-height: 0;
  height: auto;
  align-content: start;
  position: sticky;
  top: 0;
}

.audio-hero {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(127, 179, 179, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(107, 142, 159, 0.1);
  box-shadow: var(--shadow-soft);
}

.audio-page .audio-hero {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(84, 132, 120, 0.28);
}

.audio-hero-meta h4 {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.35;
}

.audio-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.audio-control-card {
  padding: 18px;
  margin-top: auto;
}

.audio-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.audio-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #d9e4e9, #ffffff);
}

.audio-cover.rotate {
  animation: spin 12s linear infinite;
}

.audio-helper {
  margin-top: 12px;
  line-height: 1.7;
}

.audio-group {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(107, 142, 159, 0.08);
  padding: 14px;
}

.audio-playlist-shell {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.audio-playlist-shell .playlist-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.audio-playlist-shell .playlist-list::-webkit-scrollbar {
  display: none;
}

.playlist-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(248, 250, 251, 0.94);
  border: 1px solid rgba(118, 139, 154, 0.08);
}

.playlist-item.active {
  background: linear-gradient(180deg, rgba(121, 132, 142, 0.96), rgba(94, 104, 113, 0.96));
  color: #fff;
}

.playlist-item.active .muted {
  color: rgba(255, 255, 255, 0.72);
}

.playlist-order {
  font-size: 18px;
  color: var(--primary-strong);
  text-align: center;
}

.playlist-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.playlist-thumb {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8e3e9, #ffffff);
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.playlist-play-btn {
  width: 84px;
  height: 44px;
  border-radius: 999px;
  background: rgba(239, 245, 248, 0.98);
  color: #6b7e8d;
  font-weight: 700;
}

.playlist-item.active .playlist-order,
.playlist-item.active .playlist-play-btn {
  color: #fff;
}

.playlist-item.active .playlist-play-btn {
  background: rgba(255, 255, 255, 0.16);
}

.audio-list-head {
  display: grid;
  gap: 6px;
}

.audio-list-head strong {
  font-size: 28px;
}

.audio-list-kicker {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-group {
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.audio-group-head {
  padding: 0 2px;
}

.audio-group-body {
  display: grid;
  gap: 12px;
}

.redeem-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.redeem-page-shell {
  display: grid;
  gap: 16px;
}

.redeem-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.redeem-code-card {
  display: grid;
  align-content: space-between;
}

.redeem-code-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
  margin-top: 12px;
}

.redeem-filter-panel {
  padding: 18px 20px;
}

.redeem-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.redeem-filter-bar h4 {
  margin: 0;
  font-size: 22px;
}

.redeem-filter-tabs {
  margin-bottom: 0;
}

.redeem-card-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.redeem-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(107, 142, 159, 0.1);
  box-shadow: var(--shadow-soft);
}

.redeem-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dce6eb, #f8fbfc);
  overflow: hidden;
}

.redeem-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.redeem-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
}

.redeem-card-body h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.redeem-card-actions {
  margin-top: auto;
  padding-top: 14px;
}

.redeem-card-actions .primary-btn,
.redeem-card-actions .secondary-btn {
  width: 100%;
}

.stats-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stats-tab {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(107, 142, 159, 0.08);
  color: var(--muted);
}

.stats-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
}

.stats-overview {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
}

.stats-page-shell {
  display: grid;
  gap: 16px;
}

.stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}

.stats-copy-card {
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(127, 179, 179, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.9);
}

.stats-copy-card h3 {
  margin: 0;
  font-size: 32px;
}

.stats-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stats-large-card {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
}

.stats-donut-card {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.stats-donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 18px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.72);
}

.stats-donut-center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.stats-donut-center strong {
  display: block;
  font-size: 18px;
}

.stats-donut-center span {
  color: var(--muted);
  margin-top: 6px;
}

.stats-legend {
  width: 100%;
  display: grid;
  gap: 10px;
}

.stats-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.stats-legend-item span:nth-child(2) {
  flex: 1;
}

.stats-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.profile-avatar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.profile-avatar-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  overflow: hidden;
}

.profile-avatar-trigger img,
.profile-avatar-trigger .profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

.planner-calendar {
  margin-bottom: 18px;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 16px;
  align-items: start;
}

.planner-panel {
  display: grid;
  gap: 16px;
}

.planner-page-shell {
  display: grid;
  gap: 16px;
}

.planner-summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.planner-summary-strip .stat-card {
  margin: 0;
}

.planner-summary-band {
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 249, 0.9));
  border: 1px solid rgba(107, 142, 159, 0.08);
  box-shadow: var(--shadow-soft);
}

.planner-main-column {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.planner-calendar-card {
  max-width: 580px;
}

.planner-day-card {
  display: grid;
  gap: 16px;
}

.planner-config-card {
  background:
    radial-gradient(circle at top right, rgba(127, 179, 179, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 250, 0.92));
}

.planner-task-list {
  gap: 14px;
}

.planner-task-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
}

.planner-task-thumb {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7eb, #fefefe);
}

.planner-task-thumb img,
.planner-task-fallback {
  width: 100%;
  height: 100%;
}

.planner-task-thumb img {
  object-fit: cover;
  display: block;
}

.planner-task-fallback {
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--primary-strong);
}

.planner-task-content {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.planner-task-side {
  display: flex;
  justify-content: flex-end;
}

.planner-task-side .primary-btn {
  width: 100%;
}

.planner-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.planner-card-head h4 {
  margin: 0;
  font-size: 22px;
}

.audio-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-group-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.calendar-weekday,
.calendar-cell {
  text-align: center;
  padding: 12px 8px;
  border-radius: 16px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 12px;
}

.calendar-cell {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(107, 142, 159, 0.08);
  min-height: 82px;
  display: grid;
  align-content: space-between;
  cursor: pointer;
}

.calendar-cell.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 142, 159, 0.12);
}

.calendar-cell-main {
  display: grid;
  gap: 8px;
}

.calendar-status {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.calendar-status.done {
  color: #2f8250;
  background: rgba(83, 165, 117, 0.16);
}

.calendar-status.active {
  color: #2c6da0;
  background: rgba(89, 153, 208, 0.14);
}

.calendar-status.overdue {
  color: #b0475c;
  background: rgba(210, 85, 107, 0.12);
}

.calendar-status.pending {
  color: #7a8892;
  background: rgba(107, 142, 159, 0.1);
}

.calendar-cell.has-task::after {
  display: none;
}

.profile-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.profile-card-hero {
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(120, 156, 168, 0.92), rgba(168, 206, 205, 0.92));
  color: #fff;
  box-shadow: var(--shadow);
}

.profile-card-hero .muted {
  color: rgba(255, 255, 255, 0.78);
}

.profile-card-hero .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.profile-hero img,
.profile-avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 30px;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d8e2e8, #fdfefe);
  font-size: 34px;
  color: var(--primary-strong);
}

.profile-meta h4 {
  margin: 0;
  font-size: 28px;
}

.menu-item {
  cursor: pointer;
}

.planner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.episode-pick-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.episode-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(107, 142, 159, 0.08);
  cursor: pointer;
}

.episode-pick-item.active {
  border-color: rgba(107, 142, 159, 0.28);
  box-shadow: 0 0 0 3px rgba(107, 142, 159, 0.1);
}

.chat-layout {
  display: grid;
  gap: 16px;
}

.chat-box {
  min-height: 320px;
  max-height: 460px;
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(107, 142, 159, 0.08);
}

.chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: #fff;
}

.chat-bubble.admin {
  background: rgba(107, 142, 159, 0.08);
}

.home-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.home-action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 16px;
}

.dashboard-copy,
.dashboard-summary,
.dashboard-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 142, 159, 0.1);
  box-shadow: var(--shadow-soft);
}

.dashboard-copy {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(127, 179, 179, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,244,236,0.92));
}

.dashboard-copy h3 {
  margin: 14px 0 0;
  font-size: 34px;
  line-height: 1.25;
}

.dashboard-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.dashboard-summary {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-summary .stat-card {
  margin: 0;
  padding: 16px;
}

.dashboard-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.home-overview-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.dashboard-panel {
  min-height: 0;
  padding: 18px;
}

.home-resource-panel,
.home-side-panel,
.home-category-menu {
  overflow: auto;
}

.home-category-menu {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.home-category-list,
.home-subcategory-list {
  display: grid;
  gap: 10px;
}

.home-category-btn,
.home-subcategory-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(107, 142, 159, 0.12);
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.home-category-btn small,
.home-subcategory-btn small {
  color: var(--muted);
  font-weight: 700;
}

.home-category-btn.active,
.home-subcategory-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #6f97a6, #8ab2af);
  border-color: transparent;
}

.home-category-btn.active small,
.home-subcategory-btn.active small {
  color: rgba(255, 255, 255, 0.82);
}

.home-resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-resource-head h3 {
  margin: 0;
  font-size: 26px;
}

.app-shortcut {
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,244,241,0.86));
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(107, 142, 159, 0.08);
}

.badge.vip {
  color: #8b5a12;
  background: linear-gradient(135deg, rgba(247, 220, 111, 0.26), rgba(255, 245, 185, 0.9));
}

.badge.done {
  color: #fff;
  background: linear-gradient(135deg, #61ae79, #86c799);
}

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

.status-chip {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(107, 142, 159, 0.08);
}

.status-chip.done {
  background: rgba(83, 165, 117, 0.18);
  color: #2f8250;
}

.status-chip.pending {
  background: rgba(210, 85, 107, 0.12);
  color: #b0475c;
}

.status-chip.active {
  color: #2c6da0;
  background: rgba(89, 153, 208, 0.14);
}

.status-chip.overdue {
  color: #b0475c;
  background: rgba(210, 85, 107, 0.12);
}

.notice {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  margin: 0;
  background: rgba(107, 142, 159, 0.08);
  color: var(--primary-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.error {
  background: rgba(210, 85, 107, 0.12);
  color: #a84257;
}

.watch-page-shell {
  display: grid;
  gap: 16px;
}

.watch-record-grid {
  gap: 16px;
}

.watch-record-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.watch-record-cover {
  width: 132px;
  min-height: 132px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #dce7eb, #fefefe);
}

.watch-record-cover img,
.watch-record-fallback {
  width: 100%;
  height: 100%;
}

.watch-record-cover img {
  display: block;
  object-fit: cover;
}

.watch-record-fallback {
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--primary-strong);
}

.watch-record-body {
  min-width: 0;
  display: grid;
  gap: 14px;
}

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

.watch-record-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(107, 142, 159, 0.06);
}

.watch-record-stat small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.watch-record-stat strong {
  display: block;
}

.player-actions,
.book-actions,
.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtitle-scroller,
.playlist-scroller {
  overflow: auto;
}

@media (max-width: 1180px) {
  :root {
    --ui-scale: 0.92;
  }

  .app-shell {
    width: min(100vw - 24px, 1520px);
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .dashboard-hero,
  .dashboard-grid,
  .home-overview-shell {
    grid-template-columns: 1fr;
  }

  .home-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .redeem-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redeem-card-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .player-shell {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .audio-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .stats-hero,
  .profile-panel,
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-calendar-card {
    max-width: none;
  }

  .stats-overview,
  .redeem-card-grid {
    grid-template-columns: 1fr;
  }

  .redeem-filter-bar,
  .planner-card-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  :root {
    --ui-scale: 0.84;
  }

  .screen {
    padding: 8px;
  }

  .app-shell {
    width: calc(100vw - 16px);
    grid-template-columns: 192px minmax(0, 1fr);
  }

  .app-sidebar,
  .workspace {
    border-radius: 20px;
  }

  .workspace {
    padding: 14px;
  }

  .page-main,
  .page-side,
  .section-card {
    padding: 16px;
  }

  .stats-grid,
  .summary-grid,
  .resource-grid,
  .home-resource-grid,
  .inline-grid-2,
  .redeem-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redeem-overview-grid,
  .redeem-card-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .player-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .audio-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .task-hero-bar {
    grid-template-columns: 1fr;
  }

  .task-page .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-hero,
  .profile-panel,
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-summary-strip,
  .watch-record-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-task-item,
  .watch-record-card {
    grid-template-columns: 1fr;
  }

  .planner-task-thumb,
  .watch-record-cover {
    width: 100%;
    height: 180px;
  }

  .redeem-code-inline {
    grid-template-columns: 1fr;
  }

  .stats-donut {
    width: 180px;
    height: 180px;
  }
}
