.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
}
.portal-tabs a {
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--ink);
  background: #fff;
}
.portal-tabs a.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.week-bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.55rem 0 0.35rem;
}
.week-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
}
.reminder {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.45;
}
.work-day {
  background: var(--card, #fffcf7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0.7rem 0;
}
.work-day h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.score-line { margin: 0.35rem 0; line-height: 1.4; }
.recorded-note {
  margin: 0.4rem 0;
  padding: 0.55rem 0.7rem;
  background: #f7f3ec;
  border-radius: 8px;
  line-height: 1.4;
}
.part {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
}
.part .ptitle { font-weight: 600; }
.part .pmeta { color: var(--muted); font-size: 0.86rem; margin: 0.15rem 0; }
.part .pkey { font-size: 0.82rem; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  border: 1px solid var(--line);
}
.tag.right { color: #2f5d3a; border-color: #8aab92; }
.tag.wrong { color: #7a3e2e; border-color: #d2b2a6; }
.tag.needs_parent, .tag.no_answer { color: #6a5a32; border-color: #d9c9a4; }
.tag.skip { color: var(--muted); }
.grade-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.grade-row button {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.grade-row button.on { border-color: var(--accent); color: var(--accent); }
.note-box textarea {
  width: 100%;
  min-height: 4.2rem;
  margin-top: 0.35rem;
  font: inherit;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.quiz-box {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin: 0.6rem 0 0.2rem;
  color: var(--ink);
}

.kid-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kid-head .kid-name {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.avatar-sway {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f1e6;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.avatar-sway img {
  width: 100%;
  height: 100%;
  display: block;
  animation: avatar-sway 3.6s ease-in-out infinite;
  transform-origin: 50% 75%;
}
@keyframes avatar-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.4deg); }
}
.plan-row, .supply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.plan-row .yours {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.35rem;
}
.plan-gone { color: var(--muted); text-decoration: line-through; }

.kid-mode-row { margin-top: 0.35rem; }
.award-row { margin-top: 0.45rem; }
.award-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem 0.15rem 0.15rem;
  background: #fff;
  margin: 0.35rem 0.35rem 0 0;
  font-size: 0.85rem;
}
.award-chip img { width: 36px; height: 36px; border-radius: 10px; }
.mail-count {
  display: inline-block;
  min-width: 1.15rem;
  padding: 0 0.28rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: #1e3a5f;
  color: #f7f3ea;
  font-size: 0.75rem;
  line-height: 1.2rem;
  text-align: center;
  vertical-align: 1px;
}
nav.kid-nav a.on .mail-count, .portal-tabs a.on .mail-count { background: #c4a15a; color: #1e3a5f; }
.mail-note { border-top: 1px solid var(--line); padding: 0.55rem 0; }
.mail-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.mail-note.award-note {
  background: var(--soft, #e8efe9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  margin: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.mail-note .award-got { margin: 0.15rem 0 0; font-weight: 600; color: var(--accent, #3d5a4c); }
.mail-warm-wrap { margin: 0.45rem 0 0.1rem; }
.mail-warm {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.mail-warm-wrap figcaption { margin-top: 0.2rem; }
#mail-compose { margin: 0.35rem 0 0.6rem; }
.mail-send { margin-top: 0.7rem; }
.mail-send textarea, .award-form input[type="text"], .award-form textarea {
  width: 100%;
  margin: 0.25rem 0 0.45rem;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.msg-settings label.choice, .award-form label {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.35rem 0;
}
.award-form label { display: block; color: var(--muted); font-size: 0.85rem; }
.plan-chips, .award-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.7rem; width: 100%; }
.plan-chips button, .chip {
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}
.award-picks button {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.award-picks button.on, .plan-chips button.on { border-color: #1e3a5f; }
.award-picks img { width: 100%; height: 100%; display: block; border-radius: 10px; }
.plan-add-wrap { margin-top: 0.85rem; padding-top: 0.65rem; border-top: 1px solid var(--line); }
.plan-add-wrap > label, .plan-add-wrap .field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.45rem 0 0.25rem;
}
.plan-add-wrap input[type="text"] { flex: 1 1 16rem; min-width: 12rem; }

#plan-title { width: 100%; display: block; box-sizing: border-box; }

.work-day .day-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.work-day .day-toggle h3 { margin: 0; }
.work-day .day-status { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.day-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.25rem;
}
.day-entry-actions .btn {
  font-size: 0.88rem;
}
.work-day .day-body { display: none; margin-top: 0.65rem; }
.work-day.open .day-body { display: block; }
.work-day .day-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.work-day.needs-attention {
  border-color: #d9c9a4;
  box-shadow: 0 0 0 1px rgba(196, 176, 126, 0.35);
}
.needs-work-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #9ab7a0;
  background: #edf5ee;
  color: #2f6540;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.needs-attention-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d9c9a4;
  background: #f7f1e0;
  color: #6a5a32;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.work-day.is-owed {
  border-color: #c9a07a;
  box-shadow: 0 0 0 1px rgba(180, 120, 70, 0.28);
}
.work-day.is-skipped {
  opacity: 0.88;
  border-style: dashed;
}
.owed-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #c9a07a;
  background: #f8eee4;
  color: #7a4e28;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.skipped-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #b0b0b0;
  background: #f2f2f2;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.finished-early-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #9ab7c8;
  background: #eef5f8;
  color: #2f5470;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.owed-line {
  color: #7a4e28 !important;
  font-weight: 600;
}
.day-entry-actions button.btn {
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.card-h {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dash-block {
  margin-top: 1.55rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.dash-block .hint { margin-top: 0.35rem; line-height: 1.5; }
#mark-key { margin-top: 0.85rem; line-height: 1.5; }
.week-lines {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}
.week-lines li {
  margin: 0.5rem 0;
  line-height: 1.5;
}
.level-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.level-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 0.7rem;
  row-gap: 0.2rem;
  margin: 0.75rem 0;
  line-height: 1.45;
}
.level-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 100%;
  min-width: 0;
}
.level-subject {
  font-size: 1.08rem;
  font-weight: 700;
}
.level-text {
  flex: 1 1 100%;
  min-width: 0;
  margin-left: 1.7rem;
}
.mark-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.gmark {
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  border: 1px solid rgba(28, 26, 23, 0.22);
  background-color: #1f8a45;
  box-shadow: inset 0 0 0 18px #1f8a45;
  vertical-align: middle;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}
.gmark.on,
.gmark.ahead {
  background-color: #1f8a45;
  box-shadow: inset 0 0 0 18px #1f8a45;
}
.gmark.behind {
  background-color: #e0a800;
  box-shadow: inset 0 0 0 18px #e0a800;
}
.gmark.far {
  background-color: #c62828;
  box-shadow: inset 0 0 0 18px #c62828;
}
.garrow {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
  color: #1f8a45;
  vertical-align: middle;
  position: static;
}
.parent-quote {
  background: var(--card, #fffcf8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem 0.9rem;
  margin: 0 0 1.15rem;
}
.parent-quote-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.parent-quote-text {
  margin: 0.45rem 0 0.4rem;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}
.quiet-edit { margin: 0.75rem 0 0.15rem; }
.quiet-edit a { color: var(--muted); font-size: 0.9rem; }
#week-parent-note, #notes, #ideas, #concerns {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

/* Dashboard week progress + needs-look */
.week-progress { margin: 0.65rem 0 0.35rem; }
.week-progress-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.week-progress .week-bar,
.week-progress .week-bar {
  height: 6px;
  background: rgba(28, 26, 23, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0 0.25rem;
}
.week-progress .week-bar > span,
.week-bar > span {
  display: block;
  height: 100%;
  background: #3d7a4a;
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}
.week-progress-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.needs-look {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #d9c9a4;
  background: #f7f1e0;
  color: #6a5a32;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
}
.needs-look:hover { border-color: #c4b07e; }
.check-banner {
  background: #f7f1e0;
  border: 1px solid #d9c9a4;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0 0 0.9rem;
  color: #5a4a28;
  line-height: 1.45;
}
.check-banner a { color: inherit; font-weight: 650; }
.btn-quiet {
  background: transparent !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
.mark-key {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.portal-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg, #f4efe6);
  padding: 0.45rem 0 0.55rem;
  margin: 0 0 0.85rem;
  border-bottom: 1px solid transparent;
}
.portal-tabs.stuck {
  border-bottom-color: var(--line);
}

/* Kid page segments — sit under sticky portal-tabs */
.kid-segments {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 3.1rem;
  z-index: 18;
  background: var(--bg, #f4efe6);
  padding: 0.3rem 0 0.4rem;
  margin: 0.25rem 0 0.65rem;
  border-bottom: 1px solid transparent;
  scrollbar-width: none;
}
.kid-segments.stuck {
  border-bottom-color: var(--line);
}
.kid-segments::-webkit-scrollbar { display: none; }
.kid-segments button {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.kid-segments button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.kid-panel { display: none; }
.kid-panel.on { display: block; padding-top: 0.35rem; }
.kid-panel > .settings:first-child { margin-top: 0; }
.kid-panel .settings > h3:first-of-type {
  margin-top: 0.65rem;
}
.kid-save-nudge {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
}
.kid-save-nudge a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kid-save-nudge a:hover { color: var(--ink); }

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
  min-height: 0.5rem;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.86rem;
  max-width: 100%;
}
.interest-chip button {
  font: inherit;
  font-size: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.1rem;
}
.interest-chip button:hover { color: var(--ink); }
.saved-snip {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.level-list.compact li { margin: 0.4rem 0; }
.level-list.compact .level-text { margin-left: 1.4rem; }
.level-list.compact .gmark {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex-basis: 14px;
}

.kid-card .mark-key {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.needs-look[hidden],
.award-row[hidden],
.award-row:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}


/* Grade progress under subject level lines (quiet, not gamified) */
.grade-progress {
  flex: 1 1 100%;
  margin: 0.2rem 0 0.15rem 1.7rem;
  max-width: 18rem;
}
.level-list.compact .grade-progress {
  margin-left: 1.4rem;
  max-width: 16rem;
}
.grade-bar {
  height: 5px;
  background: rgba(28, 26, 23, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.2rem 0 0.2rem;
}
.grade-bar > span {
  display: block;
  height: 100%;
  background: #3d7a4a;
  border-radius: 999px;
  width: 0%;
}
.grade-progress-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}


/* PE / movement weekly bar + log (Step 8) */
.pe-progress {
  margin: 0.85rem 0 0.35rem;
  padding: 0.7rem 0.75rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}
.pe-progress-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.pe-recommend {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
}
.pe-progress .pe-bar,
.pe-bar {
  height: 6px;
  background: rgba(28, 26, 23, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.2rem 0 0.25rem;
}
.pe-bar > span {
  display: block;
  height: 100%;
  background: #3d6f8a;
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}
.pe-progress-meta {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.pe-log-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: flex-end;
  margin: 0 0 0.35rem;
}
.pe-log-form .pe-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  flex: 1 1 8rem;
  min-width: 6rem;
}
.pe-log-form .pe-field-min { flex: 0 0 5.5rem; min-width: 4.5rem; }
.pe-log-form .pe-field-date { flex: 0 0 9rem; min-width: 7.5rem; }
.pe-log-form input {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.pe-log-form .btn-tiny { margin-bottom: 0.05rem; }
.pe-log-status { margin: 0 0 0.35rem; }
.pe-log-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.pe-log-list li {
  margin: 0.2rem 0;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.06);
}
.pe-log-list li:last-child { border-bottom: 0; }
.pe-log-empty { font-style: italic; }


/* Books this school year (dashboard + parent child) */
.books-progress { margin: 0.65rem 0 0.35rem; }
.books-progress-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
.books-progress-meta {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.books-progress-dash .books-bar {
  max-width: 12rem;
  height: 0.45rem;
}
.books-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #6b8cae;
  border-radius: inherit;
  transition: width 0.25s ease;
}
#book-filter-row .btn-tiny.on {
  border-color: var(--accent, #1e3a5f);
  color: var(--accent, #1e3a5f);
}

/* Pass 6: plain words for level vs age grade (replaces the bare up arrow). */
.level-age {
  flex: 1 1 100%;
  margin: 0.15rem 0 0 1.7rem;
  font-size: 0.85rem;
  color: #5b6470;
}
.level-list.compact .level-age { margin-left: 1.4rem; }

/* Pass 7: builder minute estimates beside add-on / subject ticks. */
.row-minutes { color: #6b7280; font-size: 0.85em; font-weight: 400; margin-left: 0.15rem; }

/* Pass 9: Work check, easier to scan */
.work-sec { margin: 0.6rem 0 0.2rem; }
.work-sec h4 { margin: 0.7rem 0 0.2rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.part-block-title { margin: 0.65rem 0 0.1rem; font-weight: 700; font-size: 0.92rem; }
.part { padding: 0.5rem 0 0.55rem; }
.part .ans-line { font-size: 0.9rem; margin: 0.18rem 0; line-height: 1.4; }
.part .ans-line.his { font-size: 0.95rem; }
.part .ans-lab { color: var(--muted); font-weight: 600; margin-right: 0.2rem; }
.part .ans-note { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 0.1rem 0 0.2rem; }
.mc-list { list-style: none; margin: 0.25rem 0; padding: 0; font-size: 0.9rem; }
.mc-list li { padding: 0.2rem 0.45rem; border-radius: 6px; margin: 0.1rem 0; }
.mc-list li.mc-right { background: #eef4ee; }
.mc-letter { font-weight: 700; margin-right: 0.15rem; }
.mc-mark { color: #2f5d3a; font-size: 0.78rem; font-weight: 600; }
.tag.not_taken { color: var(--muted); }
.also-done { color: var(--muted); font-size: 0.84rem; margin: 0.45rem 0 0.1rem; }
details.quiz-pending { border: 1px dashed var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.3rem 0; }
details.quiz-pending > summary { cursor: pointer; font-weight: 600; }
details.quiz-pending .part-preview { border-top: 1px solid var(--line); }

/* State rules card + parent inbox (2026-09-29) */
.state-card .state-sum { font-size: 1.02rem; }
.state-card .state-warn { background: #fff4d6; border-radius: 8px; padding: 0.55rem 0.7rem; }
.state-dl dt { font-weight: 600; margin-top: 0.7rem; }
.state-dl dd { margin: 0.15rem 0 0; }
.state-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; background: #fff4d6; color: #7a5b00; border-radius: 999px; padding: 0.05rem 0.5rem; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.inbox-count { display: inline-block; background: #3f5a4b; color: #fff; border-radius: 999px; font-size: 0.8rem; padding: 0.05rem 0.55rem; vertical-align: middle; }
.inbox-msg { border-top: 1px solid rgba(0,0,0,0.08); padding: 0.55rem 0; }
.inbox-msg summary { cursor: pointer; display: flex; gap: 0.5rem; align-items: baseline; list-style: none; }
.inbox-msg summary::-webkit-details-marker { display: none; }
.inbox-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; background: transparent; }
.inbox-msg.unread .inbox-dot { background: #3f5a4b; }
.inbox-msg.unread .inbox-title { font-weight: 700; }
.inbox-title { flex: 1; }
.inbox-when { color: var(--muted, #777); font-size: 0.82rem; white-space: nowrap; }
.btn.small { font-size: 0.85rem; padding: 0.25rem 0.6rem; }
