/* Embed page. Tokens only. */
.em-controls { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.em-controls__label { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); margin-right: 6px; }
.em-seg { position: relative; cursor: pointer; }
.em-seg input { position: absolute; opacity: 0; }
.em-seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-small); font-weight: 500; color: var(--text-2); }
.em-seg input:checked + span { background: var(--brand); border-color: var(--brand-rim); color: var(--on-brand); }
.em-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.em-grid { display: grid; gap: 20px; margin-top: 20px; }
.em-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head preview" "code preview"; gap: 18px 32px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); align-items: start; }
.em-card__head { grid-area: head; display: grid; gap: 8px; }
.em-card__head h2 { font-size: var(--fs-card); font-weight: 650; letter-spacing: -.028em; }
.em-card__head p { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.em-pick select { width: 100%; height: 42px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-small); }
.em-preview { grid-area: preview; padding: 16px; border-radius: var(--r-inner); background: var(--surface-2); }
.em-code { grid-area: code; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.em-code pre { width: 100%; margin: 0; padding: 14px; overflow-x: auto; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; word-break: break-all; }
@media (max-width: 900px) { .em-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "preview" "code"; } }
.em-preview iframe { color-scheme: light; display: block; }
