.pendant{position:relative;width:100%;height:310px;overflow:visible}
.pendant-overlay{position:fixed;inset:0;z-index:40;pointer-events:none}
.pendant-overlay canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.pendant-interaction{position:absolute;border:0;padding:0;background:transparent;pointer-events:auto;touch-action:none;cursor:grab}
.pendant-interaction:active{cursor:grabbing}
.pendant-interaction:focus-visible{outline:2px solid #696b65;outline-offset:0;background:transparent}
.pendant-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:4px}
.pendant-tools button{border:0;background:#f0efeb;padding:8px 12px;border-radius:6px;min-height:40px;font-size:12px}
.pendant-tools button:hover{background:#e6e6df}
.pendant-tools button[aria-pressed=true]{background:#20211f;color:#fff}
.pendant-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pendant-block{margin-top:-96px}
.pendant-block .pendant-tools{display:none}
.pendant-dialog{width:min(720px,calc(100% - 24px));padding:16px 20px 24px;max-height:96dvh;overflow:auto;border:0;background:var(--surface)}
.pendant-dialog .pendant{height:min(65dvh,600px)}
.pendant-dialog header{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.pendant-dialog header button{border:0;background:none;padding:12px;min-height:44px}
.pendant-dialog::backdrop{background:#24252230;backdrop-filter:blur(8px)}
.pendant-lab{max-width:824px;margin:0 auto;padding:28px 20px 48px}
.pendant-lab header{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px}
.pendant-lab .pendant{height:min(72dvh,680px);min-height:380px;max-width:540px;margin:0 auto}
.pendant-lab h1{font-size:16px}
.pendant-lab footer{max-width:460px;margin:28px auto 0;border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font-size:12px;line-height:18px}
.pendant-lab footer p+p{margin-top:10px}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.pendant-block{margin-top:-32px}.identity:has(.pendant-block){flex-direction:column;align-items:flex-start}.pendant-block{width:100%}.pendant-block .pendant{height:300px;max-width:280px;margin:auto}.pendant-lab{padding-top:20px}.pendant-lab header{align-items:flex-start}.pendant-lab header>span{max-width:100px;text-align:right}.pendant-dialog .pendant{height:56dvh;min-height:290px}}

@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.pendant-block .pendant{height:50svh;min-height:340px;max-width:none;width:100%;margin:0}}

.pendant-config{--config-surface:#f8f8f6;--config-secondary:#e8e9e5;width:min(376px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:0;border-radius:24px;background:var(--config-surface);color:var(--ink);box-shadow:0 24px 96px #00000040}
html[data-theme=dark] .pendant-config{--config-surface:#2b2e31;--config-secondary:#3c4044}
.pendant-config::backdrop{background:#10121485;backdrop-filter:blur(4px)}
.pendant-config[open]{display:flex;flex-direction:column}
.pendant-config .config-content{display:flex;flex-direction:column;gap:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0;margin:0}
.config-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:41}
.config-dismiss{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:12px;border:0;border-radius:8px;background:var(--config-secondary);color:var(--ink);cursor:pointer;transition:background 160ms ease,transform 160ms ease}
.config-dismiss:hover{background:color-mix(in srgb,var(--config-secondary) 85%,var(--ink) 15%)}
.config-dismiss:active{transform:scale(.96)}
.config-dismiss:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.config-dismiss svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round}
.config-title{font:400 20px/28px 'IBM Plex Sans',sans-serif;margin:0}
.pendant-config .pendant{height:324px;min-height:0;max-width:none;margin:0}
.config-preview{min-width:0;background:radial-gradient(ellipse at center,#a7b4c212,transparent 70%)}
.config-controls{display:flex;flex-direction:column;flex:none;gap:24px;position:relative;z-index:41}
.config-row{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:24px}
.config-label{min-width:0;color:var(--muted);font:inherit}
.config-shapes,.config-colors{display:grid;grid-template-columns:repeat(4,52px);grid-auto-rows:52px;gap:8px}
/* One geometry and selection treatment for both rows; indicators stay inside. */
.config-shape,.config-swatch{box-sizing:border-box;display:grid;place-items:center;width:52px;height:52px;min-width:52px;min-height:52px;margin:0;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);outline:0;transition:border-color 160ms,color 160ms,background-color 160ms}
.config-shape{color:#a7aaa8}
.config-shape svg{width:24px;height:24px;fill:currentColor;stroke:none}
.config-swatch{background:var(--swatch)}
.config-shape[aria-pressed=true]{background:#3c4044;color:#fff}
.config-shape[aria-pressed=true],.config-swatch[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.config-shape:hover,.config-swatch:hover{border-color:var(--muted)}
.config-shape:focus-visible,.config-swatch:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
.config-swatch.acid-green{background:linear-gradient(135deg,#b5ff34,#40ff00 40%,#14dc64 75%,#91ff20)}
.config-swatch.pink-cheetah{background:radial-gradient(ellipse at 25% 20%,#462536 0 2px,transparent 3px),radial-gradient(ellipse at 70% 55%,#462536 0 3px,transparent 4px),radial-gradient(ellipse at 25% 85%,#843b5b 0 2px,transparent 3px),#d577a5;background-size:16px 16px}
.config-swatch.frosted-glass{background:linear-gradient(135deg,#141414,#383838 48%,#494949 51%,#202020)}
.config-actions{display:flex;flex:none;justify-content:flex-end;gap:8px;padding-top:24px;position:relative;z-index:41;background:var(--config-surface)}
.config-actions button{flex:1;min-width:0;width:0;min-height:40px;padding:8px 16px;border:0;border-radius:8px;font:inherit}
.config-apply{background:var(--ink);color:var(--surface)}
.config-close{background:var(--config-secondary);color:var(--ink)}
.config-actions button:hover{filter:brightness(.94)}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.pendant-config{width:100%;max-width:none;max-height:calc(100dvh - 24px);margin:auto 0 0;padding:20px 20px calc(16px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0}.pendant-config .config-content{gap:16px}.pendant-config .pendant{height:clamp(204px,35dvh,324px)}.config-controls{gap:24px}.config-row{gap:16px}.config-actions{padding-top:24px}.config-actions button{min-height:44px}}

@media(prefers-reduced-motion:reduce){.config-swatch{transition:none}}

/* The box is a transparent PNG; the device, screen and solid backdrop are live layers. */
.site-loader{color:#e1e1e1;pointer-events:auto;overflow:hidden}
.loader-package{position:relative;width:min(calc(100vw - 24px),calc((100svh - 24px)*9/16),520px);aspect-ratio:9/16;opacity:0;transition:opacity 300ms ease-out}
.site-loader[data-present=true] .loader-package{opacity:1}
.loader-box{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
/* A single compositor layer: no backdrop blur, filters, or animated shadows. */
.loader-lid{position:absolute;left:11.2%;top:42.6%;width:77.6%;height:46.6%;z-index:4;display:grid;place-items:center;box-sizing:border-box;border:1px solid #c5c8cc78;border-radius:2px;background:linear-gradient(135deg,#d8dde334 0%,#63686e38 16%,#272b30ba 45%,#7c838b42 74%,#bfc5cb38 100%),linear-gradient(#33373ba6,#1c2024bf);box-shadow:inset 0 0 0 2px #ffffff0c,inset 0 0 16px #dce3ee24,0 8px 16px #00000035;transform:translateY(0);transition:transform 950ms cubic-bezier(.22,.7,.15,1);will-change:transform;pointer-events:none}
.loader-lid::before{content:"";position:absolute;inset:3px;border:1px solid #e1e7ee22;border-bottom-color:#e1e7ee44;border-radius:1px}
.loader-lid span{font:400 clamp(7px,min(2.2vw,1.3svh),12px)/1.2 monospace;letter-spacing:.2em;color:#e1e3e5;text-shadow:0 1px 1px #0008}
.site-loader[data-lid=open] .loader-lid{transform:translateY(-82%)}
.loader-device{position:absolute;left:19%;top:53.2%;width:33.8%;height:19%}
.loader-screen{position:absolute;left:21.8%;top:54.6%;width:28.2%;height:16.1%;z-index:3;display:grid;place-items:center;overflow:hidden;border-radius:24%;background:#050607;box-shadow:inset 0 0 2px #000;transition:background 350ms ease}
.loader-screen-content{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;opacity:0;transition:opacity 350ms ease}
.site-loader[data-boot=on] .loader-screen{background:#24292f;box-shadow:inset 0 0 12px #a9c9ed18,0 0 10px #c8dfff14;color:#fff}
.site-loader[data-boot=on] .loader-screen-content{opacity:1}
.loader-brand{font:400 clamp(6px,min(2vw,1.1svh),11px)/1.2 monospace;letter-spacing:.02em;white-space:nowrap}
.loader-progress{display:flex;gap:2px}
.loader-progress i{width:clamp(3px,.6svh,6px);height:2px;background:#e1e1e125}
.loader-progress i.filled{background:#e1e1e1}
.site-loader .pendant-overlay{z-index:2;pointer-events:none}
.is-loading body>.pendant-overlay{opacity:0;visibility:hidden!important;pointer-events:none}
.site-loader[data-asset-failed=true] .loader-package{width:240px;aspect-ratio:1}
.site-loader[data-asset-failed=true] .loader-box,.site-loader[data-asset-failed=true] .loader-lid{display:none}
.site-loader[data-asset-failed=true] .loader-device{left:0;top:0;width:100%;height:100%}
.site-loader[data-asset-failed=true] .loader-screen{left:8%;top:7.5%;width:84%;height:85%}
@media(prefers-reduced-motion:reduce){.loader-package,.loader-screen,.loader-screen-content,.loader-lid{transition:none}}

@media(max-width:360px){.config-row{grid-template-columns:1fr;gap:12px}}

/* Keep identity below the mobile controls when 3D is unavailable. */
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  .profile:has([data-pendant-block][hidden]){padding-top:64px}
}

/* Transparent static counterpart of the same 3D scene; used only on failure. */
.pendant-fallback{position:absolute;left:50%;bottom:0;width:252px;max-width:none;height:auto;transform:translateX(-50%);transform-origin:50% 0;pointer-events:none;user-select:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.pendant-fallback{width:min(350px,120%)}}
