/* Isolated overlay. Existing application layout and content are not restyled. */
#cpe-long-guide{position:fixed;right:max(12px,calc((100vw - 1180px)/2 + 12px));bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:2147481000;width:88px;color:#111111;font-family:"DM Sans",Arial,"Microsoft YaHei",sans-serif;line-height:1.45;--long-face-size:80px}
#cpe-long-guide[hidden],#cpe-long-guide [hidden]{display:none!important}
#cpe-long-guide *{box-sizing:border-box}
#cpe-long-guide.cpe-long-left{left:max(12px,calc((100vw - 1180px)/2 + 12px));right:auto}
#cpe-long-guide .cpe-long-trigger{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;width:88px;margin:0;padding:0;border:0;background:transparent;color:#111111;font:inherit;box-shadow:none;touch-action:manipulation}
#cpe-long-guide .cpe-long-face{display:block;flex:none;width:var(--long-face-size);height:var(--long-face-size);object-fit:contain;transform-origin:50% 65%;pointer-events:none}
#cpe-long-guide .cpe-long-name{position:relative;z-index:1;display:block;flex:none;margin-top:-17px;padding:3px 9px;border:1px solid #EBDCC6;border-radius:12px;background:#F7F0E6;color:#A51D2D;font-family:inherit;font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap;pointer-events:none}
#cpe-long-guide .cpe-long-hide{position:absolute;right:-2px;top:-12px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #EBDCC6;border-radius:50%;background:#F7F0E6;color:#5C5C5C;font:21px/1 Arial,sans-serif;box-shadow:none;touch-action:manipulation}
#cpe-long-guide .cpe-long-panel{position:absolute;right:0;bottom:calc(100% + 12px);width:310px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 230px);overflow:auto;overscroll-behavior:contain;padding:14px 16px;border:1px solid #A51D2D;border-radius:15px;background:#F7F0E6;color:#111111;box-shadow:none;text-align:left}
#cpe-long-guide.cpe-long-left .cpe-long-panel{right:auto;left:0}
#cpe-long-guide .cpe-long-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
#cpe-long-guide .cpe-long-head strong{color:#A51D2D;font-size:15px;font-weight:700}
#cpe-long-guide .cpe-long-close{display:grid;place-items:center;flex:none;width:36px;height:36px;margin:-7px -8px -5px 0;padding:0;border:0;background:transparent;color:#111111;font:24px/1 Arial,sans-serif;box-shadow:none}
#cpe-long-guide .cpe-long-copy{margin:0;font-size:16px;line-height:1.5}
#cpe-long-guide .cpe-long-status{display:block;min-height:1.4em;margin-top:10px;color:#5C5C5C;font-size:12px;line-height:1.4}
#cpe-long-guide .cpe-long-action{display:block;width:100%;margin:12px 0 0;padding:11px 13px;border:1px solid #A51D2D;border-radius:10px;background:#A51D2D;color:#fff;font:700 14px/1.4 "DM Sans",Arial,sans-serif;text-align:center;box-shadow:none}
#cpe-long-guide .cpe-long-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:8px}
#cpe-long-guide .cpe-long-tool{min-height:36px;margin:0;padding:6px 0;border:0;background:transparent;color:#A51D2D;font:13px/1.4 "DM Sans",Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
#cpe-long-guide button{cursor:pointer}
#cpe-long-guide button:focus-visible{outline:3px solid #A51D2D;outline-offset:3px}
#cpe-long-guide.cpe-long-speaking .cpe-long-head strong:after{content:" · hablando";font-size:12px;font-weight:400}
.cpe-long-restore-help small{display:block}
@media(min-width:901px){#cpe-long-guide{bottom:24px}}
@media(max-height:560px){#cpe-long-guide{bottom:12px;--long-face-size:64px}#cpe-long-guide .cpe-long-panel{max-height:calc(100dvh - 130px)}}
@media(pointer:coarse){#cpe-long-guide .cpe-long-hide{right:-6px;top:-18px;width:40px;height:40px}#cpe-long-guide .cpe-long-close{width:44px;height:44px}#cpe-long-guide .cpe-long-tool{min-height:44px}}
/* v450: selectable mascot, shared guide; original layout retained. */
#cpe-long-guide .cpe-mao-visual{display:block;position:relative;flex:none;width:var(--long-face-size);height:var(--long-face-size);pointer-events:none}
#cpe-long-guide .cpe-mao-visual img{display:block;width:100%;height:100%;object-fit:contain}
#cpe-long-guide .cpe-mao-visual canvas{position:absolute;top:50%;left:0;display:block;width:100%;height:auto;transform:translateY(-50%)}
#cpe-long-guide .cpe-mascot-select-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:13px;color:#5c5c5c}
#cpe-long-guide [data-mascot-select]{max-width:185px;min-width:0;min-height:44px;padding:7px 9px;border:1px solid #ebdcc6;border-radius:10px;background:#fffaf3;color:#111;font:inherit;font-size:16px}
.cpe-mascot-settings{margin:16px 0;padding:14px;border:1px solid #ebdcc6;border-radius:14px;background:#fffaf3;color:#111}
.cpe-mascot-settings h2{margin:0 0 12px;font:700 18px/1.3 "DM Sans",Arial,sans-serif}
.cpe-mascot-settings p{margin:10px 0;color:#48576a;font-size:13px;line-height:1.5}
.cpe-mascot-choices{display:flex;flex-wrap:wrap;gap:10px}
.cpe-mascot-choices label{display:flex;align-items:center;flex:1 1 150px;gap:8px;min-height:64px;padding:8px;border:1px solid #ebdcc6;border-radius:10px;background:#fff;cursor:pointer}
.cpe-mascot-choices label:has(input:checked){border-color:#a51d2d;background:#f7f0e6}
.cpe-mascot-choices input{width:18px;height:18px;accent-color:#a51d2d;flex:none}
.cpe-mascot-choices img{object-fit:contain;flex:none}
.cpe-mascot-choices span{font:600 14px/1.3 "DM Sans",Arial,sans-serif;white-space:nowrap}
.cpe-mascot-settings .cpe-long-restore-help{width:100%;margin-top:12px}

/* Keep global help illustration styles from enlarging mascot thumbnails. */
.cpe-mascot-settings .cpe-mascot-choices img{display:block;width:48px!important;height:48px!important;max-width:48px;margin:0;object-fit:contain;flex:0 0 48px}
.cpe-mascot-settings .cpe-mascot-choices label{display:flex;overflow-wrap:normal}
