/* [W-2236] Styles of the shared emote-galaxy builder (emote-galaxy-builder.js), loaded by the public builder page. */
.emote-galaxy-builder{ --panel:#13171c; --panel-2:#171c22; --line:#222a32; --text:#e8edf2; --muted:#9aa7b4; --accent:#19d3c5; --accent-2:#7c5cff; --radius:14px; color:var(--text); }
.emote-galaxy-builder, .emote-galaxy-builder *{box-sizing:border-box}
.emote-galaxy-builder [hidden]{display:none !important}
.emote-galaxy-builder a{color:var(--accent); text-decoration:underline}
.emote-galaxy-builder code{background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:6px; padding:.05em .38em; font-size:.9em; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.emote-galaxy-builder .card{background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; margin-bottom:18px}
.emote-galaxy-builder .card h2{font-size:15px; letter-spacing:.10em; text-transform:uppercase; color:var(--accent); margin:0 0 16px}
.emote-galaxy-builder .grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px 18px}
@media(max-width:620px){ .emote-galaxy-builder .grid{grid-template-columns:1fr} }
.emote-galaxy-builder label, .emote-galaxy-builder .lbl{display:block; font-size:13px; color:var(--muted); margin:0 0 5px; font-weight:600}
.emote-galaxy-builder input[type=text], .emote-galaxy-builder input[type=password], .emote-galaxy-builder input[type=number], .emote-galaxy-builder input[type=date], .emote-galaxy-builder input[type=time], .emote-galaxy-builder select{ width:100%; background:#0d1116; color:var(--text); border:1px solid var(--line); border-radius:9px; padding:9px 11px; font-size:14px; font-family:inherit; color-scheme:dark;}
.emote-galaxy-builder input[type=color]{width:100%; height:40px; background:#0d1116; border:1px solid var(--line); border-radius:9px; padding:3px; cursor:pointer}
.emote-galaxy-builder input[type=color]:disabled{opacity:.4; cursor:not-allowed}
.emote-galaxy-builder input:focus, .emote-galaxy-builder select:focus{outline:none; border-color:var(--accent)}
.emote-galaxy-builder .full{grid-column:1 / -1}
.emote-galaxy-builder .checks{display:flex; gap:16px; flex-wrap:wrap}
.emote-galaxy-builder .checks label{display:inline-flex; align-items:center; gap:7px; color:var(--text); font-weight:500; margin:0}
.emote-galaxy-builder .hint{font-size:12.5px; color:var(--muted); margin:6px 0 0}
.emote-galaxy-builder .warn{color:var(--accent-2)}
.emote-galaxy-builder .lblrow, .emote-galaxy-builder .noterow{position:relative; display:flex; align-items:center; gap:6px}
.emote-galaxy-builder .lblrow{margin:0 0 5px}
.emote-galaxy-builder .lblrow label, .emote-galaxy-builder .lblrow .lbl{margin:0}
.emote-galaxy-builder .noterow{margin:6px 0 0}
.emote-galaxy-builder .noterow .hint{margin:0}
.emote-galaxy-builder .info-btn{display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--panel); color:var(--muted); cursor:pointer; font:inherit; font-size:14px; line-height:1}
.emote-galaxy-builder .info-btn:hover, .emote-galaxy-builder .info-btn[aria-expanded="true"]{color:var(--text); border-color:var(--accent)}
.emote-galaxy-builder .info-btn:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
@media(pointer:coarse){ .emote-galaxy-builder .info-btn{width:34px; height:34px} }
.emote-galaxy-builder .info-pop{position:absolute; top:100%; left:0; z-index:30; width:100%; max-width:560px; margin-top:6px; padding:12px 14px; background:var(--panel-2); border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.5); font-size:13px; line-height:1.55; color:var(--text)}
.emote-galaxy-builder .info-pop[hidden]{display:none}
.emote-galaxy-builder .info-pop p{margin:0}
.emote-galaxy-builder .mode-badge{display:inline-block; font-size:12px; font-weight:600; text-transform:none; letter-spacing:.03em; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 10px; margin-left:8px; vertical-align:middle}
.emote-galaxy-builder .mode-badge.live{color:var(--accent); border-color:rgba(25,211,197,.4)}
.emote-galaxy-builder .presets{display:flex; gap:10px; flex-wrap:wrap}
.emote-galaxy-builder .urlbar{display:flex; gap:10px; flex-wrap:wrap; align-items:stretch}
.emote-galaxy-builder .urlbar input{flex:1; min-width:240px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px}
.emote-galaxy-builder .btn{display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14px; padding:10px 18px; border-radius:10px; border:1px solid transparent; cursor:pointer; white-space:nowrap;}
.emote-galaxy-builder .btn-primary{background:linear-gradient(92deg,var(--accent),var(--accent-2)); background-origin:border-box; color:#000;}
.emote-galaxy-builder .btn-primary:hover{filter:brightness(1.06)}
.emote-galaxy-builder .btn-ghost{border-color:var(--line); color:var(--text); background:var(--panel)}
.emote-galaxy-builder .btn-ghost:hover{border-color:#33414e}
.emote-galaxy-builder .btn:disabled, .emote-galaxy-builder .btn[aria-disabled="true"]{opacity:.45; cursor:not-allowed; pointer-events:none; filter:none}
.emote-galaxy-builder .preview{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; min-height:180px; background: linear-gradient(45deg,#1b2027 25%,transparent 25%,transparent 75%,#1b2027 75%), linear-gradient(45deg,#1b2027 25%,#12161b 25%,#12161b 75%,#1b2027 75%); background-size:24px 24px; background-position:0 0,12px 12px; padding:14px;}
.emote-galaxy-builder .preview iframe{width:100%; height:200px; border:0; background:transparent; display:block}
.emote-galaxy-builder input[type=range]{width:100%; accent-color:var(--accent); margin:4px 0 0; height:28px}
.emote-galaxy-builder .val{float:right; color:var(--text); font-weight:500; font-variant-numeric:tabular-nums}
.emote-galaxy-builder .frames{display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px}
.emote-galaxy-builder .frames .btn[aria-pressed="true"]{border-color:var(--accent); color:var(--accent)}
.emote-galaxy-builder .preview{display:flex; justify-content:center}
.emote-galaxy-builder .preview iframe{background:transparent}
.emote-galaxy-builder .preview.landscape iframe{width:100%; aspect-ratio:16/9; height:auto; max-height:480px}
.emote-galaxy-builder .preview.portrait iframe{width:min(100%,270px); aspect-ratio:9/16; height:auto; max-height:480px}
.emote-galaxy-builder details.adv{margin-top:2px}
.emote-galaxy-builder details.adv summary{cursor:pointer; color:var(--muted); font-size:13px; font-weight:600}
.emote-galaxy-builder details.adv .adv-body{padding-top:10px}
.emote-galaxy-builder .check{display:flex; align-items:center; gap:8px; color:var(--text); font-weight:500; margin:0}
.emote-galaxy-builder .check input{width:auto}
.emote-galaxy-builder .sub{color:var(--muted)}
