/* Kid's missions page (.mm-app) and parent weekly report (.md-app): assets/js/mk-missions.js */
.mm-app, .md-app { margin: 20px 0 28px; }
.mm-card, .md-card { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.mm-grades { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-grades .chip, .mm-app .chip { min-width: 48px; min-height: 48px; font-size: 1.1rem; border-radius: 12px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 700; }
.mm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.mm-hi { font-size: 1.3rem; font-weight: 700; margin: 0; }
.mm-count { margin: 0; font-weight: 700; color: var(--marker); }
.mm-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.mm-m { display: flex; align-items: center; gap: 14px; background: #fff; border: 3px solid #f2b705; border-radius: 18px; padding: 14px 16px; }
.mm-m.ok { border-color: #2e9e5b; background: #effaf2; }
.mm-e { font-size: 2.2rem; line-height: 1; }
.mm-t { flex: 1; min-width: 0; }
.mm-t strong { display: block; font-size: 1.1rem; }
.mm-t small { color: var(--muted); }
.mm-bar { display: block; height: 12px; border-radius: 99px; background: #eef1f7; overflow: hidden; margin: 6px 0 4px; }
.mm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f2b705, #2e9e5b); border-radius: 99px; transition: width .4s; }
.mm-go { white-space: nowrap; padding: 12px 18px; font-size: 1.05rem; }
.mm-tick { font-size: 1.8rem; color: #2e9e5b; font-weight: 700; }
.mm-say-row { margin: 0 0 8px; }
.mm-h { margin: 26px 0 10px; font-size: 1.25rem; }
.mm-week { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 520px; }
.mm-week li { text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 2px; }
.mm-week li span { display: block; font-size: .8rem; color: var(--muted); }
.mm-week li b { font-size: 1.4rem; line-height: 1.4; }
.mm-week li.on { border-color: var(--ink); }
.mm-week li.s-all { background: #fff4d6; border-color: #f2b705; }
.mm-week li.s-some { background: #f3fbf6; border-color: #9fd8b4; }
.mm-week li.s-missed b, .mm-week li.s-none b { color: #9aa3b5; }
.mm-week li.s-next { border-style: dashed; background: #fbfcff; }
.mm-week li.on { border-color: var(--ink); border-width: 3px; background: #fff; }
.mm-week li.on span { color: var(--ink); font-weight: 700; }
.mm-tmr { margin: 10px 0 2px; font-size: 1.05rem; }
.mm-key { color: var(--muted); font-size: .85rem; margin-top: -6px; }
.mm-alldone { background: #e3f7e9; border: 2px solid #2e9e5b; border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.mm-alldone p { margin: 4px 0; }
.mm-extra { background: #f3f6ff; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.mm-all { margin: 10px 0; }
.mm-all > summary { cursor: pointer; font-weight: 700; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; list-style-position: inside; }
.mm-all[open] > summary { margin-bottom: 10px; }
.mm-small { color: var(--muted); font-size: .95rem; }
.mm-ck { display: flex; gap: 12px; align-items: center; margin: 16px 0; text-decoration: none; color: var(--ink); border-color: #7a5af8; background: #f4f1ff; }
.mm-ck span:first-child { font-size: 2rem; }
.mm-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mm-skills li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "lv sn st" "lv sm sm"; align-items: center; column-gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.mm-lv { grid-area: lv; font-size: 1.6rem; }
.mm-sn { grid-area: sn; font-weight: 600; }
.mm-steps { grid-area: st; display: inline-flex; gap: 3px; }
.mm-steps i { width: 18px; height: 10px; border-radius: 3px; background: #e3e8f2; }
.mm-steps i.on { background: #2e9e5b; }
.mm-skills small { grid-area: sm; color: var(--muted); }
.mm-link { background: none; border: 0; padding: 0; color: var(--marker); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 520px) { .mm-m { flex-wrap: wrap; } .mm-go { width: 100%; text-align: center; } .mm-e { font-size: 1.9rem; } }

/* parent report */
.md-app { border: 2px solid var(--ink); border-radius: 16px; padding: 16px; background: var(--grid); }
.md-h { margin: 0 0 12px; }
.md-h small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); }
.md-h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.md-empty { background: #fff4d6; border-radius: 10px; padding: 10px 12px; }
.md-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.md-cards > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.md-cards b { display: block; font-size: 1.5rem; }
.md-cards span { display: block; color: var(--muted); font-size: .9rem; }
.md-d { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.md-d.up, .md-tbl .up { color: #1a7f45; }
.md-d.down, .md-tbl .down { color: #b4492f; }
.md-chart { width: 100%; max-width: 560px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: block; }
.md-chart .md-bar { fill: #9cc7f0; }
.md-chart .md-now { fill: var(--marker); }
.md-chart .md-axis { stroke: var(--line); }
.md-chart text { font: 11px var(--font); text-anchor: middle; fill: var(--muted); }
.md-chart .md-v { fill: var(--ink); font-weight: 700; }
.md-chart .md-a { fill: #1a7f45; }
.md-tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.md-tbl th, .md-tbl td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-tbl th { background: #eef3fb; font-weight: 600; }
.md-note { font-size: .88rem; color: var(--muted); }
.md-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.md-plan h4 { margin: 0 0 6px; }
.md-ul, .md-days { list-style: none; padding: 0; margin: 0 0 8px; }
.md-ul li, .md-days li { padding: 3px 0; }
.md-days li { display: grid; grid-template-columns: 7.2em 1fr; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.md-days li:last-child { border-bottom: 0; }
.md-days li b { font-weight: 600; }
.md-days li em { grid-column: 2; font-style: normal; font-size: .9rem; color: var(--muted); }
.md-days li.on { font-weight: 700; background: #fff8e6; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; }
.md-days li.on b { font-weight: 700; }
.md-days li.s-all em { color: #1f7a45; }
.md-days li.s-next span, .md-days li.s-next b { color: var(--muted); }
.md-td li { display: flex; gap: 8px; align-items: baseline; }
.md-st { font-size: .85rem; font-weight: 700; white-space: nowrap; background: #fff4d6; border-radius: 999px; padding: 1px 8px; }
.md-td li.ok .md-st { background: #e3f7e9; color: #1f7a45; }
.md-set { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.md-set summary { cursor: pointer; font-weight: 700; }
.md-form { display: grid; gap: 12px; margin-top: 10px; }
.md-form select { margin-left: 6px; padding: 6px; font: inherit; }
.md-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.md-form fieldset > label { display: block; padding: 3px 0; }
.md-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px 12px; padding-left: 22px; }
.md-saved { color: var(--marker); font-weight: 700; }
@media (max-width: 560px) {
  .md-app { padding: 12px; }
  .md-tbl { font-size: .86rem; }
  .md-tbl th, .md-tbl td { padding: 6px 6px; }
  .md-tbl:not(.md-skills) th:nth-child(2), .md-tbl:not(.md-skills) td:nth-child(2),
  .md-tbl:not(.md-skills) th:nth-child(5), .md-tbl:not(.md-skills) td:nth-child(5),
  .md-skills th:nth-child(4), .md-skills td:nth-child(4) { display: none; }
}
.md-tools { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.md-sent { color: var(--marker); font-weight: 600; }
.md-shared { background: #e8f1ff; border-radius: 10px; padding: 10px 12px; }
.md-print { display: none; }
@media print {
  body.md-printing > *:not(.md-print) { display: none !important; }
  body.md-printing .md-print { display: block; font-family: var(--font); color: #000; }
  .md-print h1 { font-size: 26px; margin: 0 0 4px; }
  .md-print table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .md-print th, .md-print td { border: 2px solid #333; padding: 10px; text-align: left; vertical-align: top; font-size: 15px; }
  .md-print th { width: 90px; }
  .md-pm { display: block; padding: 3px 0; }
  .md-pf { margin-top: 10px; font-size: 12px; color: #555; }
}
