/* Routine chart maker (/routine-charts/maker/): the task list and colour swatches.
   Everything else uses the shared maker styles in style.css. */
.rc-form { max-width: 720px; }
.rc-tasks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; counter-reset: rc; }
.rc-tasks li { counter-increment: rc; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; background: #fff; border-radius: 16px; background: var(--sun-soft, #fff3c4); }
.rc-tasks li::before { content: counter(rc); min-width: 1.4em; font-weight: 800; text-align: right; color: var(--muted); }
.rc-pic { width: 40px; height: 40px; flex: none; }
.rc-label { flex: 1 1 140px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.rc-btns { display: flex; gap: 6px; margin-left: auto; }
.rc-btns button { min-height: 44px; min-width: 44px; padding: 8px 14px; }
.rc-btns button[disabled] { opacity: .4; cursor: default; }
.rc-add { display: grid; gap: 14px; margin-top: 10px; }
.rc-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-inline input, .rc-inline select { flex: 1 1 200px; }
.rc-form input:not([type]) , .rc-form input[type="text"] { font: inherit; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.rc-inline input:not([type]) { width: auto; }
.rc-form .rc-inline select { max-width: none; }
.rc-reset { margin: 0; }
.rc-week { margin-top: 10px; max-width: 280px; }
.rc-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 8px; flex: none; }
.rc-studio .art svg { max-width: 640px; margin: 0 auto; display: block; }
.rc-layout { display: grid; gap: 8px 32px; }
.rc-jump { margin: 0; font-weight: 700; }
.rc-jump a { display: inline-block; padding: 10px 0; }
@media (min-width: 1000px) {
  .rc-jump { display: none; }
  .rc-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rc-studio { display: flex; flex-direction: column; position: sticky; top: calc(var(--head, 64px) + 12px); margin-top: 0; padding: 16px; }
  .rc-studio .side { display: flex; flex-direction: column; gap: 10px; position: static; }
  .rc-studio .art svg { max-height: calc(100vh - var(--head, 64px) - 210px); width: auto; max-width: 100%; }
}
@media print {
  main > section > div.rc-layout { display: block !important; }
  .rc-layout > :not(.studio), .rc-form, .text-version { display: none !important; }
  .rc-studio { position: static !important; }
  .rc-studio .art svg { max-height: 100vh; width: 100%; }
}
