/* Kids reward chart maker: task chips with icons, the tappable star chart, progress, past charts and the print view */
.rc-sprite{position:absolute;width:0;height:0;overflow:hidden}
.rc-svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.rc-form .chip{display:inline-flex;align-items:center;gap:6px}
.rc-form .chip .rc-svg{width:18px;height:18px}
.rc-pre .chip{padding:6px 12px}
.rc-addkid{border-style:dashed}
.rc-addrow{display:flex;gap:8px}
.rc-addrow input{flex:1;min-width:0}
.rc-addrow .btn{padding:9px 16px;flex:none}
.rc-icons{gap:6px;margin-top:6px}
.rc-icons .chip{padding:6px 8px}
.rc-icons .chip .rc-svg{width:20px;height:20px}
.rc-mine{margin-top:10px}
.rc-mine:empty{display:none}
.rc-mine .chip{background:var(--ink);color:#fff}
.rc-mine .chip b{font-size:16px;line-height:1;margin-left:2px}
.rc-rchips{margin-top:8px}
.rc-rchips .chip{font-size:12.5px;padding:5px 11px}
.rc-themes .chip::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--c);border:2px solid var(--ink);flex:none}
.rc-themes .chip .rc-svg{display:none}
.rc-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:600;cursor:pointer}
.rc-check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--blue);flex:none}

/* the chart on the page */
.rc-board{--bg:#fff9e8;--head:#ffd23f;--ht:#0f1222;--hs:#4a3a00;--day:#ffe7a0;--wk:#fff3d1;background:var(--bg);border:var(--bw) solid var(--ink);border-radius:18px;padding:14px;min-height:470px}
.rc-top{display:flex;align-items:center;gap:10px;background:var(--head);color:var(--ht);border:var(--bw) solid var(--ink);border-radius:16px;box-shadow:4px 4px 0 var(--ink);padding:10px 12px}
.rc-top>div{flex:1;min-width:0;text-align:center}
.rc-top h2{margin:0;font-size:clamp(20px,4.6vw,28px);line-height:1.15;color:var(--ht);overflow-wrap:anywhere}
.rc-top p{margin:3px 0 0;font-size:13px;font-weight:700;color:var(--hs)}
.rc-deco{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:2px solid var(--ink);color:var(--ink);flex:none;transform:rotate(-8deg)}
.rc-deco2{transform:rotate(10deg)}
.rc-deco .rc-svg{width:26px;height:26px}
.rc-deco2 .rc-svg{fill:#ffc21a}
.rc-prog{height:18px;border:2px solid var(--ink);border-radius:999px;background:#fff;overflow:hidden;margin:16px 0 6px}
.rc-prog i{display:block;height:100%;background:repeating-linear-gradient(-45deg,#ffc21a 0 10px,#ffb000 10px 20px);transition:width .45s var(--ease)}
.rc-count{margin:0 0 10px;font-size:14px;font-weight:600}
.rc-end{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;background:#fff;border:2px solid var(--ink);border-radius:12px;padding:8px 10px;margin:0 0 10px;font-size:14px;font-weight:600}
.rc-end .btn{padding:7px 12px;font-size:13.5px}
.rc-gridwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -6px;padding:0 6px 6px}
.rc-gridwrap::-webkit-scrollbar{height:8px}.rc-gridwrap::-webkit-scrollbar-thumb{background:#c3c7d6;border-radius:8px}
.rc-grid{border-collapse:separate;border-spacing:4px;width:100%}
.rc-grid th,.rc-grid td{padding:0}
.rc-grid thead th{font-size:12px;font-weight:800;text-align:center;padding:4px 2px;background:var(--day);border:2px solid var(--ink);border-radius:10px;line-height:1.15;min-width:34px}
.rc-grid thead th small{display:block;font-weight:600;font-size:10.5px}
.rc-grid thead th.rc-th0{background:none;border:0;text-align:left;vertical-align:bottom;font-size:12.5px;padding-left:2px}
.rc-grid thead th.rc-we{background:var(--wk)}
.rc-grid thead th.rc-today{background:var(--ink);color:#fff}
.rc-grid tbody th{position:sticky;left:0;z-index:1;background:var(--bg);text-align:left;font-weight:700}
.rc-rh{display:flex;align-items:center;gap:6px;min-width:92px;max-width:170px;padding:2px 4px 2px 0}
.rc-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--c);border:2px solid var(--ink);flex:none}
.rc-ic .rc-svg{width:18px;height:18px}
.rc-tn{font-size:12.5px;line-height:1.2;overflow-wrap:anywhere}
.rc-cell{display:grid;place-items:center;width:100%;min-width:34px;height:44px;border:2px solid var(--ink);border-radius:10px;background:#fff;cursor:pointer;padding:0;color:#cfd3df;transition:background .15s}
.rc-cell .rc-svg{width:28px;height:28px;stroke-width:1.6}
.rc-cell:hover{background:#fffbe8}
.rc-cell[aria-pressed=true]{background:#fff3c4;color:var(--ink)}
.rc-cell[aria-pressed=true] .rc-svg{fill:#ffc21a;stroke-width:1.8}
.rc-cell:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.rc-cell.rc-pop .rc-svg{animation:rcPop .5s var(--ease)}
@keyframes rcPop{0%{transform:scale(.2) rotate(-60deg)}60%{transform:scale(1.3) rotate(10deg)}100%{transform:none}}
.rc-two .rc-cell,.rc-month .rc-cell{height:40px}
.rc-rew{display:flex;gap:12px;align-items:center;background:#fff;border:var(--bw) solid var(--ink);border-radius:14px;box-shadow:4px 4px 0 var(--ink);padding:10px 12px;margin-top:12px}
.rc-rew b{display:block;font-size:16px;line-height:1.3}
.rc-rew span{font-size:14px}
.rc-gift{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#ffe27a;border:2px solid var(--ink);flex:none}
.rc-gift .rc-svg{width:28px;height:28px}
.rc-won .rc-gift{background:#c9f5df}.rc-won .rc-gift .rc-svg{fill:#ffc21a}
.rc-done{background:#c9f5df;border:2px solid var(--ink);border-radius:12px;padding:8px 12px;font-weight:800;margin:12px 0 0;text-align:center}
.rc-tap{margin-top:10px}
.rc-acts .btn{padding:10px 16px}
.rc-hist{margin-top:16px;border:2px solid var(--ink);border-radius:14px;padding:10px 14px;background:#fff}
.rc-hist h3{margin:0 0 6px;font-size:16px}
.rc-hist ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rc-hist li{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:14px;border-top:1px dashed var(--line);padding-top:6px}
.rc-hist li:first-child{border-top:0;padding-top:0}
.rc-hist em{font-style:normal;font-size:12px;font-weight:800;background:#c9f5df;border:1.5px solid var(--ink);border-radius:999px;padding:1px 8px}
.rc-priv{margin-top:10px}
.rc-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}
@media (max-width:560px){
  .rc-out{padding:14px}
  .rc-board{padding:10px;min-height:440px}
  .rc-grid{border-spacing:3px}
  .rc-rh{min-width:84px;max-width:110px}
  .rc-tn{font-size:11.5px}
  .rc-ic{width:26px;height:26px}.rc-ic .rc-svg{width:16px;height:16px}
  .rc-cell{min-width:30px;height:40px}.rc-cell .rc-svg{width:24px;height:24px}
}
@media (prefers-reduced-motion:reduce){.rc-cell.rc-pop .rc-svg{animation:none}.rc-prog i{transition:none}}
/* print: only the chart image, on one A4 page (the @page size is set by the script) */
#rc-print-view{display:none}
@media print{
  body.rc-printing>*:not(#rc-print-view){display:none!important}
  body.rc-printing #rc-print-view{display:block}
  body.rc-printing #rc-print-view,body.rc-printing #rc-print-view *{visibility:visible}
  #rc-print-view img{display:block;margin:0 auto}
  #rc-print-view.rc-land img{height:192mm;width:auto}
  #rc-print-view.rc-port img{width:192mm;height:auto}
}
.rc-week td{width:10%}
/* phones: the weekly chart fits without scrolling, each task's name on its own line above its seven boxes */
@media (max-width:560px){
  .rc-week,.rc-week thead,.rc-week tbody{display:block}
  .rc-week tr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:5px}
  .rc-week thead th.rc-th0{display:none}
  .rc-week thead th{min-width:0}
  .rc-week tbody th{grid-column:1/-1;position:static;background:none}
  .rc-week .rc-rh{max-width:none;padding:4px 0 0}
  .rc-week .rc-tn{font-size:13px}
  .rc-week td{width:auto}.rc-week .rc-cell{min-width:0}
  .rc-deco{width:36px;height:36px}.rc-deco .rc-svg{width:22px;height:22px}
  .rc-top{padding:8px 10px;gap:8px}
}
