:root {
  --purple: #5e63d8;
  --bg: #f4f5f9;
  --paper: #fff;
  --ink: #232536;
  --muted: #717487;
  --line: #dedfeb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.65 system-ui,
    -apple-system,
    "PingFang SC",
    sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
button,
input {
  font: inherit;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: #161827;
  color: #c4c6d8;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 24px;
  font-weight: 950;
  color: #fff;
}
.logo span {
  color: #8c91ff;
  margin-left: 4px;
}
.sidebar nav,
.sidebar > div {
  display: grid;
  gap: 7px;
  margin-top: 35px;
}
.sidebar a {
  padding: 9px 11px;
}
.sidebar .on {
  background: var(--purple);
  color: #fff;
  border-radius: 7px;
}
.welcome,
.continue,
.library,
.rank,
.faq {
  scroll-margin-top: 24px;
}
.sidebar > div b {
  color: #fff;
  margin-bottom: 5px;
}
.sidebar small {
  margin-top: auto;
}
.app {
  margin-left: 220px;
}
.app > header {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header form {
  display: flex;
  margin-right: auto;
}
header input {
  width: 330px;
  border: 1px solid var(--line);
  padding: 9px 12px;
}
header button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
}
header form button {
  background: var(--purple);
  color: #fff;
}
.app main {
  padding: 28px;
  max-width: 1300px;
  margin: auto;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #4f54bd, #7c62b8);
  color: #fff;
  padding: 28px 32px;
  border-radius: 13px;
}
.welcome p {
  margin: 0;
  color: #d9dbff;
}
.welcome h1 {
  font-size: 36px;
  margin: 5px 0;
}
.summary {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 10px;
}
.summary b {
  font-size: 25px;
}
.continue,
.library,
.rank,
.faq {
  margin-top: 28px;
}
.title {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.title h2,
.rank h2,
.faq h2 {
  font-size: 24px;
}
.title button {
  border: 0;
  background: transparent;
}
.continue article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}
.continue img {
  height: 150px;
}
.continue article > div {
  display: grid;
  align-content: center;
}
.continue progress {
  width: 100%;
  accent-color: var(--purple);
}
.continue article button {
  justify-self: start;
  border: 0;
  background: var(--purple);
  color: #fff;
  padding: 8px 12px;
  margin-top: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cards article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding-bottom: 12px;
}
.cards img {
  height: 150px;
}
.cards i {
  position: absolute;
  right: 7px;
  top: 7px;
  background: #ef8d3d;
  color: #fff;
  padding: 3px 7px;
  font-style: normal;
}
.cards .done {
  background: #2e9273;
}
.cards h3,
.cards p,
.cards small {
  margin-left: 12px;
  margin-right: 12px;
}
.cards h3 {
  font-size: 16px;
  margin-bottom: 3px;
}
.cards p {
  color: var(--purple);
  margin-top: 0;
}
.cards small {
  color: var(--muted);
}
.rank {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.rank ol {
  list-style: none;
  padding: 0;
}
.rank li {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.rank li > b {
  color: var(--purple);
}
.rank li span {
  display: grid;
}
.rank small {
  color: var(--muted);
}
.tip {
  margin-top: 20px;
  padding: 14px;
  background: #efeffa;
}
.tip p {
  color: var(--muted);
}
.qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qa article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 17px;
}
.qa b {
  color: var(--purple);
}
.qa h3 {
  font-size: 16px;
}
.qa p {
  color: var(--muted);
}
.friends {
  padding: 17px 28px;
  background: #e9eaf2;
}
.friends a {
  margin-left: 14px;
  color: #626579;
}
footer {
  padding: 30px 28px;
  background: #161827;
  color: #aaa;
  display: flex;
  gap: 30px;
}
footer b {
  color: #fff;
}
.footer-logo{color:#fff;font-weight:800}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{color:inherit;text-decoration:none}
footer span {
  margin-left: auto;
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
  }
  .sidebar nav {
    display: none;
  }
  .sidebar > div {
    display: none;
  }
  .sidebar small {
    display: none;
  }
  .app {
    margin: 0;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .rank {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .app main {
    padding: 14px;
  }
  .app > header {
    padding: 0 14px;
  }
  .app > header > button {
    display: none;
  }
  header input {
    width: 210px;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h1 {
    font-size: 29px;
  }
  .summary {
    display: none;
  }
  .continue article {
    grid-template-columns: 120px 1fr;
  }
  .continue img {
    height: 120px;
  }
  .cards {
    gap: 9px;
  }
  .cards img {
    height: 105px;
  }
  .cards small {
    display: none;
  }
  .qa {
    grid-template-columns: 1fr;
  }
  .friends a {
    display: inline-block;
    margin: 4px 7px 4px 0;
  }
  footer {
    display: grid;
  }
  footer span {
    margin: 0;
  }
}
body.night{background:#111426;color:#eef0ff}body.night .app,body.night header,body.night article,body.night .faq{background:#191d33;color:#eef0ff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width: 640px){a,button,summary{min-height:24px}.friends a{display:inline-flex;align-items:center;padding-block:4px}}
