:root{--ink:#172422;--muted:#64716c;--line:#dfe5df;--paper:#f4f6f2;--white:#fff;--green:#d5f77d;--deep:#18382d;--warn:#876019;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.btn{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:12px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-weight:600}button:hover,.btn:hover{border-color:#6f8e69;background:#f3f8ea}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #759534;outline-offset:4px}.primary{background:var(--green);border-color:var(--green)}.dark-btn{background:var(--ink);color:white;border-color:var(--ink)}.dark-btn:hover{background:var(--deep);color:white}.small{font-size:12px;padding:7px 12px}.ghost{background:transparent}.wide{width:100%}h1,h2,h3,h4,p{margin-top:0}h1{font-size:42px;line-height:1.2;letter-spacing:-1.4px}h2{font-size:25px;letter-spacing:-.6px}h3{font-size:18px}p{line-height:1.8;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:700;color:var(--muted)}.muted{color:var(--muted)}.logo{font-weight:900;letter-spacing:-2px;font-size:28px;display:flex;align-items:center;gap:10px}.logomark{display:inline-grid;place-items:center;background:var(--green);color:var(--ink);border-radius:11px;width:38px;height:38px;font-size:23px;letter-spacing:-3px;padding-right:3px}.logo small{font-size:10px;letter-spacing:1px;border:1px solid currentColor;border-radius:5px;padding:3px 5px;margin-left:2px;font-weight:600}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:var(--white);gap:20px}.toplinks{display:flex;align-items:center;gap:24px;font-size:13px}.toplinks a:hover{color:#51711e}.status{font-size:11px;border-radius:20px;padding:6px 10px;background:#edf5de;color:#436225;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.status.warn{background:#fff1d8;color:var(--warn)}.status.gray{background:#edf0ef;color:#61706c}.dot{height:6px;width:6px;border-radius:50%;background:currentColor}.portal{max-width:1230px;margin:auto;padding:55px 30px}.intro{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:30px}.intro p{max-width:510px;margin-bottom:0}.hero{padding:42px;border-radius:24px;background:var(--deep);color:white;display:grid;grid-template-columns:1.3fr 1fr;min-height:265px;position:relative;overflow:hidden}.hero h2{font-size:36px;line-height:1.3;max-width:480px;margin:15px 0}.hero p{color:#b9cbc1;max-width:480px;font-size:13px}.hero .eyebrow{color:#bdda9d}.hero-art{display:flex;align-items:center;justify-content:center;position:relative;min-height:160px}.orbit{position:absolute;width:210px;height:210px;border:1px solid #6a8e6b;border-radius:50%}.orbit.two{width:300px;height:300px;border-style:dashed;opacity:.4}.orb{width:110px;height:110px;background:var(--green);color:var(--deep);border-radius:32px;display:grid;place-items:center;font-size:47px;font-weight:900;transform:rotate(-10deg);box-shadow:0 20px 65px #081e2255}.art-tag{position:absolute;background:#f1f6e9;color:var(--ink);padding:12px 18px;border-radius:12px;font-size:12px;box-shadow:0 8px 24px #10291b33}.art-tag.a{top:20px;right:5px}.art-tag.b{bottom:5px;left:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin:35px 0 18px}.section-head h2{font-size:20px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.entry{border:1px solid var(--line);background:#fff;border-radius:20px;overflow:hidden;transition:transform .2s}.entry:hover{transform:translateY(-4px)}.entry-picture{height:155px;position:relative;display:flex;justify-content:center;align-items:center;background:#eaf0e3;overflow:hidden}.entry:nth-child(2) .entry-picture{background:#e5e9ef}.entry:nth-child(3) .entry-picture{background:#eeeae1}.entry-body{padding:24px}.entry-body p{font-size:12px;min-height:44px}.entry-body h3{margin:14px 0 8px}.entry-foot{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:650}.mini-phone{width:115px;height:175px;border:5px solid #223a2e;border-radius:20px;background:#f9fbf2;transform:rotate(-8deg) translateY(24px);padding:17px 10px;box-shadow:15px 15px 0 #afbe9f55}.mini-phone b{display:block;font-size:22px}.mini-bar{height:26px;background:var(--green);margin:10px 0;border-radius:5px}.mini-lines{height:5px;background:#d9e1d4;margin:8px 0;border-radius:5px}.mini-screen{width:210px;background:#fff;border:5px solid #3e4546;border-radius:9px;padding:12px;transform:rotate(4deg) translateY(10px)}.mini-grid{display:grid;grid-template-columns:45px 1fr;gap:10px}.doc-strip{display:flex;background:white;border:1px solid var(--line);border-radius:17px;padding:22px 24px;align-items:center;justify-content:space-between;gap:15px}.doc-strip p{font-size:12px;margin:4px 0 0}.doc-links{display:flex;gap:12px}.footer{border-top:1px solid var(--line);padding:22px 0;margin-top:34px;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.workspace{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:26px 20px;display:flex;flex-direction:column;gap:30px}.sidebar .logo{padding-left:8px}.sidebar nav{display:grid;gap:7px}.sidebar nav a,.side-button{padding:13px 14px;border-radius:10px;color:#67746d;display:flex;align-items:center;gap:12px;font-size:13px}.sidebar nav a.active,.side-button.active{background:#eaf1df;color:#243b20;font-weight:700}.sidebar nav a:hover{background:#f1f5ee}.nav-num{font-size:11px;opacity:.6;font-family:monospace}.sidebar-bottom{margin-top:auto;padding:16px 8px;font-size:11px;line-height:1.8;color:var(--muted)}.work-main{min-width:0}.work-header{padding:22px 34px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#ffffffb3;gap:20px}.work-header h1{font-size:22px;letter-spacing:-.4px;margin:6px 0 0}.work-content{padding:28px 34px}.preview-layout{display:grid;grid-template-columns:minmax(355px,1fr) 285px;gap:36px;align-items:start;max-width:1100px;margin:auto}.preview-stage{display:flex;justify-content:center;padding:5px 0 25px;min-width:0}.phone{width:390px;height:820px;border:7px solid #233129;border-radius:44px;box-shadow:0 22px 60px #1f382314;background:#f7f9f3;position:relative;overflow:hidden;flex-shrink:0;display:flex;flex-direction:column}.phone-status{height:39px;min-height:39px;font-size:11px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-weight:700}.phone-status:after{content:'';width:80px;height:21px;border-radius:0 0 12px 12px;position:absolute;top:0;left:calc(50% - 40px);background:#233129}.phone-body{padding:14px 20px 24px;overflow:auto;flex:1;min-height:0}.phone-head{display:flex;justify-content:space-between;align-items:center;margin:5px 0 25px}.phone-head .logo{font-size:24px}.phone h1{font-size:31px;letter-spacing:-1px;line-height:1.35}.phone h2{font-size:24px}.phone p{font-size:12px}.phone .eyebrow{font-size:10px}.phone-bottom{display:flex;justify-content:space-around;border-top:1px solid var(--line);padding:6px 8px 14px;background:#fff;min-height:68px}.phone-bottom button{border:0;flex-direction:column;gap:3px;padding:7px 18px;font-size:10px;min-width:70px;color:var(--muted)}.phone-bottom button.active{color:#284126;background:#eff6e1}.phone-bottom span{font-size:18px}.panel{border:1px solid var(--line);border-radius:16px;background:white;padding:21px;margin-bottom:17px}.panel h3{font-size:14px;margin-bottom:15px}.panel p,.panel li{font-size:12px;line-height:1.85;color:var(--muted)}.panel ul,.panel ol{padding-left:17px}.panel .btn{margin-top:10px}.scenario-list{display:grid;gap:7px}.scenario-list button{font-size:12px;justify-content:flex-start;font-weight:500}.scenario-list button.selected{background:#eaf3d8;border-color:#b8d48e}.notice{font-size:12px;line-height:1.8;background:#f3f5ed;border-radius:10px;padding:13px 15px;color:#68715b;margin:14px 0}.notice.amber{background:#fff5df;color:#876123}.mobile-card{background:white;border:1px solid #e4e9de;border-radius:17px;padding:18px;margin:14px 0}.mobile-card.dark{background:var(--deep);color:white;border:0}.mobile-card.dark p{color:#c2d4c3}.balance{font-size:40px;font-weight:700;letter-spacing:-2px;margin:10px 0}.balance small{font-size:12px;letter-spacing:0;font-weight:400}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.game-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.game-row:last-child{border-bottom:0}.game-icon{height:53px;width:53px;flex-shrink:0;border-radius:13px;background:#d7e9cd;display:grid;place-items:center;font-size:27px;color:#24462f}.game-icon.purple{background:#dedaf0;color:#63528e}.game-icon.gold{background:#f5e3b3;color:#836620}.game-row h4{font-size:13px;margin:0 0 5px}.game-row p{font-size:10px;margin:0}.game-row .small{margin-left:auto}.field{display:grid;gap:7px;margin-bottom:15px;min-width:0}.field label,.field>span{font-size:12px;font-weight:600}.field input,.field select,.field textarea,input,select,textarea{border:1px solid #d8dfd4;border-radius:9px;padding:11px 12px;min-height:44px;background:white;width:100%;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #91ad67;outline-offset:1px}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:17px;height:17px;min-height:17px;accent-color:#527230}input[type=radio]{width:17px;height:17px;min-height:17px;accent-color:#527230}.segmented{display:flex;padding:4px;background:#e9eee3;border-radius:10px;gap:4px;margin:16px 0}.segmented button{flex:1;border:0;background:transparent;font-size:12px;padding:9px}.segmented button.active{background:white;box-shadow:0 2px 5px #1d2b1610}.install-icon{margin:25px auto;width:83px;height:83px;border-radius:24px;background:var(--green);display:grid;place-items:center;font-size:34px;font-weight:900}.step{display:flex;gap:13px;align-items:center;margin:22px 0;font-size:12px;line-height:1.7}.step b{background:#e7efda;border-radius:50%;height:29px;width:29px;flex-shrink:0;display:grid;place-items:center}.plan{padding:20px;border:1px solid #b3c894;border-radius:16px;background:#f2f8e8;margin-bottom:15px}.plan h2{margin:16px 0}.state-icon{width:64px;height:64px;border-radius:50%;background:#e8f5d6;color:#477120;display:grid;place-items:center;font-size:29px;margin:22px auto}.center{text-align:center}.phone.game{background:#18232b;color:#e5ebee}.game .phone-body{padding:12px 17px}.game p{color:#a4b3bd}.game .phone-head{margin-bottom:22px}.game h2{font-size:21px}.game-tabs{display:flex;gap:8px;margin:18px 0}.game-tabs span{background:#2e3d47;padding:8px 12px;border-radius:20px;font-size:10px}.game-banner{height:145px;padding:20px;border-radius:16px;background:linear-gradient(115deg,#465d56,#899765);position:relative;overflow:hidden;margin-top:15px}.game-banner:after{content:'✦';position:absolute;right:15px;bottom:-30px;font-size:160px;color:#d7e9a566}.game-banner h2{font-size:27px;position:relative;z-index:1}.game-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.tile{height:143px;border-radius:14px;background:#465947;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:38px;gap:12px;color:#eef5dc}.tile b{font-size:12px}.tile:nth-child(2){background:#544c6e}.tile:nth-child(3){background:#775c36}.tile:nth-child(4){background:#345d68}.float-ball{position:absolute;right:12px;top:335px;background:var(--green);color:var(--deep);width:60px;height:60px;border-radius:50%;border:3px solid #f0ffce;box-shadow:0 6px 25px #0006;font-size:21px;font-weight:900;touch-action:none;z-index:12;padding:0;user-select:none}.badge{position:absolute;right:-4px;top:-5px;background:#fcfdf7;color:#32452b;border-radius:50%;font-size:11px;width:20px;height:20px;display:grid;place-items:center;border:1px solid #d1e7a7}.bubble{position:absolute;top:276px;right:14px;background:#f5f8eb;color:#243a28;max-width:236px;padding:10px 13px;border-radius:12px 12px 3px 12px;font-size:11px;line-height:1.6;z-index:10;box-shadow:0 5px 15px #0002;pointer-events:none}.floating-timer{position:absolute;right:12px;top:400px;background:#ebf8cd;color:#2f4228;border-radius:7px;padding:5px;font-size:10px;z-index:12}.widget-popover{position:absolute;z-index:20;filter:drop-shadow(0 8px 18px #0004)}.sheet{background:#f9fbf4;color:var(--ink);border:1px solid #dce5cd;border-radius:17px;padding:16px;width:100%;overflow:auto;overscroll-behavior:contain}.sheet p{color:var(--muted)}.sheet .row h3{margin:0}.sheet-foot{border-top:1px solid var(--line);padding-top:14px;display:flex;gap:8px;margin-top:18px}.sheet-foot a{flex:1;font-size:11px}.ecg{height:95px;display:flex;justify-content:center;align-items:center;color:#6a9640;font-size:47px;letter-spacing:-10px;animation:pulse 1s infinite}.game-machine{background:#2a3944;border:1px solid #566271;border-radius:15px;padding:30px 10px;text-align:center;font-size:42px;margin:30px 0}.game label{color:#d6e0e4}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{text-align:left;background:#f5f7f2;color:#65715e;font-weight:500;padding:14px 13px}td{padding:17px 13px;border-bottom:1px solid #edf0e9}td a,td button{color:#4c6e28}.admin-panel{background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:22px;overflow:hidden}.admin-panel-head{padding:20px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.admin-panel-head h3{margin:0;font-size:15px}.filters{padding:22px;display:grid;grid-template-columns:repeat(4,1fr);gap:0 16px}.filters .field{margin-bottom:14px}.filter-actions{padding:0 22px 20px;display:flex;gap:10px}.admin-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.admin-title h2{margin:0 0 7px}.admin-title p{font-size:12px;margin:0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.metric{background:white;border:1px solid var(--line);border-radius:14px;padding:22px}.metric p{font-size:12px;margin:0}.metric strong{font-size:30px;display:block;margin:12px 0 4px}.admin-form{padding:24px;max-width:850px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.condition{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0}.condition label.check{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px}.condition .form-grid{margin-top:16px}.and{font-size:11px;color:#5e772e;text-align:center;font-weight:700}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#20352c;color:white;padding:14px 23px;border-radius:12px;box-shadow:0 8px 30px #0002;max-width:90%;font-size:13px}.modal-backdrop{position:fixed;inset:0;background:#13271d66;z-index:70;display:grid;place-items:center;padding:25px}.modal{background:white;max-width:780px;width:100%;max-height:90vh;overflow:auto;border-radius:20px;padding:28px}.modal h2{font-size:22px}.modal pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f4e9;padding:18px;border-radius:12px;font-size:12px}.doc-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:50px;max-width:1200px;margin:40px auto;padding:0 25px}.doc-toc{position:sticky;top:25px;align-self:start;max-height:90vh;overflow:auto;font-size:12px;line-height:1.7}.doc-toc a{display:block;padding:6px 10px;border-left:2px solid #dce5d2;margin:4px 0}.doc-toc a:hover{background:#eaf0e0}.doc-article{background:white;padding:40px 45px;border:1px solid var(--line);border-radius:18px;line-height:1.85;min-width:0}.doc-article h1{font-size:30px}.doc-article h2{font-size:22px;border-top:1px solid var(--line);padding-top:25px;margin-top:35px;scroll-margin-top:25px}.doc-article h3{font-size:17px;margin-top:25px;scroll-margin-top:25px}.doc-article h4{font-size:14px}.doc-article p,.doc-article li{font-size:13px;color:#4c5950}.doc-article table{white-space:normal;line-height:1.7}.doc-article td,.doc-article th{padding:10px;font-size:12px;vertical-align:top}.doc-article code{background:#edf2e7;padding:2px 5px;border-radius:4px;font-size:12px}.doc-card{background:white;border:1px solid var(--line);border-radius:16px;padding:26px}.doc-card p{font-size:13px}.doc-card .btn{margin:8px 6px 0 0}@keyframes pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1150px){.workspace{grid-template-columns:210px 1fr}.work-content{padding:25px 20px}.preview-layout{grid-template-columns:1fr}.review-panel{max-width:600px;margin:auto;width:100%}.filters{grid-template-columns:repeat(3,1fr)}.phone{height:805px}}@media(max-width:760px){.topbar{height:auto;padding:17px 20px;flex-wrap:wrap}.toplinks{gap:15px;font-size:11px;flex-wrap:wrap}.portal{padding:30px 20px}.intro{display:block}.intro h1{font-size:34px}.intro p{margin-top:15px}.hero{grid-template-columns:1fr;padding:28px}.hero h2{font-size:29px}.hero-art{display:none}.cards{grid-template-columns:1fr}.entry-picture{height:130px}.doc-strip{display:block}.doc-links{flex-wrap:wrap;margin-top:15px}.workspace{display:block}.sidebar{padding:16px 18px;gap:15px;border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{white-space:nowrap;font-size:11px;padding:9px}.sidebar-bottom{display:none}.sidebar .eyebrow{display:none}.work-header{padding:18px;flex-wrap:wrap}.work-content{padding:20px 10px}.phone{width:min(390px,100%);border:0;border-radius:22px;height:810px;box-shadow:0 8px 30px #233d1b14}.phone-status:after{display:none}.preview-layout{display:block}.preview-stage{padding:0 0 22px}.review-panel{padding:0 8px}.filters{grid-template-columns:1fr 1fr;padding:16px}.form-grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr}.admin-title{gap:15px}.admin-title h2{font-size:22px}.doc-layout{display:block;padding:0 14px;margin-top:22px}.doc-toc{position:static;max-height:200px;margin-bottom:25px}.doc-article{padding:24px 20px}.footer{gap:15px;flex-wrap:wrap}.doc-article h1{font-size:26px}}@media print{.topbar,.doc-toc,.footer,.print-actions{display:none}.doc-layout{display:block;margin:0;padding:0}.doc-article{border:0;padding:0}body{background:white}}
.game .sheet label{color:var(--ink)}

/* Bubble and non-modal service panel share the ball's side anchor. */
#widget .bubble{border-radius:12px;overflow-wrap:anywhere}
#widget .bubble::after,.widget-popover::after{content:"";position:absolute;top:var(--anchor-y,30px);width:10px;height:10px;transform:translateY(-50%) rotate(45deg);background:#f9fbf4;pointer-events:none}
#widget .bubble::after{background:#f5f8eb}
[data-side="left"]::after{right:-5px}
[data-side="right"]::after{left:-5px}
.widget-popover .sheet h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}
.widget-popover .sheet p{overflow-wrap:anywhere}
.widget-popover .sheet .state-icon{width:48px;height:48px;font-size:24px;margin:15px auto}
.widget-popover .sheet .game-icon{width:36px;height:36px;font-size:22px}
.widget-popover .sheet .game-row{gap:8px;flex-wrap:wrap}
.widget-popover .sheet .game-row>div:nth-child(2){flex:1;min-width:90px}
.widget-popover .sheet .game-row button{margin-left:auto}
.widget-popover .sheet-foot{flex-wrap:wrap}
.widget-popover[data-compact="true"] .sheet{padding:12px}
.widget-popover[data-compact="true"] .sheet .game-icon{display:none}
.widget-popover[data-compact="true"] .sheet h2{font-size:16px}
.widget-popover[data-compact="true"] .sheet-foot a{flex-basis:100%}
.widget-popover .sheet input{min-width:0}

.float-ball:hover{background:var(--green);border-color:#f0ffce}
/* Signal activities: list first, progressive rule editor. */
.activity-toolbar{padding:20px;display:flex;gap:20px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.activity-summary-cell{white-space:normal;min-width:160px;max-width:270px;line-height:1.7;font-size:12px}
.activity-editor{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.activity-sections{min-width:0}.activity-review{position:sticky;top:20px;min-width:0}
.activity-section-body{padding:24px}.activity-section-body>.field:last-child{margin-bottom:0}
.step-number{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e8f1da;color:#536d2b;font-size:12px;margin-right:10px}
.site-check-list{display:grid;gap:9px}.site-choice,.reward-choice{display:flex;gap:12px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:11px;cursor:pointer;background:#fff}
.site-choice:has(input:checked),.reward-choice:has(input:checked){border-color:#91ae60;background:#f4f9ec}
.site-choice>span:nth-child(2),.reward-choice>span{flex:1;min-width:0}.site-choice strong,.reward-choice strong{font-size:13px;display:block}
.site-choice small,.reward-choice small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
.reward-options{display:grid;gap:10px}.field-help{font-size:11px;line-height:1.7;margin:12px 0 0;color:var(--muted)}
.activity-savebar{position:sticky;bottom:0;background:#fffffff5;border:1px solid var(--line);border-radius:13px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;z-index:5;box-shadow:0 -5px 20px #192d1410}
.activity-savebar>span{font-size:12px;color:var(--muted)}.form-error{background:#ffede7;color:#9a3e22;padding:15px;border-radius:10px;margin:15px 0}
.preview-label{font-size:10px!important;font-weight:700;color:#526439!important;margin:20px 0 5px}.activity-review ol{padding-left:18px;overflow-wrap:anywhere}.activity-review summary{font-size:12px;cursor:pointer}
.draft-banner{padding:17px 22px;border:1px solid #c8d9b0;border-radius:13px;display:flex;justify-content:space-between;gap:15px;align-items:center;background:#eff5e7;margin-bottom:20px}.draft-banner p{font-size:12px;margin:5px 0 0}.draft-banner strong{font-size:13px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1200px){.activity-editor{grid-template-columns:minmax(0,1fr)}.activity-review{position:static}.activity-review .panel{margin-bottom:12px}}
@media(max-width:760px){.activity-toolbar{flex-direction:column;align-items:stretch}.activity-section-body{padding:16px}.activity-section-body>.row{flex-wrap:wrap}.activity-savebar{flex-direction:column;align-items:stretch;position:static}.activity-savebar .row{flex-wrap:wrap}.site-choice{flex-wrap:wrap}.activity-sections .admin-panel-head{gap:10px;flex-wrap:wrap}.draft-banner{flex-wrap:wrap}}
.activity-toolbar .segmented{flex-shrink:0}.activity-toolbar .segmented button{white-space:nowrap;min-width:84px}
.activity-toolbar>.field{width:280px;max-width:100%}
.activity-section-body>.row>input{flex:1;min-width:130px;width:auto}
.activity-section-body>.row>button{flex-shrink:0;white-space:nowrap}
@media(max-width:760px){.activity-toolbar>.field{width:100%}.activity-toolbar .segmented button{min-width:0}}
.floating-timer{min-width:48px;height:24px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:14px}
.install-screen .phone-bottom{display:none}.install-screen .phone-body{display:flex;flex-direction:column}.install-screen .phone-body>.primary{margin-top:auto;margin-bottom:16px}.install-screen .install-icon{margin:40px auto 25px}
.site-multi{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:white;min-width:0}.site-multi legend{font-size:12px;font-weight:600;padding:0 5px}.site-multi-options{display:flex;flex-wrap:wrap;gap:9px 15px}.site-multi label{display:flex;gap:8px;align-items:center;font-size:12px;min-height:30px;cursor:pointer}.site-multi .site-actions{display:flex;align-items:center;gap:10px;margin-bottom:6px}.site-multi small{font-size:10px;color:var(--muted)}.filters .site-multi{grid-column:1/-1;margin-bottom:14px}.site-actions button{padding:3px 9px;min-height:30px;font-size:11px}.admin-form>.site-multi{margin-bottom:20px}

/* State variants retain the same hit area and positioning anchor. */
.float-ball{flex-direction:column;gap:1px}
.ball-symbol{display:flex;align-items:center;justify-content:center;line-height:1}
.ball-symbol svg{width:29px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ball-caption{font-size:9px;font-weight:700;line-height:1.3;white-space:nowrap;letter-spacing:0}
.float-ball[data-visual="script"]{background:#e1dbff;color:#493292;border-color:#f4efff;box-shadow:0 6px 25px #0006,0 0 15px #b69aff66}
.float-ball[data-visual="script"]:before{content:'';position:absolute;inset:-3px;border-radius:50%;border:3px solid transparent;border-top-color:#7552cd;border-bottom-color:#7552cd;animation:ball-orbit 1.8s linear infinite;pointer-events:none}
.float-ball[data-visual="script"] .ball-symbol{animation:ball-wave 1.4s ease-in-out infinite}
.float-ball[data-visual="points"]{background:#ffe3a3;color:#75450b;border-color:#fff3d6}
.float-ball[data-visual="balance"]{background:#ffd0c5;color:#8a3021;border-color:#fff0eb}
.ball-scenarios button{gap:12px;text-align:left}
.ball-scenarios small{display:block;font-size:10px;color:#68716e;margin-top:4px;font-weight:400}
.scene-swatch{width:22px;height:22px;flex-shrink:0;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #d7ddd8}
.scene-swatch.script{background:#ab90ea}.scene-swatch.points{background:#edb94e}.scene-swatch.balance{background:#ef9a85}
.ball-scenarios button.selected[data-scene="script"]{background:#f2edff;border-color:#ab90ea}
.ball-scenarios button.selected[data-scene="points"]{background:#fff5df;border-color:#d5ac54}
.ball-scenarios button.selected[data-scene="balance"]{background:#fff0eb;border-color:#df9b89}
.ball-state-note{font-size:11px;line-height:1.8;color:#59695f;background:#f3f5ef;padding:12px;border-radius:9px;margin-top:12px}
@keyframes ball-orbit{to{transform:rotate(360deg)}}
@keyframes ball-wave{50%{opacity:.6}}

@media(prefers-reduced-motion:reduce){.float-ball[data-visual="script"]:before{animation:none}}

/* v0.20: RTP settings and selected partner home */
.rtp-fields{border:0;padding:0;margin:0 0 20px;min-width:0}.rtp-fields legend{font-size:15px;font-weight:700;margin-bottom:20px}.rtp-fields p{font-size:12px}.rtp-error{color:#a0442d;min-height:20px}.companion-hero{padding:22px 18px 15px;border-radius:20px;background:var(--deep);color:#fff}.phone .companion-hero h1{font-size:27px;margin:17px 0 12px;letter-spacing:-.8px}.companion-hero em{font-style:normal;color:var(--green)}.phone .companion-hero p{color:#d0dfd5;line-height:1.8}.companion-features{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:22px;text-align:center}.companion-features>div{display:grid;gap:6px}.companion-features span{margin:auto;width:34px;height:34px;border:1px solid #658568;border-radius:50%;display:grid;place-items:center;color:var(--green);font-size:23px}.companion-features strong{font-size:11px}.companion-features small{font-size:10px;color:#c7d6c9}.phone .companion-signoff{font-size:11px;margin:19px 0 0;color:#e0eccb;letter-spacing:2px}.partner-heading{padding:25px 0 7px}.partner-heading h2{margin:8px 0 10px}.partner-heading h2 span{color:#557a29}.partner-heading p{line-height:1.8;margin:0 0 8px}.partner-heading small{font-size:10px;color:var(--muted)}.partner-card{background:white;border:1px solid #d9e3ce;border-radius:17px;padding:16px;margin:12px 0}.partner-brand{display:flex;align-items:center;gap:9px;min-width:0}.partner-brand .game-icon{width:35px;height:35px;font-size:22px;border-radius:10px}.partner-brand h3{margin:0;font-size:14px}.partner-tag{font-size:9px;padding:5px 7px;background:#edf4df;color:#49632e;border-radius:20px;white-space:nowrap}.partner-card.purple{border-color:#e2deec}.partner-card.gold{border-color:#e7dfc8}.partner-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:17px 0;gap:5px}.partner-stats>div{display:grid;gap:5px;padding-left:10px;border-left:1px solid var(--line)}.partner-stats>div:first-child{border:0;padding:0}.partner-stats strong{font-size:13px}.partner-stats span{font-size:10px;color:var(--muted)}.partner-model{font-size:11px;color:#526747;border-top:1px solid var(--line);padding:11px 0}.partner-card .primary{min-height:44px;font-size:12px}.phone .partner-pwa{text-align:center;font-size:10px;margin:8px 0 0;color:var(--muted)}
.phone .companion-hero{padding:16px}.phone .companion-hero h1{font-size:25px;line-height:1.3;margin:12px 0 8px}.phone .companion-hero p{margin:8px 0;line-height:1.6}.companion-features{margin-top:14px}.companion-features>div{gap:4px}.phone .companion-signoff{margin:13px 0 0}.partner-heading{padding-top:18px}.partner-heading h2{font-size:22px;margin:6px 0}.partner-heading p{line-height:1.6;margin-bottom:5px}

/* v0.21 event message editor */
.event-message{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0 0 16px}.event-message>.row{margin-bottom:16px}.event-message strong{font-size:13px}.event-message small{font-size:11px}.event-message button:disabled{opacity:.45;cursor:not-allowed}.event-source{white-space:pre-wrap;overflow-wrap:anywhere}.event-message textarea{min-height:90px}

.vip-benefits{list-style:none;padding:16px 0 0;margin:0;border-top:1px solid #56705e;display:grid;gap:15px}.vip-benefits li{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}.vip-benefits li span{color:var(--green)}
