.student-word-practice { margin-top: 10px; width: 100%; }
.wp-student-tabs { display: flex; gap: 10px; margin: 14px 0 20px; flex-wrap: wrap; }
.wp-student-tabs button { border: 1px solid #cce2d1; background: #fff; color: #315c3c; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.wp-student-tabs button[aria-selected="true"] { color: #fff; background: #368453; border-color: #368453; box-shadow: 0 4px 12px #2f79502b; }
.wp-mic-notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #e7c6a0; border-radius: 12px; background: #fff4e8; color: #80511e; line-height: 1.5; }
[data-word-library-pane][hidden] { display: none !important; }
.wp-choose { padding: 20px; border: 1px solid #d9e8d8; border-radius: 18px; background: #f8fcf6; }
.wp-choose-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wp-choose-head h2 { margin: 0 0 4px; color: #245c38; font-size: 1.2rem; }
.wp-choose-head p { margin: 0; color: #66806e; }
.wp-choose-notice { padding: 10px 12px; border-radius: 10px; background: #e7f6e5; color: #286c3b; }
.wp-choose-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.wp-choose-controls label { display: grid; gap: 6px; color: #385b42; font-weight: 700; }
.wp-choose-controls select, .wp-choose-controls input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #bdd9c0; border-radius: 10px; background: #fff; color: #234a31; font: inherit; }
.wp-choose-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.wp-choose-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.wp-choose-word { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid #dce9dd; border-radius: 11px; background: #fff; cursor: pointer; }
.wp-choose-word:has(input:checked) { border-color: #63aa70; background: #edf8eb; }
.wp-choose-word input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #388f54; }
.wp-choose-word span { min-width: 0; }
.wp-choose-word strong, .wp-choose-word small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-choose-word small { color: #66806e; font-size: .8rem; }
.wp-choose-word em { flex: 0 0 auto; color: #318251; font-size: .75rem; font-style: normal; }
.wp-choose-more { margin-top: 12px; }
.wp-card-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: #46684e; font-weight: 700; }
.wp-card-toolbar label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wp-card-toolbar select { max-width: min(58vw, 360px); min-height: 40px; padding: 7px 12px; border: 1px solid #bdd9c0; border-radius: 10px; background: #fff; color: #234a31; font: inherit; }
.wp-card { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid #d6e8d9; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px #285e3420; touch-action: pan-y; }
.wp-card-visual { min-height: 360px !important; max-height: none !important; border: 0 !important; border-radius: 0 !important; background: linear-gradient(140deg, #e6f7dc, #dfeefe) !important; }
.wp-card-visual img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.wp-card-body { min-width: 0; padding: 22px; }
.wp-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.wp-card-heading h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2.2rem); color: #267547; }
.wp-card-heading span { color: #26475b; font-size: 1rem; font-weight: 600; }
.wp-card-meaning { margin: 16px 0; font-size: 1.15rem; font-weight: 700; color: #243d2b; }
.wp-example-teacher, .wp-card-examples { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #f3f9ee; }
.wp-example-teacher { border-left: 4px solid #62a875; }
.wp-example-teacher p, .wp-card-examples p { margin: 6px 0 0; line-height: 1.6; }
.wp-card-examples { background: #f7f8fb; }
.wp-card-examples ol { margin: 7px 0 0; }
.wp-card-record { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.wp-card-record .wp-audio, .wp-card-record .wp-status { flex-basis: 100%; margin: 0; }
.wp-card-record [hidden] { display: none !important; }
.wp-card-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 24px; color: #63806b; text-align: center; }
.wp-card-nav button { min-width: 108px; }
.wp-submit-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; padding: 16px; border: 1px solid #bcdcbc; border-radius: 16px; background: #eff8ec; }
.wp-submit-bar strong { color: #2b6a42; }
.wp-submit-bar .wp-status { flex-basis: 100%; margin: 0; }
.wp-history { margin: 0 0 22px; padding: 18px; border: 1px solid #d9e8d8; border-radius: 18px; background: #f7fbf6; }
.wp-history header, .wp-teacher-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wp-history h2 { margin: 0; font-size: 1.15rem; }
.wp-list { display: grid; gap: 10px; margin-top: 14px; }
.wp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #dce9dd; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; color: inherit; }
.wp-row:hover { border-color: #70af77; background: #f4fbf3; }
.wp-row strong, .wp-row small { display: block; }
.wp-row small { color: #667b6a; margin-top: 3px; }
.wp-student-group { border: 1px solid #d8e9da; border-radius: 14px; background: #fff; overflow: hidden; }
.wp-student-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; color: #215c35; }
.wp-student-group > summary span { color: #68806d; font-size: .9rem; }
.wp-date-group { padding: 0 12px 14px; }
.wp-date-group h3 { margin: 12px 4px 8px; font-size: .95rem; color: #50725a; }
.wp-date-group .wp-row + .wp-row { margin-top: 8px; }
.wp-recording-list { display: grid; gap: 10px; margin: 16px 0 20px; }
.wp-recording-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 12px; border: 1px solid #d9e8dc; border-radius: 12px; background: #f8fbf7; }
.wp-recording-row strong, .wp-recording-row small { display: block; }
.wp-recording-row small { margin-top: 3px; color: #667b6a; }
.wp-recording-audio { flex-basis: 100%; }
.wp-recording-audio:empty { display: none; }
.wp-recording-audio audio { margin: 0; }
.wp-badge { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; background: #fff3d9; color: #815a13; font-size: .8rem; font-weight: 700; }
.wp-badge.done { background: #e5f5e9; color: #247641; }
.wp-overlay { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 35, 23, .58); }
.wp-dialog { width: min(620px, 100%); max-height: min(92vh, 900px); overflow: auto; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px #10261b55; }
.wp-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.wp-dialog h2 { margin: 0; color: #215c35; }
.wp-dialog p { line-height: 1.55; }
.wp-close { border: 0; background: #eef5ed; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.25rem; }
.wp-picture { display: grid; place-items: center; min-height: 155px; max-height: 250px; overflow: hidden; border: 1px dashed #a9ccac; border-radius: 14px; background: #f5faf4; color: #66846a; }
.wp-picture img { display: block; max-width: 100%; max-height: 250px; object-fit: contain; }
.wp-examples { padding-left: 22px; line-height: 1.75; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.wp-actions label { display: inline-flex; align-items: center; cursor: pointer; }
.wp-actions input[type=file] { display: none; }
.wp-actions button, .wp-actions label, .wp-dialog button.wp-submit { min-height: 40px; }
.wp-audio { width: 100%; margin: 8px 0; }
.wp-status { min-height: 1.5em; color: #a04429; }
.wp-feedback { padding: 12px 14px; border-radius: 12px; background: #edf7ec; white-space: pre-wrap; }
.wp-teacher-filter { width: min(280px, 100%); min-height: 40px; padding: 8px 10px; border: 1px solid #cbdccf; border-radius: 10px; }
.wp-dialog textarea { width: 100%; min-height: 95px; padding: 10px; border: 1px solid #b8ceb9; border-radius: 10px; resize: vertical; }
@media (max-width: 700px) { .wp-card { grid-template-columns: 1fr; } .wp-card-visual { min-height: 215px !important; height: 215px; } .wp-card-body { padding: 16px; } }
@media (max-width: 600px) { .wp-choose { padding: 14px; } .wp-choose-head > button { width: 100%; } .wp-choose-controls { grid-template-columns: 1fr; } .wp-choose-list { grid-template-columns: 1fr; max-height: 48vh; } .wp-dialog { padding: 16px; } .wp-row { align-items: flex-start; } .wp-card-nav span { font-size: .78rem; } .wp-card-nav button { min-width: 90px; padding-inline: 8px; } }
.student-spelling-panel { padding: 20px; border: 1px solid #d7e8d8; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px #285e3410; }
.student-spelling-head, .student-spelling-bottom, .student-spelling-group-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.student-spelling-head h2 { margin: 0 0 4px; color: #245f3a; }
.student-spelling-head p { margin: 0; color: #637d69; }
.student-spelling-head > span { flex: none; color: #2b7744; font-weight: 700; }
.student-spelling-library { display: grid; gap: 7px; max-width: 520px; margin: 20px 0; color: #315c3c; font-weight: 700; }
.student-spelling-library select { min-height: 44px; font-size: 16px; }
.student-spelling-group-nav { padding: 12px 0; border-block: 1px solid #e3eee3; color: #436c4c; }
.student-spelling-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 9px; margin: 16px 0; }
.student-spelling-words button { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid #dcebdc; border-radius: 11px; background: #f8fcf7; text-align: left; cursor: pointer; }
.student-spelling-words button:hover, .student-spelling-words button:focus-visible { border-color: #83be8c; background: #eef8eb; }
.student-spelling-words strong { color: #24713e; overflow-wrap: anywhere; }
.student-spelling-words span { color: #627968; font-size: .85rem; overflow-wrap: anywhere; }
.student-spelling-bottom { padding-top: 6px; color: #58735e; }
@media (max-width: 600px) { .student-spelling-panel { padding: 14px; } .student-spelling-head { align-items: flex-start; } .student-spelling-head p { font-size: .85rem; } .student-spelling-words { grid-template-columns: repeat(2, minmax(0, 1fr)); } .student-spelling-group-nav button { padding-inline: 8px; } .student-spelling-bottom { align-items: stretch; flex-direction: column; } }
