.font-picker { position: relative; display: grid; gap: 8px; }
.font-picker-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.font-picker-button span:first-child { font-size: 28px; line-height: 1.1; }
.font-picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 4px); max-height: min(420px, 60vh); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.font-picker-list[hidden] { display: none; }
.font-picker-group { display: grid; gap: 2px; margin-bottom: 8px; }
.font-picker-caption { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 2px; }
.font-picker-option { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left; padding: 7px 10px; border-radius: 8px; background: transparent; font-size: 28px; line-height: 1.15; }
.font-picker-option span { font-family: var(--preview-family, inherit); }
.font-solo { flex: 0 0 auto; font-family: var(--font); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.font-picker [data-font-search] { width: 100%; min-height: 36px; }
.font-picker-empty { margin: 8px; font-size: 12px; color: var(--muted); }
.font-picker-option[aria-selected="true"], .font-picker-option[data-active="true"] { background: color-mix(in srgb, var(--coral) 28%, transparent); }
.keychain-page,
.keychain-page .studio,
.keychain-page .studio-viewport,
.keychain-viewport,
.keychain-viewport canvas { background: transparent; }
html[data-theme="dark"] .keychain-page .studio,
html[data-theme="dark"] .keychain-page .studio-toolbar,
html[data-theme="dark"] .keychain-page .studio-viewport,
html[data-theme="dark"] .keychain-page .keychain-viewport { background: transparent; }
.keychain-measure { position: absolute; top: 46px; left: 15px; padding: 7px 10px; border-radius: 5px; background: #252d35e8; color: #e7eef3; font-size: 12px; letter-spacing: -.02em; pointer-events: none; }
.studio-properties .font-picker-button span:first-child, .studio-properties .font-picker-option { font-size: 20px; }
.studio-properties .font-picker-list { max-height: 280px; }
.studio-properties .nozzle-options label { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
.studio-properties .nozzle-options input { width: auto; min-height: 0; }
.studio-properties .keychain-swatches label, .studio-properties .keychain-rings label { flex-direction: row; margin: 0; }
.studio-properties fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.studio-properties legend { font-size: 10px; margin-bottom: 8px; }
.studio-file-actions span { font-size: 11px; color: var(--muted); }
.part-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.keychain-layout { align-items: start; }
.keychain-stage { position: sticky; top: 24px; }
.keychain-swatches, .keychain-rings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.keychain-swatches label, .keychain-rings label { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.nozzle-options label { position: relative; }
.keychain-swatches input, .keychain-rings input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.keychain-swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; }
.keychain-swatches label:has(input:checked), .keychain-rings label:has(input:checked) { outline: 2px solid var(--coral); outline-offset: 2px; }
.keychain-order-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.keychain-order-colors span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.keychain-order-colors i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; }
.keychain-edge[hidden] { display: none; }
.hole-plate { display: grid; grid-template-columns: 48px minmax(72px, 1fr) 48px; grid-template-rows: 48px 72px 48px; grid-template-areas: "tl t tr" "l plate r" "bl b br"; gap: 6px; width: 100%; max-width: 240px; margin-top: 8px; }
.hole-plate-face { grid-area: plate; position: relative; border: 2px solid #1b2a34; border-radius: 12px; background: linear-gradient(160deg, #fff 0%, #f3efe6 70%, #e7e0d2 100%); box-shadow: inset 0 0 0 6px rgba(226, 58, 134, .16); }
.hole-plate-face::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid #1b2a34; border-radius: 50%; background: #fff; }
.hole-plate:has([value="top"]:checked) .hole-plate-face::after { top: 7px; right: auto; bottom: auto; left: 50%; transform: translateX(-50%); }
.hole-plate:has([value="bottom"]:checked) .hole-plate-face::after { top: auto; right: auto; bottom: 7px; left: 50%; transform: translateX(-50%); }
.hole-plate:has([value="left"]:checked) .hole-plate-face::after { top: 50%; right: auto; bottom: auto; left: 7px; transform: translateY(-50%); }
.hole-plate:has([value="right"]:checked) .hole-plate-face::after { top: 50%; right: 7px; bottom: auto; left: auto; transform: translateY(-50%); }
.hole-plate:has([value="top-left"]:checked) .hole-plate-face::after { top: 6px; right: auto; bottom: auto; left: 6px; transform: none; }
.hole-plate:has([value="top-right"]:checked) .hole-plate-face::after { top: 6px; right: 6px; bottom: auto; left: auto; transform: none; }
.hole-plate:has([value="bottom-left"]:checked) .hole-plate-face::after { top: auto; right: auto; bottom: 6px; left: 6px; transform: none; }
.hole-plate:has([value="bottom-right"]:checked) .hole-plate-face::after { top: auto; right: 6px; bottom: 6px; left: auto; transform: none; }
.studio-properties .hole-spot { position: relative; display: block; flex-direction: row; align-items: stretch; gap: 0; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); cursor: pointer; line-height: 0; }
.hole-spot-tl { grid-area: tl; } .hole-spot-t { grid-area: t; } .hole-spot-tr { grid-area: tr; }
.hole-spot-l { grid-area: l; } .hole-spot-r { grid-area: r; }
.hole-spot-bl { grid-area: bl; } .hole-spot-b { grid-area: b; } .hole-spot-br { grid-area: br; }
.studio-properties .hole-spot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.studio-properties .hole-dot { position: absolute; width: 10px; height: 10px; margin: 0; border-radius: 50%; background: #8b9086; pointer-events: none; }
.studio-properties .hole-spot-t .hole-dot { top: 6px; left: 50%; transform: translateX(-50%); }
.studio-properties .hole-spot-b .hole-dot { bottom: 6px; left: 50%; transform: translateX(-50%); }
.studio-properties .hole-spot-l .hole-dot { left: 6px; top: 50%; transform: translateY(-50%); }
.studio-properties .hole-spot-r .hole-dot { right: 6px; top: 50%; transform: translateY(-50%); }
.studio-properties .hole-spot-tl .hole-dot { top: 8px; left: 8px; }
.studio-properties .hole-spot-tr .hole-dot { top: 8px; right: 8px; }
.studio-properties .hole-spot-bl .hole-dot { bottom: 8px; left: 8px; }
.studio-properties .hole-spot-br .hole-dot { bottom: 8px; right: 8px; }
.hole-spot:has(input:checked) { outline: 2px solid var(--coral, #e23a86); outline-offset: 2px; background: color-mix(in srgb, var(--coral, #e23a86) 22%, #fff); }
.hole-spot:has(input:checked) .hole-dot { background: var(--coral, #e23a86); }
.hole-spot:focus-within { outline: 2px solid var(--coral, #e23a86); outline-offset: 2px; }
.color-field { position: relative; display: grid; gap: 8px; margin: 0 0 12px; }
.color-field-label { font-size: 10px; letter-spacing: .04em; }
.color-native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.color-dropdown { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius, 8px); background: var(--surface, #fff); text-align: left; font-size: 14px; }
.color-dropdown [data-color-name] { flex: 1; }
.color-dropdown i, .color-menu i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; flex: 0 0 18px; }
.color-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 4px); max-height: min(320px, 50vh); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #fff); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.color-menu[hidden] { display: none; }
.color-menu button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; }
.color-menu button[aria-selected="true"] { background: color-mix(in srgb, var(--coral, #e23a86) 28%, transparent); }
@media (max-width: 900px) { .keychain-stage { position: static; } }
