:root {
  --ink: #10294d;
  --muted: #71839f;
  --blue: #2f7df1;
  --blue-deep: #1e63d2;
  --blue-soft: #eaf5ff;
  --line: #d8e7f6;
  --surface: rgba(255, 255, 255, .96);
  --green: #2aae70;
  --red: #e85f66;
  --amber: #e7a33d;
  --violet: #8465df;
  --shadow: 0 16px 42px rgba(53, 91, 145, .09);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f4f9ff;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 4%, rgba(158, 212, 255, .24), transparent 32rem), linear-gradient(145deg, #f8fcff, #edf6ff 46%, #f8fbff); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.danger-text { color: var(--red) !important; }

.loading-screen { min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.loading-screen img { width: 108px; margin: 0 auto 12px; animation: float 2.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-7px); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-visual { position: relative; overflow: hidden; padding: 8vh 8vw; display: flex; align-items: center; background: linear-gradient(145deg, #dff2ff 0%, #bcdfff 46%, #e9f9f5 100%); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.4); }
.login-visual::before { width: 420px; height: 420px; right: -90px; top: -100px; }
.login-visual::after { width: 280px; height: 280px; left: -70px; bottom: -90px; }
.login-brand { position: relative; z-index: 1; max-width: 650px; }
.login-butterfly { width: min(42vw, 360px); height: 240px; object-fit: contain; object-position: left center; filter: drop-shadow(0 22px 26px rgba(34, 95, 164, .2)); }
.login-brand small { display: block; margin: 16px 0 12px; color: #347bbd; font-size: 15px; font-weight: 800; letter-spacing: .18em; }
.login-brand h1 { margin: 0; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.12; letter-spacing: -.055em; }
.login-brand h1 strong { color: #1a6fc8; }
.login-brand p { margin: 22px 0 0; max-width: 520px; color: #426b8f; font-size: 19px; line-height: 1.8; }
.login-panel { padding: 8vh 7vw; display: flex; align-items: center; background: rgba(255,255,255,.92); }
.login-card { width: min(100%, 430px); margin: auto; }
.login-card .mobile-logo { display: none; width: 104px; height: 70px; object-fit: contain; margin-bottom: 10px; }
.login-card small { color: #4b87d4; font-weight: 800; letter-spacing: .14em; }
.login-card h2 { margin: 10px 0 8px; font-size: 36px; }
.login-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.7; }
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #ccdef0; border-radius: 13px; outline: 0; padding: 13px 14px; background: #fbfdff; color: var(--ink); transition: .2s; }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #68a8f6; box-shadow: 0 0 0 4px rgba(47,125,241,.1); background: #fff; }
.form-error { min-height: 24px; margin: 12px 0 0; color: #d64751; font-size: 13px; }

.primary-button, .secondary-button, .text-button, .icon-button, .danger-button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.primary-button { min-height: 44px; padding: 0 18px; color: #fff; background: linear-gradient(135deg, #3b8cf8, #246ddd); border-radius: 11px; font-weight: 800; box-shadow: 0 9px 20px rgba(45, 118, 226, .2); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(45,118,226,.26); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button.wide { width: 100%; min-height: 50px; font-size: 16px; }
.secondary-button, .danger-button { min-height: 40px; padding: 0 14px; border: 1px solid #cfdfef; border-radius: 10px; background: #fff; color: #365a80; font-weight: 750; }
.secondary-button:hover { border-color: #80b5f3; color: var(--blue-deep); background: #f8fbff; }
.danger-button { border-color: #f1c6c9; color: #cf4d55; }
.text-button { padding: 7px 2px; background: transparent; color: #2473d6; font-weight: 800; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--blue-soft); color: var(--blue); }

.app-shell { --sidebar-width: 230px; min-height: 100vh; }
.topbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(205,221,239,.85); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 265px; }
.brand img { width: 68px; height: 52px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 20px; }
.brand-copy small { margin-top: 6px; color: #7b8da8; font-size: 11px; }
.account-area { display: flex; align-items: center; gap: 12px; }
.account-copy { text-align: right; }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { font-size: 14px; }
.account-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; color: #174d85; background: linear-gradient(145deg,#dff3ff,#79bdf1); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #c7dff3; cursor: pointer; font-weight: 900; }
.avatar:hover { box-shadow: 0 0 0 3px rgba(47,125,241,.14); }

.sidebar { position: fixed; z-index: 30; top: 78px; bottom: 0; left: 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 15px; background: rgba(255,255,255,.91); border-right: 1px solid rgba(205,221,239,.82); backdrop-filter: blur(16px); }
.sidebar nav { min-height: 0; display: flex; flex: 1; flex-direction: column; gap: 7px; overflow-y: auto; padding-right: 3px; }
.nav-link { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 15px; color: #39597d; border-radius: 12px; font-size: 15px; font-weight: 700; }
.nav-link:hover, .nav-link.active { color: #176ed7; background: linear-gradient(90deg,#edf6ff,#e6f2ff); }
.nav-link .nav-icon { font-size: 20px; }
.nav-catalog > summary, .sidebar-series > summary { list-style: none; cursor: pointer; }
.nav-catalog > summary::-webkit-details-marker, .sidebar-series > summary::-webkit-details-marker { display: none; }
.nav-chevron { margin-left: auto; font-size: 18px; transition: transform .2s; }
.nav-catalog[open] > summary .nav-chevron { transform: rotate(180deg); }
.nav-tree { margin: 2px 0 5px 21px; padding: 5px 0 5px 12px; border-left: 1px solid #d7e6f5; }
.sidebar-series { margin-bottom: 4px; }
.sidebar-series > summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 8px; border-radius: 9px; color: #45637f; }
.sidebar-series > summary:hover, .sidebar-series[open] > summary { color: #176ed7; background: #f0f7ff; }
.sidebar-series > summary span { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 800; }
.sidebar-series > summary b { flex: 0 0 auto; color: #80a2c5; font-size: 10px; }
.sidebar-series > summary small { flex: 0 0 auto; color: #8ba0b8; font-size: 10px; }
.sidebar-episodes { display: flex; flex-direction: column; gap: 3px; padding: 3px 0 5px 10px; }
.sidebar-all, .sidebar-episode { width: 100%; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.sidebar-all { padding: 7px 8px; color: #4b80bb; font-size: 11px; font-weight: 750; }
.sidebar-all:hover { background: #f3f8fe; }
.sidebar-episode { min-height: 34px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 5px; padding: 6px 7px; color: #607a96; }
.sidebar-episode:hover, .sidebar-episode.active { color: #176ed7; background: #eaf4ff; }
.sidebar-episode span { color: #92a8bd; font-size: 10px; }
.sidebar-episode strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.sidebar-empty { margin: 5px 7px; color: #91a2b5; font-size: 11px; }
.sidebar-note { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f9fcff; }
.sidebar-note strong { display: block; font-size: 14px; }
.sidebar-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.sidebar-resize-hint { display: block; margin-top: 11px; color: #5d86b3; font-size: 10px; font-weight: 750; line-height: 1.5; }
.sidebar-resizer { position: absolute; z-index: 4; top: 0; right: -8px; bottom: 0; width: 16px; outline: 0; cursor: col-resize; touch-action: none; }
.sidebar-resizer::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: transparent; transition: background .18s, box-shadow .18s; }
.sidebar-resizer:hover::before, .sidebar-resizer:focus-visible::before, .sidebar-resizing .sidebar-resizer::before { background: #5d9df2; box-shadow: 0 0 0 3px rgba(47,125,241,.08); }
.sidebar-resizer-grip { position: absolute; top: 50%; left: 50%; width: 22px; height: 64px; display: flex; align-items: center; justify-content: center; transform: translate(-50%,-50%); border: 1px solid #bad6f4; border-radius: 11px; background: rgba(255,255,255,.98); box-shadow: 0 8px 22px rgba(29,93,166,.16); color: #2f7df1; opacity: .78; transition: width .18s, opacity .18s, border-color .18s, box-shadow .18s; }
.sidebar-resizer-grip i { width: 4px; height: 26px; border-radius: 4px; background: radial-gradient(circle,#6ea8eb 1.5px,transparent 1.8px) center/4px 7px repeat-y; }
.sidebar-resizer-grip b { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 9px; line-height: 1; }
.sidebar-resizer:hover .sidebar-resizer-grip, .sidebar-resizer:focus-visible .sidebar-resizer-grip, .sidebar-resizing .sidebar-resizer-grip { width: 26px; opacity: 1; border-color: #72aaf0; box-shadow: 0 10px 28px rgba(29,93,166,.24); }
.sidebar-resizer-tooltip { position: absolute; top: 50%; right: 27px; width: 178px; display: flex; flex-direction: column; gap: 5px; transform: translate(5px,-50%); padding: 11px 13px; border: 1px solid #c9def4; border-radius: 11px; background: rgba(255,255,255,.98); box-shadow: 0 14px 34px rgba(28,75,128,.17); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s, transform .16s, visibility .16s; }
.sidebar-resizer-tooltip > span { color: #294e76; font-size: 12px; font-weight: 800; }
.sidebar-resizer-tooltip > strong { color: #6d829a; font-size: 10px; font-weight: 700; }
.sidebar-resizer-tooltip > strong b { margin-left: 4px; color: #176ed7; font-size: 12px; }
.sidebar-resizer:hover .sidebar-resizer-tooltip, .sidebar-resizer:focus-visible .sidebar-resizer-tooltip, .sidebar-resizing .sidebar-resizer-tooltip { transform: translate(0,-50%); opacity: 1; visibility: visible; }
.sidebar-is-resizing, .sidebar-is-resizing * { cursor: col-resize !important; user-select: none !important; }

.main { min-height: 100vh; margin-left: var(--sidebar-width); padding-top: 78px; }
.page { width: min(1500px, 100%); margin: 0 auto; padding: 25px 30px 110px; }
.hero { position: relative; min-height: 265px; overflow: hidden; display: grid; grid-template-columns: 1fr 330px; align-items: center; padding: 34px 48px; border: 1px solid #cfe4f8; border-radius: 24px; background: linear-gradient(125deg,#eaf7ff 0%,#d7edff 54%,#e9f8f5 100%); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.48); }
.hero::before { width: 260px; height: 260px; right: 110px; top: -130px; }
.hero::after { width: 150px; height: 150px; left: 38%; bottom: -90px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy small { color: #4a83c4; font-weight: 850; letter-spacing: .16em; }
.hero-copy h1 { margin: 10px 0 12px; font-size: clamp(34px, 4vw, 56px); line-height: 1.12; letter-spacing: -.05em; }
.hero-copy h1 strong { color: #236fc2; }
.hero-copy p { margin: 0; color: #577592; font-size: 17px; }
.hero-logo { position: relative; z-index: 1; width: 100%; height: 200px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(34,91,151,.16)); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 18px; }
.eyebrow { color: #4d88d3; font-size: 12px; font-weight: 850; letter-spacing: .13em; }
.page-heading h1 { margin: 6px 0 6px; font-size: clamp(28px,3vw,40px); }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.stat-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--blue-soft); font-size: 23px; }
.stat:nth-child(2) .stat-icon { background: #e6fbff; }
.stat:nth-child(3) .stat-icon { background: #f5efff; }
.stat small, .stat strong { display: block; }
.stat small { color: var(--muted); font-size: 13px; }
.stat strong { margin-top: 4px; font-size: 28px; }
.stat strong em { margin-left: 4px; font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); }

.latest-update-block { margin-top: 16px; overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.99),rgba(247,251,255,.97)); }
.latest-update-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #e4edf7; }
.latest-update-heading > div:first-child { display: flex; align-items: center; gap: 11px; }
.latest-update-heading h2 { margin: 3px 0 0; font-size: 24px; }
.latest-update-heading-actions { display: flex; align-items: center; gap: 16px; }
.latest-update-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; color: #1769ce; border-radius: 20px; background: #e8f3ff; font-size: 12px; font-weight: 850; }
.latest-update-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 14px; }
.latest-update-meta h3 { margin: 0; font-size: 21px; }
.latest-update-meta p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.latest-update-counts { flex: 0 0 auto; display: flex; gap: 8px; }
.latest-update-counts span { padding: 7px 10px; color: #286fc3; border: 1px solid #cfe2f6; border-radius: 20px; background: #f2f8ff; font-size: 12px; font-weight: 800; }
.latest-update-counts span:last-child { color: #21806e; border-color: #cdece5; background: #effaf7; }
.latest-update-content { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: stretch; padding: 13px; border: 1px solid #d9e8f6; border-radius: 16px; background: rgba(255,255,255,.88); }
.latest-video-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; color: inherit; border: 1px solid #cfe0f1; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.latest-video-card:hover { transform: translateY(-2px); border-color: #69a8f6; box-shadow: 0 13px 26px rgba(47,89,143,.13); }
.latest-video-cover { position: relative; min-height: 310px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(155deg,#cce9ff,#83bde8 52%,#edf9f4); }
.latest-video-cover img { width: 100%; height: 100%; object-fit: cover; }
.latest-video-placeholder { color: rgba(255,255,255,.94); font-size: 52px; }
.latest-play-button { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; display: grid; place-items: center; padding-left: 5px; transform: translate(-50%,-50%); color: white; border: 4px solid white; border-radius: 50%; background: linear-gradient(145deg,#398bf6,#1765d2); box-shadow: 0 10px 25px rgba(18,73,145,.32); font-size: 25px; }
.latest-video-copy { display: flex; flex-direction: column; padding: 13px 14px 14px; }
.latest-video-copy strong { font-size: 17px; }
.latest-video-copy small { margin-top: 5px; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.latest-file-list { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.latest-file-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 13px; color: inherit; border: 1px solid #dce8f4; border-radius: 13px; background: #fbfdff; cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.latest-file-row:hover { transform: translateY(-1px); border-color: #80b3ef; background: #fff; box-shadow: 0 8px 18px rgba(48,84,130,.08); }
.latest-file-icon { width: 45px; height: 45px; display: grid; place-items: center; color: #2674d5; border-radius: 12px; background: #eaf4ff; font-size: 21px; font-weight: 900; }
.latest-file-icon.audio { color: #8157cf; background: #f3edff; }
.latest-file-icon.video { color: #176bd2; background: #e7f2ff; }
.latest-file-icon.image { color: #21836b; background: #eaf8f3; }
.latest-file-icon.pdf { color: #d4575d; background: #fff0f1; }
.latest-file-copy { min-width: 0; }
.latest-file-copy strong, .latest-file-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.latest-file-copy strong { font-size: 15px; }
.latest-file-copy small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.latest-file-action { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: #176ed7; font-size: 13px; font-weight: 800; }
.latest-file-action b { font-size: 22px; }
.latest-file-empty { min-height: 160px; display: grid; place-items: center; padding: 20px; color: var(--muted); border: 1px dashed #ccdfee; border-radius: 13px; background: #f9fcff; text-align: center; }
.latest-file-more { margin: 2px 3px 0; color: var(--muted); font-size: 11px; text-align: right; }
.latest-update-footer { display: flex; justify-content: flex-end; margin-top: 13px; }
.latest-update-footer .secondary-button { border-color: #7db1ee; color: #176bd2; }
.latest-update-loading { min-height: 185px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding-top: 18px; }
.latest-update-loading span { display: block; border-radius: 14px; background: linear-gradient(100deg,#eef4f9 20%,#f8fbfe 38%,#eef4f9 56%); background-size: 300% 100%; animation: latest-shimmer 1.4s infinite; }
.latest-update-loading span:first-child { grid-row: span 2; }
.latest-update-loading span:nth-child(2), .latest-update-loading span:nth-child(3) { min-height: 75px; }
@keyframes latest-shimmer { to { background-position: -100% 0; } }
.latest-update-empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); }
.latest-update-empty strong { color: #3c5d7f; font-size: 18px; }
.latest-update-empty p { max-width: 620px; margin: 8px 0 15px; line-height: 1.6; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; margin-top: 16px; align-items: start; }
.block { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.block-pad { padding: 23px; }
.block-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.block-heading > div { display: flex; align-items: center; gap: 10px; }
.heading-bar { width: 4px; height: 25px; border-radius: 4px; background: linear-gradient(#4d97fa,#1768d6); }
.block-heading h2, .block-heading h3 { margin: 0; font-size: 20px; }
.block-heading small { color: var(--muted); }

.series-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.series-card { width: 100%; min-height: 178px; display: grid; grid-template-columns: 108px 1fr; gap: 15px; padding: 13px; text-align: left; border: 1px solid #d8e5f3; border-radius: 16px; background: linear-gradient(145deg,#fff,#f8fbff); cursor: pointer; transition: .22s; }
.series-card:hover { transform: translateY(-2px); box-shadow: 0 13px 27px rgba(48,85,137,.1); }
.series-card.active { border-color: #69a8f6; box-shadow: 0 0 0 3px rgba(47,125,241,.09); }
.series-cover { width: 108px; aspect-ratio: 9/16; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(150deg,#dff3ff,#afd7ff 55%,#edf9f5); }
.series-cover.violet { background: linear-gradient(150deg,#efe7ff,#d2c4fb 55%,#fff0f5); }
.series-cover img, .episode-cover img, .detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.series-cover span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); color: #276ebd; font-size: 27px; font-weight: 900; }
.series-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.series-info strong { font-size: 20px; line-height: 1.35; }
.series-info small { margin: 9px 0; color: #4d7faf; font-weight: 750; }
.series-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.series-actions { grid-column: 1/-1; display: flex; gap: 8px; padding-top: 4px; }

.subheading { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 13px; padding-top: 21px; border-top: 1px solid #e8eff6; }
.subheading h3 { margin: 0; font-size: 20px; }
.subheading small { color: var(--muted); }
.episode-list { display: flex; flex-direction: column; gap: 10px; }
.episode-card { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 11px; border: 1px solid #dce8f5; border-radius: 15px; background: #fbfdff; cursor: pointer; transition: .2s; }
.episode-card:hover { transform: translateY(-1px); border-color: #80b3f0; background: #fff; box-shadow: 0 10px 22px rgba(55,88,135,.08); }
.episode-cover { width: 92px; aspect-ratio: 9/16; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(150deg,#c5e6ff,#7dbce8 50%,#e9faf4); }
.episode-cover > span { color: rgba(255,255,255,.95); font-size: 26px; }
.episode-copy { min-width: 0; }
.episode-kicker { color: #367ccb; font-size: 12px; font-weight: 800; }
.episode-copy h3 { margin: 6px 0 8px; font-size: 21px; }
.episode-copy p { margin: 0; color: var(--muted); line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: #8090a7; font-size: 12px; }
.review-pill { display: inline-flex; align-items: center; border-radius: 20px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.review-pill.pending { color: #9a6818; background: #fff4df; }
.review-pill.passed { color: #177e4e; background: #e8f8ef; }
.review-pill.rejected { color: #bb3f47; background: #ffebed; }
.episode-actions { display: flex; flex-direction: column; gap: 8px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pagination-button { min-height: 38px; padding: 0 14px; border: 1px solid #cfdfef; border-radius: 10px; color: #4a6b8e; background: #fff; cursor: pointer; font-weight: 750; }
.pagination-button:hover { color: #176ed7; border-color: #80b5f3; background: #f5faff; }
.pagination-button.active { color: #fff; border-color: #2f7df1; background: linear-gradient(135deg,#3b8cf8,#246ddd); box-shadow: 0 7px 16px rgba(45,118,226,.2); }
.empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; border: 1px dashed #c9dcef; border-radius: 14px; background: #f9fcff; color: var(--muted); }
.empty strong { color: #3c5d7f; font-size: 17px; }
.empty p { margin: 7px 0 0; }

.side-stack { display: flex; flex-direction: column; gap: 16px; }
.review-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.review-summary div { padding: 13px 7px; text-align: center; border-radius: 12px; background: #f7fbff; }
.review-summary strong, .review-summary small { display: block; }
.review-summary strong { font-size: 24px; }
.review-summary small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.notice { padding: 17px; color: #456783; background: linear-gradient(140deg,#eaf7ff,#f3fbf8); border: 1px solid #d4e9f5; border-radius: 14px; line-height: 1.7; font-size: 13px; }

.detail-navigation { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.detail-navigation > span { min-width: 0; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.back-button { flex: 0 0 auto; }
.detail-hero { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 30px; align-items: center; padding: 24px; }
.detail-poster { width: 220px; aspect-ratio: 9/16; overflow: hidden; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(150deg,#c6e8ff,#76b7e3 55%,#e8faf3); box-shadow: 0 18px 35px rgba(47,83,130,.15); }
.detail-poster span { color: white; font-size: 40px; }
.detail-copy h1 { margin: 8px 0 12px; font-size: clamp(31px,4vw,50px); }
.detail-copy > p { max-width: 850px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.detail-info { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.detail-info span { padding: 7px 11px; border-radius: 20px; color: #3e638a; background: #edf6ff; font-size: 13px; font-weight: 700; }
.modules { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; margin: 16px 0; }
.module-tab { min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.module-tab:hover, .module-tab.active { color: #166ed8; border-color: #63a4f3; background: #edf6ff; box-shadow: 0 6px 15px rgba(47,125,241,.1); }
.module-tab strong { font-size: 15px; }
.module-tab small { color: var(--muted); font-size: 11px; }
.module-panel { padding: 23px; }
.module-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.module-toolbar h2 { margin: 0 0 5px; font-size: 24px; }
.module-toolbar p { margin: 0; color: var(--muted); }
.progress-form { display: grid; grid-template-columns: 1fr 120px auto; align-items: end; gap: 12px; margin: 18px 0; padding: 15px; border-radius: 13px; background: #f5faff; }
.progress-form .field { margin: 0; }
.asset-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.asset { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid #dce8f4; border-radius: 13px; background: #fcfdff; }
.asset-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: #eaf4ff; font-size: 24px; }
.asset h3 { margin: 0; font-size: 15px; word-break: break-all; }
.asset small { display: block; margin-top: 5px; color: var(--muted); }
.asset p { margin: 7px 0 0; color: #526d89; font-size: 13px; line-height: 1.55; }
.asset-actions { display: flex; gap: 7px; }
.video-preview { grid-column: 2/4; width: min(360px,100%); aspect-ratio: 9/16; border-radius: 12px; background: #0f1722; }

.review-panel { padding: 36px 24px; text-align: center; }
.review-panel .review-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 24px; background: #eaf5ff; font-size: 39px; }
.review-panel h2 { margin: 8px 0; font-size: 29px; }
.review-panel > p { margin: 0; color: var(--muted); }
.review-buttons { max-width: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 24px auto; }
.review-choice { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 2px solid #cfe3d9; border-radius: 16px; color: #237c50; background: #f3fcf7; cursor: pointer; font-size: 19px; font-weight: 850; }
.review-choice.rejected { color: #bd4951; border-color: #f0d2d5; background: #fff6f7; }
.review-choice.selected { box-shadow: 0 0 0 4px rgba(42,174,112,.13); border-color: var(--green); }
.review-choice.rejected.selected { box-shadow: 0 0 0 4px rgba(232,95,102,.12); border-color: var(--red); }
.vote-counts { display: flex; justify-content: center; gap: 20px; color: var(--muted); }
.vote-counts strong { color: var(--ink); }
.review-audit { max-width: 760px; margin: 30px auto 0; padding-top: 25px; border-top: 1px solid #dfe9f4; text-align: left; }
.review-audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.review-audit-heading > div { display: flex; align-items: center; gap: 9px; }
.review-audit-heading h3 { margin: 0; color: var(--ink); font-size: 19px; }
.review-audit-heading > small { color: var(--muted); font-size: 12px; font-weight: 700; }
.review-record-list { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.review-record { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #dce8f3; border-radius: 13px; background: #fbfdff; }
.review-record-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #237c50; background: #eaf8f0; font-size: 20px; font-weight: 900; }
.review-record.rejected .review-record-icon { color: #bd4951; background: #fff0f2; }
.review-record-person { min-width: 0; }
.review-record-person strong, .review-record-person small, .review-record-meta b, .review-record-meta time { display: block; }
.review-record-person strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.review-record-person strong em { display: inline-block; margin-left: 7px; padding: 2px 6px; border-radius: 10px; color: #236fc5; background: #e7f2ff; font-size: 10px; font-style: normal; vertical-align: 2px; }
.review-record-person small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-record-meta { min-width: 130px; text-align: right; }
.review-record-meta b { color: #237c50; font-size: 13px; }
.review-record.rejected .review-record-meta b { color: #bd4951; }
.review-record-meta time { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.review-record-empty { padding: 20px; border: 1px dashed #ccdae8; border-radius: 13px; color: var(--muted); background: #f8fbfe; text-align: center; font-size: 13px; line-height: 1.7; }

.material-category-block { margin-top: 16px; }
.material-page-heading { align-items: flex-start; }
.material-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.preview-support { color: #5c7998; font-size: 12px; font-weight: 700; }
.material-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.material-category-grid > .empty, .material-file-grid > .empty { grid-column: 1/-1; }
.material-category-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #d8e6f4; border-radius: 15px; background: linear-gradient(145deg,#fff,#f7fbff); transition: .2s; }
.material-category-card:hover { transform: translateY(-1px); border-color: #91bdf0; box-shadow: 0 10px 22px rgba(50,88,137,.08); }
.material-category-card.active { border-color: #5a9ff0; box-shadow: 0 0 0 3px rgba(47,125,241,.09); background: linear-gradient(145deg,#fafdff,#edf6ff); }
.material-category-main { min-height: 96px; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 13px; padding: 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.material-category-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #236fc5; background: linear-gradient(145deg,#dff2ff,#c3e2ff); font-size: 24px; font-weight: 900; }
.material-category-main strong, .material-category-main small { display: block; }
.material-category-main strong { overflow: hidden; font-size: 17px; line-height: 1.35; text-overflow: ellipsis; }
.material-category-main small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.material-inline-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 0 13px 10px; border-top: 1px solid #edf2f8; }
.material-inline-actions .text-button { font-size: 12px; }
.materials-layout { display: grid; grid-template-columns: 315px minmax(0,1fr); align-items: start; gap: 16px; margin-top: 16px; }
.material-category-description { margin: -5px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.material-folder-list { display: flex; flex-direction: column; gap: 8px; }
.material-folder-list .empty { min-height: 210px; }
.material-folder-card { overflow: hidden; border: 1px solid #dde8f3; border-radius: 12px; background: #fbfdff; }
.material-folder-card.active { border-color: #6da8ed; background: #edf6ff; box-shadow: 0 0 0 2px rgba(47,125,241,.07); }
.material-folder-main { width: 100%; min-height: 66px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 8px; padding: 10px 11px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.material-folder-main > span:first-child { color: #80a0c1; font-size: 11px; font-weight: 850; }
.material-folder-main strong, .material-folder-main small { display: block; }
.material-folder-main strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.material-folder-main small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.material-folder-card .material-inline-actions { padding-top: 2px; padding-bottom: 6px; }
.material-files-pane { min-width: 0; }
.material-files-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #e7eef6; }
.material-files-heading h2 { margin: 6px 0; font-size: 25px; }
.material-files-heading p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.65; }
.material-file-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.material-file-card { min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 13px; padding: 12px; border: 1px solid #dce8f4; border-radius: 15px; background: #fcfdff; }
.material-file-thumb { width: 112px; aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; border-radius: 12px; color: #2c72be; background: linear-gradient(145deg,#e6f5ff,#d5eaff); }
.material-file-thumb.audio { color: #7a57c5; background: #f1ecff; }
.material-file-thumb.video { color: #2a7c63; background: #e8f8f1; }
.material-file-thumb.pdf, .material-file-thumb.text { color: #bd5a62; background: #fff0f1; }
.material-file-thumb.download { color: #87631e; background: #fff5df; }
.material-file-thumb span { font-size: 31px; font-weight: 900; }
.material-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-file-copy { min-width: 0; }
.material-kind { color: #4a84c7; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.material-file-copy h3 { margin: 5px 0 6px; overflow: hidden; font-size: 15px; line-height: 1.42; white-space: nowrap; text-overflow: ellipsis; }
.material-file-copy small { color: var(--muted); font-size: 11px; }
.material-file-copy p { margin: 8px 0 0; color: #58718b; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.material-file-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 2px; }
.material-file-actions .secondary-button, .material-file-actions .danger-button { min-height: 36px; padding: 0 11px; font-size: 12px; }
.preview-unavailable { margin-right: auto; color: #8a98aa; font-size: 11px; }
.preview-modal { width: min(1080px,100%); }
.material-preview-stage { min-height: 420px; display: grid; place-items: center; overflow: hidden; margin-top: 17px; border: 1px solid #d7e5f3; border-radius: 15px; background: #f2f7fc; }
.material-preview-image { max-width: 100%; max-height: 70vh; object-fit: contain; }
.material-preview-audio { width: min(720px,calc(100% - 30px)); }
.material-preview-video { width: min(760px,100%); max-height: 70vh; background: #0d1723; }
.material-preview-frame { width: 100%; min-height: 68vh; border: 0; background: white; }

.material-sort-page-heading { align-items: flex-start; }
.material-sort-workspace { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
.material-sort-panel { min-width: 0; overflow: hidden; padding: 22px; }
.material-sort-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #e5edf6; }
.material-sort-panel-heading > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.material-sort-panel-heading h2 { margin: 0; font-size: 21px; }
.material-sort-panel-heading p { margin: 5px 0 0; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.material-sort-panel-heading > small { flex: 0 0 auto; padding: 5px 9px; border-radius: 20px; color: #4476ad; background: #edf6ff; font-size: 11px; font-weight: 750; }
.material-sort-step { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg,#4b96f8,#246edc); box-shadow: 0 7px 14px rgba(47,125,241,.2); font-weight: 900; }
.material-sort-list { min-height: 350px; display: flex; flex-direction: column; gap: 9px; padding-top: 16px; }
.material-sort-list .empty { flex: 1; }
.material-sort-row { position: relative; min-width: 0; min-height: 70px; display: grid; grid-template-columns: 28px 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #dce7f3; border-radius: 13px; background: linear-gradient(145deg,#fff,#f9fcff); transition: border-color .16s, box-shadow .16s, opacity .16s, transform .16s; }
.material-sort-row:hover { border-color: #96bee9; box-shadow: 0 8px 18px rgba(43,82,129,.07); }
.material-sort-row.selected { border-color: #4c92e8; background: #edf6ff; box-shadow: 0 0 0 3px rgba(47,125,241,.09); }
.material-sort-row.dragging { opacity: .42; transform: scale(.985); }
.material-sort-row.drop-before::before, .material-sort-row.drop-after::after { content: ""; position: absolute; z-index: 2; left: 8px; right: 8px; border-top: 2px dashed #2f7df1; }
.material-sort-row.drop-before::before { top: -6px; }
.material-sort-row.drop-after::after { bottom: -6px; }
.material-sort-grip { color: #87a3bf; cursor: grab; font-size: 23px; line-height: 1; user-select: none; }
.material-sort-row:active .material-sort-grip { cursor: grabbing; }
.material-sort-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #6383a5; background: #edf4fb; font-size: 11px; font-weight: 850; }
.material-sort-row.selected .material-sort-number { color: #1f6dca; background: #d9ecff; }
.material-sort-copy { min-width: 0; width: 100%; padding: 4px 0; border: 0; color: inherit; background: transparent; text-align: left; }
button.material-sort-copy { cursor: pointer; }
.material-sort-copy strong, .material-sort-copy small { display: block; }
.material-sort-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.material-sort-copy small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.material-sort-controls { display: flex; gap: 5px; }
.material-sort-controls .icon-button { width: 34px; height: 34px; border: 1px solid #d2e1ef; border-radius: 9px; color: #47709a; background: #fff; font-weight: 900; }
.material-sort-controls .icon-button:hover { border-color: #83b3eb; }
.material-sort-controls .icon-button:disabled { opacity: .32; cursor: not-allowed; background: #f5f7fa; }
.material-sort-footer { position: sticky; z-index: 12; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 17px; border: 1px solid #cfe0f1; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 14px 34px rgba(39,75,119,.13); backdrop-filter: blur(14px); }
.material-sort-footer p { margin: 0; color: #5a7592; font-size: 13px; }
.material-sort-footer p span { color: #2f7df1; font-size: 18px; font-weight: 900; }
.material-sort-footer > div { flex: 0 0 auto; display: flex; gap: 9px; }

.users-list { display: flex; flex-direction: column; gap: 8px; }
.user-row { display: grid; grid-template-columns: minmax(0,1fr) 90px minmax(190px,auto); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e0e9f3; border-radius: 11px; }
.user-row strong, .user-row small { display: block; }
.user-row small { margin-top: 4px; color: var(--muted); }
.user-row em { font-style: normal; color: #4f6f91; }
.user-actions { display: flex; justify-content: flex-end; gap: 7px; }
.account-settings-copy { display: flex; flex-direction: column; margin: 14px 0 20px; padding: 14px; border-radius: 13px; background: #f3f8fe; }
.account-settings-copy small { margin-top: 5px; color: var(--muted); }

.mobile-tabbar { display: none; }
.toast { position: fixed; z-index: 100; top: 92px; left: 50%; transform: translateX(-50%); padding: 11px 17px; color: white; background: rgba(25,54,87,.94); border-radius: 24px; box-shadow: 0 12px 30px rgba(20,45,76,.22); font-weight: 700; }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,36,61,.42); backdrop-filter: blur(5px); }
.modal { width: min(520px,100%); max-height: 90vh; overflow: auto; padding: 23px; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(14,36,64,.25); }
.modal-heading { display: flex; justify-content: space-between; gap: 15px; }
.modal-heading h2 { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

@media (max-width: 1050px) {
  .sidebar { display: none; }
  .sidebar-resizer { display: none; }
  .main { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr 250px; }
  .material-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .materials-layout { grid-template-columns: 280px minmax(0,1fr); }
  .material-file-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { background: #f3f9ff; }
  .login-page { display: block; min-height: 100vh; padding: 24px 20px; background: linear-gradient(155deg,#e5f5ff,#f7fbff 52%,#edf9f4); }
  .login-visual { display: none; }
  .login-panel { min-height: calc(100vh - 48px); padding: 22px; border-radius: 24px; box-shadow: var(--shadow); }
  .login-card .mobile-logo { display: block; }
  .login-card h2 { font-size: 30px; }
  .topbar { height: 68px; padding: 0 15px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 54px; height: 43px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small, .account-copy { display: none; }
  .avatar { width: 36px; height: 36px; }
  .main { padding-top: 68px; }
  .page { padding: 14px 13px 92px; }
  .hero { min-height: 210px; grid-template-columns: minmax(0,1fr) 120px; padding: 24px 19px; border-radius: 20px; }
  .hero-copy small { font-size: 10px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy p { font-size: 13px; line-height: 1.55; }
  .hero-logo { height: 125px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin: 21px 2px 15px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 13px; }
  .page-heading > .button-row { width: 100%; }
  .page-heading > .button-row > button { flex: 1 1 auto; }
  .stats { gap: 8px; }
  .stat { min-height: 90px; display: block; padding: 13px 10px; text-align: center; border-radius: 14px; }
  .stat-icon { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 12px; font-size: 18px; }
  .stat small { font-size: 10px; }
  .stat strong { font-size: 21px; }
  .stat strong em { font-size: 10px; }
  .latest-update-block { margin-top: 12px; }
  .latest-update-heading { align-items: flex-start; padding-bottom: 13px; }
  .latest-update-heading h2 { font-size: 21px; }
  .latest-update-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 4px; }
  .latest-update-heading-actions .text-button { font-size: 11px; }
  .latest-update-badge { min-height: 25px; padding: 0 8px; font-size: 10px; }
  .latest-update-meta { align-items: flex-start; flex-direction: column; padding: 14px 0 11px; }
  .latest-update-meta h3 { font-size: 17px; line-height: 1.45; }
  .latest-update-meta p { font-size: 11px; }
  .latest-update-counts span { padding: 5px 8px; font-size: 10px; }
  .latest-update-content { grid-template-columns: 104px minmax(0,1fr); gap: 9px; padding: 8px; }
  .latest-video-cover { min-height: 185px; }
  .latest-play-button { width: 48px; height: 48px; border-width: 3px; font-size: 17px; }
  .latest-video-copy { padding: 9px; }
  .latest-video-copy strong { font-size: 14px; }
  .latest-video-copy small { font-size: 9px; white-space: normal; line-height: 1.45; }
  .latest-file-list { gap: 7px; }
  .latest-file-row { min-height: 58px; grid-template-columns: 35px minmax(0,1fr); gap: 8px; padding: 7px 8px; }
  .latest-file-icon { width: 35px; height: 35px; border-radius: 9px; font-size: 17px; }
  .latest-file-copy strong { font-size: 12px; }
  .latest-file-copy small { margin-top: 4px; font-size: 9px; }
  .latest-file-action { grid-column: 2; margin-top: -3px; font-size: 10px; }
  .latest-file-action b { font-size: 15px; }
  .latest-file-more { display: none; }
  .latest-update-footer .secondary-button { width: 100%; }
  .latest-update-loading { min-height: 150px; grid-template-columns: 100px 1fr; gap: 9px; }
  .block-pad { padding: 16px 13px; }
  .block-heading h2, .block-heading h3 { font-size: 19px; }
  .series-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .series-card { min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 9px; }
  .series-cover { width: 100%; aspect-ratio: 9/12.5; }
  .series-info strong { min-height: 46px; font-size: 16px; line-height: 1.4; }
  .series-info small { margin: 5px 0 0; font-size: 11px; }
  .series-info p { display: none; }
  .series-actions { width: 100%; padding: 0; }
  .series-actions button { flex: 1; min-height: 36px; padding: 0 7px; font-size: 11px; }
  .subheading { margin-top: 23px; }
  .pagination { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pagination-button { flex: 0 0 auto; }
  .episode-card { grid-template-columns: 82px minmax(0,1fr); gap: 12px; }
  .episode-cover { width: 82px; }
  .episode-copy h3 { font-size: 18px; }
  .episode-copy p { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .episode-actions { grid-column: 1/-1; flex-direction: row; }
  .episode-actions button { flex: 1; }
  .side-stack { display: flex; }
  .detail-navigation > span { display: none; }
  .detail-hero { grid-template-columns: 118px minmax(0,1fr); gap: 15px; padding: 14px; }
  .detail-poster { width: 118px; }
  .detail-copy h1 { margin: 5px 0 7px; font-size: 25px; }
  .detail-copy > p { font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .detail-info { gap: 6px; margin-top: 10px; }
  .detail-info span { padding: 5px 7px; font-size: 10px; }
  .modules { overflow-x: auto; grid-template-columns: repeat(5,96px); padding-bottom: 5px; }
  .module-tab { min-height: 62px; }
  .module-panel { padding: 16px 13px; }
  .module-toolbar { display: block; }
  .module-toolbar .primary-button { margin-top: 12px; }
  .progress-form { grid-template-columns: 1fr; }
  .asset { grid-template-columns: 43px minmax(0,1fr); }
  .asset-icon { width: 43px; height: 43px; }
  .asset-actions { grid-column: 1/-1; }
  .asset-actions a, .asset-actions button { flex: 1; }
  .video-preview { grid-column: 1/-1; margin: auto; }
  .review-buttons { grid-template-columns: 1fr; }
  .review-choice { min-height: 82px; }
  .review-panel { padding: 28px 9px; }
  .review-audit { margin-top: 24px; padding-top: 20px; }
  .review-record { grid-template-columns: 38px minmax(0,1fr); padding: 11px; }
  .review-record-icon { width: 38px; height: 38px; }
  .review-record-meta { grid-column: 2; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .review-record-meta time { margin-top: 0; text-align: right; }
  .user-row { grid-template-columns: 1fr auto; }
  .user-row > :last-child { grid-column: 1/-1; }
  .user-actions button { flex: 1; }
  .material-page-heading { align-items: flex-start; flex-wrap: wrap; }
  .material-page-heading .primary-button { flex: 0 0 auto; padding: 0 12px; }
  .material-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .material-heading-actions .primary-button, .material-heading-actions .secondary-button { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .preview-support { display: none; }
  .material-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .material-category-main { min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 11px; }
  .material-category-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
  .material-category-main strong { font-size: 15px; }
  .material-category-main small { line-height: 1.45; }
  .material-inline-actions { justify-content: space-around; gap: 5px; padding: 4px 7px 7px; }
  .materials-layout { display: flex; flex-direction: column; }
  .material-folder-pane, .material-files-pane { width: 100%; }
  .material-folder-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .material-folder-main { min-height: 72px; grid-template-columns: 27px minmax(0,1fr); padding: 8px; }
  .material-files-heading { display: block; }
  .material-files-heading .primary-button { width: 100%; margin-top: 13px; }
  .material-file-grid { grid-template-columns: 1fr; }
  .material-file-card { grid-template-columns: 90px minmax(0,1fr); padding: 10px; }
  .material-file-thumb { width: 90px; }
  .material-file-actions > a, .material-file-actions > button { flex: 1 1 auto; }
  .preview-unavailable { flex: 1 0 100%; }
  .material-preview-stage { min-height: 260px; }
  .material-preview-frame { min-height: 65vh; }
  .material-sort-page-heading { display: block; }
  .material-sort-page-heading > .secondary-button { width: 100%; margin-top: 13px; }
  .material-sort-workspace { grid-template-columns: 1fr; }
  .material-sort-panel { padding: 15px 12px; }
  .material-sort-panel-heading h2 { font-size: 18px; }
  .material-sort-list { min-height: 220px; }
  .material-sort-row { min-height: 66px; grid-template-columns: 22px 32px minmax(0,1fr) auto; gap: 7px; padding: 8px 7px; }
  .material-sort-number { width: 32px; height: 34px; }
  .material-sort-copy strong { font-size: 14px; }
  .material-sort-copy small { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .material-sort-controls { gap: 3px; }
  .material-sort-controls .icon-button { width: 32px; height: 34px; }
  .material-sort-footer { bottom: 82px; display: block; padding: 12px; }
  .material-sort-footer p { margin-bottom: 10px; font-size: 11px; }
  .material-sort-footer > div { display: grid; grid-template-columns: 1fr 1.5fr; }
  .mobile-tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: 72px; display: grid; grid-template-columns: repeat(5,1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid #d8e5f2; backdrop-filter: blur(15px); }
  .mobile-tabbar button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #71849f; font-size: 11px; }
  .mobile-tabbar button.active { color: #1f71d8; font-weight: 800; }
  .toast { top: 76px; max-width: calc(100% - 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
