/* ═══════════════════════════════════════════════════════════
   HOME TOEIC — lo-trinh.css (Lộ trình học tập, tiền tố lt-/rm-)
   Hero + nội dung dùng CHUNG 1 bề rộng (--lt-w) để 2 mép thẳng hàng.
   ═══════════════════════════════════════════════════════════ */
:root { --lt-w: 1200px; }
.pg-hero.lt-hero { max-width: var(--lt-w); }

.lt-page { width: 100%; max-width: var(--lt-w); margin: 0 auto; padding: 22px 16px 72px; box-sizing: border-box; }
#rmCard { scroll-margin-top: calc(var(--nav-h, 60px) + 16px); }
/* Khung thông báo gọn (rỗng/lỗi) — 1 khối nhỏ giữa trang */
.lt-card {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 26px 28px;
}
/* Trang chi tiết: không bọc khung — từng khối (hero/bản đồ/từng ngày) tự là thẻ riêng */
.lt-card.is-wide { max-width: none; background: none; border: 0; padding: 0; border-radius: 0; }
.lt-empty { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ── Tông màu theo lộ trình ── */
.rm-tone-blue    { --tone: #1d6ff2; --tone-2: #1558c8; --tone-ink: #1558c8; }
.rm-tone-violet  { --tone: #8b5cf6; --tone-2: #6d28d9; --tone-ink: #6d28d9; }
.rm-tone-emerald { --tone: #10b981; --tone-2: #047857; --tone-ink: #047857; }
.rm-tone-amber   { --tone: #f59e0b; --tone-2: #c2410c; --tone-ink: #b45309; }
.rm-tone-rose    { --tone: #f43f5e; --tone-2: #be123c; --tone-ink: #be123c; }
.rm-tone-cyan    { --tone: #06b6d4; --tone-2: #0e7490; --tone-ink: #0e7490; }
:root[data-theme="dark"] .rm-tone-blue    { --tone-ink: #8fbcf7; }
:root[data-theme="dark"] .rm-tone-violet  { --tone-ink: #c4b5fd; }
:root[data-theme="dark"] .rm-tone-emerald { --tone-ink: #6ee7b7; }
:root[data-theme="dark"] .rm-tone-amber   { --tone-ink: #fcd34d; }
:root[data-theme="dark"] .rm-tone-rose    { --tone-ink: #fda4af; }
:root[data-theme="dark"] .rm-tone-cyan    { --tone-ink: #67e8f9; }
[class*="rm-tone-"] { --tone-soft: color-mix(in srgb, var(--tone) 10%, var(--bg-card)); --tone-line: color-mix(in srgb, var(--tone) 30%, var(--border)); }

/* Màu từng đầu việc (cột) — để phân biệt các việc trong 1 ngày */
.c0 { --cc: #1d6ff2; --cc-ink: #1558c8; }
.c1 { --cc: #8b5cf6; --cc-ink: #6d28d9; }
.c2 { --cc: #10b981; --cc-ink: #047857; }
.c3 { --cc: #f59e0b; --cc-ink: #b45309; }
.c4 { --cc: #f43f5e; --cc-ink: #be123c; }
.c5 { --cc: #06b6d4; --cc-ink: #0e7490; }
:root[data-theme="dark"] .c0 { --cc-ink: #8fbcf7; }
:root[data-theme="dark"] .c1 { --cc-ink: #c4b5fd; }
:root[data-theme="dark"] .c2 { --cc-ink: #6ee7b7; }
:root[data-theme="dark"] .c3 { --cc-ink: #fcd34d; }
:root[data-theme="dark"] .c4 { --cc-ink: #fda4af; }
:root[data-theme="dark"] .c5 { --cc-ink: #67e8f9; }

/* ── Hiệu ứng (chỉ chạy khi vào màn mới — .rm-anim; vẽ lại sau khi tick thì không chạy lại) ── */
@keyframes rmRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rmFade { from { opacity: 0; } to { opacity: 1; } }
.rm-anim .rm-mc { animation: rmRise .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.rm-anim .rm-pl-banner { animation: rmRise .45s cubic-bezier(.22,1,.36,1) both; }
.rm-anim .rm-hero { animation: rmRise .45s cubic-bezier(.22,1,.36,1) both; }
.rm-anim .rm-detail-extra, .rm-anim .rm-map, .rm-anim .rm-teaser { animation: rmRise .45s .08s cubic-bezier(.22,1,.36,1) both; }
.rm-anim .rm-days-sec { animation: rmRise .45s .14s cubic-bezier(.22,1,.36,1) both; }

/* ── Chip nhỏ dùng chung ── */
.rm-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.rm-facts span { display: inline-flex; align-items: center; gap: 6px; }
.rm-facts svg { color: var(--tone-ink, var(--primary)); }
.rm-facts b { color: var(--text); font-weight: 800; }

.rm-points { display: flex; flex-direction: column; gap: 6px; }
.rm-points ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rm-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.rm-points li svg {
  flex-shrink: 0; width: 18px; height: 18px; padding: 3px; margin-top: 1px; box-sizing: border-box; border-radius: 50%;
  color: var(--tone-ink, var(--primary)); background: color-mix(in srgb, var(--tone, var(--primary)) 14%, transparent);
}
.rm-points p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

.rm-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rm-cols-label { font-size: 13px; font-weight: 700; color: var(--text-3); margin-right: 2px; }
.rm-col-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--cc-ink);
  background: color-mix(in srgb, var(--cc) 11%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--cc) 24%, transparent);
}
.rm-col-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }

/* Huy hiệu trạng thái */
.rm-menu-badge {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.rm-menu-badge.danger { background: var(--danger-light); color: #b91c1c; }
.rm-menu-badge.warn   { background: var(--warning-light); color: #92400e; }
.rm-menu-badge.done   { background: var(--success-light); color: #047857; }
.rm-menu-badge.fit    { background: var(--success-light); color: #047857; }
.rm-menu-badge.going  { background: var(--primary-light); color: var(--primary-dark); }
.rm-menu-badge.going i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: rmBlink 1.6s ease-in-out infinite; }
.rm-menu-badge.locked {
  color: #92400e; background: linear-gradient(120deg, #fef3c7, #fde68a);
  border: 1px solid rgba(217,119,6,.25);
}
:root[data-theme="dark"] .rm-menu-badge.danger { color: #fca5a5; }
:root[data-theme="dark"] .rm-menu-badge.warn,
:root[data-theme="dark"] .rm-menu-badge.locked { color: #fcd34d; background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.3); }
:root[data-theme="dark"] .rm-menu-badge.done,
:root[data-theme="dark"] .rm-menu-badge.fit { color: #6ee7b7; }
:root[data-theme="dark"] .rm-menu-badge.going { color: #8fbcf7; }
@keyframes rmBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Nút dùng chung */
.rm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font); font-size: 14.5px; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease, opacity .15s;
}
.rm-btn:active { transform: scale(.97); }
.rm-btn:disabled { opacity: .6; cursor: default; transform: none; }
.rm-btn--primary {
  color: #fff; background: linear-gradient(120deg, var(--tone-2, var(--primary-dark)), var(--tone, var(--primary)));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tone, var(--primary)) 32%, transparent);
}
.rm-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--tone, var(--primary)) 38%, transparent); }
.rm-btn--ghost { color: var(--text-2); background: var(--bg-card); border-color: var(--border); }
.rm-btn--ghost:hover:not(:disabled) { border-color: var(--border-2); color: var(--text); background: var(--bg-hover); }
.rm-btn--soft { color: var(--tone-ink, var(--primary)); background: var(--tone-soft, var(--primary-light)); border-color: var(--tone-line, transparent); }
.rm-btn--soft:hover:not(:disabled) { background: color-mix(in srgb, var(--tone, var(--primary)) 16%, var(--bg-card)); }
.rm-btn--danger-ghost { color: var(--danger); background: var(--bg-card); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.rm-btn--danger-ghost:hover:not(:disabled) { background: var(--danger-light); }
.rm-btn.rm-sm { padding: 8px 14px; font-size: 13.5px; }
.rm-btn-sub { font-weight: 600; color: var(--text-3); font-size: 12.5px; }

/* ═══ Danh sách lộ trình ═══ */
.rm-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rm-mc {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 26px 22px; border-radius: 22px; cursor: pointer; outline: none;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone) 11%, transparent), transparent 55%),
    var(--bg-card);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .2s ease;
}
.rm-mc::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 40%, #fff));
}
.rm-mc:hover, .rm-mc:focus-visible {
  transform: translateY(-4px); border-color: var(--tone-line);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--tone) 35%, transparent);
}
.rm-mc:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 25%, transparent); }
.rm-mc.is-fit { border-color: color-mix(in srgb, #10b981 55%, var(--border)); box-shadow: 0 0 0 4px rgba(16,185,129,.12); }

.rm-mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rm-mc-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 70%, #fff), var(--tone-2));
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--tone) 55%, transparent);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.rm-mc:hover .rm-mc-icon { transform: rotate(-6deg) scale(1.06); }
.rm-mc-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rm-mc-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; color: var(--text); letter-spacing: -.01em; }
.rm-mc .rm-points { padding-top: 2px; }
.rm-mc-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.rm-mc-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.rm-mc-progress { flex: 1; min-width: 0; max-width: 260px; }
.rm-mc-progress-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.rm-mc-progress-top b { color: var(--tone-ink); font-weight: 800; }
.rm-mc-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: var(--tone-ink); background: var(--tone-soft);
  transition: background .2s ease, color .2s ease, gap .2s ease;
}
.rm-mc:hover .rm-mc-cta { background: var(--tone); color: #fff; gap: 10px; }

.rm-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--tone, var(--primary)) 12%, var(--bg-hover)); overflow: hidden; }
.rm-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tone-2, var(--primary-dark)), var(--tone, var(--primary))); transition: width .5s ease; }

/* ── Dải gợi ý "Kiểm tra trình độ" đầu danh sách ── */
.rm-pl-banner {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 18px 22px; border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background: radial-gradient(120% 160% at 100% 0%, rgba(124,58,237,.10), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(29,111,242,.10), transparent 55%), var(--bg-card);
}
.rm-pl-banner.is-fit { border-color: color-mix(in srgb, #10b981 45%, var(--border)); background: radial-gradient(120% 160% at 0% 100%, rgba(16,185,129,.12), transparent 55%), var(--bg-card); }
.rm-pl-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); box-shadow: 0 8px 18px rgba(29,111,242,.28); }
.rm-pl-banner.is-fit .rm-pl-icon { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px rgba(16,185,129,.28); }
.rm-pl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rm-pl-text b { font-size: 16px; color: var(--text); line-height: 1.4; }
.rm-pl-text span { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.rm-pl-text a { color: var(--primary); font-weight: 700; }
.rm-pl-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14.5px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary)); box-shadow: 0 6px 16px rgba(29,111,242,.3); transition: transform .15s ease;
}
.rm-pl-banner.is-fit .rm-pl-btn { background: linear-gradient(120deg, #047857, #10b981); box-shadow: 0 6px 16px rgba(16,185,129,.3); }
.rm-pl-btn:hover { transform: translateY(-2px); }

/* ═══ Trang chi tiết ═══ */
.rm-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rm-back-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px 9px 11px; border-radius: 999px;
  background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-2);
  font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}
.rm-back-btn:hover { border-color: var(--primary); color: var(--primary); }
.rm-back-btn:hover svg { transform: translateX(-2px); }
.rm-back-btn svg { transition: transform .15s ease; }

.rm-detail { display: flex; flex-direction: column; gap: 20px; }

.rm-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch;
  padding: 30px 32px; border-radius: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 60%),
    var(--bg-card);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.rm-hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 35%, #fff));
}
.rm-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rm-hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.rm-hero-eyebrow .rm-mc-icon { width: 44px; height: 44px; border-radius: 13px; }
.rm-access { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.rm-access.free { background: var(--success-light); color: #047857; }
.rm-access.pro { background: linear-gradient(120deg, #fef3c7, #fde68a); color: #92400e; }
:root[data-theme="dark"] .rm-access.free { color: #6ee7b7; }
:root[data-theme="dark"] .rm-access.pro { background: rgba(245,158,11,.16); color: #fcd34d; }
.rm-hero-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.3; color: var(--text); letter-spacing: -.015em; }
.rm-points--hero li, .rm-points--hero p { font-size: 15.5px; }
.rm-hero-side { min-width: 0; display: flex; }

/* Thẻ bên phải khối đầu trang */
.rm-side-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; padding: 24px 22px; border-radius: 20px; box-sizing: border-box;
  background: color-mix(in srgb, var(--tone) 6%, var(--bg-hover)); border: 1.5px solid var(--tone-line);
}
.rm-side-icon {
  width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--tone-ink); background: var(--bg-card); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tone) 45%, transparent);
}
.rm-side-title { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.35; }
.rm-side-text { margin: 0 0 6px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.rm-side-card .rm-btn--primary { width: 100%; }
.rm-upgrade-card { border-style: dashed; }

.rm-start-card { align-items: stretch; text-align: left; }
.rm-start-card .rm-side-icon, .rm-start-card .rm-side-title, .rm-start-card .rm-side-text { align-self: center; text-align: center; }
.rm-date-label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.rm-date-input {
  padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; color: var(--text); background: var(--bg-card); font-family: inherit;
}

/* Thẻ % tiến độ */
.rm-stat-card { gap: 12px; }
.rm-ring { position: relative; width: 132px; height: 132px; }
.rm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rm-ring circle { fill: none; stroke-width: 11; }
.rm-ring-bg { stroke: color-mix(in srgb, var(--tone) 13%, var(--bg-card)); }
.rm-ring-fg { stroke: var(--tone); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }
.rm-ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -.02em;
}
.rm-ring-num small { font-size: 16px; font-weight: 700; color: var(--text-3); margin-left: 1px; margin-top: 8px; }
.rm-stat-label { font-size: 14.5px; color: var(--text-2); }
.rm-stat-label b { color: var(--text); }
.rm-stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rm-stat-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--text-3); background: var(--bg-card); border: 1px solid var(--border);
}
.rm-stat-pill b { font-weight: 800; }
.rm-stat-pill.flame.on { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.rm-stat-pill.flame.on svg { color: #f97316; animation: rmFlicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.rm-stat-pill.best.on { color: #047857; background: var(--success-light); border-color: transparent; }
:root[data-theme="dark"] .rm-stat-pill.flame.on { color: #fdba74; background: rgba(249,115,22,.14); border-color: rgba(249,115,22,.3); }
:root[data-theme="dark"] .rm-stat-pill.best.on { color: #6ee7b7; }
@keyframes rmFlicker { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(-4deg); } }

/* Banner + thanh thao tác */
.rm-detail-extra { display: flex; flex-direction: column; gap: 10px; }
.rm-detail-extra:empty { display: none; }
.rm-note, .rm-warn-banner {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 18px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; line-height: 1.55;
}
.rm-note svg, .rm-warn-banner svg { flex-shrink: 0; margin-top: 2px; }
.rm-note { border: 1px dashed var(--border-2); background: var(--bg-card); color: var(--text-2); }
.rm-note svg { color: var(--text-3); }
.rm-warn-banner.level-1, .rm-warn-banner.level-2 { background: var(--warning-light); color: #92400e; border: 1px solid rgba(245,158,11,.3); }
.rm-warn-banner.level-1 svg, .rm-warn-banner.level-2 svg { color: var(--warning); }
.rm-warn-banner.level-3 { background: var(--danger-light); color: #991b1b; border: 1px solid rgba(239,68,68,.3); }
.rm-warn-banner.level-3 svg { color: var(--danger); animation: rmBlink 1.4s ease-in-out infinite; }
:root[data-theme="dark"] .rm-warn-banner.level-1, :root[data-theme="dark"] .rm-warn-banner.level-2 { color: #fcd34d; }
:root[data-theme="dark"] .rm-warn-banner.level-3 { color: #fca5a5; }

.rm-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--bg-card); border: 1.5px solid var(--border);
}
.rm-toolbar-date { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.rm-toolbar-date svg { color: var(--tone-ink); }
.rm-toolbar-date b { color: var(--text); }
.rm-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-toolbar-actions .rm-btn { padding: 9px 15px; font-size: 13.5px; }
.rm-pause-used { font-size: 13px; color: var(--text-3); font-weight: 600; align-self: center; }

/* Tiêu đề từng khu */
.rm-sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.rm-sec-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.rm-sec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-panel { padding: 22px 24px; border-radius: 20px; background: var(--bg-card); border: 1.5px solid var(--border); }

/* "Hôm nay" luôn xanh dương cố định — không theo tông lộ trình (tông cam sẽ trùng màu "Cần bổ sung") */
.rm-day.st-today, .rm-map-day.st-today, .rm-legend i.st-today { --tone: #1d6ff2; --tone-ink: #1558c8; }
:root[data-theme="dark"] .rm-day.st-today, :root[data-theme="dark"] .rm-map-day.st-today, :root[data-theme="dark"] .rm-legend i.st-today { --tone-ink: #8fbcf7; }

/* Bản đồ các ngày */
.rm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rm-legend i { width: 12px; height: 12px; border-radius: 4px; box-sizing: border-box; border: 1.5px solid transparent; }
.rm-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.rm-map-day {
  aspect-ratio: 1; min-height: 38px; border-radius: 11px; cursor: pointer; font-family: var(--font);
  font-size: 13.5px; font-weight: 800; border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease;
}
.rm-map-day:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px -4px rgba(15,23,42,.25); }
.rm-map-day.st-future, .rm-legend i.st-future, .rm-map-day.st-preview, .rm-legend i.st-preview { background: var(--bg-hover); color: var(--text-3); border-color: var(--border); }
.rm-map-day.st-done, .rm-legend i.st-done { background: #10b981; color: #fff; }
.rm-map-day.st-grace, .rm-legend i.st-grace { background: var(--warning-light); color: #b45309; border-color: #f59e0b; }
.rm-map-day.st-missed, .rm-legend i.st-missed { background: var(--danger-light); color: #b91c1c; border-color: color-mix(in srgb, #ef4444 45%, transparent); }
.rm-map-day.st-today, .rm-legend i.st-today { background: var(--bg-card); color: var(--tone-ink); border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); }
.rm-map-day.st-today { animation: rmRing 2s ease-out infinite; }
.rm-map-day.st-today.is-complete { background: #10b981; color: #fff; border-color: #10b981; }
.rm-legend i.st-today { border-width: 2px; border-style: solid; box-shadow: none; }
:root[data-theme="dark"] .rm-map-day.st-grace { color: #fcd34d; }
:root[data-theme="dark"] .rm-map-day.st-missed { color: #fca5a5; }
@keyframes rmRing {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 45%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--tone) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 0%, transparent); }
}

/* Dòng thời gian các ngày */
.rm-tl { position: relative; display: flex; flex-direction: column; gap: 12px; }
.rm-tl::before {
  content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--border-2) 0 6px, transparent 6px 11px);
}
.rm-day { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--nav-h, 60px) + 18px); }
.rm-day-rail { display: flex; justify-content: center; padding-top: 12px; }
.rm-day-node {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--text-3);
  background: var(--bg-card); border: 2px solid var(--border-2);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s;
}
.rm-day.is-complete .rm-day-node { background: #10b981; border-color: #10b981; color: #fff; }
.rm-day.st-today .rm-day-node { color: #fff; background: var(--tone); border-color: var(--tone); animation: rmRing 2s ease-out infinite; }
.rm-day.st-today.is-complete .rm-day-node { background: #10b981; border-color: #10b981; }
.rm-day.st-grace .rm-day-node { color: #fff; background: #f59e0b; border-color: #f59e0b; }
.rm-day.st-missed .rm-day-node { color: #fff; background: #ef4444; border-color: #ef4444; }

.rm-day-card {
  min-width: 0; border-radius: 18px; background: var(--bg-card); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.rm-day-card:hover { border-color: var(--border-2); }
.rm-day.st-today .rm-day-card { border-color: var(--tone); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--tone) 50%, transparent); }
.rm-day.st-grace .rm-day-card { border-color: color-mix(in srgb, #f59e0b 60%, var(--border)); }
.rm-day.st-missed .rm-day-card { border-color: color-mix(in srgb, #ef4444 40%, var(--border)); }
.rm-day.st-missed .rm-day-card, .rm-day.st-done .rm-day-card { box-shadow: none; }

.rm-day-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px 16px 20px; text-align: left;
  background: none; border: 0; cursor: pointer; font-family: var(--font); color: var(--text); border-radius: 18px;
}
.rm-day-titles { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.rm-day-name { font-size: 16.5px; font-weight: 800; }
.rm-day-date { font-size: 13.5px; font-weight: 600; color: var(--text-3); text-transform: capitalize; }
.rm-day-peek {
  flex-basis: 100%; min-width: 0; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-height: 22px; transition: opacity .2s ease, max-height .3s ease, margin .3s ease;
}
.rm-day.is-open .rm-day-peek { opacity: 0; max-height: 0; margin-top: 0; }
.rm-day-titles { flex: 1; }
.rm-day-meta { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rm-day-count {
  font-size: 13px; font-weight: 700; color: var(--text-2); padding: 4px 10px; border-radius: 999px; background: var(--bg-hover);
  white-space: nowrap;
}
.rm-day-count.full { color: #047857; background: var(--success-light); }
:root[data-theme="dark"] .rm-day-count.full { color: #6ee7b7; }
.rm-day-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rm-day-badge.today { color: #fff; background: var(--tone); box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--tone) 60%, transparent); }
.rm-day-badge.today::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: rmBlink 1.4s ease-in-out infinite; }
.rm-day-badge.grace { color: #92400e; background: var(--warning-light); }
.rm-day-badge.missed { color: #b91c1c; background: var(--danger-light); }
:root[data-theme="dark"] .rm-day-badge.grace { color: #fcd34d; }
:root[data-theme="dark"] .rm-day-badge.missed { color: #fca5a5; }
.rm-day-chev { flex-shrink: 0; display: inline-flex; color: var(--text-3); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.rm-day.is-open .rm-day-chev { transform: rotate(180deg); }

/* Mở/đóng mượt bằng grid-template-rows 0fr → 1fr */
.rm-day-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.22,1,.36,1); }
.rm-day.is-open .rm-day-body { grid-template-rows: 1fr; }
.rm-day-inner { overflow: hidden; min-height: 0; }
.rm-tasks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
  padding: 0 18px 18px 20px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s ease;
}
.rm-day.is-open .rm-tasks { opacity: 1; transform: none; }

.rm-task {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--cc) 5%, var(--bg-hover)); border: 1px solid color-mix(in srgb, var(--cc) 16%, var(--border));
  transition: background .25s ease, border-color .25s ease;
}
.rm-task-col {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--cc-ink);
}
.rm-task-col i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 20%, transparent); }
.rm-task-text { font-size: 15px; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.rm-task.is-done { background: color-mix(in srgb, #10b981 7%, var(--bg-card)); border-color: color-mix(in srgb, #10b981 40%, var(--border)); }
.rm-task.is-done .rm-task-text { color: var(--text-2); }

/* Hàng thao tác cuối mỗi việc: nút "Làm ngay" (link admin gắn) + nút tick */
.rm-task-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 2px; }
.rm-task-actions .rm-tick { margin-top: 0; }
.rm-task-actions .rm-go { align-self: flex-start; }
.rm-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 11px; text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--cc) 80%, #000), var(--cc));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--cc) 70%, transparent);
  transition: transform .15s ease, box-shadow .2s ease, gap .2s ease;
}
.rm-go:hover { transform: translateY(-1px); gap: 9px; box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--cc) 75%, transparent); }
.rm-go:active { transform: scale(.97); }
.rm-task.is-done .rm-go { color: var(--cc-ink); background: var(--bg-card); border: 1.5px solid color-mix(in srgb, var(--cc) 35%, var(--border)); box-shadow: none; padding: 7.5px 12.5px; }

/* Đang xem chi tiết 1 lộ trình: ẩn banner đầu trang, nội dung tự chừa chỗ cho thanh menu */
body.rm-in-detail .lt-hero { display: none; }
body.rm-in-detail .lt-page { padding-top: calc(var(--nav-h, 60px) + 22px); }

.rm-tick {
  display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 9px 12px; border-radius: 11px; cursor: pointer;
  background: var(--bg-card); border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text-2); user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.rm-tick:hover { border-color: #10b981; color: var(--text); }
.rm-tick:has(.rm-check:checked) { background: #10b981; border-color: #10b981; color: #fff; }
.rm-tick:has(.rm-check:checked) .rm-check { border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.rm-tick.is-locked { cursor: not-allowed; color: var(--text-3); background: var(--bg-hover); }
.rm-tick.is-locked:hover { border-color: var(--border); }
.rm-check { --chk: #10b981; }
/* Chỉ ô VỪA bấm mới nảy — các ô đã tick sẵn không nảy lại mỗi lần vẽ lại */
.rm-detail .tts-check:checked { animation: none; }
.rm-detail .tts-check.rm-pop:checked { animation: ttsCheckPop .32s cubic-bezier(.34,1.56,.64,1); }
.rm-empty-day { font-size: 14px; color: var(--text-3); margin: 0; }

/* Vừa xong trọn 1 ngày / nhảy tới 1 ngày */
.rm-day.rm-day-pop .rm-day-node { animation: rmNodePop .6s cubic-bezier(.34,1.56,.64,1); }
.rm-day.rm-day-pop .rm-day-card { animation: rmGlow 1.2s ease-out; }
@keyframes rmNodePop { 0% { transform: scale(.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes rmGlow { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 100% { box-shadow: 0 0 0 14px rgba(16,185,129,0); } }
.rm-day.rm-flash .rm-day-card { animation: rmFlash 1.3s ease-out; }
@keyframes rmFlash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 35%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }

/* Lộ trình Pro chưa mua — khung mờ (thẻ giả, không có chữ nội dung thật) */
.rm-teaser { position: relative; border-radius: 22px; overflow: hidden; border: 1.5px solid var(--border); background: var(--bg-card); }
.rm-teaser-blur { display: flex; flex-direction: column; gap: 14px; padding: 24px; filter: blur(3px); opacity: .7; pointer-events: none; }
.rm-teaser-day { display: flex; flex-direction: column; gap: 12px; }
.rm-teaser-head { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.rm-teaser-head .rm-day-node { width: 32px; height: 32px; }
.rm-teaser-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rm-teaser-task { display: flex; flex-direction: column; gap: 9px; padding: 16px; border-radius: 14px; background: var(--bg-hover); border: 1px solid var(--border); }
.rm-teaser-task i { display: block; height: 10px; width: 90%; border-radius: 6px; background: color-mix(in srgb, var(--tone) 18%, var(--border)); }
.rm-teaser-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
  background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--bg-card) 92%, transparent), color-mix(in srgb, var(--bg-card) 35%, transparent));
}
.rm-teaser-over b { font-size: 18px; color: var(--text); }
.rm-teaser-over span:not(.rm-side-icon) { font-size: 14.5px; color: var(--text-2); max-width: 420px; line-height: 1.6; }

/* Màn hình khoá lộ trình (nghỉ quá 3 ngày liên tiếp) */
.rm-disabled {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 36px 24px; border: 1.5px dashed color-mix(in srgb, var(--danger) 55%, var(--border)); border-radius: 22px;
  background: radial-gradient(70% 90% at 50% 0%, var(--danger-light), transparent 70%), var(--bg-card);
}
.rm-disabled-icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 12px 26px -8px rgba(220,38,38,.5); margin-bottom: 6px; }
.rm-disabled-title { font-size: 20px; font-weight: 800; color: var(--text); }
.rm-disabled-text { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 440px; }
.rm-disabled-count { margin: 2px 0 12px; font-size: 14.5px; font-weight: 700; color: #b91c1c; }
:root[data-theme="dark"] .rm-disabled-count { color: #fca5a5; }

/* ── Modal dùng chung (xác nhận + ăn mừng hoàn thành) ── */
.lt-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.5); backdrop-filter: blur(3px); align-items: center; justify-content: center; padding: 16px;
}
.lt-modal-overlay.show { display: flex; animation: rmFade .2s ease; }
.lt-modal {
  width: 100%; max-width: 400px; background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg);
}
.lt-modal-overlay.show .lt-modal { animation: rmModalIn .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes rmModalIn { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.lt-modal-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.lt-modal-text { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0 0 4px; }
.lt-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.lt-modal-actions .btn { flex: 1; }
.lt-modal-actions .btn-primary:disabled { opacity: .6; cursor: default; }

.lt-confirm-modal { text-align: center; padding-top: 30px; }
.lt-confirm-icon {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.lt-confirm-icon[data-danger="true"] { background: var(--danger-light); color: var(--danger); }
.lt-confirm-title { text-align: center; }
.lt-confirm-text { text-align: center; margin-bottom: 0; }
.lt-confirm-ok[data-danger="true"] {
  background: var(--danger) !important; color: #fff !important;
  box-shadow: 0 6px 18px rgba(239,68,68,.28) !important;
}
.lt-confirm-ok[data-danger="true"]:hover { opacity: .92; }

.lt-celebrate-modal { text-align: center; padding-top: 32px; }
.lt-celebrate-icon {
  width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 14px 30px rgba(245,158,11,.4);
}
.lt-modal-overlay.show .lt-celebrate-icon { animation: lt-celebrate-pop .6s .1s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes lt-celebrate-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.lt-celebrate-points {
  display: inline-block; margin: 6px auto 20px; padding: 7px 18px; border-radius: 999px;
  background: var(--success-light); color: #047857; font-size: 15px; font-weight: 800;
}
:root[data-theme="dark"] .lt-celebrate-points { color: #6ee7b7; }

/* Nút nổi cuộn lên đầu lộ trình — chỉ hiện khi đang xem chi tiết 1 lộ trình và đã cuộn xuống sâu */
.lt-scrolltop {
  position: fixed; right: 22px; bottom: 26px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(29,111,242,.35);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lt-scrolltop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lt-scrolltop:hover { transform: translateY(-2px); }
.lt-scrolltop:active { transform: scale(.94); }

/* ═══ Màn hình hẹp ═══ */
@media (max-width: 980px) {
  .rm-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
  .rm-side-card { flex-direction: column; }
}
@media (max-width: 860px) {
  .rm-menu { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .lt-page { padding: 16px 12px 64px; }
  body.rm-in-detail .lt-page { padding-top: calc(var(--nav-h, 60px) + 16px); }
  .lt-card { padding: 20px 18px; }
  .rm-mc { padding: 20px 18px 18px; border-radius: 18px; gap: 12px; }
  .rm-mc-icon { width: 44px; height: 44px; border-radius: 13px; }
  .rm-mc-title { font-size: 17.5px; }
  .rm-mc-foot { flex-wrap: wrap; }
  .rm-mc-progress { max-width: none; flex-basis: 100%; }
  .rm-mc-cta { width: 100%; justify-content: center; }
  .rm-hero { padding: 22px 18px; gap: 20px; border-radius: 20px; }
  .rm-hero-title { font-size: 23px; }
  .rm-points--hero li, .rm-points--hero p { font-size: 15px; }
  .rm-panel { padding: 18px 16px; }
  .rm-map-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; }
  .rm-toolbar { padding: 12px 14px; }
  .rm-toolbar-actions { width: 100%; }
  .rm-toolbar-actions .rm-btn { flex: 1; }
  .rm-tl::before { left: 15px; }
  .rm-day { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .rm-day-rail { padding-top: 14px; }
  .rm-day-node { width: 30px; height: 30px; font-size: 13px; }
  .rm-day-head { padding: 14px 12px 14px 14px; gap: 8px; flex-wrap: wrap; }
  .rm-day-titles { flex: 1; }
  .rm-day-meta { order: 3; width: 100%; justify-content: flex-start; margin-left: 0; }
  .rm-day-meta:empty { display: none; }
  .rm-day-chev { order: 2; }
  .rm-tasks { grid-template-columns: minmax(0, 1fr); padding: 0 12px 14px 14px; }
  .rm-task { padding: 14px 14px 12px; }
  .rm-task-text { font-size: 14.5px; }
  .rm-pl-banner { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .rm-pl-text { flex-basis: calc(100% - 66px); }
  .rm-pl-btn { width: 100%; justify-content: center; }
  .rm-teaser-blur { padding: 18px; }
  .lt-scrolltop { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-anim .rm-mc, .rm-anim .rm-pl-banner, .rm-anim .rm-hero, .rm-anim .rm-detail-extra, .rm-anim .rm-map,
  .rm-anim .rm-teaser, .rm-anim .rm-days-sec, .rm-map-day.st-today, .rm-day.st-today .rm-day-node,
  .rm-stat-pill.flame.on svg, .rm-menu-badge.going i { animation: none; }
  .rm-day-body, .rm-tasks, .rm-ring-fg { transition: none; }
}

/* ── Khoá theo cột "Chỉ dành cho Pro" (columns[].proOnly, xem rmColLocked trong lo-trinh.js) ── */
.rm-col-chip.is-pro { color: #92400e; background: linear-gradient(120deg, #fef3c7, #fde68a); border-color: rgba(245,158,11,.45); }
.rm-col-chip.is-pro::before { display: none; }
:root[data-theme="dark"] .rm-col-chip.is-pro { color: #fcd34d; background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.35); }

.rm-pro-note {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(254,243,199,.9), rgba(253,230,138,.55)); border: 1px solid rgba(245,158,11,.4);
  color: #78350f; font-size: 14.5px; font-weight: 600; line-height: 1.55;
}
.rm-detail > .rm-pro-note { margin-top: 14px; }
.rm-pro-note b { font-weight: 800; }
.rm-pro-note-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 14px -6px rgba(217,119,6,.8);
}
.rm-pro-note-text { flex: 1 1 260px; min-width: 0; }
.rm-pro-note .rm-btn { flex-shrink: 0; --tone: #f59e0b; --tone-2: #d97706; }
:root[data-theme="dark"] .rm-pro-note { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); color: #fde68a; }

.rm-task--pro { background: repeating-linear-gradient(135deg, color-mix(in srgb, #f59e0b 5%, var(--bg-hover)) 0 12px, color-mix(in srgb, #f59e0b 9%, var(--bg-hover)) 12px 24px); border-style: dashed; border-color: rgba(245,158,11,.45); }
.rm-pro-chip {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0; text-transform: none; color: #92400e; background: #fde68a;
}
:root[data-theme="dark"] .rm-pro-chip { color: #1f1300; background: #fbbf24; }
.rm-task-ghost { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 4px; filter: blur(.4px); }
.rm-task-ghost i { display: block; height: 10px; border-radius: 6px; background: color-mix(in srgb, #f59e0b 22%, var(--border)); }
.rm-task--pro .rm-go { --cc: #d97706; }
