/* ==========================================================================
   M12 Ads (.m12a-) — CMS-05 list · CMS-06/07 form · CMS-09 detail · CMS-10 advertisers · CMS-11 schedule · CMS-12 stats
   Tokens only (assets/css/tokens.css). Wide content (tables, timeline) scrolls inside its own box — never the page.
   ========================================================================== */

/* ---------------------------------------------------------------- shared bits */
.m12a-h4 { margin: 4px 0 0; font-size: var(--rv-fs-body); line-height: 20px; font-weight: 600; }
.m12a-tag { display: inline-block; padding: 0 6px; border-radius: var(--rv-radius-pill); background: var(--rv-neutral-100); color: var(--rv-neutral-700); font-size: 11px; line-height: 18px; white-space: nowrap; }
.m12a-st { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; vertical-align: middle; }
.m12a-st__pub { font-size: 11px; line-height: 14px; color: var(--rv-text-muted); white-space: nowrap; }
.m12a-swnote { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-muted); white-space: nowrap; }
.m12a-kv .rv-kv__row dd { overflow-wrap: anywhere; }
.m12a-courses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.m12a-courses li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.m12a-iss { display: flex; gap: 6px; align-items: flex-start; font-size: var(--rv-fs-small); line-height: 18px; }
.m12a-iss.is-error { color: var(--rv-danger); }
.m12a-iss.is-warning { color: var(--rv-warning); }
.m12a-iss .rv-icon { flex: 0 0 auto; margin-top: 2px; }

/* ---------------------------------------------------------------- summary cards (CMS-05 / CMS-10) */
.m12a-kpi { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.m12a-kpi .rv-stat.is-active,
.m12a-kpi .rv-stat[aria-pressed="true"] { border-color: var(--rv-primary-700); background: var(--rv-primary-50); box-shadow: inset 0 -2px 0 var(--rv-primary-700); }

/* ---------------------------------------------------------------- CMS-05 table cells */
.m12a-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m12a-name__t { font-weight: 500; color: var(--rv-text-primary); overflow-wrap: anywhere; }
.m12a-name__t code { margin-right: 2px; }
.m12a-name__c, .m12a-adv__co { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-muted); overflow-wrap: anywhere; }
.m12a-adv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m12a-adv > a { font-weight: 500; }
.m12a-thumbs { display: flex; align-items: flex-end; gap: 8px; }
.m12a-thumb { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.m12a-thumb--desktop .rv-imgf-thumb { width: 96px; }
.m12a-thumb--mobile .rv-imgf-thumb { width: 32px; }
.m12a-thumb figcaption { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; line-height: 14px; color: var(--rv-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m12a-thumb__dev { font-weight: 700; color: var(--rv-text-secondary); }
.m12a-thumb__warn { display: inline-flex; }
.m12a-thumb__warn.is-error { color: var(--rv-danger); }
.m12a-thumb__warn.is-warning { color: var(--rv-warning); }
.m12a-pl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m12a-pl__page { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-muted); }
.m12a-pl__slot { overflow-wrap: anywhere; }
.m12a-scope { white-space: nowrap; }
.m12a-period { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.m12a-period__end { color: var(--rv-text-secondary); }
.m12a-hint { font-size: 11px; line-height: 14px; color: var(--rv-text-muted); }
.m12a-swf { white-space: nowrap; }
.m12a-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); background: var(--rv-surface-subtle); }
.m12a-bulk__txt { font-size: 13px; line-height: 20px; }
.m12a-bulk__hint { flex: 1 1 260px; font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-muted); }

/* ---------------------------------------------------------------- dialogs: conflicts / bulk / duplicate / publish now */
.m12a-conf { display: flex; flex-direction: column; gap: 12px; }
.m12a-conf__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m12a-conf__item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; padding: 10px 12px;
  border: 1px solid var(--rv-danger-border); border-radius: var(--rv-radius-card); background: var(--rv-danger-bg); }
.m12a-conf__main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m12a-conf__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 500; overflow-wrap: anywhere; }
.m12a-conf__meta, .m12a-conf__range { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-secondary); overflow-wrap: anywhere; }
.m12a-conf__range strong { color: var(--rv-danger); font-weight: 600; }
.m12a-blist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.m12a-blist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 8px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); font-size: 13px; line-height: 20px; }
.m12a-blist__name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.m12a-blist__st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m12a-blist__why { flex-basis: 100%; color: var(--rv-danger); }
.m12a-dup__courses { max-height: 220px; overflow-y: auto; margin-top: 8px; padding: 8px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); }
.m12a-pn { display: grid; gap: 6px; margin: 0 0 8px; }
.m12a-pn > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.m12a-pn dt { font-size: var(--rv-fs-small); color: var(--rv-text-muted); }
.m12a-pn dd { margin: 0; }

/* ---------------------------------------------------------------- previews (form aside, drawers, CMS-09 tab) */
.m12a-pv { min-width: 0; }
.m12a-pv__note { margin: 0 0 8px; }
.m12a-pvd { display: flex; flex-direction: column; gap: 10px; }
.m12a-pvtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.m12a-pvtools__g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.m12a-pvtools__l { font-size: var(--rv-fs-small); color: var(--rv-text-muted); white-space: nowrap; }
.m12a-pvtools__at .rv-input { width: auto; max-width: 220px; }
.m12a-pvtools .rv-select { width: auto; max-width: 100%; }
.m12a-pvtools--page { padding: 10px 12px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); background: var(--rv-surface-subtle); }
.m12a-pvcard [data-slot="pvtabs"] { margin-bottom: 8px; }

/* ---------------------------------------------------------------- CMS-06/07 form */
.m12a-reqnote { margin: 0; }
.m12a-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.m12a-form__main { min-width: 0; }
.m12a-form__aside { display: none; min-width: 0; }
.m12a-advfield { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.m12a-advfield > .rv-field { width: 100%; }
.m12a-inline-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-warning); overflow-wrap: anywhere; }
.m12a-inline-note.is-muted { color: var(--rv-text-muted); }
.m12a-inline-note .rv-icon { flex: 0 0 auto; margin-top: 2px; }
.m12a-scope-box { padding: 12px; border: 1px dashed var(--rv-border); border-radius: var(--rv-radius-card); background: var(--rv-surface-subtle); }
.m12a-plinfo { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; }
.m12a-plinfo__text { flex: 1 1 240px; min-width: 0; }
.m12a-plinfo__text p { margin: 0 0 2px; }
.m12a-plinfo__t { font-weight: 500; }
.m12a-startcol { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.m12a-startcol > .rv-field { width: 100%; }
/* required-before-publish markers (the fields stay optional for drafts, so they are not data-required) */
.m12a-pubreq > .rv-field__label::after,
.m12a-formpage [data-field="desktopImage"] .rv-imgf__head .rv-field__label::after,
.m12a-formpage [data-field="mobileImage"] .rv-imgf__head .rv-field__label::after { content: " *"; color: var(--rv-danger); }
.m12a-schedread { margin: 0; font-size: 13px; line-height: 20px; color: var(--rv-text-secondary); }
.m12a-ready__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.m12a-ready { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.m12a-ready__item { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.m12a-ready__item > .rv-icon { flex: 0 0 auto; margin-top: 3px; }
.m12a-ready__item.is-error > .rv-icon { color: var(--rv-danger); }
.m12a-ready__item.is-warning > .rv-icon { color: var(--rv-warning); }
.m12a-ready__item .rv-link-btn { font-weight: 400; text-align: left; }
.m12a-ready__conf { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--rv-danger-border); border-radius: var(--rv-radius-card); background: var(--rv-danger-bg); }
.m12a-ready__conf p { margin: 0; }
.m12a-actions { position: sticky; bottom: 0; z-index: var(--rv-z-sticky); justify-content: space-between; gap: 8px 12px; margin-top: 8px; padding: 12px 0; background: var(--rv-surface); border-top: 1px solid var(--rv-divider); }
.m12a-actions__left, .m12a-actions__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m12a-actions__right { justify-content: flex-end; margin-left: auto; }
.m12a-dirty { display: inline-flex; align-items: center; gap: 4px; font-size: var(--rv-fs-small); color: var(--rv-warning); }
.m12a-dirty:empty { display: none; }
@media (min-width: 1024px) {
  .m12a-form { grid-template-columns: minmax(0, 1fr) 320px; }
  .m12a-form__aside { display: block; position: sticky; top: calc(var(--rv-header-height) + 12px); max-height: calc(100vh - var(--rv-header-height) - 24px); overflow-y: auto; }
  .m12a-pvbtn { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .m12a-form__main .rv-grid-form { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .m12a-form { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
}
@media (max-width: 767px) {
  .m12a-actions { bottom: calc(var(--rv-mobile-nav-height) + env(safe-area-inset-bottom)); padding: 8px 0; }
  .m12a-actions__right { width: 100%; }
  .m12a-actions__right > .rv-btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- CMS-09 detail */
.m12a-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 6px; font-size: 13px; line-height: 20px; }
.m12a-hsw { white-space: nowrap; }
.m12a-ov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.m12a-ov__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.m12a-cd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--rv-neutral-border); border-radius: var(--rv-radius-card);
  background: var(--rv-neutral-bg); color: var(--rv-neutral); font-weight: 500; font-variant-numeric: tabular-nums; }
.m12a-cd.is-success { background: var(--rv-success-bg); border-color: var(--rv-success-border); color: var(--rv-success); }
.m12a-cd.is-info { background: var(--rv-info-bg); border-color: var(--rv-info-border); color: var(--rv-info); }
.m12a-cd.is-warning { background: var(--rv-warning-bg); border-color: var(--rv-warning-border); color: var(--rv-warning); }
.m12a-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--rv-fs-small); line-height: 18px; }
.m12a-steps li { display: flex; gap: 6px; align-items: flex-start; }
.m12a-steps li .rv-icon { flex: 0 0 auto; margin-top: 2px; }
.m12a-steps li.is-ok .rv-icon { color: var(--rv-success); }
.m12a-steps li.is-no .rv-icon { color: var(--rv-text-muted); }
.m12a-cr { display: flex; justify-content: center; margin-bottom: 12px; }
.m12a-cr .m12a-cr__img { width: 100%; }
.m12a-cr--mobile .m12a-cr__img { width: 220px; max-width: 100%; }
.m12a-pvpage .rv-alert { margin: 0; }
@media (max-width: 1023px) { .m12a-ov { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- CMS-10 advertisers + drawers */
.m12a-advname { text-align: left; overflow-wrap: anywhere; }
.m12a-advcount { font-variant-numeric: tabular-nums; }
.m12a-advads { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.m12a-advads__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); }
.m12a-advads__main { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- course ads panel (embedded in CRS-04) */
.m12a-cap__now { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 20px; }
.m12a-cap__now li { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.m12a-cap__pl { min-width: 180px; color: var(--rv-text-muted); }

/* ---------------------------------------------------------------- CMS-11 timeline */
.m12a-sched__tip { margin: 0; }
.m12a-tlnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.m12a-tlnav__nav { display: inline-flex; gap: 4px; }
.m12a-tlnav__label { margin: 0 auto 0 0; font-size: var(--rv-fs-card-title); line-height: var(--rv-lh-card-title); font-weight: 500; }
.m12a-tl { --m12a-label: 176px; --m12a-lane: 46px; --m12a-daymin: 112px; border: 1px solid var(--rv-divider); border-radius: var(--rv-radius-card); background: var(--rv-surface); }
.m12a-tl[data-view="month"] { --m12a-daymin: 30px; }
.m12a-tl__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: inherit; }
.m12a-tl__scroll:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: 2px; }
.m12a-tl__grid { position: relative; min-width: calc(var(--m12a-label) + var(--m12a-days) * var(--m12a-daymin)); }
.m12a-tl__head, .m12a-tl__row { display: grid; grid-template-columns: var(--m12a-label) minmax(0, 1fr); }
.m12a-tl__head { border-bottom: 1px solid var(--rv-divider); background: var(--rv-surface); }
.m12a-tl__corner { position: sticky; left: 0; z-index: 4; display: flex; align-items: flex-end; padding: 8px 10px; background: var(--rv-surface); border-right: 1px solid var(--rv-divider);
  font-size: var(--rv-fs-small); font-weight: 600; color: var(--rv-text-secondary); }
.m12a-tl__days { position: relative; display: grid; grid-template-columns: repeat(var(--m12a-days), minmax(0, 1fr)); padding-bottom: 14px; }
.m12a-tl__day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 4px 2px; border-left: 1px solid var(--rv-divider);
  font-size: 11px; line-height: 14px; color: var(--rv-text-secondary); text-align: center; }
.m12a-tl__dnum { font-weight: 500; color: var(--rv-text-primary); white-space: nowrap; }
.m12a-tl__day.is-weekend { background: var(--rv-neutral-50); }
.m12a-tl__day.is-today { background: var(--rv-primary-50); color: var(--rv-primary-800); }
.m12a-tl__day.is-today .m12a-tl__dnum { color: var(--rv-primary-800); font-weight: 700; }
.m12a-tl__nowtag { position: absolute; bottom: 0; z-index: 2; transform: translateX(-50%); padding: 0 4px; border-radius: 2px; background: var(--rv-danger); color: #fff; font-size: 10px; line-height: 14px; white-space: nowrap; }
.m12a-tl__group { border-bottom: 1px solid var(--rv-divider); background: var(--rv-neutral-50); font-size: 11px; line-height: 16px; font-weight: 600; color: var(--rv-text-secondary); }
.m12a-tl__group > span { position: sticky; left: 0; display: inline-block; padding: 4px 10px; }
.m12a-tl__row { border-bottom: 1px solid var(--rv-divider); }
.m12a-tl__row:last-child { border-bottom: 0; }
.m12a-tl__label { position: sticky; left: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 40px 8px 10px; background: var(--rv-surface); border-right: 1px solid var(--rv-divider); }
.m12a-tl__lt { font-size: var(--rv-fs-small); line-height: 16px; font-weight: 600; overflow-wrap: anywhere; }
.m12a-tl__ls { font-size: 11px; line-height: 14px; color: var(--rv-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m12a-tl__add { position: absolute; top: 4px; right: 4px; }
.m12a-tl__track { position: relative; min-width: 0; min-height: calc(var(--m12a-lanes, 1) * var(--m12a-lane) + 6px); }
.m12a-tl__cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--m12a-days), minmax(0, 1fr)); }
.m12a-tl__cell { display: block; min-width: 0; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--rv-divider); background: transparent; }
button.m12a-tl__cell { cursor: pointer; }
button.m12a-tl__cell:hover { background: var(--rv-primary-50); }
button.m12a-tl__cell:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: -2px; }
.m12a-tl__cell.is-weekend { background: var(--rv-neutral-50); }
.m12a-tl__cell.is-today { background: var(--rv-sidebar-tint-cyan); }
.m12a-tl__now { position: absolute; top: 0; bottom: 0; z-index: 1; width: 2px; margin-left: -1px; background: var(--rv-danger); pointer-events: none; }
.m12a-tl__empty { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--rv-text-muted); pointer-events: none; }
.m12a-tl__none { padding: 8px; }

.m12a-tlbar { position: absolute; z-index: 2; box-sizing: border-box; display: flex; align-items: center; gap: 4px; height: calc(var(--m12a-lane) - 6px); min-width: 8px; padding: 3px 6px;
  border: 1px solid var(--rv-neutral-border); border-left-width: 4px; border-radius: var(--rv-radius-control); overflow: hidden; color: var(--rv-text-primary); font-size: 11px; line-height: 15px; text-decoration: none; }
.m12a-tlbar:hover { color: var(--rv-text-primary); text-decoration: none; box-shadow: var(--rv-shadow-popover); z-index: 3; }
.m12a-tlbar:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: 1px; z-index: 3; }
.m12a-tlbar__txt { display: flex; flex-direction: column; min-width: 0; }
.m12a-tlbar__t, .m12a-tlbar__s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m12a-tlbar__t { font-weight: 600; }
.m12a-tlbar__s { color: var(--rv-text-secondary); }
.m12a-tlbar__cut { flex: 0 0 auto; font-size: 9px; color: var(--rv-text-secondary); }
.m12a-tlbar.is-cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.m12a-tlbar.is-cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.m12a-tlbar--live { background: var(--rv-success-bg); border-color: var(--rv-success-border); border-left-color: var(--rv-success); }
.m12a-tlbar--scheduled { background: var(--rv-info-bg); border-color: var(--rv-info-border); border-left-color: var(--rv-info); }
.m12a-tlbar--ended { background: var(--rv-neutral-100); border-color: var(--rv-neutral-300); border-left-color: var(--rv-neutral-500); }
.m12a-tlbar--disabled { background: var(--rv-warning-bg); border-color: var(--rv-warning-border); border-left-color: var(--rv-warning); border-style: dashed; }
.m12a-tlbar--draft { background: var(--rv-neutral-100); border-color: var(--rv-neutral-400); border-left-color: var(--rv-neutral-600); border-style: dashed; }
.m12a-tlbar--disabled.is-hatched { background-image: repeating-linear-gradient(135deg, var(--rv-warning-bg) 0 6px, var(--rv-neutral-0) 6px 12px); }
.m12a-tlbar--draft.is-hatched { background-image: repeating-linear-gradient(135deg, var(--rv-neutral-100) 0 6px, var(--rv-neutral-0) 6px 12px); }
.m12a-tlbar--ended .m12a-tlbar__t { color: var(--rv-text-secondary); }

.m12a-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-secondary); }
.m12a-legend li { display: inline-flex; align-items: center; gap: 6px; }
.m12a-sw { display: inline-block; flex: 0 0 auto; width: 24px; height: 12px; border: 1px solid var(--rv-neutral-border); border-left-width: 4px; border-radius: 2px; }
.m12a-sw--now { width: 2px; height: 14px; border: 0; background: var(--rv-danger); }

/* agenda (phones) — the grid is hidden instead of squeezed */
.m12a-ag { display: none; }
.m12a-ag__day + .m12a-ag__day { margin-top: 4px; }
.m12a-ag__date { margin: 0 0 6px; font-size: var(--rv-fs-body); line-height: 20px; font-weight: 600; }
.m12a-ag__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m12a-ag__item { display: flex; flex-direction: column; gap: 2px; min-height: var(--rv-touch); padding: 10px 12px; border: 1px solid var(--rv-card-border); border-left-width: 4px;
  border-radius: var(--rv-radius-card); color: var(--rv-text-primary); text-decoration: none; overflow-wrap: anywhere; }
.m12a-ag__item:hover { color: var(--rv-text-primary); text-decoration: none; background: var(--rv-surface-subtle); }
.m12a-ag__item--live { border-left-color: var(--rv-success); }
.m12a-ag__item--scheduled { border-left-color: var(--rv-info); }
.m12a-ag__item--ended { border-left-color: var(--rv-neutral-500); }
.m12a-ag__item--disabled { border-left-color: var(--rv-warning); border-style: dashed; }
.m12a-ag__item--draft { border-left-color: var(--rv-neutral-600); border-style: dashed; }
.m12a-ag__time { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-secondary); font-variant-numeric: tabular-nums; }
.m12a-ag__title { font-weight: 500; }
.m12a-ag__meta { font-size: var(--rv-fs-small); line-height: 18px; color: var(--rv-text-muted); }
.m12a-ag__st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
@media (max-width: 767px) {
  .m12a-tl { display: none; }
  .m12a-ag { display: flex; flex-direction: column; gap: 12px; }
  .m12a-tlnav__label { flex-basis: 100%; order: -1; }
}
@media (pointer: coarse) {
  .m12a-tl { --m12a-lane: 50px; }
  .m12a-tl[data-view="month"] { --m12a-daymin: 44px; }
}

/* ---------------------------------------------------------------- CMS-05 stats cell · CMS-12 stats page (13 ต.ค. 2569) */
.m12a-stat { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--rv-text-primary); text-decoration: none; }
.m12a-stat__row { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m12a-stat__row .rv-icon { flex: 0 0 auto; color: var(--rv-text-muted); }
.m12a-stat:hover .m12a-stat__row > span:first-of-type, .m12a-stat:focus-visible .m12a-stat__row > span:first-of-type { text-decoration: underline; color: var(--rv-link); }
.m12a-stats__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rv-space-2) var(--rv-space-4); }
.m12a-stats__note { font-size: var(--rv-fs-small); line-height: var(--rv-lh-small); color: var(--rv-text-muted); }
.m12a-devtbl td:first-child, .m12a-devtbl th:first-child { text-align: left; }
.m12a-devtbl tr:last-child td { font-weight: 600; background: var(--rv-neutral-50); }
.m12a-stats__cd { display: flex; align-items: center; gap: var(--rv-space-2); margin-bottom: var(--rv-space-2); font-weight: 500; }
.m12a-stats__cd.is-success { color: var(--rv-success); }
.m12a-stats__cd.is-info { color: var(--rv-info); }
.m12a-stats__cd.is-warning { color: var(--rv-warning); }
@media (max-width: 767px) { .rv-mcard .m12a-stat { flex-direction: row; gap: var(--rv-space-3); } }
