/* Practice landing only. Question and exam workspaces retain their own styles. */
body.practice-home-page { background: #f3f5f8; }
body.practice-home-page main { width: min(1320px, calc(100% - 64px)); padding-top: 96px; }
.practice-home-page .practice-hub {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 38px;
  min-height: 0;
  margin: 0;
  padding: 30px 36px;
  overflow: hidden;
  border: 1px solid #253b50;
  border-radius: 22px;
  background: radial-gradient(ellipse at 35% 120%, #1d5260 0, transparent 60%), #132a3b;
  box-shadow: 0 12px 36px #1a324411;
}
.practice-home-page .practice-hub::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(#a6d3cf13 1px, transparent 1px), linear-gradient(90deg, #a6d3cf13 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.practice-home-page .practice-hub .practice-hero__copy { padding: 0; min-width: 0; }
.practice-home-page .practice-hub .eyebrow { display: flex; align-items: center; gap: 8px; color: #b5c9d5; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; }
.practice-home-page .practice-hub .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #73d9bd; box-shadow: 0 0 12px #73d9bd66; }
.practice-home-page .practice-hub .practice-hero__copy h1 { margin: 12px 0 10px; color: #fff; font-size: clamp(28px, 2.8vw, 39px); line-height: 1.3; letter-spacing: -.03em; }
.practice-home-page .practice-hub h1 span { color: #91e6cf; }
body.practice-home-page .practice-hub .practice-hero__copy > p { max-width: none; color: #b9cbd7; font-size: 13px; line-height: 1.8; white-space: normal; }
.practice-home-page .practice-hub .service-line { gap: 8px; margin-top: 16px; color: #a9c3ce; font-size: 11px; }
.practice-home-page .practice-hub .service-line i { flex: 0 0 5px; width: 5px; height: 5px; box-shadow: none; }
.practice-home-page .practice-hub .service-line.is-error { color: #ffb6ad; }
.practice-home-page .practice-hub .admin-course-entry { margin-top: 8px; color: #ace9dc; font-size: 12px; }
.practice-home-page .practice-hub .question-code-search { min-width: 0; padding: 20px 22px 14px; border: 1px solid #ffffff1f; border-radius: 15px; background: #ffffff09; box-shadow: none; }
.practice-home-page .question-code-search h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; color: #f0f7fa; font-size: 16px; }
.practice-home-page .question-code-search h2 svg, .practice-home-page .compact-heading h2 svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.practice-home-page .question-code-search p { margin-bottom: 13px; color: #adc0ce; font-size: 12px; }
.practice-home-page .question-code-search > div { grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding: 4px; border: 1px solid #ffffff27; border-radius: 10px; background: #f9fcfe; }
.practice-home-page .question-code-search input { min-height: 39px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; color: #243b4e; }
.practice-home-page .question-code-search input:focus { outline: 2px solid #28a789; outline-offset: -1px; }
.practice-home-page .question-code-search input::placeholder { color: #82909e; font-weight: 400; }
.practice-home-page .question-code-search button { display: inline-flex; align-items: center; gap: 13px; min-height: 39px; padding: 0 15px; border-radius: 7px; background: #d6f5e9; color: #115b46; font-size: 13px; }
.practice-home-page .question-code-search button:hover { background: #bcead8; }
.practice-home-page .question-code-search button:focus-visible { outline: 2px solid #36aa8c; outline-offset: 2px; }
.practice-home-page .question-code-search small { min-height: 18px; margin-top: 8px; color: #a9bdca; font-size: 10px; }
.practice-home-page .question-code-search small.is-error { color: #ffb6ad; }
.practice-home-page .question-code-search small.is-success { color: #91e6cf; }

.practice-home-page .continue-section { margin-top: 23px; padding: 0; }
.practice-home-page .compact-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.practice-home-page .compact-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #435465; font-size: 14px; font-weight: 650; }
.practice-home-page .compact-heading h2 svg { width: 16px; height: 16px; color: #728596; }
.practice-home-page .compact-heading > span { color: #8693a1; font: 400 11px/1.5 "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.practice-home-page .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.practice-home-page .continue-card { min-width: 0; min-height: 89px; gap: 12px; padding: 12px 16px; border: 1px solid #e2e8ed; border-radius: 12px; box-shadow: none; transition: background 160ms ease, border-color 160ms ease; }
.practice-home-page .continue-card:hover { transform: none; border-color: #9bc9bb; background: #fafffd; }
.practice-home-page .continue-card:focus-visible { outline: 2px solid #18916e; outline-offset: 3px; }
.practice-home-page .continue-card small { color: #7b8b99; font-size: 10px; font-weight: 500; }
.practice-home-page .continue-card strong { margin-top: 1px; color: #314557; font-size: 13px; }
.practice-home-page .continue-card em { margin-top: 2px; color: #8794a1; font-size: 11px; }
.practice-home-page .continue-card b { flex-shrink: 0; font-size: 12px; }

.practice-home-page .mode-section { padding: 27px 0 42px; }
.practice-home-page .mode-section > .section-heading { align-items: center; flex-direction: row; gap: 16px; margin-bottom: 15px; }
.practice-home-page .mode-section > .section-heading h2 { margin: 0; color: #223646; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.practice-home-page .mode-section > .section-heading p { color: #84919d; font-size: 12px; }
.practice-home-page .practice-five-modes { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.practice-home-page .mode-grid--five { grid-template-columns: 1.04fr 1fr 1fr; gap: 14px; }
.practice-home-page .mode-grid--five .mode-card,
.practice-home-page .mode-grid--five .mode-card--wide,
.practice-home-page .mode-grid--five .mode-card:last-child {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  min-width: 0;
  min-height: 205px;
  gap: 13px;
  padding: 20px 23px 17px;
  border-color: #e0e6ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 5px #253e5902;
}
.practice-home-page .mode-grid--five .mode-card::after { display: none; }
.practice-home-page .mode-grid--five .mode-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 35%, #d9e3e9); box-shadow: 0 9px 22px #26394a09; }
.practice-home-page .mode-grid--five .mode-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--tone) 70%, #fff); outline-offset: 3px; }
.practice-home-page .mode-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.practice-home-page .mode-card__icon { flex-shrink: 0; width: 35px; height: 35px; border: 0; border-radius: 10px; }
.practice-home-page .mode-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.practice-home-page .mode-card__caption { color: #8b98a5; font-size: 10px; letter-spacing: .04em; }
.practice-home-page .mode-card__body { display: block; min-width: 0; }
.practice-home-page .mode-grid--five .mode-card h3 { margin: 0 0 6px; color: #27394b; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.practice-home-page .mode-grid--five .mode-card p { max-width: none; color: #788696; font-size: 12px; line-height: 1.8; }
.practice-home-page .mode-grid--five .mode-card b { position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; color: #527087; font-size: 12px; font-weight: 650; line-height: 1.5; }
.practice-home-page .mode-card b > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #f2f5f8; color: #687f90; font-size: 17px; font-weight: 400; transition: background 160ms ease, color 160ms ease; }
.practice-home-page .mode-card:hover b > span { color: #fff; background: var(--tone); }
.practice-home-page .mode-grid--five .mode-card--daily { grid-row: span 2; gap: 20px; padding: 26px; border-color: #156558; background: radial-gradient(ellipse at 100% 90%, #22806c 0, transparent 65%), #14594f; }
.practice-home-page .mode-card--daily .mode-card__icon { color: #b9ebd7; background: #ffffff13; }
.practice-home-page .mode-card__badge { padding: 3px 9px; border: 1px solid #aad8c632; border-radius: 30px; color: #b2dacf; font-size: 10px; }
.practice-home-page .mode-grid--five .mode-card--daily h3 { color: #fff; font-size: 28px; }
.practice-home-page .mode-grid--five .mode-card--daily p { color: #aed1c7; font-size: 13px; line-height: 1.85; }
.practice-home-page .mode-grid--five .mode-card--daily b { padding: 11px 14px; border-radius: 9px; background: #dcf5e9; color: #185f4e; font-size: 13px; }
.practice-home-page .mode-card--daily b > span { background: none; color: #185f4e; }
.practice-home-page .mode-card--daily:hover b > span { background: #b8e4ce; color: #185f4e; }
.practice-home-page .daily-card-art { position: relative; display: grid; flex: 1 1 110px; min-height: 110px; width: 100%; place-items: center; overflow: hidden; }
.practice-home-page .daily-card-art__ring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; border: 1px solid #c9f2d829; border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg) scaleY(.68); box-shadow: 0 0 0 22px #cbf2df07, 0 0 0 43px #cbf2df04; }
.practice-home-page .daily-card-art__number { z-index: 1; display: flex; flex-direction: column; align-items: center; color: #daffea; font: 500 76px/.9 Georgia, serif; text-shadow: 0 4px 20px #0b3d4140; }
.practice-home-page .daily-card-art__number small { margin-top: 12px; color: #a6d1bc; font: 400 10px/1.3 "Microsoft YaHei", sans-serif; letter-spacing: .13em; }
.practice-home-page .daily-card-art__spark { position: absolute; left: calc(50% + 65px); top: 10px; color: #b8e6aa; font-size: 23px; }
.practice-home-page .practice-footer { width: min(1320px, calc(100% - 64px)); margin-inline: auto; padding: 22px 0; border-top: 1px solid #e0e6ee; }

/* Compact gold difficulty buttons, matching the teacher's reference. */
.practice-home-page .bank-star-filter h4 { margin-bottom: 7px; font-size: 14px; font-weight: 500; }
.practice-home-page .bank-star-filter .filter-chip-grid { display: grid; width: min(100%, 295px); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.practice-home-page .bank-star-filter .filter-chip-grid button { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 30px; padding: 4px 2px; color: #91651c; border: 1px solid #dfc69b; border-radius: 4px; background: #fff8e9; box-shadow: none; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; letter-spacing: 0; }
.practice-home-page .bank-star-filter .filter-chip-grid button:hover { border-color: #cf9019; background: #fff0ce; }
.practice-home-page .bank-star-filter .filter-chip-grid button.is-selected { color: #fff; border-color: #d99b20; background: #d99b20; box-shadow: none; }
.practice-home-page .bank-star-filter .filter-chip-grid button.is-selected:hover { border-color: #c48a19; background: #c48a19; }
.practice-home-page .bank-star-filter .filter-chip-grid button:focus-visible { outline: 2px solid #9e6a13; outline-offset: 2px; }

@media (max-width: 1100px) {
  body.practice-home-page main { width: calc(100% - 40px); padding-top: 90px; }
  .practice-home-page .practice-hub { grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr); gap: 25px; padding: 25px 28px; }
  .practice-home-page .practice-hub .practice-hero__copy h1 { font-size: 31px; }
  .practice-home-page .practice-hub h1 span { display: block; }
  .practice-home-page .practice-hub .question-code-search { padding: 18px 17px 12px; }
  .practice-home-page .mode-grid--five { gap: 12px; }
  .practice-home-page .mode-grid--five .mode-card { padding: 18px; }
  .practice-home-page .mode-grid--five .mode-card--daily { padding: 22px; }
  .practice-home-page .mode-grid--five .mode-card h3 { font-size: 19px; }
  .practice-home-page .mode-grid--five .mode-card--daily h3 { font-size: 27px; }
}

@media (max-width: 800px) {
  .practice-home-page .practice-hub { grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 20px; padding: 25px; }
  .practice-home-page .practice-hub .practice-hero__copy h1 { font-size: 28px; }
  body.practice-home-page .practice-hub .practice-hero__copy > p { font-size: 12px; }
  .practice-home-page .mode-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-home-page .mode-grid--five .mode-card--daily { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; min-height: 0; padding: 20px 24px; }
  .practice-home-page .mode-card--daily .mode-card__top { grid-column: 1 / -1; }
  .practice-home-page .mode-grid--five .mode-card--daily h3 { font-size: 23px; }
  .practice-home-page .mode-grid--five .mode-card--daily b { width: 155px; align-self: end; }
  .practice-home-page .daily-card-art { display: none; }
  .practice-home-page .daily-line-break { display: none; }
  .practice-home-page .continue-grid { grid-template-columns: 1fr; gap: 7px; }
  .practice-home-page .continue-card { min-height: 65px; padding: 10px 15px; }
  .practice-home-page .continue-card > span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 10px; flex: 1 1 auto; align-items: baseline; }
  .practice-home-page .continue-card small { grid-row: span 2; }
  .practice-home-page .continue-card em { grid-column: 2; }
  .practice-home-page .continue-card strong { font-size: 12px; }
  .practice-home-page .practice-footer { width: calc(100% - 40px); }
}

@media (max-width: 600px) {
  body.practice-home-page main { width: calc(100% - 28px); padding-top: 82px; }
  .practice-home-page .practice-hub { grid-template-columns: 1fr; gap: 19px; padding: 22px; border-radius: 17px; }
  .practice-home-page .practice-hub .eyebrow { font-size: 10px; }
  .practice-home-page .practice-hub .practice-hero__copy h1 { margin: 8px 0; font-size: 27px; }
  .practice-home-page .practice-hub h1 span { display: inline; }
  .practice-home-page .practice-hub .service-line { margin-top: 10px; font-size: 10px; }
  .practice-home-page .practice-hub .question-code-search { padding: 16px 0 0; border: 0; border-top: 1px solid #ffffff21; border-radius: 0; background: none; }
  .practice-home-page .question-code-search h2 { font-size: 14px; }
  .practice-home-page .question-code-search p { margin-bottom: 9px; font-size: 11px; }
  .practice-home-page .question-code-search > div { grid-template-columns: minmax(0, 1fr) auto; }
  .practice-home-page .question-code-search input { font-size: 12px; }
  .practice-home-page .question-code-search button { gap: 10px; padding-inline: 12px; }
  .practice-home-page .question-code-search small { margin-top: 7px; font-size: 10px; }
  .practice-home-page .continue-section { margin-top: 20px; }
  .practice-home-page .mode-section { padding: 22px 0 30px; }
  .practice-home-page .mode-section > .section-heading { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
  .practice-home-page .mode-section > .section-heading h2 { font-size: 19px; }
  .practice-home-page .mode-section > .section-heading p { font-size: 11px; }
  .practice-home-page .mode-grid--five { grid-template-columns: 1fr; gap: 10px; }
  .practice-home-page .mode-grid--five .mode-card,
  .practice-home-page .mode-grid--five .mode-card--wide,
  .practice-home-page .mode-grid--five .mode-card:last-child {
    display: grid;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: 0;
    padding: 17px 19px;
    border-radius: 13px;
  }
  .practice-home-page .mode-card__top { grid-column: 1 / -1; }
  .practice-home-page .mode-card__icon { width: 30px; height: 30px; border-radius: 8px; }
  .practice-home-page .mode-card__icon svg { width: 20px; height: 20px; }
  .practice-home-page .mode-grid--five .mode-card h3 { margin-bottom: 5px; font-size: 18px; }
  .practice-home-page .mode-grid--five .mode-card p { font-size: 11px; line-height: 1.75; }
  .practice-home-page .mode-grid--five .mode-card b { width: auto; align-self: end; gap: 5px; padding-bottom: 1px; white-space: nowrap; font-size: 11px; }
  .practice-home-page .mode-card b > span { width: 20px; height: 20px; font-size: 15px; }
  .practice-home-page .mode-grid--five .mode-card--daily { gap: 13px; }
  .practice-home-page .mode-grid--five .mode-card--daily h3 { font-size: 23px; }
  .practice-home-page .mode-grid--five .mode-card--daily p { font-size: 11px; }
  .practice-home-page .mode-grid--five .mode-card--daily b { grid-column: 1 / -1; justify-content: space-between; width: 100%; margin-top: 2px; padding: 9px 12px; font-size: 12px; }
  .practice-home-page .mode-card--daily .mode-card__body { grid-column: 1 / -1; }
  .practice-home-page .practice-footer { width: calc(100% - 28px); font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .practice-home-page .mode-grid--five .mode-card,
  .practice-home-page .continue-card,
  .practice-home-page .mode-card b > span { transition: none; }
  .practice-home-page .mode-grid--five .mode-card:hover { transform: none; }
}
