/* JoinUs Kit — editor chrome. Everything is namespaced .ju-* so templates keep their own styles. */
:root{--ju-bar-h:0px;--ju-kb:0px;--ju-accent:#78fff1;--ju-ink:#06201d;--ju-bg:#10161e;--ju-card:#18212b;--ju-line:rgba(255,255,255,.12);--ju-text:#eef4f3;--ju-muted:#9aa6ae;--ju-bad:#ff8a8a}
html.ju-has-bar{--ju-bar-h:calc(96px + env(safe-area-inset-bottom))}
html.ju-has-bar.ju-mode-demo{--ju-bar-h:calc(70px + env(safe-area-inset-bottom))}
html.ju-has-bar.ju-previewing{--ju-bar-h:0px}
html.ju-has-bar body{padding-bottom:var(--ju-bar-h)}
html.ju-sheet-open,html.ju-sheet-open body{overflow:hidden}
/* The server marks hosted pages ju-booting so guests never see the sample names flash; failsafe after 3s. */
html.ju-booting body{visibility:hidden;animation:ju-failsafe 0s 3s forwards}
@keyframes ju-failsafe{to{visibility:visible}}

/* highlight editable content */
html.ju-editing [data-ju-field]{outline:2px dashed rgba(120,255,241,.92);outline-offset:3px;cursor:pointer;border-radius:3px;animation:ju-pulse 1.6s ease-in-out 3}
html.ju-editing img[data-ju-field]{outline-offset:-5px;outline-width:3px}
html.ju-editing [data-ju-field]:hover{outline-style:solid}
html.ju-editing [data-ju-empty]::before{content:"＋ " attr(data-ju-label);opacity:.75;font-style:italic}
html:not(.ju-editing) [data-ju-empty]::before{content:none}
.ju-flash{animation:ju-flash 1.2s ease-out!important}
@keyframes ju-pulse{50%{outline-color:rgba(120,255,241,.25)}}
@keyframes ju-flash{0%,60%{outline:4px solid #fff;outline-offset:6px}}

/* bottom bar */
.ju-ui{font:14px/1.5 "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;color:var(--ju-text);-webkit-font-smoothing:antialiased;letter-spacing:0;text-transform:none;text-align:left}
.ju-ui :where(*){box-sizing:border-box}
.ju-ui :where(button,input,textarea,select){font:inherit;color:inherit}
.ju-bar{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;padding:10px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(12,17,23,.92);-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);border-top:1px solid var(--ju-line);box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.ju-bar-row{display:flex;align-items:center;gap:8px;max-width:560px;margin:0 auto}
.ju-seg{display:flex;padding:3px;border-radius:999px;background:rgba(255,255,255,.08);flex:0 0 auto}
.ju-seg button{border:0;background:transparent;padding:0 16px;height:38px;border-radius:999px;cursor:pointer;color:var(--ju-muted);font-weight:600}
.ju-seg button[aria-pressed=true]{background:#fff;color:#0c1117}
.ju-icon{flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:1px solid var(--ju-line);background:transparent;cursor:pointer;font-size:20px;line-height:1}
.ju-publish{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 14px;border:0;border-radius:999px;background:var(--ju-accent);color:var(--ju-ink);font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;white-space:nowrap;box-shadow:0 6px 24px -6px rgba(120,255,241,.55)}
.ju-publish.is-quiet{background:rgba(255,255,255,.12);color:var(--ju-text);box-shadow:none}
.ju-status{display:block;width:100%;max-width:560px;margin:6px auto 0;border:0;background:transparent;color:var(--ju-muted);font-size:12px;text-align:center;cursor:pointer;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ju-status::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;vertical-align:1px;background:var(--ju-muted)}
.ju-status[data-state=saved]::before{background:#5ee6a1}
.ju-status[data-state=saving]::before,.ju-status[data-state=dirty]::before{background:#ffc35c}
.ju-status[data-state=error]::before,.ju-status[data-state=conflict]::before,.ju-status[data-state=denied]::before,.ju-status[data-state=offline]::before{background:var(--ju-bad)}
.ju-status[data-state=error],.ju-status[data-state=offline],.ju-status[data-state=denied]{color:#ffc9c9}
html.ju-previewing .ju-bar{display:none}
.ju-back{display:none;position:fixed;left:12px;top:calc(12px + env(safe-area-inset-top));z-index:2147483000;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--ju-line);background:rgba(12,17,23,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-weight:600;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.3)}
html.ju-previewing .ju-back{display:block}
.ju-bar--demo .ju-bar-row{gap:10px}
.ju-demo-tag{flex:0 0 auto;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,195,92,.5);color:#ffd88f;font-size:12px}
.ju-btn-link{flex:0 0 auto;height:44px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;border:1px solid var(--ju-line);text-decoration:none;color:var(--ju-text);font-weight:600}
.ju-ribbon{position:fixed;top:calc(10px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:2147483000;display:flex;gap:10px;align-items:center;padding:6px 8px 6px 14px;border-radius:999px;background:rgba(255,195,92,.95);color:#2b1d00;font-size:12px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25);white-space:nowrap}
.ju-ribbon a{color:#2b1d00;background:rgba(255,255,255,.55);padding:3px 10px;border-radius:999px;text-decoration:none}
.ju-ribbon a:only-child,.ju-ribbon span:only-child{padding-right:6px}

/* sheets */
.ju-scrim{position:fixed;inset:0;z-index:2147483600;background:rgba(3,6,10,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .2s}
.ju-scrim.show{opacity:1}
.ju-sheet{width:100%;max-width:560px;max-height:calc(88vh - var(--ju-kb));margin-bottom:var(--ju-kb);display:flex;flex-direction:column;background:var(--ju-bg);border:1px solid var(--ju-line);border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.45);transform:translateY(24px);transition:transform .25s cubic-bezier(.22,1,.36,1)}
.ju-scrim.show .ju-sheet{transform:none}
.ju-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 8px}
.ju-sheet-head b{font-size:17px}
.ju-x{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.08);font-size:22px;line-height:1;cursor:pointer}
.ju-sheet-body{padding:6px 18px 14px;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.ju-sheet-foot{display:flex;gap:10px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--ju-line)}
.ju-btn{flex:1 1 0;height:46px;border-radius:999px;border:1px solid var(--ju-line);background:rgba(255,255,255,.05);font-weight:600;font-size:15px;cursor:pointer;padding:0 14px}
.ju-btn--primary{background:var(--ju-accent);color:var(--ju-ink);border-color:transparent}
.ju-btn--danger{color:var(--ju-bad)}
.ju-btn--ghost{width:100%;flex:none;margin-top:10px;background:transparent;border-style:dashed}
.ju-btn[disabled]{opacity:.5;cursor:default}
.ju-input{display:block;width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:#0b1016;font-size:16px;outline:none;color:var(--ju-text)}
.ju-input:focus{border-color:var(--ju-accent)}
textarea.ju-input{resize:vertical;line-height:1.6}
.ju-row{display:flex;gap:8px}
.ju-row .ju-input{flex:1 1 0;min-width:0}
.ju-control{position:relative}
.ju-count{display:block;text-align:right;color:var(--ju-muted);font-size:12px;margin-top:4px}
.ju-hint{color:var(--ju-muted);font-size:13px;margin:8px 0 0}
.ju-error{color:var(--ju-bad);font-size:13px;margin:8px 0 0}
.ju-p{margin:0 0 10px;color:#d5dde0}
.ju-dim{color:var(--ju-muted);margin-top:14px}
.ju-label{display:block;margin-top:10px}
.ju-label>span{display:block;font-size:12px;color:var(--ju-muted);margin-bottom:4px}
.ju-item{border:1px solid var(--ju-line);border-radius:16px;padding:12px;margin-bottom:10px;background:var(--ju-card)}
.ju-item-head{display:flex;align-items:center;gap:6px}
.ju-item-head b{flex:1 1 auto;font-size:13px;color:var(--ju-muted)}
.ju-mini{height:32px;min-width:32px;padding:0 10px;border-radius:999px;border:1px solid var(--ju-line);background:transparent;cursor:pointer;font-size:13px}
.ju-mini[disabled]{opacity:.35}
.ju-mini--danger{color:var(--ju-bad)}
.ju-thumb{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:14px;background:#000}
.ju-crop{position:relative;margin:0 auto;overflow:hidden;border-radius:12px;background:#000;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.ju-crop img{position:absolute;left:50%;top:50%;max-width:none;pointer-events:none}
.ju-crop-frame{position:absolute;inset:0;border:2px solid rgba(255,255,255,.9);border-radius:12px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3);pointer-events:none}
.ju-range{width:100%;accent-color:var(--ju-accent)}
.ju-choices{display:flex;flex-direction:column;gap:8px}
.ju-choice{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--ju-line);border-radius:14px;cursor:pointer}
.ju-choice span{flex:1 1 auto}
.ju-choice input{width:18px;height:18px;accent-color:var(--ju-accent)}
.ju-upload{margin-top:16px;padding-top:14px;border-top:1px solid var(--ju-line)}
.ju-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--ju-muted)}
.ju-check input{width:18px;height:18px;flex:0 0 auto;margin-top:1px;accent-color:var(--ju-accent)}
.ju-group{margin:18px 0 8px;font-size:12px;color:var(--ju-muted);font-weight:600;letter-spacing:.06em}
.ju-group:first-child{margin-top:4px}
.ju-entry{display:flex;width:100%;align-items:center;gap:12px;padding:13px 14px;margin-bottom:6px;border-radius:14px;border:1px solid var(--ju-line);background:var(--ju-card);cursor:pointer;text-align:left}
.ju-entry span{flex:1 1 auto;min-width:0}
.ju-entry em{flex:0 0 auto;font-style:normal;color:var(--ju-muted);font-size:13px;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ju-entry.is-missing{border-color:rgba(255,138,138,.5)}
.ju-entry.is-missing em{color:var(--ju-bad)}
.ju-entry.is-danger span{color:var(--ju-bad)}
.ju-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ju-tile{position:relative;padding:0;border:1px solid var(--ju-line);border-radius:12px;overflow:hidden;background:#000;cursor:pointer;aspect-ratio:3/4}
.ju-tile img{width:100%;height:100%;object-fit:cover;opacity:.6}
.ju-tile.is-custom img{opacity:1}
.ju-tile span{position:absolute;left:0;right:0;bottom:0;padding:16px 6px 5px;font-size:11px;background:linear-gradient(transparent,rgba(0,0,0,.8));text-align:center}
.ju-offer{margin-top:14px;padding:14px 16px;border-radius:16px;border:1px solid rgba(120,255,241,.35);background:rgba(120,255,241,.06)}
.ju-offer b{font-size:28px;color:var(--ju-accent);margin-right:8px}
.ju-offer span{color:var(--ju-muted);font-size:13px}
.ju-offer ul{margin:8px 0 0;padding-left:18px;font-size:13px;color:#d5dde0}
.ju-link{display:inline-block;margin-top:12px;color:var(--ju-accent);font-size:13px}
.ju-toast{position:fixed;left:50%;bottom:calc(var(--ju-bar-h) + 16px);transform:translate(-50%,16px);z-index:2147483647;max-width:calc(100vw - 32px);padding:10px 18px;border-radius:999px;background:#f3fffd;color:#062320;font-weight:600;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .2s,transform .25s;text-align:center}
.ju-toast.show{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){html.ju-editing [data-ju-field]{animation:none}.ju-sheet,.ju-scrim{transition:none}}
