:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #1a1c34;
  background: #f6f7fb;
  --ink: #1a1c34;
  --muted: #5e6279;
  --line: #e6e8f1;
  --primary: #3f40d5;
  --soft: #ededff;
  --radius: 22px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .52; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }
:focus-visible { outline: 3px solid #6868ed; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
.skip { position: fixed; z-index: 20; top: -9rem; left: 1rem; background: white; padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; background: #fff; border-right: 1px solid var(--line); padding: 27px 16px 18px; display: flex; flex-direction: column; z-index: 3; overflow-y: auto; }
.brand { display: flex; gap: 11px; align-items: center; margin: 0 0 42px 9px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.brand img { box-shadow: 0 5px 10px #3f40d530; border-radius: 13px; }
.brand-sub { display: block; font-size: 9px; color: var(--muted); letter-spacing: .1em; margin-top: 7px; }
.nav-label { font-size: 10px; font-weight: 750; letter-spacing: .1em; color: #666b83; margin: 0 10px 9px; }
.nav-link + .nav-label { margin-top: 25px; }
.nav-link { display: flex; gap: 11px; align-items: center; padding: 11px 12px; margin-bottom: 4px; min-height: 46px; border-radius: 11px; color: #4c516a; font-size: .92rem; font-weight: 600; transition: background .2s, color .2s; }
.nav-link:hover { background: #f4f4ff; color: var(--primary); }
.nav-link.selected { color: #3938ca; background: var(--soft); font-weight: 750; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; padding: 11px 8px; gap: 9px; background: #f7f7fb; border: 1px solid var(--line); border-radius: 13px; }
.foot-icon, .record-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 10px; color: var(--primary); background: var(--soft); }
.sidebar-foot strong { font-size: .84rem; display: block; }
.sidebar-foot div > span { font-size: .75rem; color: var(--muted); display: block; }
.shell { margin-left: 238px; min-height: 100svh; display: flex; flex-direction: column; }
.topbar { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 clamp(19px, 3.3vw, 52px); }
.breadcrumb, .top-actions, .account, .actions { display: flex; align-items: center; gap: 10px; }
.breadcrumb { color: var(--muted); font-size: .92rem; }
.breadcrumb strong { color: var(--ink); }
.account { font-weight: 700; max-width: min(32vw, 230px); }
.account > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; background: #eaeaff; color: #3939b7; width: 38px; height: 38px; border-radius: 15px; font-weight: 800; flex: none; }
.avatar.large { width: 70px; height: 70px; border-radius: 24px; font-size: 2rem; margin-bottom: 10px; }
.mobile-menu { display: none !important; }
main, .footer { width: min(100%, 1440px); padding: 0 clamp(19px, 3.3vw, 52px); margin-inline: auto; }
main { flex: 1; padding-top: 29px; padding-bottom: 44px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(1.95rem, 3.4vw, 2.72rem); font-weight: 800; letter-spacing: -.055em; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.page-heading p:empty { display: none; }
.hero { display: grid; grid-template-columns: 49% 51%; overflow: hidden; isolation: isolate; border: 1px solid #dfe3ff; border-radius: 24px; position: relative; min-height: 300px; background: linear-gradient(100deg, #e8ebff 10%, #d6dcfb 90%); }
.hero-copy { padding: clamp(24px, 3.5vw, 48px); position: relative; z-index: 1; align-self: center; animation: arrive .52s both; }
.hero-label { display: inline-flex; align-items: center; gap: 6px; color: #3432b6; font-size: .72rem; font-weight: 800; letter-spacing: .095em; }
.hero h2 { font-size: clamp(2.45rem, 4.7vw, 4.55rem); letter-spacing: -.065em; font-weight: 820; line-height: .98; margin: 11px 0 15px; }
.hero p { color: #464a69; max-width: 330px; margin-bottom: 23px; }
.hero-art { overflow: hidden; position: absolute; inset: 0 0 0 43%; mask-image: linear-gradient(90deg, transparent, #000 19%); }
.hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; animation: hero-enter .8s cubic-bezier(.2,.7,.35,1) both; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: .875rem; line-height: 1.25; transition: background .18s, transform .18s, box-shadow .18s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.primary { color: #fff; background: var(--primary); box-shadow: 0 5px 12px #4843d323; }
.primary:hover:not(:disabled) { background: #302fba; box-shadow: 0 6px 16px #4843d349; }
.hero .btn { padding: 11px 16px; }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary:hover:not(:disabled), .icon-btn:hover { background: #f2f3fc; }
.soft { background: var(--soft); color: #3432b6; }
.soft:hover:not(:disabled) { background: #dfdfff; }
.danger { background: #fff1f1; color: #a12642; }
.danger:hover:not(:disabled) { background: #fbe1e8; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: #464967; }
#courses { scroll-margin-top: 18px; margin-top: 29px; }
.section-heading { margin-bottom: 13px; }
.section-heading h2, .panel h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.muted { color: var(--muted); font-size: .875rem; }
#course-count:not(:empty) { margin-top: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.search-field, .select-box { display: flex; align-items: center; gap: 9px; border: 1px solid #e1e3ee; background: #fff; border-radius: 11px; color: var(--muted); position: relative; }
.search-field { flex: 1 1 250px; padding: 4px 5px 4px 12px; min-height: 49px; }
.search-field input, .select-box select { width: 100%; border: 0; color: var(--ink); background: transparent; min-width: 0; }
.search-field input { padding: 4px; }
.search-field input::placeholder { color: var(--muted); }
.search-field .btn { min-height: 36px; }
.select-box > svg:first-child { margin-left: 12px; }
.select-box select { appearance: none; min-height: 47px; padding: 8px 36px 8px 11px; font-size: .875rem; }
.select-box > svg:last-child { position: absolute; right: 12px; pointer-events: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 2px 4px #24244a08; animation: arrive .38s both; transition: transform .25s, box-shadow .25s; }
.card:nth-child(3n+2) { animation-delay: .045s; }
.card:nth-child(3n+3) { animation-delay: .09s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #24244a13; }
.cover { min-height: 122px; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--cover); }
.cover-0 { --cover: #2459ca; --cover2: #6e9cff; }
.cover-1 { --cover: #4a40db; --cover2: #9b80ff; }
.cover-2 { --cover: #b4e5cc; --cover2: #2b8e75; color: #165f4d; }
.cover-3 { --cover: #ffd578; --cover2: #f69858; color: #823919; }
.cover-lines { position: absolute; width: 240px; height: 240px; border: 1px solid currentColor; opacity: .34; border-radius: 36%; transform: rotate(-24deg) scaleY(.48); box-shadow: 0 0 0 18px #ffffff51, 0 0 0 32px #ffffff38, 0 0 0 47px #ffffff25; }
.cover-mark { position: relative; z-index: 1; font-size: 68px; line-height: 1; text-shadow: 0 5px 20px var(--cover2); transition: transform .35s; }
.card:hover .cover-mark { transform: rotate(13deg) scale(1.09); }
.cover-corner { position: absolute; right: 14px; top: 8px; opacity: .8; }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.category-tag, .status { background: #f0efff; color: #433caa; font-size: .75rem; font-weight: 700; display: inline-block; padding: 3px 8px; border-radius: 7px; overflow-wrap: anywhere; }
.status { background: #eef0f7; color: #4c526b; }
.status.accepted { color: #166452; background: #e0f8ed; }
.status.pending { color: #785014; background: #fff1cd; }
.status.rejected { color: #9c2840; background: #ffe8ee; }
.card h3 { font-size: 1.14rem; margin: 9px 0 5px; }
.card p { color: var(--muted); font-size: .875rem; margin-bottom: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; color: var(--muted); }
.pagination button:disabled { cursor: default; }
.empty, .panel, .record { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty { display: grid; justify-items: center; text-align: center; padding: 35px 19px; gap: 9px; }
.empty p, .panel p { color: var(--muted); }
.empty .btn { margin-top: 7px; }
.empty-icon { background: var(--soft); color: var(--primary); width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.loading { color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 10px; padding: 30px 12px; }
.spinner { width: 19px; height: 19px; border: 2px solid #dedff9; border-top-color: var(--primary); border-radius: 50%; animation: spin .65s linear infinite; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; background: #ecedf6; padding: 4px; border-radius: 13px; width: fit-content; margin-bottom: 16px; }
.tab { background: transparent; color: #505670; }
.tab.active { background: #fff; color: #3739ba; box-shadow: 0 2px 5px #25264a12; }
.record { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 9px; }
.record-copy { flex: 1; min-width: 0; }
.record-copy p { color: var(--muted); margin-top: 4px; }
.record-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 7px; font-size: .82rem; color: var(--muted); }
.actions { flex-wrap: wrap; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.panel { padding: 22px; }
.profile-balance { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--soft); color: #3938ad; padding: 10px; margin-top: 16px; border-radius: 12px; }
.profile-balance strong { margin-left: auto; }
.profile-settings p { margin: 7px 0 15px; }
.footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); font-size: .825rem; }
.footer > span:first-child { font-weight: 800; color: var(--ink); }
dialog { width: min(470px, calc(100vw - 26px)); max-height: 90svh; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: auto; color: var(--ink); box-shadow: 0 22px 72px #171a5040; }
dialog.wide { width: min(700px, calc(100vw - 26px)); }
dialog[open] { animation: arrive .25s both; }
dialog::backdrop { background: #181b3f7b; backdrop-filter: blur(4px); }
.dialog-inner { padding: clamp(16px, 3vw, 25px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 1.55rem; letter-spacing: -.035em; padding-top: 4px; }
.dialog-form, .course-detail { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; font-size: .9rem; font-weight: 650; }
.field > input, textarea { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid #dce0ef; color: var(--ink); background: #fafaff; min-width: 0; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 6px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }
.auth-links { display: flex; justify-content: center; gap: 4px 11px; flex-wrap: wrap; }
.text-btn { color: #3f3abe; background: transparent; padding: 0; min-height: 28px; }
.text-btn:hover { text-decoration: underline; }
.form-error { padding: 8px 11px; border-radius: 8px; color: #972742; background: #fff0f3; font-size: .9rem; }
.detail-price { display: flex; gap: 9px 16px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.detail-price strong { color: var(--ink); font-size: 1.2rem; }
.video-slot:empty { display: none; }
.video-slot video { width: 100%; max-height: 47svh; display: block; background: #17192f; border-radius: 12px; margin-bottom: 8px; }
.moderate-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.moderate-actions h3 { margin-bottom: 9px; }
.toast { position: fixed; z-index: 10; right: 16px; bottom: 16px; max-width: min(390px, calc(100vw - 32px)); padding: 11px 14px; color: #fff; background: #24264c; border-radius: 10px; box-shadow: 0 8px 26px #16183844; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
@keyframes arrive { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-enter { from { opacity: 0; transform: translateX(13px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .sidebar { width: 211px; }
  .shell { margin-left: 211px; }
  .record { flex-wrap: wrap; }
  .record .actions { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .mobile-menu { display: inline-grid !important; }
  .sidebar { display: none; inset: 72px auto 0 0; width: min(270px, 92vw); box-shadow: 13px 0 34px #18193626; }
  .sidebar.open { display: flex; }
  .shell { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 2; }
  main { padding-top: 21px; }
  #courses { scroll-margin-top: 86px; }
}
@media (max-width: 485px) {
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 21px 21px 0; }
  .hero h2 br { display: none; }
  .hero h2 { max-width: 260px; }
  .hero-art { position: relative; inset: auto; height: 145px; mask-image: linear-gradient(180deg, transparent, #000 18%); }
  .hero-art img { object-fit: contain; }
  .cards, .profile-layout { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .toolbar > .select-box { flex: 1 1 145px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
