/* Captured reference: 448 px portrait/makeup, 600 px expression, DPR 1. */
body .studio-shell .asset-canvas-mode .ac-face-panel{position:absolute;left:50%;top:82px;transform:translateX(-50%);width:448px;max-width:calc(100% - 24px);max-height:calc(100% - 100px);overflow:auto;pointer-events:auto;z-index:10;margin:0;padding:0;border:1px solid #ffffff0a;border-radius:24px;background:#262626cc;backdrop-filter:blur(24px);box-shadow:0 12px 38px #0004;color:#fff;font:14px/1.5 system-ui,-apple-system,sans-serif;text-align:left;-webkit-font-smoothing:antialiased}
body .studio-shell .ac-face-panel button{cursor:pointer;font:inherit;color:inherit}
body .studio-shell .ac-face-panel button:disabled{cursor:default;opacity:.5}
body .studio-shell .ac-face-panel button:focus-visible,body .studio-shell .ac-face-panel select:focus-visible{outline:2px solid #bca5ff;outline-offset:2px}
body .studio-shell .ac-face-panel .ac-face-close{position:absolute;right:10px;top:8px;padding:4px;background:transparent;border:0;border-radius:50%;z-index:2;color:#aaa}
body .studio-shell .ac-face-panel header{padding:16px;border-bottom:1px solid #ffffff14}
body .studio-shell .ac-face-panel header strong{font-size:14px;font-weight:500}
body .studio-shell .ac-face-panel header p{font-size:12px;color:#999;margin:4px 0 0}
body .studio-shell .ac-face-body{padding:16px}
body .studio-shell .ac-face-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body .studio-shell .ac-face-presets button{height:62px;padding:12px;border:1px solid #ffffff1f;background:transparent;border-radius:24px;text-align:left}
body .studio-shell .ac-face-presets button[aria-checked=true]{background:#0a0a0a;border-color:#ffffff0a}
body .studio-shell .ac-face-presets strong{display:block;font-size:13px;font-weight:500;line-height:15px}
body .studio-shell .ac-face-presets small{display:block;font-size:11px;color:#999;line-height:16px;margin-top:4px;white-space:nowrap}
body .studio-shell .ac-face-intensity{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:12px;color:#ccc}
body .studio-shell .ac-face-intensity>div{display:flex;border:1px solid #ffffff1f;border-radius:24px;overflow:hidden}
body .studio-shell .ac-face-intensity button{min-height:30px;padding:5px 12px;border:0;border-right:1px solid #ffffff1f;background:transparent;font-size:13px}
body .studio-shell .ac-face-intensity button:last-child{border-right:0}
body .studio-shell .ac-face-intensity button[aria-checked=true]{background:#0a0a0a;color:#fff}
body .studio-shell .ac-face-panel footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px;border-top:1px solid #ffffff14}
body .studio-shell .ac-face-resolution select{width:76px;min-height:36px;border:0;border-radius:24px;background:#ffffff0a;color:#fff;font-size:13px;padding:6px 12px;margin:0;box-shadow:none}
body .studio-shell .ac-face-panel .ac-face-generate{min-height:36px;border:0;border-radius:24px;padding:8px 16px;background:#fafafa;color:#111;font-size:12px;font-weight:500}
body .studio-shell .ac-face-generate small{font-size:11px;font-weight:400;color:#777}
body .studio-shell .ac-face-error{font-size:12px;padding:8px 16px 14px;color:#e9ba93;overflow-wrap:anywhere}
body .studio-shell .ac-face-error button{border:0;background:transparent;text-decoration:underline;padding:3px 8px}
body .studio-shell .ac-face-panel.ac-face-makeup{background:#1c1c1c;border-radius:16px}
body .studio-shell .ac-face-tabs{display:flex;margin:8px 32px 12px 10px;gap:4px}
body .studio-shell .ac-face-tabs button{flex:1;border:0;border-radius:12px;height:32px;background:transparent;color:#999;font-size:12px}
body .studio-shell .ac-face-tabs button[aria-selected=true]{background:#ffffff14;color:#fff}
body .studio-shell .ac-makeup-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:4px 12px;max-height:295px;overflow:auto}
body .studio-shell .ac-makeup-grid button{border:0;background:transparent;padding:0;min-width:0;font-size:11px}
body .studio-shell .ac-makeup-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;border:2px solid transparent}
body .studio-shell .ac-makeup-grid button[aria-pressed=true] img{border-color:#eee}
body .studio-shell .ac-makeup-grid span{display:block;margin-top:4px;white-space:nowrap}
body .studio-shell .ac-face-current{padding:10px 12px;font-size:12px;color:#888}
body .studio-shell .ac-face-current strong{font-weight:400;color:#eee;margin-left:8px}
body .studio-shell .ac-face-panel.ac-face-expression{width:600px;background:#1c1c1c;padding:16px}
body .studio-shell .ac-expression-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px}
body .studio-shell .ac-expression-preview{height:243px;border:1px solid #ffffff1f;border-radius:24px;background:#282828;overflow:hidden}
body .studio-shell .ac-expression-preview img{display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1);pointer-events:none}
body .studio-shell .ac-expression-grid{padding-top:17px}
body .studio-shell .ac-expression-grid [role=row]{display:grid;grid-template-columns:36px repeat(5,1fr);align-items:center;height:38px;gap:0}
body .studio-shell .ac-expression-grid [role=row]>span{font-size:11px;color:#888}
body .studio-shell .ac-expression-grid button{height:38px;border:1px solid #ffffff09;background:#ffffff05;border-radius:0;position:relative}
body .studio-shell .ac-expression-grid button[aria-selected=true]{background:#817589;border-color:#c1b5c7;border-radius:50%;box-shadow:0 0 0 4px #ffffff18}
body .studio-shell .ac-expression-scale{display:flex;justify-content:space-between;padding:6px 0 0 36px;font-size:11px;color:#777}
body .studio-shell .ac-face-expression footer{border:0;padding:14px 0 0}
@media(max-width:760px){body .studio-shell .asset-canvas-mode .ac-face-panel{position:fixed;top:100px;left:50%;max-height:calc(100dvh - 120px);max-width:calc(100vw - 24px);z-index:45}body .studio-shell .ac-face-panel.ac-face-expression{width:366px}body .studio-shell .ac-expression-layout{grid-template-columns:1fr}body .studio-shell .ac-expression-preview{height:190px}body .studio-shell .ac-expression-grid{padding-top:0}body .studio-shell .ac-face-presets small{font-size:10px;white-space:normal}body .studio-shell .ac-face-presets button{padding:9px;height:68px}body .studio-shell .ac-makeup-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Source preset tiles include their labels in the image square. */
body .studio-shell .ac-face-tabs{margin-right:10px;border-bottom:1px solid #ffffff14;padding-bottom:8px;margin-bottom:12px}
body .studio-shell .ac-face-tabs button{border:1px solid #ffffff1f;border-radius:24px}
body .studio-shell .ac-face-tabs button[aria-selected=true]{border-color:transparent}
body .studio-shell .ac-makeup-grid{max-height:348px;gap:12px;padding:4px 10px 12px}
body .studio-shell .ac-makeup-grid button{position:relative;aspect-ratio:1;min-height:0}
body .studio-shell .ac-makeup-grid img{height:100%;border-radius:12px}
body .studio-shell .ac-makeup-grid span{position:absolute;bottom:7px;left:7px;right:2px;margin:0;text-align:left;color:#eee;text-shadow:0 1px 4px #000;z-index:1}
body .studio-shell .ac-makeup-grid .ac-makeup-upload{border:1px dashed #ffffff2b;border-radius:12px;background:#0a0a0a;color:#888}
body .studio-shell .ac-makeup-upload .icon{position:absolute;top:12px;left:calc(50% - 9px);width:18px;height:18px}
body .studio-shell .ac-makeup-upload span{text-align:center;left:2px;line-height:18px;color:#aaa}
body .studio-shell .ac-face-current{margin-right:auto;padding:0;font-size:11px;line-height:15px}
body .studio-shell .ac-face-current strong{display:block;margin:0}
body .studio-shell .ac-face-makeup footer{padding:10px}
body .studio-shell .ac-face-makeup .ac-face-close{top:46px;right:3px;opacity:.6}
body .studio-shell .ac-face-panel.ac-face-expression{padding:12px 12px 0}
body .studio-shell .ac-expression-preview{background:#0a0a0a}
body .studio-shell .ac-expression-layout{grid-template-columns:280px minmax(0,1fr)}
body .studio-shell .ac-expression-layout>div{border:1px solid #ffffff1f;border-radius:24px;padding:16px 16px 6px}
body .studio-shell .ac-expression-grid{padding-top:2px}
body .studio-shell .ac-expression-grid [role=row]{grid-template-columns:36px repeat(5,1fr)}
body .studio-shell .ac-expression-grid button{background:transparent;border:0}
body .studio-shell .ac-expression-grid button:before{content:'';position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:#555}
body .studio-shell .ac-expression-grid [role=row]:first-child button:before,body .studio-shell .ac-expression-grid [role=row] button:nth-child(2):before{background:#ccc}
body .studio-shell .ac-expression-grid button[aria-selected=true]{background:transparent;border:0;box-shadow:none}
body .studio-shell .ac-expression-grid button[aria-selected=true]:before{width:28px;height:28px;left:calc(50% - 14px);top:calc(50% - 14px);background:transparent;border:1px solid #888;box-shadow:inset 0 0 2px #aaa}
body .studio-shell .ac-expression-scale{padding-top:3px}
body .studio-shell .ac-face-expression footer{margin:12px -12px 0;border-top:1px solid #ffffff14;padding:10px 12px}
@media(max-width:760px){body .studio-shell .ac-expression-layout{grid-template-columns:1fr}body .studio-shell .ac-expression-layout>div{padding:8px 12px}body .studio-shell .ac-face-panel.ac-face-expression{max-height:calc(100dvh - 115px)}}
/* Match measured 431.06/471.23/327 px ready panels without hiding provider errors. */
body .studio-shell .ac-face-panel header p{font-size:13px;line-height:19.5px}
body .studio-shell .ac-face-presets button{height:62.1875px}
body .studio-shell .ac-face-tabs{gap:8px;margin-bottom:14px}
body .studio-shell .ac-makeup-grid{gap:8px;max-height:none;padding:4px 10px 10px}
body .studio-shell .ac-face-makeup footer{padding:8px 10px}
body .studio-shell .ac-face-makeup .ac-face-close{top:44px;padding:0;height:20px}
body .studio-shell .ac-face-panel.ac-face-expression{padding:13px 13px 0}
body .studio-shell .ac-expression-layout>div{padding-left:12px;padding-right:15px}
body .studio-shell .ac-expression-grid{padding-top:3px}
body .studio-shell .ac-face-expression footer{margin-right:-13px;margin-left:-13px}
@media(max-width:760px){body .studio-shell .ac-face-panel header p{font-size:12px;line-height:18px}body .studio-shell .ac-face-presets button{height:68px}body .studio-shell .ac-makeup-grid{max-height:360px;overflow:auto}body .studio-shell .ac-expression-layout>div{padding:8px 12px}}

/* Reference preset surfaces and detail preview, with real source assets. */
body .studio-shell .ac-makeup-grid button:not(.ac-makeup-upload){border:2px outset #ffffff1f;border-radius:0}
body .studio-shell .ac-makeup-grid img{border:0;border-radius:20px}
body .studio-shell .ac-makeup-grid span{left:0;right:0;bottom:0;padding:20px 8px 6px;border-radius:0 0 20px 20px;background:linear-gradient(transparent,#0006,#000c)}
body .studio-shell .ac-makeup-grid button[aria-pressed=true]:not(.ac-makeup-upload):after{content:'✓';position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fafafa;color:#111;line-height:18px;text-align:center;box-shadow:0 0 0 2px #111}
body .studio-shell .ac-makeup-grid .ac-makeup-upload span{padding:0;background:transparent;bottom:8px}
body .studio-shell .ac-face-panel.ac-face-makeup{overflow:visible}
body .studio-shell .ac-makeup-detail{position:absolute;top:0;left:calc(100% + 8px);width:280px;padding:8px;border:1px solid #ffffff0a;border-radius:16px;background:#1c1c1c;box-shadow:0 12px 38px #0004;pointer-events:none}
body .studio-shell .ac-makeup-detail img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
body .studio-shell .ac-makeup-detail span{position:absolute;bottom:8px;left:8px;right:8px;border-radius:0 0 12px 12px;padding:40px 12px 10px;background:linear-gradient(transparent,#0006,#000c);font-size:14px}
body .studio-shell .ac-makeup-detail small{position:absolute;top:18px;left:18px;background:#0007;border-radius:20px;padding:4px 8px;font-size:11px}
body .studio-shell .ac-expression-grid [role=row] button[aria-selected=true]:before{background:transparent}
@media(max-width:760px){body .studio-shell .ac-face-panel.ac-face-makeup{overflow:auto}body .studio-shell .ac-makeup-detail{display:none}}

body .studio-shell .ac-expression-grid{touch-action:none}
