@font-face{font-family:Abel;src:url('./assets/Abel-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:#101117;background:#e8ebf2;font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{display:flex;justify-content:center;align-items:center}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid #285ed4;outline-offset:3px}
.phone-shell{position:relative;width:min(100%,390px);height:min(100dvh,844px);overflow:hidden;background:#f6f7fb;container-type:inline-size;box-shadow:0 14px 50px #8891a342}
.screen{position:absolute;inset:0;background:#f6f7fb;overflow:hidden}
[hidden]{display:none!important}
.home-scroll{position:absolute;inset:0 0 79px;overflow:auto;scrollbar-width:none}
.home-scroll::-webkit-scrollbar,.detail-scroll::-webkit-scrollbar{display:none}
.home-status{position:relative;height:46px;background:url('./assets/home-reference.jpg') top center/100% auto no-repeat}
.status-time{position:absolute;left:10.3vw;left:10.3cqw;top:4.3vw;top:4.3cqw;width:11.8vw;width:11.8cqw;height:4.9vw;height:4.9cqw;display:flex;align-items:center;justify-content:center;background:#f5f6fa;color:#050505;font:600 4vw/1 -apple-system,BlinkMacSystemFont,Arial,sans-serif;font:600 4cqw/1 -apple-system,BlinkMacSystemFont,Arial,sans-serif;letter-spacing:-.1px;font-variant-numeric:tabular-nums}
.account{margin:14px 16px 0}
.account-line{display:flex;justify-content:space-between;align-items:center;white-space:nowrap;font-size:12px;line-height:17px}
.account-actions{display:flex;align-items:center;gap:10px;margin-top:11px}
.account-badge{height:21px;padding:0 5px;display:flex;align-items:center;gap:4px;border-radius:5px;background:linear-gradient(110deg,#548cf7,#436cf2);color:white;font-size:11px;letter-spacing:.5px}
.account-badge svg{width:14px;height:14px;fill:none;stroke:#d8e6ff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.settings{width:20px;height:20px;margin-left:auto;display:flex}
.settings svg{width:19px;height:19px;fill:none;stroke:#111;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.membership{height:179px;margin:19px 16px 0;position:relative;border-radius:5px;background:linear-gradient(121deg,#8edcfb 0%,#7ac3f3 49%,#5d98e4 100%);box-shadow:0 12px 23px #94c8fa35;overflow:visible}
.level-mark{position:absolute;top:8px;left:32px;font-size:66px;font-weight:800;font-family:Arial,sans-serif;font-style:italic;letter-spacing:-6px;color:#56b9eb;-webkit-text-stroke:1px #b9eaff;text-shadow:0 2px 4px #6eb6ee}
.diamond-art{position:absolute;z-index:1;width:28.2vw;width:28.2cqw;height:28.5vw;height:28.5cqw;right:4.1vw;right:4.1cqw;top:-20px;background-image:url('./assets/home-reference.jpg');background-size:100vw auto;background-size:100cqw auto;background-position:-62.3vw -27.4vw;background-position:-62.3cqw -27.4cqw;background-repeat:no-repeat;clip-path:polygon(54% 0,100% 54%,40% 100%,0 37%)}
.membership-bottom{position:absolute;left:30px;right:31px;bottom:30px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.level-progress{width:51%;font-size:10px;color:#55a5df;white-space:nowrap}
.progress-track{height:5px;margin-top:4px;border-radius:10px;background:#d4f4ff;overflow:hidden}
.progress-track i{display:block;width:92%;height:100%;border-radius:10px;background:#2ea3eb}
.growth{padding:7px 19px;border-radius:30px;background:#94dafaad;color:#eefaff;font-size:14px;white-space:nowrap}
.progress-panels{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:31px 29px 0;text-align:center}
.progress-panel{min-width:0}
.ring{width:100%;aspect-ratio:1;border-radius:50%;padding:8px;position:relative;display:grid;place-items:center;filter:drop-shadow(0 0 14px #a6a7ff88)}
.ring-blue{background:conic-gradient(from 208deg,transparent 0deg,#a7bafa99 18deg,#7062ee 64deg,#5143ec 150deg,#6e72ec 242deg,#a6b6fa22 304deg,transparent 327deg)}
.ring-orange{filter:drop-shadow(0 0 14px #ffc07f99);background:conic-gradient(from 208deg,transparent 0deg,#ffdf71a8 22deg,#ffd219 64deg,#ff7800 150deg,#ff941d 242deg,#ffdf6022 304deg,transparent 327deg)}
.ring:before{content:"";position:absolute;inset:8px;border-radius:50%;background:#eef1fb}
.ring-middle{position:relative;width:100%;height:100%;border:2px solid #728cf2;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 16px #adc5f5}
.ring-orange .ring-middle{border-color:#f8cf30;box-shadow:inset 0 0 16px #ffd59d}
.ring-middle:after{content:"";position:absolute;bottom:-7px;left:6%;right:6%;height:37%;background:linear-gradient(0deg,#f6f7fb 5%,#f6f7fb00);border-radius:50%}
.ring-center{position:relative;z-index:1;width:58%;aspect-ratio:1;border-radius:50%;border:2px solid #5d85ee;display:grid;place-items:center;background:radial-gradient(circle,#e2edff 4%,#cfdbff 95%);box-shadow:inset 0 1px 9px #83a9f9;font-weight:700;font-family:Arial,sans-serif;font-size:20px;color:#4e7fea}
.ring-orange .ring-center{border-color:#f77f1f;background:radial-gradient(circle,#ffecd8,#ffe0be);box-shadow:inset 0 1px 9px #ffc187;color:#e87318}
.progress-copy{display:flex;flex-direction:column;gap:4px;margin-top:16px;font-size:11px;line-height:14px;color:#5585df;white-space:nowrap}
.orange-panel .progress-copy{color:#e97829}
.next-level{margin-top:9px;padding:5px 1px;border-radius:4px;background:linear-gradient(100deg,#6254fb,#3b70f8);box-shadow:0 4px 10px #7183fc38;color:white;font-size:11px;white-space:nowrap}
.orange-panel .next-level{background:linear-gradient(100deg,#ffca0b,#ff7812);box-shadow:0 4px 10px #ffc1444d}
.cooperation-entry{position:relative;display:flex;align-items:center;width:calc(100% - 72px);height:56px;margin:20px 36px 0;padding:0 14px;border:0;border-radius:20px;background:linear-gradient(110deg,#8eb1fa,#c2b5d9 57%,#ffd0b8);color:white;text-align:left;font-size:14px;font-weight:600;overflow:hidden}
.cooperation-entry>span:first-child{position:relative;z-index:1}
.people-art{position:absolute;left:25%;top:0;width:19vw;width:19cqw;height:15vw;height:15cqw;background-image:url('./assets/home-reference.jpg');background-size:100vw auto;background-size:100cqw auto;background-position:-29vw -154.6vw;background-position:-29cqw -154.6cqw;background-repeat:no-repeat;-webkit-mask-image:radial-gradient(ellipse 60% 65% at 50% 55%,#000 42%,transparent 100%);mask-image:radial-gradient(ellipse 60% 65% at 50% 55%,#000 42%,transparent 100%)}
.entry-arrow{position:absolute;right:19px;width:10px;height:10px;border-right:2px solid white;border-top:2px solid white;transform:rotate(45deg)}
.feature-panel{display:grid;grid-template-columns:repeat(4,1fr);height:63px;margin:20px 16px 0;background:#fff;border-radius:11px;align-items:center}
.feature-panel>div{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.feature-panel svg{width:21px;height:21px;fill:none;stroke:#4e83e8;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-nav-spacer{height:12px}
.bottom-nav{position:absolute;bottom:23px;left:0;right:0;height:56px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:#f6f7fb}
.bottom-nav>div{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:#838488}
.bottom-nav svg{width:21px;height:21px;fill:none;stroke:#67686c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav .home-nav-button{height:40px;width:72px;justify-self:center;justify-content:center;border-radius:15px;background:#fff;box-shadow:0 6px 12px #2427334d}
.home-nav-button svg{width:23px;height:23px}
.bottom-nav .active-nav{color:#3988e2}
.active-nav svg{fill:#4584ea;stroke:#4584ea}
.home-indicator,.detail-indicator{position:absolute;bottom:0;left:0;right:0;height:23px;display:grid;place-items:center;background:#f6f7fb}
.home-indicator span,.detail-indicator span{display:block;width:38%;height:5px;border-radius:4px;background:#090909}

.detail-status{position:relative;height:44px;background:#f6f7fb}
.detail-status .status-time{left:21px;top:14px;width:54px;height:18px;background:transparent;color:#000;font:500 15px/18px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:-.3px}
.detail-status .status-cellular,.detail-status .status-wifi,.detail-status .status-battery{position:absolute;display:block;top:17.33px}
.detail-status .status-cellular{right:64px}
.detail-status .status-wifi{right:43.65px}
.detail-status .status-battery{right:14.34px}
.detail-nav{position:relative;height:42px;display:flex;justify-content:center;background:#f6f7fb}
.detail-nav h1{position:absolute;top:9px;margin:0;font:400 16px/normal Abel,"PingFang SC","Microsoft YaHei",sans-serif;color:#000002}
.back-button{position:absolute;left:0;top:0;bottom:0;width:48px;display:flex;align-items:center;padding:0 0 0 16px;border:0;background:none}
.back-button img{display:block;transform:scaleX(-1)}
.detail-scroll{position:absolute;top:86px;bottom:30px;left:0;right:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.detail-content{padding:0 16px 12px}
.circle-summary{height:142px;position:relative;overflow:hidden;border-radius:11px;background:linear-gradient(121.03510977465302deg,#4f6aed 19.956%,#7677f6 94.982%);color:#fff}
.summary-pattern{position:absolute;top:0;right:1px;pointer-events:none}
.circle-title{position:absolute;left:14px;top:5px;padding:0;border:0;background:transparent;color:#fff;font-size:20px;line-height:27px;font-weight:600;letter-spacing:-.8px;touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.circle-main{position:absolute;top:36px;left:14px;right:0;display:grid;grid-template-columns:113px 1fr}
.circle-main div,.circle-totals div,.stat-grid div{display:flex;flex-direction:column;gap:4px}
.circle-main div{gap:5px}
.circle-main div:nth-child(2) span{transform:translateY(1px)}
.circle-main span,.circle-totals span{color:#b1c4f5;font-size:11px;line-height:15px}
.circle-main strong{font:700 19px/22px Arial,sans-serif}
.circle-totals{position:absolute;left:15px;right:15px;bottom:9px;height:46px;padding:7px 18px 4px;border-radius:3px;background:#a9b3ffa6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.circle-totals div{gap:2px;min-width:0}
.circle-totals span{color:#c3d1fe;white-space:nowrap;letter-spacing:-.3px}
.circle-totals strong{font:400 11px/14px Arial,sans-serif;color:#fff;white-space:nowrap}
.circle-totals div:nth-child(2){text-align:center;transform:translateX(10px)}
.circle-totals div:last-child{text-align:right}
.stat-card{height:91px;margin-top:7px;border-radius:11px;position:relative;color:white;overflow:hidden}
.direct-stat{background:linear-gradient(90deg,#4986fb,#4e8efc)}
.indirect-stat{background:linear-gradient(90.06748616647081deg,#6d84e1 0%,#8aa0f5 123.74%)}
.stat-card h2{position:absolute;top:6px;left:14px;margin:0;font-size:14px;font-weight:400;line-height:19px}
.stat-grid{position:absolute;left:14px;right:14px;top:35px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.stat-grid div{gap:14px;min-width:0}
.stat-grid span{font-size:14px;line-height:17px;color:#b1c4f5;white-space:nowrap;letter-spacing:-.42px}
.stat-grid strong{font:700 14px/16px Arial,sans-serif;color:white}
.stat-grid div:nth-child(2){align-items:center;text-align:center;transform:translateX(3.5px)}
.stat-grid div:last-child{align-items:flex-end;text-align:right}
.indirect-stat .stat-grid div:not(:first-child) strong{transform:translateY(-1px)}
.tabs{display:flex;justify-content:center;gap:22px;margin-top:24px}
.tabs button{border:0;background:none;padding:0;min-height:25px;font-size:14px;line-height:19px;color:#8c8c91;font-weight:400}
.tabs button[aria-selected="true"]{color:#497ff2;font-weight:700}
.partners{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin-top:14px}
.partner-card{height:118px;min-width:0;position:relative;overflow:hidden;border-radius:5px;background:linear-gradient(142.64214256248238deg,#f9fafe 6.0401%,#d8e3ff 94.478%);touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
.partner-top{position:absolute;top:7px;left:9px;right:4px;height:14px;display:flex;align-items:flex-start;gap:4px;white-space:nowrap}
.partner-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 9px/14px Abel,"PingFang SC","Microsoft YaHei",sans-serif;color:#0f1118;letter-spacing:.27px}
.partner-top.has-badge .partner-name{max-width:44px}
.partner-top.wide-name .partner-name{max-width:none;flex:1}
.partner-name.compact{font-size:9px;letter-spacing:0}
.partner-top.wide-name .vip-badge{left:auto;right:0;top:20px}
.vip-badge{position:absolute;left:44px;top:.71px;display:block;flex:none}
.vip-badge-generated{width:39.5px;height:13.2861px}
.vip-mark{position:absolute;z-index:1;left:0;top:-2px;color:#62a4f3;font:900 italic 17px/16px Arial,sans-serif;letter-spacing:-2px;transform:skewX(-8deg)}
.vip-pill{position:absolute;left:12px;right:0;top:1px;height:11px;padding-left:3px;border-radius:0 6px 6px 0;clip-path:polygon(24% 0,100% 0,100% 100%,0 100%);background:linear-gradient(90deg,#629fe7,#4577b5);color:#faf8f9;text-align:center;font:700 italic 9px/11px Arial,sans-serif}
.partner-details{position:absolute;top:27px;left:9px;display:flex;flex-direction:column;font-size:10px;line-height:14px}
.partner-details .label{color:#8d919b}
.partner-details .value{color:#4f81f9;margin:1px 0 6px}
.partner-decor{position:absolute;right:0;bottom:0;pointer-events:none}
.no-more{height:44px;display:flex;align-items:center;justify-content:center;gap:10px;color:#a7abb5;font-size:11px;visibility:hidden}
.no-more.visible{visibility:visible}
.no-more i{display:block;width:26px;height:1px;background:#d4d8e0}
.detail-indicator{height:30px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7px}
.detail-indicator span{width:42.4%}
.config-scroll{position:absolute;top:86px;bottom:94px;left:0;right:0;overflow:auto;padding:0 16px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.config-intro,.config-note{margin:12px 3px;color:#737b8e;font-size:12px;line-height:1.6}
.config-legacy{margin:10px 0;padding:10px 12px;border-radius:8px;background:#fff7e7;color:#896128;font-size:12px;line-height:1.6}
.config-card{margin:10px 0;padding:14px;border-radius:12px;background:#fff;box-shadow:0 3px 14px #596e9a0c}
.config-card h2{margin:0 0 12px;color:#273653;font-size:15px;line-height:20px}
.config-grid,.person-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 10px}
.config-card label,.person-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#66728a;font-size:11px;line-height:16px}
.config-card input,.config-card select{width:100%;min-width:0;height:36px;padding:0 9px;border:1px solid #e2e7f0;border-radius:7px;background:#f9faff;color:#202a3b;font:400 13px/normal -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;outline:none}
.config-card input:focus,.config-card select:focus{border-color:#6a94f8;box-shadow:0 0 0 2px #6a94f81c}
.config-card input::placeholder{color:#b1b9c8}
.partner-group summary{display:flex;align-items:center;justify-content:space-between;list-style:none;color:#273653;font-size:15px;font-weight:600;cursor:pointer}
.partner-group summary::-webkit-details-marker{display:none}
.partner-group summary span{margin-left:auto;margin-right:9px;color:#8992a4;font-size:12px;font-weight:400}
.partner-group summary::after{content:"";width:8px;height:8px;border-right:1.5px solid #8c97aa;border-bottom:1.5px solid #8c97aa;transform:rotate(45deg) translateY(-2px)}
.partner-group[open] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.partner-group[open]>.config-grid{margin-top:14px}
.partner-editor-list{display:grid;gap:10px;margin-top:13px}
.person-editor{padding:10px;border:1px solid #eef1f7;border-radius:9px;background:#f9faff}
.person-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#4b5d7d;font-size:12px;font-weight:600}
.person-remove{padding:2px 3px;border:0;background:none;color:#dd6a70;font-size:12px}
.person-fields input,.person-fields select{background:#fff}
.add-partner{width:100%;margin-top:10px;padding:9px 4px;border:1px dashed #8faefa;border-radius:7px;background:#f8faff;color:#4e7fea;font-size:12px}
.config-file-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.config-file-actions button,.config-file-actions .import-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid #d9e1f0;border-radius:7px;background:#fff;color:#596983;font-size:12px;cursor:pointer}
.import-button input{position:absolute;width:1px;height:1px;opacity:0}
.config-message{min-height:18px;margin:4px;color:#527de5;font-size:12px;line-height:18px}
.config-message.error{color:#c7505b}
.config-end{height:8px}
.config-save-bar{position:absolute;bottom:30px;left:0;right:0;height:64px;padding:10px 16px;background:#f6f7fb;border-top:1px solid #e9edf4;display:flex;gap:9px}
.config-save-bar button{height:42px;border:0;border-radius:9px;background:linear-gradient(100deg,#5b79f3,#438bf8);color:#fff;font-size:14px;font-weight:600;flex:1}
.config-save-bar button:first-child{flex:0 0 100px;background:#fff;border:1px solid #d9e3f6;color:#4e7fea}
.edit-overlay{position:absolute;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#1e2d4a73}
.edit-dialog{width:100%;max-width:340px;max-height:calc(100% - 40px);overflow:auto;padding:20px 18px 18px;border-radius:16px;background:#fff;box-shadow:0 14px 45px #1b2e5570}
.edit-dialog h2{margin:0;color:#253556;font-size:17px;line-height:23px}
.edit-intro{margin:6px 0 15px;color:#8290a5;font-size:12px;line-height:18px}
.edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.edit-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#66728a;font-size:12px;line-height:17px}
.edit-fields input{width:100%;min-width:0;height:38px;padding:0 9px;border:1px solid #e2e7f0;border-radius:7px;background:#f9faff;color:#202a3b;font:400 14px/normal -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;outline:none}
.edit-fields input:focus{border-color:#6a94f8;box-shadow:0 0 0 2px #6a94f81c}
.edit-level{margin:12px 0 0;color:#5d80d3;font-size:12px;line-height:18px}
.edit-message{min-height:18px;margin:3px 0 8px;color:#c7505b;font-size:12px;line-height:18px}
.edit-actions{display:flex;gap:10px}
.edit-actions button{height:40px;flex:1;border:1px solid #dce5f4;border-radius:8px;background:#fff;color:#61708c;font-size:14px}
.edit-actions button[type="submit"]{border:0;background:linear-gradient(100deg,#5b79f3,#438bf8);color:#fff;font-weight:600}
@media(max-width:600px){body{background:#f6f7fb}.phone-shell{width:100%;height:100dvh;box-shadow:none}}
@media(max-width:340px){.account-line{font-size:11px}.progress-panels{margin-left:22px;margin-right:22px;gap:20px}.people-art{left:33%}.stat-grid span{font-size:12px}.partner-name{font-size:8px}.partner-name.compact{font-size:8px}.partner-top{gap:2px}.vip-badge{width:34px;height:auto}}

/* On real phones the operating system supplies the status and navigation bars. */
html.system-ui{--system-safe-top:env(safe-area-inset-top,0px);--system-safe-bottom:env(safe-area-inset-bottom,0px)}
html.system-ui body{align-items:flex-start}
html.system-ui .phone-shell{width:100%;height:100vh;height:100dvh;max-height:100%;box-shadow:none}
html.system-ui .home-status,html.system-ui .home-indicator,html.system-ui .detail-indicator{display:none}
html.system-ui .home-scroll{top:var(--system-safe-top);bottom:calc(56px + var(--system-safe-bottom))}
html.system-ui .bottom-nav{bottom:var(--system-safe-bottom)}
html.system-ui .detail-status{height:var(--system-safe-top)}
html.system-ui .detail-status>*{display:none}
html.system-ui .detail-scroll{top:calc(42px + var(--system-safe-top));bottom:var(--system-safe-bottom)}
html.system-ui .config-scroll{top:calc(42px + var(--system-safe-top));bottom:calc(64px + var(--system-safe-bottom))}
html.system-ui .config-save-bar{bottom:var(--system-safe-bottom)}
html.system-ui .edit-overlay{padding-top:max(20px,var(--system-safe-top));padding-bottom:max(20px,var(--system-safe-bottom))}

/* Older Safari needs viewport-unit fallbacks for the artwork in the desktop preview. */
@supports not (width:1cqw){
  @media(min-width:601px){
    html:not(.system-ui) .home-status .status-time{left:40.17px;top:16.77px;width:46.02px;height:19.11px;font-size:15.6px}
    html:not(.system-ui) .diamond-art{width:109.98px;height:111.15px;right:15.99px;background-size:390px auto;background-position:-242.97px -106.86px}
    html:not(.system-ui) .people-art{width:74.1px;height:58.5px;background-size:390px auto;background-position:-113.1px -602.94px}
  }
}
