/* Công cụ Biến tranh bé vẽ thành tranh tô màu (lib/cc/to-mau-tranh.php) */
.tmt-pick { text-align: center; padding: 10px 0; }
.tmt-pick h2 { margin: 6px 0; }
.tmt-pick-art { font-size: 44px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.tmt-pick-art .ar { font-size: 24px; opacity: .5; }
.tmt-pick .btn { cursor: pointer; }
.tmt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tmt-canvas { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.tmt-canvas canvas { display: block; width: 100%; max-height: 70vh; object-fit: contain; touch-action: manipulation; cursor: crosshair; border-radius: 10px; }
.tmt-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.85); font-weight: 700; border-radius: 16px; }
.tmt-busy[hidden], .tmt-dance[hidden], #tmt-work[hidden], #tmt-crop[hidden], .tmt-pick[hidden] { display: none; }
.tmt-busy i { width: 22px; height: 22px; border: 3px solid var(--soft); border-top-color: var(--pri); border-radius: 50%; animation: ccspin .9s linear infinite; }
.tmt-pal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.tmt-col { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.tmt-col.on { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }
.tmt-tools { justify-content: center; }
.tmt-sens { margin-top: 12px; }
.tmt-sens input { width: 100%; }
.tmt-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg); }
.tmt-card + .tmt-card { margin-top: 12px; }
.tmt-card h3 { margin: 0 0 4px; font-size: 17px; }
.tmt-card .btn { margin-top: 6px; }
.tmt-story { background: #fff; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.tmt-story p { margin: 6px 0; } .tmt-story .q { font-weight: 700; }
.tmt-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tmt-style { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 4px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.tmt-style span { font-size: 24px; }
.tmt-style.on { border-color: var(--pri); background: var(--soft); }
.tmt-magic-out { margin: 10px 0 0; } .tmt-magic-out img { width: 100%; border-radius: 12px; display: block; }
.tmt-dance { margin-top: 18px; text-align: center; }
.tmt-dance canvas { width: min(100%, 520px); aspect-ratio: 1; border-radius: 18px; display: block; margin: 0 auto 10px; }
.tmt-dance .cc-chips { justify-content: center; }
.tmt-printpage { display: none; }
.tmt-steps li { margin: 6px 0; }
.tmt-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.tmt-faq summary { font-weight: 700; cursor: pointer; }
.tmt-seo { max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .tmt-grid { grid-template-columns: 1fr; } }
@media print {
  body.cc-printing .tmt-printpage { display: block !important; text-align: center; }
  body.cc-printing .tmt-printpage img { width: 100%; max-height: 92vh; object-fit: contain; }
  body.cc-printing .tmt-printpage p { font-size: 11px; color: #777; }
  body.cc-printing #tmt > *:not(#tmt-work), body.cc-printing #tmt-work > *:not(.tmt-printpage) { display: none !important; }
}
