/* Product controls only. No global font reset or template/music/gift art rules. */
.yh-controls-20261106 .yh-action-icon { display: block; flex-shrink: 0; background-position: center; background-repeat: no-repeat; background-size: contain; }
.yh-controls-20261106 .yh-icon-template { background-image: url("assets/template.png"); }
.yh-controls-20261106 .yh-icon-photos { background-image: url("assets/photos.png"); }
.yh-controls-20261106 .yh-icon-music { background-image: url("assets/music.png"); }
.yh-controls-20261106 .yh-icon-title { background-image: url("assets/title.png"); }
.yh-controls-20261106 .yh-icon-share { background-image: url("assets/save.png"); }
.yh-controls-20261106 .yh-system-label { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; white-space: nowrap; }
.yh-controls-20261106 #yhxc-fun,
.yh-controls-20261106 .legacy-owner-bar { background-image: none; background-color: #fff; box-sizing: border-box; }
.yh-controls-legacy #yhxc-fun { top: auto; bottom: 0; height: calc(100px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.yh-controls-legacy #yhxc-fun > [data-legacy-action] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 20%; height: 100%; box-sizing: border-box; color: #555; border: 0; background: #fff; }
.yh-controls-legacy #yhxc-fun .yh-action-icon { width: 36px; height: 36px; }
.yh-controls-legacy #yhxc-fun .yh-system-label { font-size: 30px; line-height: 36px; }
.yh-controls-legacy #yhxc-fun > [data-legacy-action="share"] { color: #fff; background: #c52d2b; }
.yh-controls-modern .legacy-owner-bar { height: calc(min(13.8889vw, 100px) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.yh-controls-modern .legacy-owner-bar > [data-editor] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #555; background: #fff; }
.yh-controls-modern .legacy-owner-bar .yh-action-icon { width: min(5vw, 36px); height: min(5vw, 36px); }
.yh-controls-modern .legacy-owner-bar .yh-system-label { font-size: min(4.1667vw, 30px); line-height: min(5vw, 36px); }
.yh-controls-modern .legacy-owner-bar > [data-editor="share"] { color: #fff; background: #c52d2b; }
.yh-controls-20261106 #yhxc-FunSShare,
.yh-controls-20261106 .legacy-share { background-image: none; background-color: #148345; color: #fff; box-sizing: border-box; }
.yh-controls-legacy #yhxc-FunSShare { border-radius: 18px; }
.yh-controls-legacy #yhxc-FunSShare .yh-system-label { font-size: 30px; line-height: 40px; }
.yh-controls-modern .legacy-share { display: flex; align-items: center; justify-content: center; border-radius: min(2.5vw, 18px); }
.yh-controls-modern .legacy-share .yh-system-label { font-size: min(4.1667vw, 30px); line-height: min(5.5556vw, 40px); }
.yh-controls-20261106 .yhxc-funSMake,
.yh-controls-20261106 .legacy-make { background-image: none; background-color: #c52d2b; color: #fff; box-sizing: border-box; }
.yh-controls-legacy .yhxc-funSMake { border-radius: 18px; }
.yh-controls-legacy .yhxc-funSMake .yh-system-label { font-size: 35px; line-height: 44px; }
.yh-controls-modern .legacy-make { display: flex; align-items: center; justify-content: center; border-radius: min(2.5vw, 18px); bottom: calc(min(2.2222vw, 16px) + env(safe-area-inset-bottom)); }
.yh-controls-modern .legacy-make .yh-system-label { font-size: min(4.8611vw, 35px); line-height: min(6.1111vw, 44px); }
/* Offset containers once for the home-indicator; art dimensions/animation stay unchanged. */
.yh-controls-legacy #yhxc-music_box { bottom: calc(160px + env(safe-area-inset-bottom)); }
.yh-controls-legacy #yhxc-mversion { bottom: calc(262px + env(safe-area-inset-bottom)); }
.yh-controls-legacy #yhxc-funSMake { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); }
.yh-controls-modern .legacy-music { bottom: calc(min(22.2222vw, 160px) + env(safe-area-inset-bottom)); }
/* Runtime visibility is authoritative; styling must not expose hidden actions. */
.yh-controls-20261106 .legacy-owner-bar[hidden],
.yh-controls-20261106 .legacy-share[hidden],
.yh-controls-20261106 .legacy-make[hidden] { display: none; }
