.practice-dialog {
  width:min(1040px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  padding:0;
  border:2px solid #86bff0;
  border-radius:22px;
  color:#10244a;
  background:#eff8ff;
  box-shadow:0 18px 55px #061c4866;
}
.practice-dialog::backdrop { background:#071a3b9e; backdrop-filter:blur(4px); }
.practice-dialog[hidden], .practice-dialog [hidden] { display:none!important; }
.practice-header {
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:clamp(12px,2vw,22px) clamp(16px,3vw,32px); background:#091f47; color:white;
}
.practice-header h2 { margin:0; font-size:clamp(1.2rem,3vw,1.9rem); line-height:1.2; }
.practice-header p { margin:.3rem 0 0; color:#bfe6ff; }
.practice-header .btn { flex:none; }
.practice-picker, .practice-card { padding:clamp(14px,3vw,30px); }
.practice-picker > h3 { margin:0 0 .65rem; font-size:1.22rem; }
.practice-picker > h3:not(:first-child) { margin-top:1.35rem; }
.practice-picker > p { color:#3c5878; margin:0; }
.practice-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:.55rem; }
.practice-choice {
  padding:.7rem .8rem; min-height:44px; border:1px solid #94bce7; border-radius:.7rem;
  background:white; color:#142d56; font:inherit; font-weight:750; text-align:left; cursor:pointer;
}
.practice-choice:hover { background:#dcedff; }
#practiceAllCards h4 { margin:.85rem 0 .45rem; color:#355579; font-size:.96rem; }
.practice-card-nav, .practice-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; }
.practice-card-nav { margin-bottom:.75rem; }
.practice-card-frame { border:2px solid #79b8ef; border-radius:16px; overflow:hidden; background:#eaf7ff; }
.practice-card-banner { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.85rem 1.1rem; background:#091f47; color:white; }
.practice-card-banner h3 { margin:0; font-size:clamp(1.25rem,3.45vw,2.45rem); line-height:1.1; }
.practice-card-banner svg { width:clamp(40px,7vw,86px); height:auto; flex:none; }
.practice-card-body { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); align-items:center; }
.practice-art {
  position:relative; display:grid; min-height:100%; place-items:center; overflow:hidden;
  padding:12px 12px 38px; background:linear-gradient(#cbeafa,#a7d5f5);
}
.practice-art img { display:block; width:100%; max-height:290px; object-fit:contain; border-radius:10px; }
.practice-step-marker {
  position:absolute; bottom:9px; left:50%; transform:translateX(-50%); white-space:nowrap;
  border-radius:20px; padding:.3rem .7rem; background:#092653; color:white; font-size:.8rem; font-weight:800;
}
.practice-custom-art { grid-template-rows:minmax(100px,1fr); }
.practice-custom-art::before { content:'★'; color:#895200; font-size:4rem; }
.practice-steps { list-style:none; display:grid; gap:.6rem; margin:0; padding:clamp(10px,2vw,20px); }
.practice-steps li { display:flex; align-items:center; gap:.65rem; padding:0 .65rem 0 0; border:1px solid #9ac6ee; border-radius:10px; background:#d9efff; }
.practice-steps li.is-current { border-color:#d1910a; background:#ffedb6; }
.practice-steps li.is-complete { border-color:#86c2a5; background:#def4e9; }
.practice-steps li.is-current.is-complete { border-color:#d1910a; }
.practice-steps button {
  border:0; border-radius:9px; display:flex; align-items:center; flex:1; min-width:0; gap:.65rem;
  min-height:48px; padding:.5rem; background:none; color:#10244a; cursor:pointer; text-align:left;
  font:inherit; font-size:clamp(.97rem,2vw,1.28rem); font-weight:780; line-height:1.25; overflow-wrap:anywhere;
}
.practice-step-number { display:grid; place-items:center; width:2rem; height:2rem; flex:none; border-radius:8px; background:#a7daf9; }
.is-current .practice-step-number { background:#ffbe38; }
.is-complete .practice-step-number { background:#a7e0c4; }
.practice-steps input { width:1.45rem; height:1.45rem; flex:none; margin:0; cursor:pointer; accent-color:#166843; }
.practice-status { min-height:1.35em; margin:.75rem 0; font-weight:750; color:#24496f; }
.practice-actions .btn { min-height:44px; }
.practice-dialog :focus-visible, .practice-trigger:focus-visible { outline:3px solid #1666ae; outline-offset:3px; }
@media(max-width:630px) {
  .practice-card-body { grid-template-columns:1fr; }
  .practice-art { min-height:0; padding:8px 8px 26px; }
  .practice-art img { max-height:clamp(100px,26vw,175px); }
  .practice-step-marker { bottom:4px; font-size:.7rem; }
}
@media(prefers-reduced-motion:reduce) {
  .practice-dialog *, .practice-dialog *::before, .practice-dialog *::after { transition:none!important; animation:none!important; }
}
