:root {
  --yt-ink: #24150f;
  --yt-muted: #765f53;
  --yt-paper: #fffaf2;
  --yt-line: #eaded0;
  --yt-red: #b91f18;
  --yt-orange: #ed8d24;
  --yt-green: #2f6b52;
}

.yt-practice { max-width: 1180px; margin: 38px auto 80px; padding: 0 22px; color: var(--yt-ink); }
.yt-practice__hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 280px; padding: 54px 64px; border-radius: 28px; color: white; background: linear-gradient(118deg, #a91613 0%, #d43a18 54%, #ee9b28 100%); box-shadow: 0 22px 55px rgba(111, 39, 15, .18); }
.yt-practice__hero:after { content: ''; position: absolute; width: 480px; height: 480px; right: -130px; bottom: -330px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.05), 0 0 0 104px rgba(255,255,255,.04); }
.yt-practice__hero > * { position: relative; z-index: 1; }
.yt-practice__eyebrow { font-size: 12px; letter-spacing: .18em; opacity: .78; }
.yt-practice__hero h1 { max-width: 760px; margin: 14px 0 12px; font-family: 'Songti SC', 'STSong', serif; font-size: clamp(36px, 5vw, 62px); line-height: 1.12; }
.yt-practice__hero p { margin: 0; font-size: 18px; opacity: .9; }
.yt-practice__seal { display: grid; place-items: center; width: 104px; height: 104px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; text-align: center; font-family: serif; font-size: 20px; line-height: 1.35; }
.yt-practice__panel, .yt-practice__workspace, .yt-practice__empty { margin-top: 24px; padding: 34px; border: 1px solid var(--yt-line); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 13px 35px rgba(69, 42, 26, .08); }
.yt-practice__heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.yt-practice__heading > div { display: flex; align-items: center; gap: 12px; }
.yt-practice__heading span { color: var(--yt-orange); font-size: 14px; font-weight: 700; }
.yt-practice__heading h2 { margin: 0; font-size: 26px; }
.yt-practice__heading p { margin: 0; color: var(--yt-muted); }
.yt-practice__modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yt-practice__module { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--yt-line); border-radius: 16px; color: var(--yt-ink); background: var(--yt-paper); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.yt-practice__module:hover { transform: translateY(-2px); border-color: #d7bda4; box-shadow: 0 9px 20px rgba(65, 37, 20, .09); }
.yt-practice__module > b { color: var(--yt-orange); font-size: 22px; font-family: serif; }
.yt-practice__module span { display: grid; gap: 4px; }
.yt-practice__module strong { font-size: 17px; }
.yt-practice__module small { color: var(--yt-muted); }
.yt-practice__module > i { font-size: 24px; font-style: normal; }
.yt-practice__module.is-locked { opacity: .46; cursor: default; filter: grayscale(.5); }
.yt-practice__progress { height: 5px; margin: -34px -34px 30px; overflow: hidden; border-radius: 24px 24px 0 0; background: #f2e9de; }
.yt-practice__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yt-red), var(--yt-orange)); transition: width .25s ease; }
.yt-practice__meta { display: flex; justify-content: space-between; color: var(--yt-muted); font-size: 13px; letter-spacing: .08em; }
.yt-practice__workspace h2 { max-width: 900px; margin: 24px 0 28px; font-size: clamp(24px, 3vw, 34px); line-height: 1.45; }
.yt-practice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yt-practice__option { display: grid; grid-template-columns: 34px 34px 1fr; align-items: center; min-height: 72px; padding: 14px 18px; border: 1px solid var(--yt-line); border-radius: 14px; background: var(--yt-paper); cursor: pointer; }
.yt-practice__option:has(input:checked) { border-color: var(--yt-orange); background: #fff3df; box-shadow: inset 0 0 0 1px var(--yt-orange); }
.yt-practice__option input { accent-color: var(--yt-red); }
.yt-practice__option b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1e5d7; }
.yt-practice__submit, .yt-practice__feedback button, .yt-practice-login a { margin-top: 24px; padding: 14px 28px; border: 0; border-radius: 12px; color: white; background: linear-gradient(105deg, var(--yt-red), var(--yt-orange)); font-weight: 700; cursor: pointer; }
.yt-practice__feedback { margin-top: 25px; padding: 24px; border-radius: 16px; background: #f7f0e6; }
.yt-practice__feedback strong { font-size: 23px; }
.yt-practice__feedback.is-correct { border-left: 5px solid var(--yt-green); }
.yt-practice__feedback.is-wrong { border-left: 5px solid var(--yt-red); }
.yt-practice__feedback p { color: var(--yt-muted); line-height: 1.8; }
.yt-practice__feedback button { margin-top: 8px; }
.yt-practice__empty { text-align: center; }
.yt-practice-login { max-width: 680px; margin: 80px auto; padding: 40px; text-align: center; border-radius: 24px; background: var(--yt-paper); }
.yt-practice-login a { display: inline-block; text-decoration: none; }

@media (max-width: 800px) {
  .yt-practice { margin-top: 18px; padding: 0 14px; }
  .yt-practice__hero { min-height: 240px; padding: 34px 26px; border-radius: 20px; }
  .yt-practice__hero p { font-size: 15px; }
  .yt-practice__seal { display: none; }
  .yt-practice__panel, .yt-practice__workspace { padding: 22px; border-radius: 18px; }
  .yt-practice__progress { margin: -22px -22px 24px; }
  .yt-practice__heading { align-items: start; flex-direction: column; }
  .yt-practice__modules, .yt-practice__options { grid-template-columns: 1fr; }
}

.yt-account-learning { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 28px; margin-top: 28px; padding: 30px; border: 1px solid var(--yt-line); border-radius: 22px; background: linear-gradient(125deg, #fffaf2, #fff 58%, #f9eee3); box-shadow: 0 13px 32px rgba(55, 37, 25, .08); }
.yt-account-learning__intro span, .yt-account-learning > div:first-child > span { color: var(--yt-orange); font-size: 11px; letter-spacing: .16em; }
.yt-account-learning__intro h2, .yt-account-learning > div:first-child > h2 { margin: 7px 0 6px; font-size: 28px; }
.yt-account-learning__intro p, .yt-account-learning > div:first-child > p { margin: 0; color: var(--yt-muted); }
.yt-account-learning__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yt-account-learning__metrics article { display: grid; gap: 5px; padding: 15px; border-radius: 13px; background: rgba(255,255,255,.82); text-align: center; }
.yt-account-learning__metrics small { color: var(--yt-muted); }
.yt-account-learning__metrics strong { font-family: serif; font-size: 28px; }
.yt-account-learning__actions { display: grid; gap: 9px; min-width: 150px; }
.yt-account-learning__actions a, .yt-account-learning > a { padding: 11px 16px; border: 1px solid #d9c4b1; border-radius: 10px; color: var(--yt-ink); background: #fff; text-align: center; text-decoration: none; font-weight: 700; }
.yt-account-learning__actions a.is-primary, .yt-account-learning > a { border-color: transparent; color: #fff; background: linear-gradient(105deg, var(--yt-red), var(--yt-orange)); }

@media (max-width: 900px) {
  .yt-account-learning { grid-template-columns: 1fr; }
  .yt-account-learning__actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .yt-account-learning__metrics, .yt-account-learning__actions { grid-template-columns: 1fr; }
}

.yt-profile { max-width: 1180px; margin: 38px auto 80px; padding: 0 22px; color: var(--yt-ink); }
.yt-profile__hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 46px 52px; border-radius: 26px; color: #fff; background: linear-gradient(115deg, #3a3029, #756960 58%, #a3978d); box-shadow: 0 20px 48px rgba(52, 38, 29, .18); }
.yt-profile__hero span { font-size: 11px; letter-spacing: .18em; opacity: .72; }
.yt-profile__hero h1 { margin: 9px 0 8px; font-family: 'Songti SC', 'STSong', serif; font-size: clamp(38px, 5vw, 60px); }
.yt-profile__hero p { margin: 0; opacity: .82; }
.yt-profile__hero a { flex: none; padding: 13px 20px; border-radius: 11px; color: #fff; background: linear-gradient(110deg, var(--yt-red), var(--yt-orange)); text-decoration: none; font-weight: 700; }
.yt-profile__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.yt-profile__metrics article { display: grid; gap: 7px; min-height: 150px; padding: 25px; border: 1px solid var(--yt-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(58, 38, 25, .06); }
.yt-profile__metrics small, .yt-profile__metrics span { color: var(--yt-muted); }
.yt-profile__metrics strong { align-self: end; font-size: 40px; font-family: serif; }
.yt-profile__metrics strong.is-date { font-size: 17px; line-height: 1.4; }
.yt-profile__section { margin-top: 22px; padding: 32px; border: 1px solid var(--yt-line); border-radius: 22px; background: rgba(255,255,255,.92); }
.yt-profile__assessment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.yt-profile__assessment-grid article { display:grid; gap:7px; min-height:126px; padding:20px; border:1px solid #eaded0; border-radius:16px; background:linear-gradient(145deg,#fffaf2,#fff); }
.yt-profile__assessment-grid small,.yt-profile__assessment-grid span { color:var(--yt-muted); }
.yt-profile__assessment-grid strong { align-self:end; font-family:serif; font-size:30px; line-height:1.2; }
.yt-profile__assessment-grid strong.is-guidance { align-self:start; font-family:inherit; font-size:15px; line-height:1.7; color:#4f3729; }
.yt-profile__assessment-list small { line-height:1.65; }
.yt-profile__title { display: flex; gap: 14px; align-items: start; margin-bottom: 22px; }
.yt-profile__title > span { color: var(--yt-orange); font-weight: 800; }
.yt-profile__title h2 { margin: 0 0 5px; }
.yt-profile__title p { margin: 0; color: var(--yt-muted); }
.yt-profile__chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.yt-profile__chapters article { position: relative; overflow: hidden; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px; border: 1px solid var(--yt-line); border-radius: 15px; background: var(--yt-paper); }
.yt-profile__chapters b { color: var(--yt-orange); font-family: serif; font-size: 20px; }
.yt-profile__chapters div { display: grid; gap: 5px; }
.yt-profile__chapters small { color: var(--yt-muted); }
.yt-profile__chapters i { position: absolute; left: 0; bottom: 0; width: var(--progress); height: 3px; background: linear-gradient(90deg, var(--yt-red), var(--yt-orange)); }
.yt-profile__recent { display: grid; gap: 9px; }
.yt-profile__recent article { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: start; padding: 17px; border-radius: 13px; background: #faf5ed; }
.yt-profile__recent > article > span { padding: 6px 8px; border-radius: 99px; text-align: center; font-size: 12px; font-weight: 700; }
.yt-profile__recent .is-correct { color: var(--yt-green); background: #e6f0eb; }
.yt-profile__recent .is-wrong { color: var(--yt-red); background: #f8e7e4; }
.yt-profile__recent div { display: grid; gap: 6px; }
.yt-profile__recent small, .yt-profile__blank { color: var(--yt-muted); }
.yt-profile__record-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.yt-profile__record-grid article { display:grid; gap:9px; min-height:145px; padding:20px; border:1px solid var(--yt-line); border-radius:16px; background:linear-gradient(145deg,#fffaf2,#fff); }
.yt-profile__record-grid small,.yt-profile__record-grid span { color:var(--yt-muted); }
.yt-profile__record-grid strong { color:#4f3729; line-height:1.65; }
.yt-profile__record-grid strong.is-count { align-self:end; font-family:serif; font-size:40px; line-height:1; }
.yt-profile__record-actions { display:flex; gap:10px; margin-top:18px; }
.yt-profile__record-actions a { padding:11px 17px; border:1px solid #d9c4b1; border-radius:10px; color:var(--yt-ink); background:#fff; text-decoration:none; font-weight:700; }
.yt-profile__record-actions a.is-primary { border-color:transparent; color:#fff; background:linear-gradient(105deg,var(--yt-red),var(--yt-orange)); }

@media (max-width: 800px) {
  .yt-profile { margin-top: 18px; padding: 0 14px; }
  .yt-profile__hero { align-items: start; flex-direction: column; padding: 32px 25px; }
  .yt-profile__metrics { grid-template-columns: repeat(2, 1fr); }
  .yt-profile__assessment-grid { grid-template-columns:1fr; }
  .yt-profile__metrics article { min-height: 128px; padding: 18px; }
  .yt-profile__section { padding: 22px; }
  .yt-profile__chapters { grid-template-columns: 1fr; }
  .yt-profile__recent article { grid-template-columns: 1fr; }
  .yt-profile__recent > article > span { width: max-content; }
  .yt-profile__record-grid { grid-template-columns:1fr; }
  .yt-profile__record-actions { align-items:stretch; flex-direction:column; }
  .yt-profile__record-actions a { text-align:center; }
}
