/* Compact presentation-time scorecard: every rating stays in the visible viewport. */
html:has(body.demo-mobile), body.demo-mobile { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.demo-mobile { margin: 0; background: #08182C; }
body.demo-mobile > :is(.site-header, .demo-banner, .site-footer, .skip-link, noscript) { display: none; }
.demo-mobile #main.md-root {
  position: fixed; inset: var(--md-top, 0px) 0 auto; width: 100%; height: var(--md-height, 100dvh);
  min-height: 0; margin: 0; padding: 0; overflow: hidden; color: #F7F3EA;
  background: radial-gradient(ellipse at 100% 0%, #24415170, transparent 58%), radial-gradient(ellipse at 0% 100%, #B08A3C18, transparent 55%), #08182C;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.md-root *, .md-root *::before, .md-root *::after { box-sizing: border-box; min-width: 0; }
.md-root [hidden] { display: none !important; }
.md-shell { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: env(safe-area-inset-top, 0px) 18px env(safe-area-inset-bottom, 0px); max-width: 560px; margin: auto; }
.md-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid #FFFFFF16; }
.md-progress { display: flex; align-items: center; gap: 8px; margin: 0; color: #C9D3DD; font-size: 12px; line-height: 1.4; font-weight: 500; }
.md-progress::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #DFC58A; box-shadow: 0 0 12px #DFC58A60; }
.md-content { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 0; }
.md-title { margin: 0; color: #F7F3EA; font-size: clamp(24px, 6.5vw, 32px); line-height: 1.16; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.md-copy { margin: 0; color: #E1E6EB; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.md-counter { color: #C9D3DD; font-size: 13px; line-height: 1.4; }
.md-footer { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid #FFFFFF16; }
.md-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border: 1px solid #DFC58A; border-radius: 14px; padding: 10px 14px; background: linear-gradient(135deg, #E7D3A4, #C9AB69); color: #08182C; font: inherit; font-size: 15px; font-weight: 650; line-height: 1.25; text-decoration: none; text-align: center; cursor: pointer; touch-action: manipulation; box-shadow: 0 3px 16px #00000018; }
.md-button:disabled { cursor: default; background: #1B2C40; color: #A3AEBA; border-color: #34465C; box-shadow: none; }
.md-secondary { background: #FFFFFF05; color: #E1E6EB; border-color: #60748A; box-shadow: none; }
.md-topbar .md-button { min-height: 44px; padding: 8px 14px; font-size: 13px; border-color: #52657C; border-radius: 12px; }
.md-footer > .md-button { flex: 1; }
.md-root :is(button, a):focus-visible { outline: 3px solid #E7D3A4; outline-offset: 3px; }
.md-title:focus { outline: none; }
.md-score-identity { padding-bottom: 3px; }
.md-scale { margin: 8px 0 0; color: #BCC9D5; font-size: 10px; line-height: 1.5; }
.md-scorecard { display: grid; gap: 18px; }
.md-score-row { display: grid; gap: 7px; }
.md-criterion-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.md-criterion-heading h2 { margin: 0; color: #E1E6EB; font-size: 14px; line-height: 18px; font-weight: 550; letter-spacing: 0; }
.md-criterion-heading small { margin-left: 5px; color: #D6BC81; font-size: 11px; font-weight: 500; }
.md-row-selected { color: #B4C1CF; font-size: 11px; line-height: 18px; white-space: nowrap; }
.md-ratings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.md-rating { appearance: none; display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 8px 1px; background: linear-gradient(160deg, #23374B, #13283D); border: 1px solid #486077; border-radius: 13px; color: #E8EDF2; font: inherit; touch-action: manipulation; cursor: pointer; box-shadow: 0 2px 7px #00000015; }
.md-rating strong { font-size: 20px; line-height: 1; font-weight: 500; }
.md-rating[aria-checked="true"] { background: linear-gradient(145deg, #E9D8AE, #C9AB69); border-color: #EBD9AE; color: #08182C; box-shadow: 0 0 0 1px #DFC58A30, 0 3px 16px #B08A3C25; }
.md-rating[aria-checked="true"] strong { font-weight: 750; }
.md-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #687255; border-radius: 14px; background: linear-gradient(120deg, #C9AB6918, #FFFFFF04); color: #E1E6EB; font-size: 13px; }
.md-total strong { color: #E7D3A4; font-size: 29px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; line-height: 1.15; }
.md-total small { color: #B4C1CF; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.md-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.md-pager .md-button { min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 14px; }
.md-eyebrow { margin: 0; color: #D6BC81; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; line-height: 1.4; }
.md-muted { color: #B4C1CF; }
.md-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.md-menu-actions { display: grid; gap: 10px; }
.md-root[data-page="menu"] .md-content .md-button { width: 100%; }
.md-review-scores { display: grid; gap: 0; margin: 0; padding: 0; }
.md-review-scores > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #FFFFFF16; font-size: 14px; line-height: 1.4; }
.md-review-scores dt { font-weight: 500; }
.md-review-scores small { margin-left: 4px; color: #C9AB69; font-size: 11px; }
.md-review-scores dd { margin: 0; color: #E7D3A4; font-weight: 650; white-space: nowrap; }
@media (max-height: 700px) {
  .md-shell { padding-inline: 16px; }
  .md-topbar { min-height: 52px; }
  .md-content { padding-block: 12px; gap: 12px; }
  .md-title { font-size: 25px; }
  .md-scale { margin-top: 6px; }
  .md-scorecard { gap: 10px; }
  .md-score-row { gap: 5px; }
  .md-rating { min-height: 44px; border-radius: 11px; }
  .md-copy { font-size: 15px; line-height: 1.45; }
  .md-footer { padding-block: 9px; }
  .md-button { min-height: 46px; }
  .md-total { padding: 10px 13px; }
  .md-total strong { font-size: 26px; }
}
@media (max-height: 520px) {
  .md-topbar { min-height: 46px; }
  .md-content { padding-block: 4px; gap: 5px; }
  .md-title { font-size: 22px; }
  .md-scale { margin-top: 3px; }
  .md-scorecard { gap: 5px; }
  .md-score-row { gap: 3px; }
  .md-criterion-heading h2 { font-size: 13px; line-height: 16px; }
  .md-row-selected { line-height: 16px; }
  .md-total { padding-block: 8px; }
  .md-footer { padding-block: 7px; }
  .md-menu-actions { gap: 6px; }
  .md-menu-actions .md-button { min-height: 44px; }
  .md-review-scores > div { padding-block: 8px; }
}
@media (max-height: 480px) and (min-width: 600px) {
  .md-shell { max-width: 860px; }
  .md-scorecard { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 10px; }
  .md-root[data-page="rating"] .md-content { gap: 10px; }
  .md-menu-actions { grid-template-columns: 1fr 1fr; }
  .md-root[data-page="review"] .md-review-scores { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
