/* ---------- Colors (light is the default; dark via the toggle) ---------- */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #111427;
  --muted: #4b5168;
  --border: #dadfeb;
  --border-strong: #c3c9da;
  --accent: #0b1448;
  --link: #1f3aa8;
  --focus: #2f5fe0;
  --primary-bg: #1f3aa8;
  --primary-hover: #182f8c;
  --primary-text: #ffffff;
  --danger-bg: #b42318;
  --danger-text: #ffffff;
  --star: #e3a008;
  --star-stroke: #8a5a00;
  --star-empty: #6b7280;
  --hero-from: #0b1448;
  --hero-to: #243fae;
  --shadow-sm: 0 1px 2px rgba(17, 20, 39, .05);
  --shadow: 0 1px 2px rgba(17, 20, 39, .04), 0 4px 14px rgba(17, 20, 39, .06);
  --ok-bg: #e7f6ec; --ok-text: #14532d; --ok-border: #86c99c;
  --err-bg: #fdecea; --err-text: #8a1c12; --err-border: #e8a39b;
  --info-bg: #eaf0fd; --info-text: #1e3a8a; --info-border: #a6bdf0;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0f1d;
  --surface: #151a2c;
  --surface-2: #1f2540;
  --text: #e9ebf5;
  --muted: #b1b7cd;
  --border: #2c3352;
  --border-strong: #414a70;
  --accent: #c3d2fb;
  --link: #a9bffa;
  --focus: #a9bffa;
  --primary-bg: #8eaaf7;
  --primary-hover: #a5bcfa;
  --primary-text: #0b1448;
  --danger-bg: #f28b82;
  --danger-text: #3b0905;
  --star: #f6c453;
  --star-stroke: #f6c453;
  --star-empty: #9aa1b8;
  --hero-from: #131a3f;
  --hero-to: #22337a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --ok-bg: #12301f; --ok-text: #b7ebc6; --ok-border: #2f6b45;
  --err-bg: #3a1513; --err-text: #ffc9c3; --err-border: #8a3a33;
  --info-bg: #17254a; --info-text: #c7d6fb; --info-border: #3a5291;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 2rem; line-height: 1.2; font-weight: 750; margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; margin: 2rem 0 .75rem; }
.card h2 { margin-top: 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 .35rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; z-index: 10; }

/* ---------- Header / footer ---------- */
.bar { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--accent); min-width: 0; }
.logo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-name { display: flex; flex-direction: column; font-weight: 750; font-size: 1.15rem; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.brand-name > span:last-child { font-weight: 600; font-size: .82em; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .15rem; }
.theme-icon { display: inline-flex; }
.theme-icon .icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon .icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon .icon-sun { display: inline; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; flex: none;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 3rem; flex: 1; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-bar p { margin: 0; }
.footer-note strong { color: var(--text); font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* ---------- Buttons & form controls ---------- */
button, .button, summary.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .45rem 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: background-color .15s, border-color .15s, color .15s;
}
button:hover, .button:hover, summary.button:hover { background: var(--surface-2); text-decoration: none; }
button:disabled { opacity: .6; cursor: progress; }
button.primary, .button.primary { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); font-weight: 650; }
button.primary:hover, .button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.danger { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-bg); font-weight: 650; }
button.danger:hover { filter: brightness(.94); }
input[type="text"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: .6rem .8rem; min-height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="search"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); outline: none;
}
textarea { resize: vertical; min-height: 7rem; }
label { font-weight: 600; }
.field { margin: 1.1rem 0; }
.field label { display: block; margin-bottom: .35rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
.radio { display: flex; align-items: center; gap: .55rem; font-weight: 400; min-height: 40px; }
.radio input { width: 20px; height: 20px; accent-color: var(--primary-bg); }
.counter.at-limit, .hint.at-limit { color: var(--err-text); font-weight: 600; }
.inline { display: inline; margin: 0; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }

/* ---------- Cards, notices, empty states ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.4rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 440px; }
.notice { border: 1px solid; border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1rem 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.notice.error { background: var(--err-bg); color: var(--err-text); border-color: var(--err-border); }
.notice.info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center; color: var(--muted); }
.empty p { margin: .25rem 0; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; vertical-align: middle; flex: none; }
.half { display: inline-block; overflow: hidden; width: calc(var(--s) / 2); height: var(--s); }
.half svg { display: block; width: var(--s); height: var(--s); }
.half.r svg { margin-left: calc(var(--s) / -2); }
.half path { fill: none; stroke: var(--star-empty); stroke-width: 1.6; stroke-linejoin: round; }
.half.on path { fill: var(--star); stroke: var(--star-stroke); }
.stars.sm { --s: 18px; } .stars.md { --s: 22px; } .stars.lg { --s: 30px; }

/* Star picker: 10 radio buttons drawn as half stars */
.star-field { margin: .25rem 0 1rem; }
.star-input { --s: 44px; display: inline-flex; border-radius: var(--radius-sm); padding: 2px; touch-action: manipulation; }
.star-input label { cursor: pointer; font-weight: 400; }
.star-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.star-input:has(.star-radio:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.star-value { margin: .25rem 0 0; font-weight: 600; color: var(--muted); }

/* ---------- Main page: intro ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; border-radius: 18px; padding: 2.5rem 2.25rem; margin: 0 0 2.5rem; box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.hero h1 { color: #fff; font-size: 2.2rem; max-width: 22ch; margin-bottom: .75rem; }
.hero-lead { font-size: 1.08rem; line-height: 1.6; max-width: 58ch; margin: 0 0 1.25rem; color: rgba(255, 255, 255, .9); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; }
.hero-points li {
  font-size: .88rem; font-weight: 500; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
}
.hero-points li::before { content: "✓"; margin-right: .4rem; font-weight: 700; }
.hero .button.primary.hero-cta { background: #fff; color: #0b1448; border-color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.hero .button.primary.hero-cta:hover { background: #e9eefc; border-color: #e9eefc; }
.hero :focus-visible { outline-color: #fff; }

/* ---------- Main page: list ---------- */
.teachers { scroll-margin-top: 1rem; }
.teachers > h2 { margin-top: 0; font-size: 1.5rem; }
.search label { display: block; margin-bottom: .35rem; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; min-width: 0; }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0; }
.sort-label { color: var(--muted); font-size: .9rem; margin-right: .2rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .9rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: background-color .15s, border-color .15s;
}
.chip:hover { background: var(--surface-2); }
.chip.current { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); font-weight: 650; }
.result-count { color: var(--muted); }
.teacher-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.teacher-list li + li { border-top: 1px solid var(--border); }
.teacher-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; padding: .85rem 1.15rem; text-decoration: none; color: var(--text); min-height: 56px; transition: background-color .12s; }
.teacher-row:hover { background: var(--surface-2); }
.teacher-name { font-weight: 600; color: var(--text); }
.teacher-row:hover .teacher-name { color: var(--link); }
.teacher-right { display: inline-flex; align-items: center; gap: .75rem; }
.chevron { color: var(--muted); font-size: 1.4rem; line-height: 1; transition: transform .12s; }
.teacher-row:hover .chevron { transform: translateX(2px); color: var(--link); }
.avg { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.avg-text { font-size: .93rem; }
.page-head { padding-bottom: 1.25rem; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: .5rem; }
.teacher-avg { font-size: 1.1rem; margin: 0; }
.teacher-avg .avg-text { font-size: 1.1rem; }
.back { margin: 0 0 1rem; font-size: .95rem; }
.back a { text-decoration: none; font-weight: 500; }
.back a:hover { text-decoration: underline; }

/* Hidden admin entry: deliberately tiny and quiet */
.admin-entry { margin-top: 2.5rem; text-align: right; }
.admin-entry summary { display: inline-block; list-style: none; cursor: pointer; color: var(--muted); opacity: .45; font-size: .75rem; padding: .25rem .4rem; border-radius: 6px; }
.admin-entry summary::-webkit-details-marker { display: none; }
.admin-entry[open] summary { opacity: 1; }
.admin-login-mini { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; margin-top: .5rem; text-align: left; }
.admin-login-mini input { max-width: 260px; }

/* ---------- Reviews ---------- */
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.05rem 1.2rem; box-shadow: var(--shadow-sm); }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; }
.review-meta { color: var(--muted); font-size: .92rem; }
.review-name { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.review-comment { white-space: pre-wrap; overflow-wrap: anywhere; margin: .7rem 0; line-height: 1.6; }
.review-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.vote { min-height: 38px; padding: .3rem .85rem; font-size: .88rem; box-shadow: none; }
.vote.pressed { background: var(--primary-bg); color: var(--primary-text); border-color: var(--primary-bg); }
.vote.pressed:hover { background: var(--primary-hover); }
.vote .count { opacity: .85; }
details.action > summary {
  display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: .88rem; font-weight: 500; list-style: none;
  transition: background-color .15s;
}
details.action > summary:hover { background: var(--surface-2); }
details.action > summary::-webkit-details-marker { display: none; }
details.action[open] { flex-basis: 100%; }
details.action[open] > summary { background: var(--surface-2); }
.panel { margin-top: .5rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.panel p { margin-top: 0; }
.panel fieldset { margin-bottom: .5rem; }
.panel input[type="text"] { margin: .35rem 0 .5rem; }

/* Delete-code panel */
.posted { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-text); }
.posted a { color: inherit; }
.code-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; padding: .5rem .7rem; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); overflow-wrap: anywhere; user-select: all; max-width: 100%; }
.copy-status { min-height: 1.5em; margin: .35rem 0; font-weight: 600; }

/* ---------- Ban screen ---------- */
.ban { text-align: center; max-width: 520px; margin: 1.5rem auto; }
.ban-logo { width: 120px; height: 120px; object-fit: contain; }
.ban-msg { font-size: 1.3rem; font-weight: 650; }
.ban .notice, .ban form { text-align: left; }
.appeal > summary { list-style: none; }
.appeal > summary::-webkit-details-marker { display: none; }

/* ---------- Privacy ---------- */
.prose { max-width: 72ch; }
.prose h1 { margin-bottom: .25rem; }
.prose h1 + .muted { margin-top: 0; font-size: .92rem; }
.prose h2 { margin-top: 2rem; font-size: 1.15rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.prose p, .prose li { line-height: 1.7; }
.prose li { margin: .35rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.admin-nav button.chip { min-height: 40px; border-radius: 999px; box-shadow: none; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .5rem 0; }
.badge { display: inline-block; font-size: .8rem; font-weight: 500; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.badge.warn { background: var(--err-bg); color: var(--err-text); border-color: var(--err-border); }
.reasons { font-size: .92rem; }
.admin-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .8rem 1.1rem; }
.admin-list > li + li { border-top: 1px solid var(--border); }
.admin-list .review-actions { margin-top: 0; padding-top: 0; border-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filters .field { margin: 0; flex: 1 1 200px; }
.pager { display: flex; gap: .5rem; justify-content: space-between; margin-top: 1rem; }

/* Desktop: teacher list as tiles */
@media (min-width: 720px) {
  .teacher-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .85rem; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .teacher-list li + li { border-top: 0; }
  .teacher-list li { display: flex; }
  .teacher-row {
    flex: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; flex-wrap: nowrap; gap: .6rem;
    padding: 1rem 1.1rem; min-height: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .12s;
  }
  .teacher-row:hover { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
  .teacher-name { font-size: 1.02rem; overflow-wrap: anywhere; }
  .teacher-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 600px) {
  .container { padding-top: 1.25rem; }
  .hero { padding: 1.75rem 1.35rem; border-radius: var(--radius); margin-bottom: 2rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero-lead { font-size: 1rem; }
  .hero-cta { width: 100%; }
  .card { padding: 1.1rem 1.1rem; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
  .logo { width: 40px; height: 40px; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .star-input { --s: 32px; }
  h1 { font-size: 1.6rem; }
  .teacher-row { padding: .8rem 1rem; }
}

/* Star picker fill: generated rules (checked value, and hover preview) */
.star-input:has(.star-radio:nth-of-type(1):checked) label:nth-of-type(-n+1) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(2):checked) label:nth-of-type(-n+2) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(3):checked) label:nth-of-type(-n+3) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(4):checked) label:nth-of-type(-n+4) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(5):checked) label:nth-of-type(-n+5) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(6):checked) label:nth-of-type(-n+6) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(7):checked) label:nth-of-type(-n+7) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(8):checked) label:nth-of-type(-n+8) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(9):checked) label:nth-of-type(-n+9) path { fill: var(--star); stroke: var(--star-stroke); }
.star-input:has(.star-radio:nth-of-type(10):checked) label:nth-of-type(-n+10) path { fill: var(--star); stroke: var(--star-stroke); }
@media (hover: hover) {
  .star-input:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(6):hover) label:nth-of-type(-n+6) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(7):hover) label:nth-of-type(-n+7) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(8):hover) label:nth-of-type(-n+8) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(9):hover) label:nth-of-type(-n+9) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
  .star-input:has(label:nth-of-type(10):hover) label:nth-of-type(-n+10) path { fill: var(--star); stroke: var(--star-stroke); opacity: .85; }
}
