/* Gallery presentation. Applications only need the component's own stylesheet. */
body:has(.eye-demo-title) { padding: clamp(1rem, 4.5vw, 4rem); color: #171717; }
main:has(> .eye-demo-title) { max-width: 64rem; }
main:has(> .eye-demo-title) > p { font-size: .84rem; margin-bottom: clamp(1.75rem, 4vw, 3.75rem); }
.eye-demo-title { margin: 0 0 .45em; font: 650 clamp(2.5rem, 5.6vw, 5rem)/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.065em; }
.sample-bed:has(.eye-demo), .sample-content:has(> .eye-demo) { display: block; padding: 0; max-width: none; border: 0; background: transparent; box-shadow: none; }
.eye-demo { min-width: 0; font: 400 1rem/1.5 Inter, "Helvetica Neue", Arial, sans-serif; color: #171717; background: #fff; }
main > .eye-demo { overflow: hidden; border: 1px solid #c8c8c8; border-radius: .8rem; }
.eye-demo-stage {
  padding: clamp(.75rem, 2.5vw, 1.8rem);
  background: radial-gradient(ellipse at 50% 55%, #f2f2f2 0%, #ececec 70%, #e9e9e9 100%);
}
.eye-demo-field {
  --corner: linear-gradient(#a3a3a3, #a3a3a3);
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(14rem, 39vh, 26rem);
  background:
    var(--corner) left top / 12px 1px, var(--corner) left top / 1px 12px,
    var(--corner) right top / 12px 1px, var(--corner) right top / 1px 12px,
    var(--corner) left bottom / 12px 1px, var(--corner) left bottom / 1px 12px,
    var(--corner) right bottom / 12px 1px, var(--corner) right bottom / 1px 12px;
  background-repeat: no-repeat;
}
.eye-demo-field .mu-eye-follow[data-mono] { font-size: clamp(1rem, 1rem + .7vw, 1.65rem); }
.eye-demo-tools, .eye-demo-settings, .eye-demo-count, .eye-demo-blink { display: flex; align-items: center; }
.eye-demo-tools { justify-content: space-between; gap: .65rem 1.5rem; flex-wrap: wrap; padding: .85rem clamp(.95rem, 2.5vw, 1.8rem); border-top: 1px solid #d6d6d6; }
.eye-demo-tip { margin: 0; color: #565656; font-size: .85rem; }
.eye-demo-settings { gap: 1rem; font-size: .85rem; font-weight: 550; }
.eye-demo-count { margin: 0; padding: 0; min-width: 0; border: 0; }
.eye-demo-count legend { float: left; margin: 0 .55rem 0 0; padding: 0; }
.eye-demo-settings label { position: relative; cursor: pointer; }
.eye-demo-count label > span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #c9c9c9; font-variant-numeric: tabular-nums; }
.eye-demo-count label:first-of-type > span { border-radius: .35rem 0 0 .35rem; }
.eye-demo-count label:last-of-type > span { border-radius: 0 .35rem .35rem 0; }
.eye-demo-count input:checked + span { color: #fff; background: #171717; border-color: #171717; }
.eye-demo-settings input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }
.eye-demo-settings input:focus-visible + span { outline: 2px solid #171717; outline-offset: 2px; position: relative; z-index: 1; }
.eye-demo-blink { gap: .45rem; min-height: 2.5rem; }
.eye-demo-switch { display: inline-flex; align-items: center; box-sizing: border-box; width: 2rem; height: 1.17rem; padding: 2px; border-radius: 1rem; border: 1px solid #949494; background: #ddd; }
.eye-demo-switch::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #fff; }
.eye-demo-blink input:checked + .eye-demo-switch { justify-content: flex-end; background: #161616; border-color: #161616; }
.eye-demo:has(.eye-demo-count input[value="1"]:checked) [data-eye]:nth-child(2) { display: none; }
.eye-demo:has(.eye-demo-blink input:not(:checked)) .mu-eye-follow .mu-eye-lid { animation: none; }
@media (prefers-reduced-motion: reduce) { .eye-demo .eye-demo-blink, .eye-demo-tip { display: none; } }
@media (hover: none) { .eye-demo-tip { display: none; } }
@media (forced-colors: active) {
  .eye-demo-count input:checked + span, .eye-demo-blink input:checked + span { outline: 2px solid Highlight; }
  .eye-demo-switch::after { forced-color-adjust: none; background: ButtonText; }
}
