/* course-stars.css  Star votes for courses (course-stars.js). Tokens only: the pill uses the fixed yellow-box tokens (same in every theme). */
.xc-stars { display: block; margin: 0 0 var(--xag-sp-2); }
.xag-cs-badge { display: inline-flex; align-items: center; gap: .3rem; min-height: 28px; padding: .1rem .7rem .1rem .5rem; border-radius: var(--xag-btn-radius, 999px); background: var(--xag-ybox-fill); color: var(--xag-ybox-ink); border: 2px solid var(--xag-ybox-border); font-weight: 800; line-height: 1; white-space: nowrap; }
.xag-cs-glyph { font-size: 1.1em; line-height: 1; }
.xag-cs-n { font-weight: 600; opacity: .85; }
.xag-cs-rate { margin: var(--xag-sp-4) 0 0; }
.xag-cs-h { display: block; margin: 0 0 var(--xag-sp-2); }
.xag-cs-row { display: inline-flex; gap: .25rem; }
.xag-cs-star { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--xag-btn-radius, 999px); background: transparent; color: inherit; border: 2px solid currentColor; opacity: .75; }
.xag-cs-star.is-on { background: var(--xag-ybox-fill); color: var(--xag-ybox-ink); border-color: var(--xag-ybox-border); opacity: 1; }
.xag-cs-star:hover:not(:disabled), .xag-cs-star:focus-visible { opacity: 1; outline: 3px solid var(--xag-ybox-border); outline-offset: 2px; }
.xag-cs-star:disabled { cursor: progress; }
.xag-cs-msg { margin: var(--xag-sp-2) 0 0; }
.xag-cs-host:empty { display: none; }
/* My courses (Dashboard): the rating sits under the course line, smaller */
.dh-s.xag-cs-host .xag-cs-rate { margin: .35rem 0 0; }
.dh-s.xag-cs-host .xag-cs-h { display: inline-block; margin: 0 .5rem 0 0; }
.dh-s.xag-cs-host .xag-cs-star { min-width: 36px; min-height: 36px; font-size: 1.25rem; }
/* admin list (course-stars-admin.js) */
.xcs-adm { margin: var(--xag-sp-5, 2rem) 0 0; }
.xcs-adm table { width: 100%; border-collapse: collapse; }
.xcs-adm th, .xcs-adm td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid currentColor; vertical-align: middle; }
.xcs-adm .xcs-hidden td { opacity: .6; }
