/* Tokens: generated surface/primary/type roles from the existing Contact palette.
   Fixed preview bounds and cursor hotspots preserve the actual interaction geometry.
   Existing ivory surface, heart-orange marks, Spoqa typography and straight dividers.
   A comparison grid groups cursor roles; the only hover effect is the approved center cursor. */
:root.page_cursor { --ls-ko: 0; --lab-surface: var(--color-surface-2); --lab-panel: var(--color-surface); --lab-ink: var(--color-on-surface); --lab-muted: var(--color-on-surface-muted); --lab-line: var(--color-rule); --lab-orange: var(--color-primary); word-break: keep-all; }
.page_cursor body { background: var(--lab-surface); }
.page_cursor .header { color: var(--lab-ink); mix-blend-mode: normal; }
.cursor-lab { max-width: 1280px; margin-inline: auto; padding: calc(var(--header-height) + 48px) 32px 64px; color: var(--lab-ink); font-size: var(--typography-body-font-size); line-height: 1.7; letter-spacing: normal; }
.cursor-lab *, .cursor-lab *::before, .cursor-lab *::after { box-sizing: border-box; }
.cursor-lab h1, .cursor-lab h2, .cursor-lab p { margin: 0; }
.cursor-lab h1, .cursor-lab h2 { text-wrap: balance; }
.cursor-lab h1 { font-size: var(--typography-h1-font-size); font-weight: 700; line-height: 1.4; }
.cursor-lab h2 { font-size: var(--typography-h2-font-size); font-weight: 700; line-height: 1.5; }
.cursor-lab-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.cursor-lab-head p { margin-top: 12px; max-width: 620px; color: var(--lab-muted); }
.cursor-lab-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cursor-lab button, .cursor-lab textarea, .cursor-lab input { font: inherit; }
.cursor-lab-actions button, .cursor-lab-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--lab-line); background: transparent; color: var(--lab-ink); font-size: var(--typography-small-font-size); line-height: 1.6; text-decoration: none; }
.cursor-lab :focus-visible { outline: 2px solid var(--lab-ink); outline-offset: 4px; }
.cursor-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--lab-line); gap: 1px; background: var(--lab-line); }
.cursor-demo-grid > article { min-width: 0; padding: 24px; background: var(--lab-panel); }
.cursor-demo-grid > article > p { margin-top: 12px; color: var(--lab-muted); font-size: var(--typography-small-font-size); line-height: 1.6; }
.cursor-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 156px; min-width: 0; margin-top: 16px; padding: 16px; border: 0; border-radius: 0; background: var(--lab-surface); color: var(--lab-ink); font-size: var(--typography-small-font-size); line-height: 1.6; text-align: center; }
.cursor-stage > span { font-size: var(--typography-small-font-size); line-height: 1.6; }
.cursor-demo-icon { display: block; width: 56px; height: 56px; object-fit: contain; pointer-events: none; user-select: none; }
.cursor-stage[data-cursor="dot"] .cursor-demo-icon { width: 44px; height: 44px; }
.cursor-stage-input .cursor-demo-icon { height: 32px; }
.cursor-stage textarea { display: block; width: 100%; min-height: 60px; padding: 8px 12px; border: 1px solid var(--lab-line); border-radius: 0; background: var(--lab-panel); color: var(--lab-ink); resize: none; font-size: var(--typography-small-font-size); line-height: 1.6; caret-color: var(--lab-orange); }
.cursor-stage-drag { overflow: hidden; }
.cursor-drag-handle { display: grid; place-items: center; width: 72px; height: 72px; padding: 8px; border: 0; background: transparent; touch-action: none; user-select: none; }
.cursor-drag-handle .cursor-demo-icon { width: 48px; height: 48px; }
.cursor-stage-zoom { overflow: hidden; }
.cursor-stage-zoom > img { width: 112px; height: 112px; object-fit: contain; pointer-events: none; transition: transform 180ms ease-out; }
.cursor-stage-zoom[aria-pressed="true"] > img { transform: scale(1.55); }
.cursor-width-track { width: 100%; height: 36px; border: 1px solid var(--lab-line); }
.cursor-width-track > div { width: 60%; height: 100%; background: var(--lab-orange); }
.cursor-stage-resize label { font-size: var(--typography-small-font-size); }
.cursor-stage-resize input { display: block; width: 100%; min-height: 24px; accent-color: var(--lab-orange); }
.cursor-stage:disabled { color: var(--lab-muted); }
.cursor-demo-help summary { list-style: none; }
.cursor-demo-help summary::-webkit-details-marker { display: none; }
.cursor-demo-help > p { padding-top: 12px; font-size: var(--typography-small-font-size); line-height: 1.6; }
.cursor-demo-feature { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 32px; padding: 32px; border: 1px solid var(--lab-line); }
.cursor-demo-feature p { margin-top: 12px; color: var(--lab-muted); }
.cursor-demo-feature .about2-orbit-center { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 164px; height: 164px; border: 1px solid var(--lab-orange); border-radius: 50%; background: var(--lab-panel); color: var(--lab-ink); text-align: center; text-decoration: none; }
.cursor-demo-status { min-height: 28px; margin-top: 16px !important; font-size: var(--typography-small-font-size); color: var(--lab-muted); }
.cursor-touch-note { display: none; }
[data-cursor="dot"] { --sample-cursor: var(--cursor-demo-dot); }
[data-cursor="hand"] { --sample-cursor: var(--cursor-demo-hand); }
[data-cursor="text"] { --sample-cursor: var(--cursor-demo-text); }
[data-cursor="grab"] { --sample-cursor: var(--cursor-demo-grab); }
[data-cursor="grabbing"] { --sample-cursor: var(--cursor-demo-grabbing); }
[data-cursor="zoom-in"] { --sample-cursor: var(--cursor-demo-zoom-in); }
[data-cursor="zoom-out"] { --sample-cursor: var(--cursor-demo-zoom-out); }
[data-cursor="resize"] { --sample-cursor: var(--cursor-demo-resize); }
[data-cursor="wait"] { --sample-cursor: var(--cursor-demo-wait); }
[data-cursor="blocked"] { --sample-cursor: var(--cursor-demo-blocked); }
[data-cursor="help"] { --sample-cursor: var(--cursor-demo-help); }
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
    html.page_cursor:not(.has-local-action-cursor) .cursor-lab [data-cursor],
    html.page_cursor:not(.has-local-action-cursor) .cursor-lab [data-cursor] * { cursor: var(--sample-cursor) !important; }
}
@media (max-width: 1000px) {
    .cursor-lab-head { align-items: start; flex-direction: column; }
    .cursor-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cursor-demo-grid > article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .cursor-lab { padding: calc(var(--header-height) + 32px) 20px 48px; }
    .cursor-lab h1 { font-size: 28px; }
    .cursor-demo-grid { grid-template-columns: minmax(0, 1fr); }
    .cursor-demo-grid > article { padding: 20px; }
    .cursor-demo-feature { flex-direction: column; align-items: start; padding: 24px; }
    .cursor-demo-feature .about2-orbit-center { align-self: center; }
}
@media (hover: none) { .cursor-touch-note { display: block; margin-bottom: 24px !important; color: var(--lab-muted); font-size: var(--typography-small-font-size); } }
@media (prefers-reduced-motion: reduce) { .cursor-stage-zoom > img { transition: none; } }
