/* Account services extend the existing local palette and reading preferences. */
.wu-service-page { max-width: 1120px; overflow-wrap: anywhere; }
.wu-intro { max-width: 66ch; }
.wu-service-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 1rem 0 1.5rem; }
.wu-service-nav a { display: inline-block; min-height: 44px; padding-block: 0.5rem; }
.wu-service-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.wu-status { min-height: 1.65em; overflow-wrap: anywhere; }
.wu-status:empty { min-height: 0; margin: 0; }
.wu-scope { max-width: 70ch; }
.wu-scope p:last-child { margin-bottom: 0; }
.wu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.wu-grid > *, .wu-workspace > * { min-width: 0; }
.wu-stack { display: grid; gap: 1rem; }
.wu-stack > p:last-child { margin-bottom: 0; }
.wu-form { display: grid; gap: 1rem; }
.wu-form .actions { margin: 0; }
.wu-field input:not([type="checkbox"]):not([type="radio"]), .wu-field select { width: 100%; }
.wu-field p { margin: 0.35rem 0 0; }
.wu-field textarea { min-height: 6rem; }
.wu-check { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 400; }
.wu-check input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; }
.wu-choice-group { border: 1px solid var(--line); border-radius: 0.4rem; padding: 1rem; margin: 0; }
.wu-choice-group legend { font-weight: 600; padding-inline: 0.3rem; }
.wu-choice-group .wu-check:last-child { margin-bottom: 0; }
.wu-caption { font-size: 0.875rem; color: var(--muted); }
.wu-kicker { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.wu-badge { display: inline-block; padding: 0.15rem 0.5rem; border: 1px solid var(--line); border-radius: 0.25rem; font-size: 0.875rem; background: var(--soft); color: var(--ink); }
.wu-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-block: 0.5rem 1rem; color: var(--muted); font-size: 0.875rem; }
.wu-meta > * { margin: 0; }
.wu-card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.wu-card-list > li { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--surface); }
.wu-card-list h3 { margin-bottom: 0.35rem; }
.wu-card-list p:last-child { margin-bottom: 0; }
.wu-empty { padding: 1rem; border: 1px dashed var(--line); border-radius: 0.4rem; color: var(--muted); }
.wu-empty p:last-child { margin: 0; }
.wu-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.wu-section-head h2 { margin-bottom: 0; }
.wu-workspace { display: grid; grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
.wu-project-picker button { width: 100%; background: var(--surface); color: var(--ink); border-color: var(--line); }
.wu-project-picker button[aria-current="true"] { background: var(--soft); border: 3px solid var(--accent); color: var(--accent); }
.wu-detail-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-bottom: 1.5rem; }
.wu-detail-nav a { display: inline-block; min-height: 44px; padding-block: 0.4rem; }
.wu-prose { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.wu-long-token { overflow-wrap: anywhere; word-break: break-word; }
.wu-table-wrap { max-width: 100%; overflow-x: auto; }
.wu-table { width: 100%; border-collapse: collapse; }
.wu-table th, .wu-table td { text-align: left; vertical-align: top; padding: 0.7rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.wu-table th { background: var(--soft); }
.wu-form details > summary { color: var(--link); }
.wu-form details[open] > summary { margin-bottom: 0.75rem; }
.wu-review-note { border-left: 4px solid var(--accent); padding-left: 1rem; }
.wu-read-only { background: var(--soft); }
.wu-inline-status { font-size: 0.875rem; color: var(--muted); margin-block: 0.6rem; }
.wu-lesson-frame { max-width: 1320px; }
.wu-learning-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.wu-learning-layout > main { min-width: 0; }
.wu-study-support { min-width: 0; padding-top: 2.6rem; }
.wu-study-support .panel { padding: 1rem; }
.wu-study-support summary { font-weight: 700; font-size: 1.1rem; }
.wu-study-support details[open] > summary { margin-bottom: 0.8rem; }
.wu-study-support textarea { min-height: 7rem; }
.wu-tutor-answer { border-left: 4px solid var(--accent); padding-left: 1rem; margin-top: 1rem; }
.wu-tutor-answer h3 { margin-bottom: 0.4rem; }
.wu-tutor-citations { padding-left: 1.25rem; }
.wu-tutor-citations a { display: inline-block; padding-block: 0.35rem; min-height: 44px; }
.wu-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 980px) {
  .wu-learning-layout { grid-template-columns: 1fr; }
  .wu-study-support { padding-top: 0; max-width: 70ch; }
}
@media (max-width: 700px) {
  .wu-grid, .wu-workspace { grid-template-columns: 1fr; }
  .wu-service-nav { gap: 0.25rem 0.8rem; }
  .wu-table th, .wu-table td { padding: 0.55rem; }
}
@media (forced-colors: active) {
  .wu-badge, .wu-project-picker button[aria-current="true"] { border-style: double; }
}

.wu-form fieldset { min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: 0.35rem; padding: 1rem; }
.wu-form fieldset legend { max-width: 100%; overflow-wrap: anywhere; padding-inline: 0.25rem; font-weight: 700; }
.wu-form input, .wu-form textarea, .wu-form select { min-width: 0; max-width: 100%; }
.wu-form button, .wu-project-picker button { white-space: normal; overflow-wrap: anywhere; }
.wu-service-page [hidden], .wu-study-support [hidden] { display: none !important; }
.wu-service-nav li { margin-inline-start: 1rem; }

.wu-stack > *, .wu-form > *, .wu-field { min-width: 0; }
.wu-service-page fieldset { min-inline-size: 0; }
