/* app.css */
@charset "UTF-8";
:root{--ink:#203c36;--muted:#6e7f79;--green:#176b57;--soft:#edf3ef;--line:#e2e9e4;--paper:#fff;--bg:#f5f7f3;--orange:#c96a3e;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.app-ui{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}body.app-ui a{color:var(--green);text-decoration:none}body.app-ui img{max-width:100%}body.app-ui button,body.app-ui input,body.app-ui select,body.app-ui textarea{font:inherit}body.app-ui button,body.app-ui a,body.app-ui input,body.app-ui select{touch-action:manipulation}body.app-ui :focus-visible{outline:3px solid #c18a35;outline-offset:4px}body.app-ui [hidden]{display:none!important}.skip-link{position:fixed;top:-100px;left:16px;background:white;padding:12px;z-index:100}.skip-link:focus{top:12px}
.app-header{height:88px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);position:relative;z-index:20}.header-inner{max-width:1280px;margin:auto;height:100%;padding:0 36px;display:flex;align-items:center;gap:44px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink)!important;font-weight:750;font-size:21px;white-space:nowrap;line-height:1.2}.brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:7px;font-weight:400}.brand-mark{height:43px;width:43px;border-radius:13px;background:var(--green);color:#fff;font-size:21px;display:flex;align-items:center;justify-content:center;position:relative;font-weight:800}.brand-mark>span{position:absolute;bottom:-3px;left:-4px;background:#f4dfa0;color:#17613f;font-size:11px;border-radius:4px;width:16px;height:16px;line-height:16px;text-align:center}.desktop-nav{display:flex;align-items:center;gap:26px;flex:1;height:100%}.desktop-nav a{height:100%;display:flex;align-items:center;color:var(--muted)!important;font-size:14px;position:relative;white-space:nowrap}.desktop-nav a.current{color:var(--green)!important;font-weight:650}.desktop-nav a.current:after{content:"";height:3px;background:var(--green);position:absolute;bottom:0;width:24px;left:calc(50% - 12px);border-radius:3px}.header-action{font-size:12px;white-space:nowrap}.header-action span{margin-left:12px}
body.app-ui main{width:calc(100% - 72px);max-width:1208px;padding:30px;margin:32px auto;background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0}body.app-ui main h1{font-size:28px;letter-spacing:-1px;line-height:1.35;margin:24px 0}body.app-ui main h2{font-size:19px;margin:26px 0 14px}body.app-ui main h3{font-size:16px}body.app-ui main>nav,body.app-ui main .top{display:flex;gap:10px 20px;flex-wrap:wrap;justify-content:flex-start;font-size:13px;border-bottom:1px solid var(--line);padding-bottom:16px}body.app-ui main>nav a,body.app-ui main .top a{min-height:36px;display:inline-flex;align-items:center}body.app-ui .muted,body.app-ui .note{color:var(--muted);font-size:12px;line-height:1.9}body.app-ui .notice{padding:14px 18px;border-radius:12px;font-size:13px;border:1px solid #ead7ab;background:#fff8e9;line-height:1.8}body.app-ui .notice.recent{background:#eef8f1;border-color:#c8e3d0}body.app-ui .balls{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}body.app-ui .ball{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;background:var(--green);color:white;font-size:18px;font-weight:700;box-shadow:0 3px 0 #124d40}body.app-ui button{padding:10px 16px;min-height:44px;background:white;border:1px solid var(--line);color:var(--ink);border-radius:9px;cursor:pointer}body.app-ui button:hover{border-color:var(--green);background:var(--soft)}body.app-ui button[type=submit],body.app-ui form>button:not([type=button]){background:var(--green);color:white;border-color:var(--green)}body.app-ui select,body.app-ui input:not([type=hidden]):not([type=checkbox]):not([type=radio]),body.app-ui textarea{max-width:100%;min-height:44px;padding:9px 12px;border-radius:9px;border:1px solid #d5dfd8;background:white;color:var(--ink);font-size:16px}body.app-ui label{font-size:13px;color:var(--muted)}body.app-ui form#plan-form,body.app-ui form#filters{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;background:#f6f8f5;padding:18px;border-radius:14px;margin:20px 0}body.app-ui form#plan-form label,body.app-ui form#filters label{display:flex;flex-direction:column;gap:6px;flex:1 1 130px;min-width:0}body.app-ui form#plan-form label select{width:100%}body.app-ui table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.7}body.app-ui td,body.app-ui th{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left}body.app-ui th{color:var(--muted);background:#f5f8f4;font-weight:500;white-space:nowrap}body.app-ui .table,body.app-ui .table-wrap,body.app-ui .responsive-table{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}body.app-ui #plan-list td:nth-child(4){min-width:150px;word-break:break-word}body.app-ui .plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}body.app-ui .plans>button{padding:18px 12px;text-align:left}body.app-ui .plans>button:hover{background:var(--soft)}body.app-ui .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}body.app-ui .fields label{display:flex;flex-direction:column;gap:7px}body.app-ui #detail>h3{border-top:1px solid var(--line);padding-top:24px}body.app-ui #detail .table{margin:16px 0 24px}body.app-ui .roads{display:flex;gap:6px;overflow:auto}body.app-ui .road{display:flex;flex-direction:column;gap:4px}body.app-ui .bead{background:#e2efe7;width:28px;height:28px;border-radius:50%;text-align:center;line-height:28px;display:block}body.app-ui .hit{background:var(--green);color:white;border-radius:50%;padding:5px}body.app-ui .miss{color:#a9b5ae}
body.app-ui main.home-layout{border:0;background:transparent;padding:0;margin-top:30px}.welcome{background:#e9efdf;min-height:300px;border:1px solid #dce4d2;border-radius:20px;display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden;position:relative;padding:36px 44px}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:650;color:#667b6b}body.app-ui .welcome h1{font-size:38px;letter-spacing:-1.6px;line-height:1.3;margin:13px 0 12px}.welcome p{font-size:13px;line-height:1.8;margin:0 0 22px;color:#64725f}.primary-link{display:inline-flex;gap:28px;align-items:center;background:var(--green);color:white!important;padding:11px 18px;border-radius:8px;font-size:13px}.quiet-link{font-size:12px;margin-left:18px}.hero-visual{position:relative;min-height:230px}.orbit{width:330px;height:150px;border:1px solid #c9d4ba;border-radius:50%;position:absolute;top:45px;left:30px;transform:rotate(-25deg)}.orbit-two{transform:rotate(30deg);width:300px;height:150px;left:45px;top:50px}.hero-ball{position:absolute;width:100px;height:100px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:52px;font-weight:500;box-shadow:10px 18px 22px #344e2522}.hero-ball.one{background:#f9fbef;left:38px;top:80px;color:#7b936d;transform:rotate(-15deg)}.hero-ball.two{background:#236c50;left:142px;top:17px;color:#f7f6dc;transform:rotate(12deg)}.hero-ball.three{background:#e5bc77;left:236px;top:94px;color:#655233;transform:rotate(-10deg)}.visual-label{position:absolute;bottom:0;left:135px;color:#7d8b70;font-size:11px;letter-spacing:4px}.visual-cross{position:absolute;top:3px;right:12px;color:#94a27e;font-size:27px;font-weight:200}.announcement{display:flex;gap:15px;background:#fff9e8;padding:14px 20px;border:1px solid #eddfba;border-radius:12px;margin-top:18px;font-size:13px}.announcement>span{font-weight:bold;white-space:nowrap}.banner-ad{display:block;margin-top:16px}.banner-ad img{border-radius:12px;width:100%;height:auto}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 32px}.quick-grid>a{display:flex;align-items:center;gap:14px;padding:20px;background:white;border:1px solid var(--line);border-radius:13px}.quick-grid i{font-style:normal;width:42px;height:42px;border-radius:12px;background:#edf3eb;font-size:26px;display:flex;align-items:center;justify-content:center}.quick-grid strong{font-size:14px;color:var(--ink);font-weight:600}.quick-grid small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.quick-grid b{margin-left:auto;font-weight:400}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.catalog-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}body.app-ui .section-heading h2{margin:6px 0 0;font-size:23px}.search-field{display:flex;align-items:center;gap:6px;background:#f5f7f3;border:1px solid var(--line);border-radius:8px;padding:0 10px;max-width:200px}.search-field>span{font-size:24px}body.app-ui input#lottery-search{background:transparent;border:0;font-size:12px;width:140px;min-height:38px;padding:8px 0}.category-tabs{display:flex;gap:6px;overflow:auto;white-space:nowrap;padding:22px 0 18px;border-bottom:1px solid var(--line);scrollbar-width:none}body.app-ui .category-tabs button{font-size:12px;padding:8px 13px;border:0;min-height:36px;background:transparent;flex-shrink:0;color:var(--muted)}body.app-ui .category-tabs button.selected{background:var(--green);color:white}.lottery-category{margin-top:23px}.lottery-category h3{font-size:14px!important;margin:0 0 12px;display:flex;align-items:center;gap:12px}.lottery-category h3>span{font-size:10px;color:#96a297;font-weight:400}.lottery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lottery-card{display:flex;align-items:center;gap:12px;background:#fafbf8;border:1px solid #eaf0e6;border-radius:10px;padding:14px;min-width:0;transition:border-color .15s,background .15s}.lottery-card:hover{border-color:#a4bba8;background:#f0f5ed}.lottery-card img{width:38px;height:38px;object-fit:contain}.lottery-card strong{display:block;font-size:13px;font-weight:600;color:var(--ink)}.lottery-card small{display:block;font-size:10px;color:#839082;margin-top:4px}.card-arrow{margin-left:auto;font-size:13px;color:#92a28c}.aside-card{padding:24px;background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px}body.app-ui .aside-card h2{font-size:18px;margin:7px 0 19px}.aside-card>a{display:flex;align-items:center;gap:13px;padding:12px 0;border-top:1px solid var(--line);font-size:12px;color:var(--ink)!important}.aside-card>a>span{color:#a0ad9c;font-size:10px}.aside-card>a>b{margin-left:auto;font-weight:400}.aside-card>a.all-tools{font-size:11px;color:var(--green)!important;margin-top:12px;padding-bottom:0}.info-card{background:#ecefe6;border-color:#dce3d6}.info-symbol{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #a0b294;border-radius:50%;font:italic 19px Georgia;color:#668357}body.app-ui .info-card h2{font-size:16px;line-height:1.6;margin-top:18px}.info-card p{font-size:12px;color:#7b8773;line-height:1.9}.info-card a{border:0;padding-bottom:0;color:var(--green)!important}.app-footer{max-width:1208px;margin:32px auto;padding:22px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.app-footer nav{display:flex;gap:20px;flex-wrap:wrap}.app-footer p{margin:5px 0}.mobile-dock,.mobile-only{display:none}
/* Adapt retained number-combination tools without changing their calculations. */
body.app-ui.legacy-tool #header,body.app-ui.legacy-tool .header_mt #foot,body.app-ui.legacy-tool .footer_nav{display:none!important}body.app-ui.legacy-tool .wrapper,body.app-ui.legacy-tool .wap_body{width:calc(100% - 48px)!important;max-width:1208px!important;margin:24px auto!important;min-width:0!important}body.app-ui.legacy-tool .header_mt{padding-top:0!important}body.app-ui.legacy-tool .tool_item{padding:16px 22px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:none;margin-bottom:18px}body.app-ui.legacy-tool .tool_ul{border-top:1px solid var(--line)}body.app-ui.legacy-tool .tool_li{padding:20px 4px;width:25%}body.app-ui.legacy-tool .tool_li:empty{display:none}body.app-ui.legacy-tool .tool_li:before,body.app-ui.legacy-tool .tool_li:after{display:none}body.app-ui.legacy-tool .tool_li a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px}body.app-ui.legacy-tool .tool_li img{width:32px;height:32px}body.app-ui.legacy-tool .tool_li span{font-size:14px}body.app-ui.legacy-tool .a_title{padding-bottom:15px}body.app-ui.legacy-tool .layui-layer{max-width:calc(100vw - 24px)}body.app-ui.legacy-tool .layui-layer-content{max-width:100%;overflow:auto}body.app-ui.legacy-tool .layui-btn{line-height:normal;height:auto;min-height:40px}body.app-ui.legacy-tool textarea{width:100%;min-height:100px}body.app-ui.legacy-tool .app-footer{width:calc(100% - 48px)}
@media(min-width:1440px){.lottery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.header-inner{gap:26px;padding:0 24px}.desktop-nav{gap:18px}.header-action{display:none}body.app-ui main{width:calc(100% - 48px)}.workspace-grid{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.catalog-panel{padding:22px}.aside-card{padding:20px}.welcome{padding:32px}.hero-visual{transform:scale(.85);transform-origin:center}.quiet-link{display:block;margin:14px 0 0}.app-footer{margin-left:24px;margin-right:24px}.lottery-card{padding:12px;gap:9px}.lottery-card img{width:32px;height:32px}.lottery-card strong{font-size:12px}}
@media(max-width:850px){.workspace-grid{grid-template-columns:1fr}.workspace-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.lottery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome{grid-template-columns:1fr 1fr}.hero-visual{transform:scale(.72);transform-origin:left center}.quick-grid>a{gap:10px;padding:16px}.quick-grid small{font-size:10px}.quick-grid i{width:34px;height:38px}.quick-grid b{display:none}.desktop-nav{gap:16px}.desktop-nav a{font-size:12px}.brand{font-size:18px}}
@media(max-width:640px){.app-header{height:76px}.header-inner{padding:0 20px;gap:0;justify-content:space-between}.desktop-nav{display:none}.header-action{display:block;font-size:11px}.brand-mark{width:36px;height:36px;font-size:19px;border-radius:11px}.brand{gap:10px;font-size:19px}.brand small{font-size:8px;letter-spacing:1.5px;margin-top:5px}body.app-ui{padding-bottom:calc(74px + env(safe-area-inset-bottom));font-size:14px}body.app-ui main{width:calc(100% - 28px);padding:20px 16px;margin:16px auto;border-radius:14px}body.app-ui main h1{font-size:24px;margin-top:20px}body.app-ui main.home-layout{margin-top:18px}.welcome{min-height:246px;padding:26px 23px;grid-template-columns:1fr}.welcome .eyebrow{font-size:8px;letter-spacing:1.6px}body.app-ui .welcome h1{font-size:29px;margin:13px 0 10px;max-width:190px}.welcome p{font-size:11px;margin-bottom:18px;max-width:210px}.hero-visual{position:absolute;right:-120px;top:40px;width:330px;height:230px;transform:scale(.56);transform-origin:center}.visual-label,.visual-cross{display:none}.primary-link{font-size:11px;padding:10px 13px;gap:18px}.quiet-link{display:none}.mobile-only{display:block}.quick-grid{gap:8px;margin:14px 0 22px}.quick-grid>a{padding:13px 5px;flex-direction:column;gap:6px;text-align:center;border-radius:11px}.quick-grid strong{font-size:12px}.quick-grid small{display:none}.quick-grid i{height:32px;width:32px;background:none;font-size:25px}.catalog-panel{padding:20px 14px;border-radius:14px}.section-heading{gap:8px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.6px}body.app-ui .section-heading h2{font-size:20px}.search-field{width:130px;padding:0 8px}body.app-ui input#lottery-search{font-size:12px;width:88px}.search-field>span{font-size:20px}.category-tabs{padding:18px 0 14px;gap:2px}body.app-ui .category-tabs button{font-size:11px;padding:7px 10px}.lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lottery-card{padding:13px 9px;gap:8px}.lottery-card img{width:28px;height:28px}.lottery-card strong{font-size:12px}.lottery-card small{font-size:8px;white-space:nowrap}.card-arrow{display:none}.lottery-category{margin-top:20px}.lottery-category h3{font-size:13px!important}.workspace-aside{grid-template-columns:1fr;gap:0}.aside-card{margin:0}.aside-card.info-card{display:none}.workspace-grid{gap:18px}.app-footer{margin:24px 20px 8px;padding-top:20px;font-size:10px;display:block}.app-footer nav{gap:12px;font-size:11px;margin:10px 0}.mobile-dock{position:fixed;bottom:0;left:0;right:0;z-index:50;display:grid;grid-template-columns:repeat(5,1fr);background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:9px 8px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -5px 24px #203c3606}.mobile-dock>a{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:10px;line-height:1.4;color:#8b978d!important;min-height:46px;gap:4px}.mobile-dock>a>span{font-size:22px;line-height:24px}.mobile-dock>a.current{color:var(--green)!important;font-weight:700}.mobile-dock>a.current>span{background:#eaf2e7;border-radius:10px;width:44px;text-align:center}body.app-ui form#plan-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}body.app-ui form#plan-form button{grid-column:1/-1}body.app-ui form#plan-form input#size{width:100%!important}body.app-ui .ball{width:33px;height:33px;font-size:16px;border-radius:10px}body.app-ui .balls{gap:6px}body.app-ui .plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.app-ui .plans>button{font-size:13px;padding:13px 10px}body.app-ui td,body.app-ui th{padding:10px;font-size:12px}body.app-ui .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.app-ui .fields label{font-size:11px}body.app-ui .fields input,body.app-ui .fields select{width:100%;min-width:0}body.app-ui.legacy-tool .wrapper,body.app-ui.legacy-tool .wap_body{width:calc(100% - 28px)!important;margin:16px auto!important}body.app-ui.legacy-tool .tool_item{padding:12px}body.app-ui.legacy-tool .tool_li{width:33.33%}body.app-ui.legacy-tool .tool_li a{flex-direction:column;gap:8px}body.app-ui.legacy-tool .tool_li span{font-size:12px}body.app-ui.legacy-tool .app-footer{width:auto}body.app-ui.legacy-tool .layui-form-item .layui-input-inline{float:none;max-width:100%}body.app-ui.legacy-tool .layui-form-label{max-width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body.app-ui .content-switch{display:flex;gap:6px;padding:6px;background:#edf2eb;border-radius:12px;margin:24px 0 12px;width:max-content;max-width:100%}body.app-ui .content-switch button{background:transparent;border:0;font-size:13px;min-height:40px;padding:9px 22px}body.app-ui .content-switch button.selected{background:white;box-shadow:0 2px 8px #203c3610;color:var(--green);font-weight:650}.list-pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0;font-size:12px;color:var(--muted)}.list-pager>span{margin-right:auto}.list-pager button{font-size:12px!important;padding:8px 14px!important;min-height:38px!important}body.app-ui button:disabled{opacity:.45;cursor:default}body.app-ui .detail-history{max-height:400px;overflow:auto}body.app-ui #trend{min-width:750px}body.app-ui .table:has(#trend){max-height:480px;overflow:auto}body.app-ui .table:has(#trend) tr:first-child{position:sticky;top:0;z-index:1;background:#f5f8f4}.featured-lotteries{margin-top:20px;padding-bottom:10px}.featured-lotteries .lottery-card{background:#f0f6ea;border-color:#d3e2c9}body.app-ui main>details{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}body.app-ui details summary{cursor:pointer;font-size:12px;color:var(--muted)}body.app-ui .app-header~main{margin-bottom:32px}
.tool-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}.tool-directory>a{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;padding:22px;background:#fafbf8;gap:13px}.tool-directory>a:hover{border-color:#9bb69b;background:#f0f5ec}.tool-type{font-size:10px;color:#92a087}.tool-directory strong{font-size:16px;color:var(--ink);font-weight:600}.tool-open{font-size:11px;color:#7a8e72}body.app-ui.legacy-tool .ft_navbar{display:none!important}@media(max-width:850px){.tool-directory{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.tool-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-directory>a{padding:18px 14px;gap:10px}.tool-directory strong{font-size:14px}}
/* Professional indigo palette for the main product; the independent HK palette remains scoped. */
body.app-ui:not(.hk-system){--ink:#1d2942;--muted:#66738d;--green:#4d5fe8;--soft:#eef0ff;--line:#e4e8f2;--bg:#f4f6fb;--orange:#6478ed}body.app-ui:not(.hk-system) .brand-mark{background:#253568}body.app-ui:not(.hk-system) .brand small{color:#8892aa}body.app-ui:not(.hk-system) .welcome{background:linear-gradient(120deg,#17243e,#2c3e74);border-color:#263a67}body.app-ui:not(.hk-system) .welcome h1{color:#fff}body.app-ui:not(.hk-system) .welcome .eyebrow{color:#a6b5ef}body.app-ui:not(.hk-system) .welcome p{color:#bdc8e2}body.app-ui:not(.hk-system) .welcome .quiet-link{color:#d6dcf6}body.app-ui:not(.hk-system) .welcome .primary-link{background:#6b7bfa;color:white}body.app-ui:not(.hk-system) .orbit{border-color:#7792dd4d}body.app-ui:not(.hk-system) .hero-ball.one{background:#e8edff;color:#6575bb}body.app-ui:not(.hk-system) .hero-ball.two{background:#6578f3;color:white}body.app-ui:not(.hk-system) .hero-ball.three{background:#a4d6eb;color:#395876}body.app-ui:not(.hk-system) .visual-label,body.app-ui:not(.hk-system) .visual-cross{color:#9baedf}body.app-ui:not(.hk-system) .eyebrow{color:#8794b0}body.app-ui:not(.hk-system) .quick-grid i{background:#f0f2ff;color:#6274df}body.app-ui:not(.hk-system) .lottery-card{background:#fafbff;border-color:#edf0f7}body.app-ui:not(.hk-system) .lottery-card:hover,body.app-ui:not(.hk-system) .tool-directory>a:hover{background:#f1f3ff;border-color:#bec6fa}body.app-ui:not(.hk-system) .lottery-card small,body.app-ui:not(.hk-system) .lottery-category h3>span,body.app-ui:not(.hk-system) .card-arrow{color:#96a0b5}body.app-ui:not(.hk-system) .lottery-card strong{color:var(--ink)}body.app-ui:not(.hk-system) .search-field,body.app-ui:not(.hk-system) .category-tabs,body.app-ui:not(.hk-system) form#plan-form,body.app-ui:not(.hk-system) form#filters{background:#f6f7fc}body.app-ui:not(.hk-system) .category-tabs{background:transparent}body.app-ui:not(.hk-system) .info-card{background:#edf0fa;border-color:#e0e5f4}body.app-ui:not(.hk-system) .info-card p{color:#7d89a3}body.app-ui:not(.hk-system) .info-symbol{border-color:#aeb9e2;color:#6c7bad}body.app-ui:not(.hk-system) .aside-card>a>span{color:#a4adc3}body.app-ui:not(.hk-system) .featured-lotteries .lottery-card{background:#f0f2ff;border-color:#dce1ff}body.app-ui:not(.hk-system) .tool-directory>a{background:#fafbff}body.app-ui:not(.hk-system) .tool-type,body.app-ui:not(.hk-system) .tool-open{color:#7d89b1}body.app-ui:not(.hk-system) .ball{background:#5369de;box-shadow:0 3px 0 #384aab}body.app-ui:not(.hk-system) .bead{background:#eef1ff;color:#5868ab}body.app-ui:not(.hk-system) th{background:#f5f7fc}body.app-ui:not(.hk-system) .content-switch{background:#edf0f8}body.app-ui:not(.hk-system) .notice.recent{background:#eef3ff;border-color:#d5dff7}body.app-ui:not(.hk-system) .mobile-dock>a.current>span{background:#eef0ff}
/* Compact plan workspace and immediately discoverable detail drawer. */
body.app-ui.plan-page main{max-width:1120px;padding:22px 26px}body.app-ui.plan-page main h1{margin:18px 0;font-size:25px}body.app-ui.plan-page .draw-snapshot{background:#f8f9fd;border:1px solid var(--line);border-radius:12px;padding:14px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:center}.draw-snapshot #status{grid-column:1/-1;font-size:12px;padding:8px 12px}.draw-snapshot>p{margin:4px 0}.draw-snapshot .balls{grid-column:2;grid-row:2/5;margin:12px 0!important}.draw-snapshot #error:empty{display:none}.draw-snapshot #countdown{font-size:12px;color:#6274b4}.draw-snapshot #error{grid-column:1/-1;font-size:12px}body.app-ui.plan-page .ball{width:32px;height:32px;border-radius:9px;font-size:15px}body.app-ui.plan-page .content-switch{margin-top:20px}.plan-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.plan-section-heading>span{font-size:11px;color:#8b96b1}body.app-ui.plan-page .plan-section-heading h2{margin:12px 0;font-size:18px}body.app-ui.plan-page #plan-form{margin:8px 0 10px;padding:14px;gap:12px}body.app-ui.plan-page #plan-form label{font-size:11px;flex:1 1 105px}body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{font-size:14px;padding:9px 10px}body.app-ui.plan-page #plan-form #size{width:100%!important}body.app-ui.plan-page #plan-state{margin:10px 0 14px}body.app-ui.plan-page #plans-panel> .table-wrap{border:1px solid var(--line);border-radius:12px}body.app-ui.plan-page #plans-panel table th{font-size:11px;padding:11px 14px}body.app-ui.plan-page #plans-panel table td{padding:8px 14px;font-size:12px}body.app-ui.plan-page #plans-panel tr:hover{background:#f8f9ff}body.app-ui.plan-page .plan-open{border:0;background:transparent;min-height:42px;padding:6px 0;display:flex;align-items:center;gap:14px;text-align:left;color:var(--ink)}.plan-open strong{font-size:13px;font-weight:650;white-space:nowrap}.plan-open>span{font-size:10px;color:var(--green);white-space:nowrap}.plan-open:hover>span{text-decoration:underline}body.app-ui.plan-page .plan-save{padding:7px 11px;min-height:34px;font-size:11px;color:#7886a8}body.app-ui.plan-page tr.selected-plan{background:#f0f3ff}.plan-page .list-pager{margin:12px 0}.plan-page .detail-open{overflow:hidden}body.detail-open{overflow:hidden}#plan-dialog{color:#1d2942;background:#fff;border:0;border-left:1px solid #e2e6f4;border-radius:20px 0 0 20px;padding:0;margin:0 0 0 auto;width:min(820px,82vw);max-width:100%;height:100dvh;max-height:100dvh;box-shadow:-20px 0 90px #111c3a29;overflow:hidden}#plan-dialog::backdrop{background:#101a3c66;backdrop-filter:blur(3px)}#plan-dialog[open]{display:flex;flex-direction:column}.plan-dialog-header{padding:24px 28px 20px;border-bottom:1px solid #e6eaf4;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0}.detail-eyebrow{font-size:10px;color:#8b96b2;letter-spacing:1.8px}.plan-dialog-header h2{font-size:23px;line-height:1.4;margin:6px 0 0;color:#202e4c}body.app-ui #plan-dialog-close{background:#f3f5fb;border:0;width:40px;height:40px;min-height:40px;padding:0;font-size:17px;border-radius:12px;flex-shrink:0}.plan-dialog-content{padding:22px 28px 30px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin}.detail-context{font-size:12px;color:#8b96ae;margin:0 0 18px}.detail-current{padding:22px;background:#eef1ff;border:1px solid #dce2ff;border-radius:14px;margin-bottom:20px}.detail-current .detail-eyebrow{color:#7888c2;letter-spacing:1px}.detail-issue{font-size:12px;color:#7485b9;margin:10px 0}.detail-numbers{display:block;font-size:28px;color:#4b60d4;line-height:1.5;overflow-wrap:anywhere}.detail-numbers.expired{font-size:16px;color:#8992ac}.detail-unavailable{font-size:13px;color:#7b87a5;line-height:1.8}.detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.detail-metrics>div{padding:14px;background:#f8f9fd;border:1px solid #e6eaf5;border-radius:10px}.detail-metrics small{display:block;font-size:10px;color:#8994ab}.detail-metrics strong{display:block;font-size:21px;margin-top:9px;color:#34435e}.plan-dialog-content>h3{font-size:16px;margin:26px 0 10px}.detail-cycle-scroll{max-height:440px;overflow:auto;border:1px solid #e5e9f3;border-radius:11px;scrollbar-width:thin}.detail-cycle-scroll table{min-width:580px}.detail-cycle-scroll thead{position:sticky;top:0;background:#f5f7fc}.detail-cycle-scroll td{font-size:12px!important;overflow-wrap:anywhere}.detail-cycle-scroll td:nth-child(2){min-width:150px;max-width:260px}.detail-cycle-scroll td:nth-child(3){white-space:nowrap}.detail-error{padding:16px;background:#fff3ef;border-radius:10px;color:#a65342;font-size:13px}.detail-loading{padding:40px 0;text-align:center;color:#8c97b2;font-size:14px}
@media(max-width:850px){body.app-ui.plan-page .draw-snapshot{display:block}.draw-snapshot .balls{margin:14px 0!important}.plan-section-heading{align-items:flex-start;flex-direction:column;gap:0}.plan-section-heading>span{margin-bottom:10px}body.app-ui.plan-page #plan-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}body.app-ui.plan-page #plan-form>button{grid-column:1/-1}#plan-dialog{width:90vw}}
@media(max-width:640px){body.app-ui.plan-page main{padding:16px 13px;width:calc(100% - 20px)}body.app-ui.plan-page main>.top{gap:4px 13px;padding-bottom:8px;font-size:11px}body.app-ui.plan-page main h1{font-size:23px;margin:16px 0}body.app-ui.plan-page .draw-snapshot{padding:12px}.draw-snapshot .muted{font-size:10px!important}.draw-snapshot #status{font-size:11px}.draw-snapshot .balls{gap:6px}body.app-ui.plan-page .ball{width:28px;height:28px;font-size:13px}.plan-section-heading>span{font-size:10px}body.app-ui.plan-page #plan-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{font-size:16px;min-height:42px}body.app-ui.plan-page #plans-panel table td{padding:8px 10px}.plan-open strong{font-size:12px}.plan-open>span{font-size:9px}body.app-ui.plan-page .plan-open{flex-direction:column;align-items:flex-start;gap:3px;min-height:42px}#plan-dialog{width:100%;height:92dvh;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0;border-left:0;border-top:1px solid #e2e6f4}.plan-dialog-header{padding:20px 18px 15px}.plan-dialog-header h2{font-size:21px}.plan-dialog-content{padding:18px 16px calc(24px + env(safe-area-inset-bottom))}.detail-current{padding:18px}.detail-numbers{font-size:24px}.detail-metrics{gap:7px;margin:18px 0}.detail-metrics>div{padding:12px 9px}.detail-metrics small{font-size:9px}.detail-metrics strong{font-size:18px}.detail-cycle-scroll{max-height:45dvh}}

@media(max-width:640px){body.app-ui:not(.hk-system) .mobile-dock{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Plan details stay inside the workspace; navigation is never modal. */
body.detail-open{overflow:auto}#plan-dialog,#plan-dialog[open]{position:relative;inset:auto;width:100%;max-width:100%;height:auto;max-height:none;margin:18px 0;border:1px solid #e1e6f2;border-radius:16px;box-shadow:none;box-sizing:border-box}#plan-dialog:not([open]){display:none}#plan-dialog .plan-dialog-content{max-height:55dvh}#plan-dialog .plan-dialog-header{padding:14px 18px}#plan-dialog .plan-dialog-header h2{font-size:19px}.plan-chat-dock{position:fixed;right:16px;bottom:85px;z-index:40;margin:0;width:min(360px,calc(100vw - 24px));background:white;border:1px solid #dce2f3;border-radius:14px;box-shadow:0 8px 35px #23335322;overflow:hidden}.plan-chat-dock summary{padding:13px 18px;color:#4558d3;cursor:pointer;font-size:14px;font-weight:650}.plan-chat-dock iframe{display:block;border:0;border-top:1px solid #e5e9f4;width:100%;height:65dvh}body:has(.plan-chat-dock[open]) main#page-content{margin-right:390px;width:calc(100% - 430px);max-width:1120px}@media(max-width:850px){body:has(.plan-chat-dock[open]) main#page-content{margin:16px auto;width:calc(100% - 20px);padding-bottom:52dvh}.plan-chat-dock[open]{width:calc(100vw - 24px)}.plan-chat-dock iframe{height:44dvh}.plan-chat-dock{bottom:76px;right:12px}#plan-dialog .plan-dialog-content{max-height:45dvh}}

body.plan-page>.app-header{position:sticky;top:0;z-index:45}#plan-dialog{scroll-margin-top:105px}.plan-chat-dock{z-index:40}
@media(max-width:850px){.plan-chat-dock iframe{height:38dvh}body:has(.plan-chat-dock[open]) #plan-dialog .plan-dialog-header{padding:10px 12px}body:has(.plan-chat-dock[open]) #plan-dialog .detail-eyebrow{font-size:8px;letter-spacing:1px}body:has(.plan-chat-dock[open]) #plan-dialog .plan-dialog-header h2{margin:3px 0;font-size:17px}body:has(.plan-chat-dock[open]) #plan-dialog .plan-dialog-content{padding:10px 12px}body:has(.plan-chat-dock[open]) #plan-dialog .detail-context{display:none}body:has(.plan-chat-dock[open]) #plan-dialog .detail-current{padding:10px;margin-bottom:10px}body:has(.plan-chat-dock[open]) #plan-dialog .detail-issue{margin:5px 0}body:has(.plan-chat-dock[open]) #plan-dialog .detail-numbers{font-size:20px}}
body.plan-page>.app-header{background:#fff}

.header-services{display:flex;align-items:center;gap:14px;margin-left:auto;white-space:nowrap}.header-services .header-action{display:block!important;font-size:12px}.header-services .app-download-link{padding:9px 12px;border:1px solid #dfe4f4;border-radius:9px;background:#f5f7ff}@media(min-width:1101px){.header-inner{gap:28px}}@media(min-width:641px) and (max-width:1100px){.header-inner{gap:16px}.desktop-nav{gap:12px}.desktop-nav a{font-size:11px}.brand{font-size:17px}.header-services{gap:8px}.header-services .header-action{font-size:11px}}@media(max-width:640px){.header-services{gap:10px}.header-services .header-action{font-size:10px}.header-services .app-download-link{padding:7px 8px}.header-inner{padding:0 16px}.brand{font-size:17px;gap:8px}.brand small{letter-spacing:1px}}

/* legacy-tools.css */
/* Legacy calculators use normal document flow; result controls remain reachable. */
body.app-ui.legacy-tool{height:auto;min-height:100dvh;overflow:auto;background:var(--bg)}
body.app-ui.legacy-tool .app-header{height:88px;position:relative;overflow:visible}
body.app-ui.legacy-tool .wap_body,body.app-ui.legacy-tool .wrapper{height:auto!important;min-height:0;overflow:visible!important;padding:20px!important;background:#fff;border:1px solid var(--line);border-radius:16px}
body.app-ui.legacy-tool .toolMain,body.app-ui.legacy-tool .toolMainTab,body.app-ui.legacy-tool .tableCont,body.app-ui.legacy-tool .layui-tab-content{height:auto!important;max-height:none!important;overflow:visible!important}
body.app-ui.legacy-tool .cose_type_pj{position:static;top:auto;left:auto;width:100%;padding:0 0 16px;background:transparent}
body.app-ui.legacy-tool .pj_cntbody{padding:16px 0 0}
body.app-ui.legacy-tool .cose_num_bt{display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:13px}
body.app-ui.legacy-tool .cose_h2,body.app-ui.legacy-tool .cose_btnul{width:auto!important;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;height:auto}
body.app-ui.legacy-tool .cose_h2{font-size:13px;flex:1 1 170px;text-align:left;white-space:nowrap}
body.app-ui.legacy-tool .cose_h2 .cose_gj{padding:0;font-size:12px;white-space:nowrap}
body.app-ui.legacy-tool .cose_btnul{flex:0 1 auto;text-align:left}
body.app-ui.legacy-tool .cose_btnul .cose_btn{min-width:60px;width:auto;min-height:36px;height:auto;line-height:34px;margin:0;padding:0 14px;font-size:13px;border-radius:8px;background:#f5f6fc;border-color:#e2e6f4;color:var(--ink)}
body.app-ui.legacy-tool .cose_btnul .cose_btn.layui-this{background:var(--green);color:white;border-color:var(--green)}
body.app-ui.legacy-tool .num_club{padding:16px 0;border-bottom:1px solid var(--line);background:transparent}
body.app-ui.legacy-tool .cose_fun_btns{width:auto;float:none;font-size:13px}
body.app-ui.legacy-tool .cose_fun_btns button{width:auto;height:auto;min-height:36px;line-height:1.4;padding:7px 12px;margin:0;font-size:12px;background:#f1f3fa;color:var(--ink);border:1px solid var(--line);white-space:nowrap}
body.app-ui.legacy-tool .cose_sel_form{width:auto;float:none}
body.app-ui.legacy-tool .cose_sel_item{display:flex;align-items:center;gap:6px}
body.app-ui.legacy-tool .cose_sel_item label{margin:0;font-size:12px;white-space:nowrap}
body.app-ui.legacy-tool .cose_sel_item .bt_label_input{width:110px;min-width:0}
body.app-ui.legacy-tool .cose_sel_item .layui-select-title input{width:100%;min-height:36px;height:36px;padding:6px 25px 6px 10px;font-size:14px}
body.app-ui.legacy-tool .layui-form-select dl{top:40px;z-index:1200;max-height:230px}
body.app-ui.legacy-tool .num_textarea textarea{height:96px;min-height:96px;margin:10px 0 0;padding:12px;box-shadow:none;border-color:var(--line);font-size:14px;resize:vertical}
body.app-ui.legacy-tool .toolResult,body.app-ui.legacy-tool .start_suosui{position:static!important;left:auto;right:auto;bottom:auto;top:auto;width:100%!important;height:auto!important;min-height:0;display:flex!important;flex-direction:column;margin:20px 0 0;padding:16px;background:#f6f7fc;border:1px solid var(--line);border-radius:12px;box-shadow:none;overflow:visible}
body.app-ui.legacy-tool .toolResult .toolNumsPanl,body.app-ui.legacy-tool .start_shuju{width:100%!important;height:auto!important;float:none;position:static;display:flex;flex-direction:column}
body.app-ui.legacy-tool .start_shutit{position:static;width:100%;height:auto;min-height:0;display:block;padding:0 0 10px}
body.app-ui.legacy-tool .start_shutit .tit{line-height:1.6;font-size:13px;width:auto}
body.app-ui.legacy-tool .toolResult .numList,body.app-ui.legacy-tool .shuju_text{position:static;width:100%!important;height:auto;min-height:130px;max-height:300px;overflow:auto;overflow-wrap:anywhere;padding:12px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:none;font-size:13px}
body.app-ui.legacy-tool .toolResult .btns,body.app-ui.legacy-tool .start_btns{position:static;float:none;width:100%!important;height:auto;display:flex!important;flex-wrap:wrap;gap:8px;padding:12px 0 0;margin:0;border:0;background:transparent}
body.app-ui.legacy-tool .toolResult .btns button,body.app-ui.legacy-tool .start_btns button{float:none;width:auto!important;flex:1 1 100px;min-width:0;margin:0;height:auto;min-height:42px;padding:9px 12px;line-height:1.5;font-size:13px;white-space:nowrap;border-radius:9px}
body.app-ui.legacy-tool .toolResult .btns button:first-child{background:var(--green);color:#fff}
@media(max-width:640px){body.app-ui.legacy-tool .app-header{height:76px}body.app-ui.legacy-tool .wap_body,body.app-ui.legacy-tool .wrapper{padding:16px 12px!important}.cose_type_pj .cose_num_bt{align-items:flex-start}body.app-ui.legacy-tool .cose_type_pj .cose_btnul{width:100%!important;display:flex;flex-wrap:nowrap}body.app-ui.legacy-tool .cose_type_pj .cose_btn{flex:1;padding:0 8px;min-width:0}body.app-ui.legacy-tool .num_club .cose_h2{flex-basis:100%}body.app-ui.legacy-tool .num_club .cose_btnul{width:100%!important;justify-content:space-between}body.app-ui.legacy-tool .cose_sel_item .bt_label_input{width:130px}body.app-ui.legacy-tool .start_btns button{flex-basis:calc(50% - 8px)}body.app-ui.legacy-tool .toolResult{padding:12px}}
body.app-ui.legacy-tool .bt_label_input{background:transparent;border-radius:8px}
body.app-ui.legacy-tool .fun_btm,body.app-ui.legacy-tool .yzls_btm{position:static!important;left:auto;right:auto;bottom:auto;top:auto;width:100%;height:auto;min-height:0;padding:16px;margin:20px 0 0;background:#f6f7fc;border:1px solid var(--line);border-radius:12px;box-shadow:none}
body.app-ui.legacy-tool .fun_btm_box{width:100%;padding:0;display:flex;flex-direction:column;gap:12px}
body.app-ui.legacy-tool .btm_area{width:100%;float:none;height:auto}
body.app-ui.legacy-tool .btm_btnul{width:100%;float:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
body.app-ui.legacy-tool .btm_btnul li{width:100%;height:auto;margin:0;padding:0}
body.app-ui.legacy-tool .btm_btnul li:first-child{grid-column:1/-1}
body.app-ui.legacy-tool .btm_btnul button{width:100%;height:auto;min-height:42px;line-height:1.5;padding:8px;font-size:13px;white-space:nowrap;margin:0}
body.app-ui.legacy-tool .yzls_box{height:auto;max-height:none;padding:0;overflow:visible}
body.app-ui.legacy-tool .yzls_list,body.app-ui.legacy-tool .yzls_list thead,body.app-ui.legacy-tool .yzls_list tbody{display:table;width:100%;height:auto;max-height:none;overflow:visible}
body.app-ui.legacy-tool .yzls_list{display:table;table-layout:fixed}
body.app-ui.legacy-tool .yzls_list thead{display:table-header-group;background:#eef1fa;color:var(--ink)}
body.app-ui.legacy-tool .yzls_list tbody{display:table-row-group}
body.app-ui.legacy-tool .yzls_list tr{display:table-row;width:auto}
body.app-ui.legacy-tool .yzls_list th,body.app-ui.legacy-tool .yzls_list td{display:table-cell;width:auto!important;padding:10px 5px;white-space:normal;overflow-wrap:anywhere;color:var(--ink);line-height:1.5}
body.app-ui.legacy-tool .yzls_btnul{display:flex;gap:8px;flex-wrap:wrap}
body.app-ui.legacy-tool .yzls_btnul li{width:auto;flex:1 1 100px;margin:0}
body.app-ui.legacy-tool .yzls_btnul button{width:100%;height:auto;min-height:44px;padding:8px;font-size:12px;white-space:nowrap;background:var(--green);color:#fff;border-color:var(--green);box-shadow:none}
body.app-ui.legacy-tool .yzls_btnul button img{display:none}
body.app-ui.legacy-tool .yanz_result{display:block;min-height:0;height:auto}.legacy-tool .yanz_result_bt{width:auto}.legacy-tool .result_deatil{width:100%;height:auto}.legacy-tool .result_deatil ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.legacy-tool .result_deatil li{width:auto!important;float:none;font-size:12px}
body.app-ui.legacy-tool input[type=button]{width:auto;min-width:max-content;padding:7px 12px;min-height:36px;font-size:12px}
body.app-ui.legacy-tool .bt_label_input .layui-form-select{background:transparent;border-radius:8px}
body.app-ui.legacy-tool .bt_label_input .layui-select-title input{width:100%;padding-right:25px;font-size:13px}
body.app-ui.legacy-tool .bt_label_input .layui-form-select .layui-edge{border-top-color:#7b86a0;right:9px}
body.app-ui.legacy-tool .layui-form-select dl dd{font-size:13px;min-height:34px;line-height:34px}
/* Expert Plan tools share the indigo palette, including legacy selection states. */
body.app-ui.legacy-tool .nums_spanli,body.app-ui.legacy-tool .main_tnlist li,body.app-ui.legacy-tool .radioBox,body.app-ui.legacy-tool .num_box span{background:#edf0fa!important;color:#63729a!important;border-color:#e0e6f5!important;box-shadow:none!important}
body.app-ui.legacy-tool .nums_spanli.on,body.app-ui.legacy-tool .nums_spanli.active,body.app-ui.legacy-tool .main_tnlist li.active,body.app-ui.legacy-tool .radioBox.active,body.app-ui.legacy-tool .layui-form-checked span,body.app-ui.legacy-tool .layui-form-radioed{background:#5265d2!important;color:#fff!important;border-color:#5265d2!important}
body.app-ui.legacy-tool .choose_num_bt .btn input,body.app-ui.legacy-tool .choose_num_bt .btn button,body.app-ui.legacy-tool .btn input,body.app-ui.legacy-tool .btn button,body.app-ui.legacy-tool .btns input,body.app-ui.legacy-tool .cleanForm,body.app-ui.legacy-tool input[type=button]{background:#edf0fb!important;color:#5264b5!important;border:1px solid #dce3f6!important;box-shadow:none!important}
body.app-ui.legacy-tool .main_funbtn input,body.app-ui.legacy-tool .main_funbtn a,body.app-ui.legacy-tool .main_funbtn span,body.app-ui.legacy-tool .allBtn,body.app-ui.legacy-tool .clearBtn{background:#f1f4fc!important;border-color:#cfd9f3!important;color:#5265c8!important}
body.app-ui.legacy-tool textarea,body.app-ui.legacy-tool .inputMode textarea{background:#f9faff!important;color:#344365!important;box-shadow:none!important;border:1px solid #e1e7f3!important}
body.app-ui.legacy-tool textarea::placeholder{color:#98a4bf!important}body.app-ui.legacy-tool .choose_num_bt h2,body.app-ui.legacy-tool .cose_h2,body.app-ui.legacy-tool .main_tnspan{color:#3a4869!important}
body.app-ui.legacy-tool .choose_num_bt h2 img,body.app-ui.legacy-tool .cose_h2 img{filter:grayscale(1) sepia(1) hue-rotate(180deg) saturate(4)}
body.app-ui.legacy-tool .cose_xvlie{background:#cdd7f6!important}body.app-ui.legacy-tool .cose_gj{color:#7385c1!important}body.app-ui.legacy-tool .choose_num,body.app-ui.legacy-tool .choose_item{box-shadow:0 2px 8px #24356805!important;border-color:#e5eaf5!important}
body.app-ui.legacy-tool .actionBtn a{background:#edf1fc!important;color:#5165ba!important;border:1px solid #d6dff5!important;box-shadow:none!important}
body.app-ui.legacy-tool .actionBtn a.active,body.app-ui.legacy-tool .tabcss_a.active{background:#5265d2!important;color:#fff!important;border-color:#5265d2!important}
body.app-ui.legacy-tool .numbers.col,body.app-ui.legacy-tool .main_qiu1,body.app-ui.legacy-tool .numTop{box-shadow:none!important;border-color:#e4e9f5!important}
body.app-ui.legacy-tool .choose_num_bt h2 img,body.app-ui.legacy-tool .cose_h2 img{filter:grayscale(1) sepia(1) hue-rotate(210deg) saturate(3)}

/* 号码交集：保留输入框，移除分组的重复卡片外壳。 */
body.app-ui.legacy-tool.tool-intersection .hmjj_bd{padding:0!important}
body.app-ui.legacy-tool.tool-intersection .num_club{padding:0!important;margin-bottom:10px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.app-ui.legacy-tool.tool-intersection .num_club .cose_num_bt{padding-top:10px}
@media(max-width:640px){
 body.app-ui.legacy-tool.tool-intersection .num_club .cose_h2{flex:1 1 auto}
 body.app-ui.legacy-tool.tool-intersection .num_club .cose_btnul{width:auto!important;flex:0 0 auto}
}

/* clarity.css */
/* Shared main-site clarity palette; preserve lottery number colours. */
body.app-ui:not(.hk-system){--ink:#142238;--muted:#526176;--green:#315bd6;--soft:#edf2fb;--line:#cdd7e6;--bg:#f2f5f9;color:#142238;background:#f2f5f9;-webkit-font-smoothing:auto}
body.app-ui:not(.hk-system) .muted,body.app-ui:not(.hk-system) .plan-section-heading>span{color:#526176}body.app-ui:not(.hk-system) input,body.app-ui:not(.hk-system) select,body.app-ui:not(.hk-system) textarea{color:#17283e;border-color:#bfcbdc;background:#fff;box-shadow:none}body.app-ui:not(.hk-system) input::placeholder,body.app-ui:not(.hk-system) textarea::placeholder{color:#69788d;opacity:1}body.app-ui:not(.hk-system) .app-header{background:#fff;border-color:#cdd7e6}body.app-ui:not(.hk-system) .brand small{color:#526176}body.app-ui:not(.hk-system) .content-switch{background:#e8eef7;border:1px solid #d4deec}body.app-ui:not(.hk-system) .content-switch button.selected{color:#244ebd;background:#fff;box-shadow:0 1px 3px #182d5014}.plan-page .detail-eyebrow{display:none}.plan-page #plan-dialog{border-color:#c3cee0}.plan-page .detail-current{background:#edf3ff;border-color:#c2d2f2}.plan-page .detail-numbers{color:#234fb8}.plan-page .detail-context,.plan-page .detail-issue,.plan-page .detail-metrics small{color:#4b5f7c}.plan-page .detail-metrics strong{color:#17283e}.plan-page .plan-dialog-header{background:#f7f9fc}.plan-search-again{display:none!important}.plan-focused .plan-search-again{display:inline-flex!important;align-items:center;gap:8px;margin:14px 0 0;padding:10px 14px!important;border:1px solid #bdcce6!important;border-radius:9px;background:#fff!important;color:#2452b5!important;font-size:13px!important}.plan-focused #plans-panel{display:none!important}.plan-focused .plan-section-heading{display:none!important}.plan-focused .plan-search-again+dialog{margin-top:10px!important}.plan-chat-dock{border-color:#bfccdf;box-shadow:0 6px 25px #162b491a}.plan-chat-dock summary{padding:9px 12px;font-size:12px;color:#244bb0}.plan-chat-dock:not([open]){width:auto;min-width:150px}.plan-chat-dock[open] summary{background:#183563;color:#fff}.plan-chat-dock iframe{height:62dvh}.plan-page #plan-form{background:#f3f6fb}.plan-page .plan-section-heading>span{font-size:12px}.plan-page #plan-state{color:#485c78}.plan-page .plan-open>span{color:#2452bd}.plan-page .detail-metrics{margin:12px 0;gap:8px}.plan-page .detail-metrics>div{background:#f7f9fc;border-color:#d3dce9;padding:10px}.plan-page .detail-metrics strong{margin-top:5px}.plan-page .plan-dialog-content{padding:16px 18px}.plan-page .detail-cycle-scroll thead{background:#eaf0f8}.plan-page .detail-cycle-scroll th{color:#344b68}.plan-page .detail-cycle-scroll td{color:#1b2d45}.plan-page #plan-form{scroll-margin-top:95px}
@media(max-width:850px){.plan-chat-dock iframe{height:43dvh}.plan-chat-dock[open]{width:calc(100vw - 20px);right:10px}.plan-chat-dock:not([open]){right:12px;min-width:140px}.plan-chat-dock summary{padding:8px 12px}.plan-page .plan-dialog-header{padding:10px 12px}.plan-page .plan-dialog-header h2{font-size:18px}.plan-page .detail-current{padding:12px;margin-bottom:10px}.plan-page #plan-dialog .plan-dialog-content{max-height:55dvh}.plan-page #plan-form{gap:8px}.plan-page #plan-form label{color:#405572}.plan-page #plan-form select,.plan-page #plan-form input{font-size:14px!important;padding:9px!important}.plan-page .detail-metrics small{font-size:10px}.plan-page .detail-metrics strong{font-size:17px}.plan-page .detail-numbers{font-size:23px}}

.plan-page #plan-dialog{scroll-margin-top:150px}.plan-page .detail-current{box-shadow:none}.chat-page .chat-message-meta strong{color:#344b68}.plan-focused .content-switch{margin-top:12px!important}
/* Dense plan filters, while retaining comfortable touch targets. */
body.app-ui.plan-page .plan-section-heading{margin:8px 0 5px;gap:0;align-items:center;flex-direction:row}
body.app-ui.plan-page .plan-section-heading h2{font-size:16px;margin:0!important;line-height:1.4}
body.app-ui.plan-page .plan-section-heading>span{display:none}
body.app-ui.plan-page #plan-form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px 10px;padding:10px;margin:6px 0;border:1px solid #d7e0ec;border-radius:10px;align-items:end}
body.app-ui.plan-page #plan-form label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:10px;line-height:1.3;margin:0;color:#405572}
body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;padding:6px 8px!important;font-size:12px!important;border-radius:7px;line-height:1.2}
body.app-ui.plan-page #plan-form>button{grid-column:1/-1;min-height:33px;height:33px;padding:6px 12px;font-size:12px;border-radius:7px;line-height:1.3}
body.app-ui.plan-page #plan-state{font-size:11px;line-height:1.5;margin:7px 0 10px}
@media(max-width:850px){body.app-ui.plan-page #plan-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:9px}body.app-ui.plan-page #plan-form label:nth-child(-n+2){grid-column:span 2}body.app-ui.plan-page #plan-form label{font-size:10px}body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{font-size:12px!important;padding:5px 6px!important;min-height:36px}body.app-ui.plan-page .plan-section-heading h2{font-size:15px}}
@media(max-width:359px){body.app-ui.plan-page #plan-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.app-ui.plan-page #plan-form label:nth-child(-n+2){grid-column:auto}}
/* Flat plan workspace: use the available width instead of nested cards. */
body.app-ui.plan-page{background:#fff}
body.app-ui.plan-page main#page-content{border:0;border-radius:0;box-shadow:none;background:#fff}
body.app-ui.plan-page #history-panel .table-wrap{border:0;border-radius:0;background:transparent}
body.app-ui.plan-page #history-panel th:last-child,body.app-ui.plan-page #history-panel td:last-child{text-align:right;padding-right:0;white-space:nowrap;max-width:none}
body.app-ui.plan-page #history-panel th:first-child,body.app-ui.plan-page #history-panel td:first-child{padding-left:0}
body.app-ui.plan-page #history-panel th{background:#f3f6fa}
body.app-ui.plan-page .draw-compact{border:0;border-bottom:1px solid #d4deeb;border-radius:0;background:#fff;padding-left:0;padding-right:0}
body.app-ui.plan-page #plans-panel>.table-wrap{border-left:0;border-right:0;border-radius:0}
@media(max-width:850px){body.app-ui.plan-page main#page-content,body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{width:100%;margin:0;box-sizing:border-box;padding-left:12px;padding-right:12px;border-radius:0}body.app-ui.plan-page main#page-content>.top{padding-top:2px;padding-bottom:10px}body.app-ui.plan-page #history-panel th:last-child,body.app-ui.plan-page #history-panel td:last-child{font-size:10px;line-height:1.4}}
@media(max-width:359px){body.app-ui.plan-page main#page-content{padding-left:8px;padding-right:8px}.history-numbers{gap:1px}}
body.app-ui.plan-page #page-content .draw-compact{border:0;border-bottom:1px solid #d4deeb;border-radius:0;background:#fff;padding-left:0;padding-right:0}
body.app-ui.plan-page #page-content #history-panel .table-wrap{border:0;border-radius:0;background:transparent}
body.app-ui.plan-page #page-content #history-panel th:last-child,body.app-ui.plan-page #page-content #history-panel td:last-child{text-align:right;padding-right:0;white-space:nowrap;max-width:none}

.chat-launch-desktop{display:none}.chat-launch-close{display:none}.plan-chat-dock[open] .chat-launch-close{display:inline;margin-left:auto;font-size:11px;font-weight:400}.plan-chat-dock[open]>summary{display:flex;align-items:center;gap:12px}
@media(min-width:851px){.chat-launch-desktop{display:inline}.chat-launch-mobile{display:none}body.plan-page .plan-chat-dock:not([open]){right:0;top:45vh;bottom:auto;width:42px;min-width:0;border:1px solid #d0dbeb;border-right:0;border-radius:12px 0 0 12px;box-shadow:-3px 4px 16px #17365d16;transform:translateY(var(--chat-follow,0px));will-change:transform;background:linear-gradient(160deg,#244d8e,#17335f)}body.plan-page .plan-chat-dock:not([open])>summary{list-style:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;min-height:126px;padding:18px 10px;color:#fff;font-size:14px;letter-spacing:5px;writing-mode:vertical-rl;text-orientation:upright;cursor:pointer}body.plan-page .plan-chat-dock>summary::-webkit-details-marker{display:none}body.plan-page .plan-chat-dock:not([open]):hover{background:#315cb0;box-shadow:-5px 5px 22px #17365d2b}body.plan-page .plan-chat-dock:not([open])>summary:focus-visible{outline:3px solid #92b9ff;outline-offset:-4px}body.plan-page .plan-chat-dock[open]{right:16px;top:max(100px,calc(50dvh - 330px));bottom:auto;width:360px;height:min(660px,calc(100dvh - 120px));min-width:0;transform:none;border-radius:14px;animation:chat-panel-enter .2s ease-out}body.plan-page .plan-chat-dock[open]>summary{height:40px;box-sizing:border-box;padding:10px 14px;list-style:none}body.plan-page .plan-chat-dock[open]>iframe{height:calc(100% - 40px);width:100%}}
@keyframes chat-panel-enter{from{opacity:0;translate:12px 0}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){body.plan-page .plan-chat-dock{animation:none!important;transform:none!important;will-change:auto}}
/* Desktop layout contract: one bounded workspace, no inherited side offsets. */
@media(min-width:851px){body.app-ui.plan-page main#page-content{box-sizing:border-box;width:calc(100% - 48px);max-width:1600px;margin:22px auto;padding:18px 20px;min-width:0}body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{box-sizing:border-box;width:calc(100% - 420px);max-width:1600px;margin:22px 396px 22px 24px;padding:18px 20px;min-width:0}body.app-ui.plan-page .header-inner{box-sizing:border-box;max-width:1640px;gap:24px}body.app-ui.plan-page #page-content>.top{justify-content:flex-start;gap:24px;flex-wrap:wrap;margin:0 0 10px;padding:0 0 12px;min-width:0}body.app-ui.plan-page #plan-form{width:100%;box-sizing:border-box;min-width:0}body.app-ui.plan-page #plans-panel,body.app-ui.plan-page #history-panel{min-width:0;max-width:100%}body.app-ui.plan-page #plans-panel>.table-wrap,body.app-ui.plan-page #history-panel>.table-wrap{width:100%;box-sizing:border-box;min-width:0;max-width:100%;overflow-x:auto}body.app-ui.plan-page #plans-panel table{width:100%;min-width:0;table-layout:fixed}body.app-ui.plan-page #plans-panel td,body.app-ui.plan-page #plans-panel th{overflow-wrap:anywhere}body.app-ui.plan-page .plan-open{flex-wrap:wrap;gap:6px 12px}body.app-ui.plan-page .draw-compact .draw-title{justify-content:flex-start;align-items:center}}
@media(min-width:851px) and (max-width:1199px){body.app-ui.plan-page main#page-content,body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{width:calc(100% - 40px);margin:18px auto;padding:14px 16px}body.app-ui.plan-page #plan-form{grid-template-columns:repeat(3,minmax(0,1fr))}body.app-ui.plan-page .header-inner{gap:16px;padding-left:20px;padding-right:20px}body.app-ui.plan-page .desktop-nav{gap:12px;min-width:0}body.app-ui.plan-page .desktop-nav a{font-size:12px}body.app-ui.plan-page .brand{font-size:17px}body.app-ui.plan-page .header-services{gap:8px}body.app-ui.plan-page .header-services .header-action{font-size:11px}body.app-ui.plan-page .plan-chat-dock[open]{width:340px}}
@media(min-width:1200px){body.app-ui.plan-page #plan-form{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Desktop proportions: generous typography, bounded reading width. */
@media(min-width:851px){body.app-ui.plan-page>.app-header{height:84px}body.app-ui.plan-page .header-inner{max-width:1480px}body.app-ui.plan-page .brand{font-size:22px}body.app-ui.plan-page main#page-content{max-width:1440px;margin:22px auto;padding:18px 24px;font-size:14px}body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{max-width:1440px;margin-top:22px;margin-bottom:22px;padding:18px 24px}body.app-ui.plan-page #page-content>.top{font-size:14px;gap:28px;padding-bottom:16px;margin-bottom:12px}body.app-ui.plan-page #page-content .draw-compact{margin:12px 0;padding-top:15px;padding-bottom:15px;gap:12px 24px}body.app-ui.plan-page #page-content .draw-title h1{font-size:23px}body.app-ui.plan-page #page-content .draw-issue{font-size:13px}body.app-ui.plan-page #page-content .draw-next>span{font-size:12px}body.app-ui.plan-page #page-content #countdown{font-size:19px;gap:4px}body.app-ui.plan-page #page-content .draw-clock-part{min-width:27px;padding:6px}body.app-ui.plan-page #page-content .draw-compact .ball{width:36px;max-width:36px;flex-basis:36px;font-size:18px}body.app-ui.plan-page #page-content #numbers{gap:6px}body.app-ui.plan-page .content-switch{margin:12px 0 18px}body.app-ui.plan-page .content-switch button{font-size:14px;padding:9px 20px;min-height:38px}body.app-ui.plan-page .plan-section-heading{margin:14px 0 10px}body.app-ui.plan-page .plan-section-heading h2{font-size:20px}body.app-ui.plan-page #plan-form{margin:8px 0;padding:16px;border-radius:12px;gap:14px}body.app-ui.plan-page #plan-form label{font-size:12px;gap:7px}body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{font-size:14px!important;min-height:44px;height:44px;padding:9px 10px!important;border-radius:8px}body.app-ui.plan-page #plan-form>button{min-height:44px;height:44px;font-size:14px;border-radius:8px}body.app-ui.plan-page #plan-state{font-size:13px;margin:12px 0 16px}body.app-ui.plan-page #plans-panel table th{padding:14px 16px;font-size:13px}body.app-ui.plan-page #plans-panel table td{padding:10px 16px;font-size:14px;line-height:1.5}body.app-ui.plan-page #plans-panel .plan-open{min-height:34px;padding:4px 0;gap:10px}body.app-ui.plan-page #plans-panel .plan-open strong{font-size:14px}body.app-ui.plan-page #plans-panel .plan-open>span{font-size:11px}body.app-ui.plan-page #plans-panel .plan-save{min-height:34px;padding:7px 14px;font-size:12px}body.app-ui.plan-page .list-pager{margin:14px 0}body.app-ui.plan-page #history-panel th,body.app-ui.plan-page #history-panel td{font-size:13px;padding-top:12px;padding-bottom:12px}}
@media(min-width:1200px){body.app-ui.plan-page #plan-form{grid-template-columns:1.2fr 1.2fr 1fr .65fr .75fr .8fr 112px}body.app-ui.plan-page #plan-form>button{grid-column:auto;margin:0}body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{margin-left:auto;margin-right:396px}}
@media(min-width:851px) and (max-width:1199px){body.app-ui.plan-page main#page-content,body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{margin:18px auto;padding:16px 18px}body.app-ui.plan-page #plan-form{grid-template-columns:repeat(3,minmax(0,1fr))}body.app-ui.plan-page #plan-form>button{grid-column:1/-1}}

@media(min-width:851px){body.plan-page .plan-chat-dock:not([open]){left:var(--chat-anchor-left,calc(100% - 42px));right:auto;border-left:0;border-right:1px solid #d0dbeb;border-radius:0 12px 12px 0}body.plan-page .plan-chat-dock[open]{left:auto}}

@media(min-width:851px){body.app-ui.plan-page main#page-content,body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{max-width:1120px}}
/* Shared desktop header aligns with the 1120px plan workspace. */
@media(min-width:851px){body.app-ui:not(.hk-system) .header-inner{box-sizing:border-box;width:calc(100% - 48px);max-width:1120px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px;gap:22px}body.app-ui:not(.hk-system) .header-services{margin-left:auto;flex-shrink:0}body.app-ui:not(.hk-system) .desktop-nav{min-width:0;gap:18px}body.app-ui:not(.hk-system) .desktop-nav a{font-size:13px}body.app-ui:not(.hk-system) .brand{flex-shrink:0}}
@media(min-width:851px) and (max-width:1199px){body.app-ui:not(.hk-system) .header-inner{width:calc(100% - 40px);padding-left:18px;padding-right:18px;gap:16px}body.app-ui:not(.hk-system) .desktop-nav{gap:12px}body.app-ui:not(.hk-system) .desktop-nav a{font-size:12px}}
@media(min-width:851px){body.plan-page .plan-chat-dock[open]>iframe{height:min(620px,calc(100dvh - 160px))!important;max-height:none}}
/* Consistent inset chevrons and a slightly slimmer desktop filter row. */
body.app-ui.plan-page #plan-form select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23445670' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:11px 7px;padding-right:32px!important}
@media(min-width:851px){body.app-ui.plan-page #plan-form select,body.app-ui.plan-page #plan-form input{height:38px;min-height:38px;padding-top:7px!important;padding-bottom:7px!important}body.app-ui.plan-page #plan-form>button{height:38px;min-height:38px;padding-top:7px;padding-bottom:7px}}
@media(min-width:851px){body.app-ui.plan-page #page-content #plan-form select,body.app-ui.plan-page #page-content #plan-form input{height:38px;min-height:38px}}

/* A compact conversation launcher; preserve the body-edge desktop anchor. */
body.app-ui.plan-page .plan-chat-dock>summary{list-style:none!important}
body.app-ui.plan-page .plan-chat-dock>summary::-webkit-details-marker{display:none}
.chat-launch-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.chat-launch-icon .nav-icon{width:19px;height:19px;display:block}
body.app-ui.plan-page .plan-chat-dock:not([open]){box-shadow:0 4px 16px #1565c024!important}
@media(max-width:850px){body.app-ui.plan-page .plan-chat-dock:not([open]){width:auto!important;min-width:0!important;right:14px;bottom:calc(76px + env(safe-area-inset-bottom));border:0!important;border-radius:24px!important}body.app-ui.plan-page .plan-chat-dock:not([open])>summary{display:flex!important;align-items:center;justify-content:center;gap:7px;min-width:0;width:auto;min-height:42px;box-sizing:border-box;padding:10px 15px!important;font-size:13px!important;line-height:20px;border-radius:24px;letter-spacing:0;writing-mode:horizontal-tb}}
@media(min-width:851px){body.app-ui.plan-page .plan-chat-dock:not([open]){width:42px!important;border-radius:0 12px 12px 0!important}body.app-ui.plan-page .plan-chat-dock:not([open])>summary{flex-direction:column;gap:10px;min-height:116px!important;padding:15px 10px!important;writing-mode:horizontal-tb;letter-spacing:0}body.app-ui.plan-page .plan-chat-dock:not([open]) .chat-launch-desktop{writing-mode:vertical-rl;letter-spacing:3px}}
body.app-ui.plan-page .plan-chat-dock[open] .chat-launch-icon .nav-icon{width:17px;height:17px}

/* reference-theme.css */
/* Light palette matched to the user-approved yu28.top reference.
   Colour-only layer: layout and lottery result colour semantics stay intact. */
body.app-ui{--ink:#0f1b2d!important;--muted:#5a6b82!important;--green:#1565c0!important;--soft:#e3effc!important;--line:#d8e0eb!important;--paper:#fff!important;--bg:#f7f9fc!important;--orange:#1565c0!important;--primary:#1565c0;--accent:#e3effc;--surface:#fff;--status-red:#c62828;background:#f7f9fc!important;color:#0f1b2d!important}
body.app-ui a{color:#1565c0}body.app-ui .muted,body.app-ui .eyebrow,body.app-ui .detail-context,body.app-ui .detail-issue,body.app-ui .detail-metrics small,body.app-ui #plan-state{color:#5a6b82!important}
body.app-ui .app-header{background:#fff!important;border-color:#d8e0eb!important;box-shadow:0 1px 0 #0f1b2d04}body.app-ui .brand{color:#0f1b2d!important}body.app-ui .brand small{color:#5a6b82!important}body.app-ui .brand-mark{background:#1565c0!important}body.app-ui .brand-mark>span{background:#f6dfa0!important;color:#17654f!important}
body.app-ui .desktop-nav a{color:#5a6b82!important}body.app-ui .desktop-nav a.current{background:#e3effc!important;color:#1565c0!important;border-radius:8px}body.app-ui .desktop-nav a.current:after{display:none}body.app-ui .header-services a{color:#1565c0!important}body.app-ui .app-download-link{background:#f7f9fc!important;border-color:#d8e0eb!important}
body.app-ui main#page-content,body.app-ui main.home-layout{background:#fff!important;border-color:#d8e0eb!important}body.app-ui .catalog-panel,body.app-ui .aside-card,body.app-ui .lottery-card,body.app-ui .quick-grid>a{background:#fff!important;border-color:#d8e0eb!important;box-shadow:0 1px 3px #0f1b2d0a}body.app-ui .lottery-card:hover,body.app-ui .quick-grid>a:hover{background:#f7f9fc!important;border-color:#b4c9e2!important}
body.app-ui .welcome{background:#fff!important;border:1px solid #d8e0eb!important;box-shadow:0 2px 5px #0f1b2d0d}body.app-ui .welcome h1{color:#0f1b2d!important}body.app-ui .welcome p,body.app-ui .welcome .eyebrow{color:#5a6b82!important}body.app-ui .welcome .quiet-link{color:#1565c0!important}body.app-ui .welcome .primary-link{background:#1565c0!important;color:#fff!important}body.app-ui .hero-visual{opacity:1}body.app-ui .hero-visual>*{box-shadow:none}
body.app-ui button,body.app-ui input,body.app-ui select,body.app-ui textarea{border-color:#d8e0eb!important;accent-color:#1565c0}body.app-ui input:not([type=checkbox]):not([type=radio]),body.app-ui select,body.app-ui textarea{background-color:#fff!important;color:#0f1b2d!important;box-shadow:none}body.app-ui input::placeholder,body.app-ui textarea::placeholder{color:#7b899c!important;opacity:1}body.app-ui :focus-visible{outline-color:#1565c052!important}
body.app-ui #plan-form,body.app-ui .chat-join,body.app-ui .chat-heading{background:#f7f9fc!important;border-color:#d8e0eb!important}body.app-ui #plan-form label{color:#5a6b82!important}body.app-ui #plan-form>button,body.app-ui button[type=submit]:not(.secondary),body.app-ui #chat-send,body.app-ui #chat-join-button{background:#1565c0!important;border-color:#1565c0!important;color:#fff!important}body.app-ui button:disabled{opacity:.5}
body.app-ui .content-switch{background:#f7f9fc!important;border-color:#d8e0eb!important}body.app-ui .content-switch button{background:transparent!important;color:#0f1b2d!important;box-shadow:none!important}body.app-ui .content-switch button.selected{background:#1565c0!important;border-color:#1565c0!important;color:#fff!important;box-shadow:none!important}
body.app-ui table th{background:#eef2f7!important;color:#5a6b82!important;border-color:#d8e0eb!important}body.app-ui table td{color:#0f1b2d;border-color:#d8e0eb!important}body.app-ui table tbody tr:nth-child(even){background:#f7f9fc}body.app-ui table tbody tr:nth-child(odd){background:#fff}body.app-ui table tbody tr:hover{background:#edf4fc!important}body.app-ui table tbody tr.selected-plan{background:#e3effc!important}
body.app-ui .plan-save,body.app-ui .list-pager button,body.app-ui .plan-search-again{color:#1565c0!important;background:#f7f9fc!important;border-color:#d8e0eb!important}body.app-ui #plan-dialog,body.app-ui .detail-cycle-scroll{background:#fff!important;border-color:#d8e0eb!important}body.app-ui .plan-dialog-header,body.app-ui .detail-metrics>div{background:#f7f9fc!important;border-color:#d8e0eb!important}body.app-ui .detail-current{background:#e3effc!important;border-color:#d8e0eb!important}body.app-ui .detail-numbers{color:#1565c0!important}body.app-ui .detail-metrics strong{color:#0f1b2d!important}body.app-ui #plan-dialog-close{background:#eef2f7!important;color:#5a6b82!important}
body.app-ui #page-content .draw-compact{background:#fff!important;border-color:#d8e0eb!important}body.app-ui .draw-issue,body.app-ui .draw-issue strong,body.app-ui .draw-next>span{color:#5a6b82!important}body.app-ui .draw-compact #countdown{color:#c62828!important}body.app-ui .draw-clock-part{color:#c62828;background:#fff;border-color:#d8e0eb!important}body.app-ui .draw-compact:not([data-kind=pk10]) .ball{background:#eef2f7!important;color:#0f1b2d!important;border:1px solid #d8e0eb!important;text-shadow:none!important;box-shadow:none!important}
body.app-ui .plan-chat-dock{border-color:#d8e0eb!important;box-shadow:0 8px 24px #0f1b2d1a!important;background:#fff!important}body.app-ui .plan-chat-dock:not([open]){background:#1565c0!important}body.app-ui .plan-chat-dock>summary{background:#1565c0!important;color:#fff!important}body.app-ui .chat-stream,body.app-ui .chat-conversation,body.app-ui .chat-compose{background:#fff!important;border-color:#d8e0eb!important}body.app-ui .chat-room-tab{background:#f7f9fc!important;color:#5a6b82!important;border-color:#d8e0eb!important}body.app-ui .chat-room-tab[aria-pressed=true],body.app-ui .chat-room-button.selected{background:#1565c0!important;color:#fff!important;border-color:#1565c0!important}body.app-ui .chat-room-button.selected>span{background:#e3effc!important;color:#1565c0!important}body.app-ui .chat-message-body{background:#eef2f7!important;border-color:#d8e0eb!important;color:#0f1b2d!important;text-shadow:none!important}body.app-ui .chat-message.mine .chat-message-body{background:#e3effc!important;color:#0d47a1!important}body.app-ui .chat-message-meta,body.app-ui .chat-connection,body.app-ui #chat-status,body.app-ui #chat-send-hint{color:#5a6b82!important}
body.app-ui .mobile-nav{background:#fff!important;border-color:#d8e0eb!important}body.app-ui .mobile-nav a{color:#5a6b82!important}body.app-ui .mobile-nav a.current{color:#1565c0!important}body.app-ui .mobile-nav a.current>span,body.app-ui .mobile-nav a.current>i{background:#e3effc!important;color:#1565c0!important}
body.app-ui.legacy-tool button:not(.selected){background:#f7f9fc!important;color:#1565c0!important;border-color:#d8e0eb!important}body.app-ui.legacy-tool .selected,body.app-ui.legacy-tool .on{background:#1565c0!important;color:#fff!important;border-color:#1565c0!important}
body.app-ui .desktop-nav a{height:40px!important;padding-left:10px;padding-right:10px;align-self:center;display:inline-flex;align-items:center}body.app-ui .desktop-nav{gap:6px!important}body.app-ui .quick-grid i{background:#e3effc!important;color:#1565c0!important}body.app-ui .orbit{border-color:#d8e0eb!important}body.app-ui .hero-ball.one{background:#eef2f7!important;color:#5a6b82!important}body.app-ui .hero-ball.two{background:#1565c0!important;color:#fff!important}body.app-ui .hero-ball.three{background:#e3effc!important;color:#0d47a1!important}body.app-ui .visual-label,body.app-ui .visual-cross{color:#5a6b82!important}
body.app-ui.hk-system{--analysis-accent:#1565c0!important}body.app-ui.hk-system .analysis-back,body.app-ui.hk-system .history-heading p,body.app-ui.hk-system .history-basic>label{color:#5a6b82!important}body.app-ui.hk-system .history-controls,body.app-ui.hk-system .analysis-navigation>summary,body.app-ui.hk-system .analysis-navigation>nav{background:#fff!important;border-color:#d8e0eb!important}
body.app-ui.hk-system #analysis-refresh,body.app-ui.hk-system .history-basic button{background:#1565c0!important;border-color:#1565c0!important;color:#fff!important}body.app-ui.hk-system .analysis-toolbar>div{background:#f7f9fc;border:1px solid #d8e0eb}body.app-ui.hk-system .analysis-toolbar button{color:#5a6b82!important}body.app-ui.hk-system .analysis-toolbar button[aria-pressed=true]{background:#1565c0!important;color:#fff!important;box-shadow:none}body.app-ui.hk-system .analysis-summary small,body.app-ui.hk-system .analysis-bar-label,body.app-ui.hk-system .analysis-bar-value,body.app-ui.hk-system .analysis-empty,body.app-ui.hk-system .analysis-record-head time,body.app-ui.hk-system .analysis-number small,body.app-ui.hk-system .history-results-heading>span,body.app-ui.hk-system .history-highlight>summary,body.app-ui.hk-system .highlight-body legend{color:#5a6b82!important}body.app-ui.hk-system .analysis-navigation nav a[aria-current],body.app-ui.hk-system .history-chips>label:has(input:checked){background:#e3effc!important;color:#0d47a1!important;border-color:#d8e0eb!important}body.app-ui.hk-system .analysis-bar-track{background:#eef2f7}body.app-ui.hk-system .analysis-bar-fill,body.app-ui.hk-system .analysis-cell-hit{background:#1565c0}body.app-ui.hk-system .analysis-matrix th,body.app-ui.hk-system .analysis-matrix th:first-child{background:#eef2f7!important}body.app-ui.hk-system .analysis-cell-miss{color:#b6c2d2}body.app-ui.hk-system .history-chips>label{background:#f7f9fc!important;border-color:#d8e0eb!important;color:#5a6b82!important}
body.app-ui .app-header .desktop-nav{height:auto!important;align-self:center;align-items:center;gap:8px!important}
body.app-ui .app-header .desktop-nav>a{box-sizing:border-box;height:36px!important;min-height:36px!important;max-height:36px!important;line-height:1!important;padding:0 12px!important;margin:0!important;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:7px;transition:background-color .15s ease,color .15s ease}
body.app-ui .app-header .desktop-nav>a.current{background:#e3effc!important;color:#1565c0!important;border-color:#d8e7f9;font-weight:600;box-shadow:none}
body.app-ui .app-header .desktop-nav>a:not(.current):hover{background:#f1f5fa;color:#1565c0!important}
@media(min-width:851px) and (max-width:1199px){body.app-ui .app-header .desktop-nav{gap:4px!important}body.app-ui .app-header .desktop-nav>a{padding-left:7px!important;padding-right:7px!important}}

/* site-width.css */
/* Shared front-end width contract; embedded chat owns its iframe viewport. */
@media(min-width:851px){
 body.app-ui:not(.chat-embedded){--site-max-width:1180px;--site-content-inset:24px}
 body.app-ui:not(.chat-embedded)>main,body.app-ui:not(.chat-embedded) main#page-content{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--site-max-width)!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--site-content-inset)!important;padding-right:var(--site-content-inset)!important}
 body.app-ui:not(.chat-embedded) .app-header .header-inner{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--site-max-width)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--site-content-inset)!important;padding-right:var(--site-content-inset)!important}
 body.app-ui.legacy-tool>.wap_body,body.app-ui.legacy-tool>.wrapper{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--site-max-width)!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--site-content-inset)!important;padding-right:var(--site-content-inset)!important}
 body.app-ui:not(.chat-embedded) .app-footer{box-sizing:border-box;width:calc(100% - 48px);max-width:var(--site-max-width);margin-left:auto;margin-right:auto;padding-left:var(--site-content-inset);padding-right:var(--site-content-inset)}
}
@media(min-width:851px) and (max-width:1199px){body.app-ui:not(.chat-embedded){--site-content-inset:18px}body.app-ui:not(.chat-embedded)>main,body.app-ui:not(.chat-embedded) main#page-content,body.app-ui:not(.chat-embedded) .app-header .header-inner,body.app-ui.legacy-tool>.wap_body,body.app-ui.legacy-tool>.wrapper{width:calc(100% - 40px)!important}}
/* Expanded chat shares the same centered canvas as the header; do not
   shift the entire workspace toward a viewport-fixed chat panel. */
@media(min-width:1200px){
 body.app-ui.plan-page:has(.plan-chat-dock[open]) main#page-content{width:calc(100% - 48px)!important;margin-left:auto!important;margin-right:auto!important;padding-right:384px!important}
 body.app-ui.plan-page .plan-chat-dock[open]{width:340px!important;left:auto!important;right:max(24px,calc((100% - 1180px)/2 + 24px))!important}
}
@media(min-width:851px){html:has(>body.app-ui.legacy-tool){width:100%!important;max-width:none!important;margin:0!important}body.app-ui.legacy-tool{width:100%!important;max-width:none!important;margin:0!important}}
@media(min-width:851px){body.app-ui.legacy-tool>.wap_body_tool{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--site-max-width)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--site-content-inset)!important;padding-right:var(--site-content-inset)!important}}
@media(min-width:851px) and (max-width:1199px){body.app-ui.legacy-tool>.wap_body_tool{width:calc(100% - 40px)!important}}
/* Outer layout is a gutter only. Visible panels start on the header's content edge. */
body.app-ui.chat-page:not(.chat-embedded) main#page-content{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
body.app-ui.chat-page:not(.chat-embedded) .chat-layout{border:1px solid #d8e0eb;border-radius:14px;overflow:hidden;background:#fff}
body.app-ui.chat-page:not(.chat-embedded) .chat-conversation{min-width:0;width:100%;overflow:hidden}
body.app-ui.chat-page:not(.chat-embedded) .chat-stream{box-sizing:border-box;width:100%;min-width:0}
@media(max-width:850px){body.app-ui.chat-page:not(.chat-embedded) main#page-content{box-sizing:border-box;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:12px!important;padding-right:12px!important}body.app-ui.chat-page:not(.chat-embedded) .chat-layout{border-radius:10px}}
/* Home is a transparent layout grid, not an additional white card. */
body.app-ui main#page-content.home-layout{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
/* Structural HK canvases are transparent; only actual data panels are white. */
body.app-ui.hk-system main#page-content{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:850px){body.app-ui main.home-layout .workspace-grid{grid-template-columns:minmax(0,1fr)}body.app-ui main.home-layout .workspace-grid>*{min-width:0;max-width:100%}body.app-ui main.home-layout .welcome{min-width:0;overflow:hidden}body.app-ui main.home-layout .workspace-aside{grid-template-columns:repeat(2,minmax(0,1fr))}body.app-ui main.home-layout .workspace-aside>*{min-width:0}}
@media(max-width:400px){body.app-ui main.home-layout .section-heading{flex-wrap:wrap;gap:10px;min-width:0}body.app-ui main.home-layout .section-heading .search-field{width:100%;min-width:0;display:flex}body.app-ui main.home-layout .search-field input{width:100%;min-width:0;flex:1}body.app-ui main.home-layout .lottery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.app-ui main.home-layout .lottery-card{min-width:0}body.app-ui main.home-layout .lottery-card strong{overflow-wrap:anywhere}body.app-ui main.home-layout .workspace-aside{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){body.app-ui main.home-layout .hero-visual{display:none}body.app-ui main.home-layout .welcome{min-height:0}body.app-ui main.home-layout .hero-copy{width:100%;max-width:none}}

@media(max-width:850px){body.app-ui.hk-system main#page-content{width:100%;max-width:100%;padding:16px 12px!important;margin:0 auto!important;box-sizing:border-box}}
/* Center the document canvas too: legacy page-level widths must not shift
   all three shared containers together while leaving their internals aligned. */
@media(min-width:851px){
html:has(>body.app-ui:not(.chat-embedded)){width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
body.app-ui:not(.chat-embedded){box-sizing:border-box!important;display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important}
body.app-ui:not(.chat-embedded) .site-footer-inner{box-sizing:border-box!important;width:calc(100% - 48px)!important;max-width:var(--site-max-width,1180px)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--site-content-inset,24px)!important;padding-right:var(--site-content-inset,24px)!important}
}
@media(min-width:851px) and (max-width:1199px){body.app-ui:not(.chat-embedded) .site-footer-inner{width:calc(100% - 40px)!important}}
/* Desktop gutters are transparent; only actual content panels own a surface.
   Their visible left edge now matches the logo, rather than extending into
   the shared container's 24px alignment gutter. */
@media(min-width:851px){body.app-ui:not(.chat-embedded) main#page-content{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}}

/* Percentage width excludes the scrollbar gutter on narrow screens. */
@media(max-width:850px){body.app-ui.plan-page .plan-chat-dock[open]{width:calc(100% - 24px)!important;right:12px!important;left:auto!important}}

/* site-chrome.css */
body.app-ui .site-footer{clear:both;margin-top:36px;background:#303030;color:#b8bec8;font-size:12px;line-height:1.7;border-top:1px solid #3c3c3c}body.app-ui .site-footer-inner{box-sizing:border-box;max-width:1120px;width:calc(100% - 48px);padding:28px 24px 22px;margin:0 auto}body.app-ui .site-footer-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}body.app-ui .site-footer-brand{display:flex;align-items:center;gap:12px;color:#fff!important;font-size:20px;text-decoration:none}.footer-brand-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:#1565c0;color:white;border-radius:10px;font-weight:750;font-size:21px}.footer-brand-mark small{position:absolute;left:-4px;bottom:-3px;background:#f6dfa0;color:#17654f;border-radius:4px;font-size:10px;line-height:16px;width:16px;text-align:center}.site-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}body.app-ui .site-footer nav a{color:#c4c9d1!important}body.app-ui .site-footer a:hover{color:#fff!important;text-decoration:underline}.site-footer-description{margin:18px 0 0;color:#aeb6c2;max-width:700px;white-space:pre-line}.site-friend-links{margin-top:22px}.site-friend-links>span{color:#969faa;display:block;margin-bottom:8px}.site-friend-links nav{background:#393939;border-radius:8px;padding:12px 16px}.site-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;color:#939ca9}body.app-ui .site-footer-bottom button{border:0;background:transparent!important;color:#bdc4ce!important;padding:4px;font-size:12px;min-height:28px}.page-scroll-tools{position:fixed;left:var(--scroll-tools-left,auto);right:12px;bottom:36px;z-index:38;display:flex;flex-direction:column;gap:5px}.page-scroll-tools button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px!important;padding:0!important;border:1px solid #d8e0eb!important;border-radius:8px;background:#fff!important;color:#5a6b82!important;font-size:20px!important;box-shadow:0 2px 8px #0f1b2d0c}.page-scroll-tools button:hover{color:#1565c0!important;background:#e3effc!important}.page-scroll-tools button:disabled{opacity:.35;cursor:default}@media(min-width:851px){.page-scroll-tools{right:auto}}@media(min-width:851px) and (max-width:1199px){body.app-ui .site-footer-inner{width:calc(100% - 40px);padding-left:18px;padding-right:18px}}@media(max-width:850px){body.app-ui .site-footer-inner{width:100%;padding:24px 16px 20px}.site-footer-top{align-items:flex-start;gap:18px}.site-footer nav{gap:9px 16px}.site-footer-brand{font-size:18px}.page-scroll-tools{left:auto;right:12px;bottom:130px}.page-scroll-tools button{width:30px;height:30px;min-height:30px!important}body:has(.plan-chat-dock[open]) .page-scroll-tools{display:none}}
/* Phones use the bottom navigation; desktop footer and scroll controls stay off-screen. */
@media(max-width:850px){body.app-ui .site-footer,body.app-ui .page-scroll-tools{display:none!important}}

/* select-controls.css */
/* Shared native single-select styling. Multiple-selection list boxes keep
   their list behavior; no custom popup replaces keyboard or mobile controls. */
body.app-ui select:not([multiple]):not([size]),
body.app-ui #page-content select:not([multiple]):not([size]),
body.app-ui.legacy-tool select:not([multiple]):not([size]),
body #content select:not([multiple]):not([size]){
 appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;
 height:36px!important;min-height:36px!important;max-width:100%;min-width:0;
 padding:6px 34px 6px 11px!important;border:1px solid #d8e0eb!important;border-radius:8px!important;
 background-color:#fff!important;color:#0f1b2d!important;font-family:inherit!important;
 font-size:13px!important;font-weight:400!important;line-height:1.4!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235a6b82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 13px center!important;background-size:11px 7px!important;
 box-shadow:none!important;text-overflow:ellipsis;vertical-align:middle;cursor:pointer;
}
body.app-ui select:not([multiple]):focus-visible,body #content select:not([multiple]):focus-visible{outline:2px solid #1565c0!important;outline-offset:2px;border-color:#1565c0!important}
body.app-ui select:disabled,body #content select:disabled{background-color:#eef2f7!important;color:#8b98a9!important;cursor:not-allowed}
@media(max-width:850px){body.app-ui #page-content select:not([multiple]):not([size]),body.app-ui select:not([multiple]):not([size]),body.app-ui.legacy-tool select:not([multiple]):not([size]),body #content select:not([multiple]):not([size]){height:36px!important;min-height:36px!important;font-size:13px!important;padding-top:6px!important;padding-bottom:6px!important}}

/* presentation.css */
body.app-ui .brand-mark-custom{background:transparent!important;box-shadow:none!important}
body.app-ui .brand-mark>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
body.app-ui .site-footer-brand .brand-mark{width:36px;height:36px;font-size:22px;flex-shrink:0}
body.app-ui .site-footer-brand .brand-mark>span{font-size:10px;width:16px;height:16px;line-height:16px}
.site-advertisements{box-sizing:border-box;width:calc(100% - 96px);max-width:1072px;margin:16px auto;display:grid;gap:12px}
.site-advertisements>a,.site-advertisements>div{display:block;overflow:hidden;border-radius:10px;border:1px solid #d8e0eb;background:#fff}
.site-advertisements img{display:block;width:100%;max-height:260px;object-fit:contain}
.service-page{min-height:45vh}.service-page p{color:#5a6b82;line-height:1.8}.service-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.service-qr{width:180px;max-width:100%;border:1px solid #d8e0eb;border-radius:12px;padding:8px;background:white}
@media(min-width:851px) and (max-width:1199px){.site-advertisements{width:calc(100% - 76px)}}
@media(max-width:850px){.site-advertisements{width:calc(100% - 24px);margin:12px auto}.site-advertisements img{max-height:180px}}

/* typography.css */
/* Shared reading hierarchy; number balls and dense result ledgers retain their
   separately sized numeric styles. */
body.app-ui{--type-page:26px;--type-section:20px;--type-subtitle:16px;--type-body:14px;--type-hint:12px;--type-caption:11px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:var(--type-body);line-height:1.6}
body.app-ui #page-content:not(.home-layout) h1{font-size:var(--type-page)!important;line-height:1.35;letter-spacing:-.3px;font-weight:650}
body.app-ui #page-content h2{font-size:var(--type-section)!important;line-height:1.4;font-weight:650}
body.app-ui #page-content h3{font-size:var(--type-subtitle)!important;line-height:1.5;font-weight:600}
body.app-ui #page-content p{font-size:var(--type-body);line-height:1.7}
body.app-ui #page-content :is(.muted,.helptext,.plan-section-heading>span,#plan-state){font-size:var(--type-hint)!important;line-height:1.6;color:#5a6b82}
body.app-ui #page-content :is(button,input,textarea,select){font-family:inherit}
body.app-ui #page-content .draw-title h1{font-size:22px!important;margin:0;line-height:1.35}
body.app-ui #page-content .draw-schedule-meta{font-size:var(--type-caption)!important}
body.app-ui.legacy-tool .a_title{font-size:var(--type-subtitle)!important;line-height:1.5}
@media(max-width:850px){body.app-ui{--type-page:22px;--type-section:18px;--type-subtitle:15px}body.app-ui #page-content .draw-title h1{font-size:18px!important}}
/* One vector family: identical view box, stroke and optical container. */
body.app-ui .mobile-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px!important;line-height:16px;font-weight:500;color:#6b7b85}
body.app-ui .mobile-dock a>span{display:grid!important;place-items:center;box-sizing:border-box;width:42px!important;height:28px!important;min-height:28px;margin:0!important;padding:0!important;border-radius:10px;font-size:0!important;line-height:1}
body.app-ui .mobile-dock .nav-icon{display:block;width:22px;height:22px;flex-shrink:0;overflow:visible}
body.app-ui .mobile-dock a.active,body.app-ui .mobile-dock a.current,body.app-ui .mobile-dock a[aria-current=page]{font-weight:600;color:#1565c0}
body.app-ui .mobile-dock a.active>span,body.app-ui .mobile-dock a.current>span,body.app-ui .mobile-dock a[aria-current=page]>span{background:#e3effc;color:#1565c0}

/* button-controls.css */
/* Shared size for text actions. Icon buttons keep their optical tap targets. */
body.app-ui.plan-page #page-content{--action-height:38px;--action-font:13px;--action-radius:8px}
body.app-ui.plan-page #page-content button:not(.lottery-nav-action):not(.plan-open):not(.plan-save):not(#plan-dialog-close){box-sizing:border-box;height:var(--action-height)!important;min-height:var(--action-height)!important;padding:8px 20px!important;font-size:var(--action-font)!important;font-family:inherit;line-height:20px!important;font-weight:500;border-radius:var(--action-radius);vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;gap:6px}
body.app-ui.plan-page #page-content .content-switch>button,body.app-ui.precise-page #page-content #detail>.precise-collect{min-width:94px}
body.app-ui.plan-page.precise-page #page-content #plans>button{height:var(--action-height)!important;min-height:var(--action-height)!important;font-size:var(--action-font)!important;justify-content:flex-start;padding:8px 14px!important}
body.app-ui.precise-page #page-content #detail>.precise-collect{border:1px solid #cbd8e8;background:#fff;color:#5a6b82;border-radius:8px;box-shadow:none}
body.app-ui.precise-page #page-content #detail>.precise-collect[aria-pressed=true]{background:#e3effc;color:#1565c0;border-color:#b5d2f6}
@media(max-width:850px){body.app-ui.plan-page #page-content{--action-height:36px}body.app-ui.plan-page #page-content button:not(.lottery-nav-action):not(.plan-open):not(.plan-save):not(#plan-dialog-close){padding:7px 16px!important}body.app-ui.plan-page #page-content .content-switch>button,body.app-ui.precise-page #page-content #detail>.precise-collect{min-width:84px}}

/* header-layout.css */
/* One desktop header contract for every public page, independent of body content. */
@media(min-width:851px){
 html:has(>body.app-ui:not(.chat-embedded)){overflow-y:scroll!important;scrollbar-gutter:stable}
 body.app-ui:not(.chat-embedded)>.app-header{box-sizing:border-box!important;width:100%!important;height:88px!important;min-height:88px!important;margin:0!important;padding:0!important;border-width:0 0 1px!important;flex:none}
 body.app-ui:not(.chat-embedded)>.app-header>.header-inner{height:87px!important;min-height:87px!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;padding:0 var(--site-content-inset)!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important;line-height:1.6!important}
 body.app-ui:not(.chat-embedded)>.app-header .brand{flex-shrink:0;line-height:1.2!important;margin:0!important;padding:0!important}
 body.app-ui:not(.chat-embedded)>.app-header .brand>span:not(.brand-mark){font-size:21px!important;line-height:25.2px!important}
 body.app-ui:not(.chat-embedded)>.app-header .brand small{line-height:1.5!important;margin-top:7px!important}
 body.app-ui:not(.chat-embedded)>.app-header .desktop-nav{flex:0 0 auto!important;flex-wrap:nowrap!important;margin:0 0 0 auto!important;padding:0!important;align-items:center!important}
 body.app-ui:not(.chat-embedded)>.app-header .desktop-nav>a{line-height:20px!important;flex-shrink:0}
 body.app-ui:not(.chat-embedded)>.app-header .header-services{flex-wrap:nowrap!important;flex-shrink:0;line-height:20px!important;margin-top:0!important;margin-bottom:0!important;margin-left:0!important;padding:0!important}
 body.app-ui:not(.chat-embedded)>.app-header .header-services:empty{display:none!important}
}

/* tool-controls.css */
/* Shared controls for migrated calculators. Keep Layui event bindings intact. */
body.app-ui.legacy-tool .layui-form-select,body.app-ui.legacy-tool .layui-select-title{background:transparent!important;min-width:0;border:0!important;box-shadow:none!important}
body.app-ui.legacy-tool .layui-select-title>input{box-sizing:border-box!important;width:100%!important;height:36px!important;min-height:36px!important;line-height:22px!important;padding:6px 34px 6px 11px!important;font-size:13px!important;border:1px solid #d8e0eb!important;border-radius:8px!important;background:#fff!important;color:#20344d!important;box-shadow:none!important}
body.app-ui.legacy-tool .layui-form-select .layui-edge{right:13px!important;top:50%!important;margin-top:-3px!important;border-top-color:#5a6b82!important;border-width:5px!important}
body.app-ui.legacy-tool .layui-form-selected .layui-edge{margin-top:-8px!important}
body.app-ui.legacy-tool .layui-form-select dl{top:40px!important;border:1px solid #d8e0eb!important;border-radius:8px!important;box-shadow:0 5px 18px #18365818!important;background:white!important;padding:5px!important;z-index:1300}
body.app-ui.legacy-tool .layui-form-select dl dd{font-size:13px!important;line-height:34px!important;min-height:34px!important;border-radius:5px;color:#20344d!important}
body.app-ui.legacy-tool .layui-form-select dl dd.layui-this{background:#e3effc!important;color:#1565c0!important}
body.app-ui.legacy-tool button{background:#1565c0!important;color:#fff!important;border:1px solid #1565c0!important;box-shadow:none!important;border-radius:8px!important;font-size:13px!important;line-height:20px!important;min-height:36px;padding:7px 14px!important}
body.app-ui.legacy-tool button :is(span,i){color:inherit!important}
body.app-ui.legacy-tool :is(.sr_list,.cose_fun_btns) button{background:#f7f9fc!important;color:#1565c0!important;border-color:#d8e0eb!important}
body.app-ui.legacy-tool .sr_list button img{display:none}
body.app-ui.legacy-tool :is(#copyAll,.fg_rsli em){background:#1565c0!important;color:white!important;box-shadow:none!important;border-radius:5px;padding:5px 9px;cursor:pointer}
body.app-ui.legacy-tool .fge_tab{padding:0 0 14px}
body.app-ui.legacy-tool .fge_ul{display:flex;max-width:540px;margin:0 auto!important}
body.app-ui.legacy-tool .fge_ul li{flex:1;width:auto!important;margin:0!important}
body.app-ui.legacy-tool .fge_tab .layui-form-radio{height:36px;line-height:34px!important;background:white!important;border:1px solid #d8e0eb!important;color:#526176!important}
body.app-ui.legacy-tool .fge_tab .layui-form-radioed{background:#1565c0!important;border-color:#1565c0!important;color:white!important}
body.app-ui.legacy-tool .sr_tit{gap:12px;padding-top:14px;min-height:42px}
body.app-ui.legacy-tool .sr_tit .sr_titspan{flex:1;min-width:0;width:auto;font-size:14px;font-weight:600}
body.app-ui.legacy-tool .sr_list{width:auto!important;margin:0!important;gap:8px}
body.app-ui.legacy-tool .sr_list li{width:auto!important;margin:0!important}
body.app-ui.legacy-tool .sr_textarea{height:112px;min-height:96px;border:1px solid #d8e0eb!important;background:white!important;box-shadow:none!important;padding:12px!important;font-size:14px!important;resize:vertical}
body.app-ui.legacy-tool .fg_xuanze{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;padding:14px 0}
body.app-ui.legacy-tool .fg_xzspan{width:auto!important}
body.app-ui.legacy-tool .fg_selbox{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%!important;margin:0!important}
body.app-ui.legacy-tool .fg_selitem{width:100%!important;margin:0!important;min-width:0}
body.app-ui.legacy-tool .fg_start{text-align:right;padding:0 0 16px}
body.app-ui.legacy-tool .fg_start button{width:auto!important;min-width:160px;height:38px!important}
body.app-ui.legacy-tool .fg_result{margin-top:16px!important;border-top:1px solid #d8e0eb}
body.app-ui.legacy-tool .fg_rslist{height:auto!important;min-height:150px;max-height:420px!important}
@media(max-width:640px){body.app-ui.legacy-tool .fg_xuanze{grid-template-columns:1fr;gap:8px}body.app-ui.legacy-tool .fg_selbox{gap:10px}body.app-ui.legacy-tool .fg_start button{width:100%!important}body.app-ui.legacy-tool :is(.wap_body_tool,.wap_body,.wrapper){max-width:100%;min-width:0}body.app-ui.legacy-tool .fg_rstit2 .fg_rst2{font-size:11px}body.app-ui.legacy-tool #copyAll{display:block;margin:4px auto 0;max-width:max-content;font-size:11px}body.app-ui.legacy-tool .fg_rsli span{font-size:12px!important}body.app-ui.legacy-tool .fg_rsli span em{width:auto!important;min-width:35px;margin:2px!important}}
body.app-ui.legacy-tool .fg_start button,body.app-ui.legacy-tool .start_btns button:first-child,body.app-ui.legacy-tool .toolResult .btns button:first-child,body.app-ui.legacy-tool #starjj{background:#1565c0!important;color:#fff!important;border-color:#1565c0!important}
body.app-ui.legacy-tool .cose_btnul .cose_btn{background:white!important;color:#526176!important;border:1px solid #d8e0eb!important}
body.app-ui.legacy-tool .cose_btnul .cose_btn.layui-this{background:#1565c0!important;color:white!important;border-color:#1565c0!important}
/* Shared spacing rhythm: page gutter, panel inset and section separation. */
body.app-ui.legacy-tool{--tool-page-gap:24px;--tool-panel-inset:20px;--tool-section-gap:20px}
body.app-ui.legacy-tool>:is(.wap_body,.wap_body_tool,.wrapper){margin-top:var(--tool-page-gap)!important;margin-bottom:var(--tool-page-gap)!important;padding-top:var(--tool-panel-inset)!important;padding-bottom:var(--tool-panel-inset)!important}
body.app-ui.legacy-tool :is(.toolResult,.start_suosui,.fun_btm,.yzls_btm){margin-top:var(--tool-section-gap)!important;margin-bottom:0!important}
body.app-ui.legacy-tool .fg_result{margin-top:var(--tool-section-gap)!important;padding-top:14px!important}
body.app-ui.legacy-tool .fg_start{padding-bottom:0!important}
body.app-ui.legacy-tool .fge_tab{padding-bottom:16px!important}
body.app-ui.legacy-tool .sr_tit{padding-top:16px!important}
body.app-ui.legacy-tool .sr_textarea{margin-top:12px!important}
body.app-ui.legacy-tool .fg_xuanze{padding-top:16px!important;padding-bottom:16px!important}
@media(max-width:640px){body.app-ui.legacy-tool{--tool-page-gap:12px;--tool-panel-inset:12px;--tool-section-gap:12px}body.app-ui.legacy-tool .fge_tab{padding-bottom:12px!important}body.app-ui.legacy-tool .sr_tit{padding-top:12px!important}body.app-ui.legacy-tool .sr_textarea{margin-top:10px!important}body.app-ui.legacy-tool .fg_xuanze{padding-top:12px!important;padding-bottom:12px!important}body.app-ui.legacy-tool .fg_result{padding-top:10px!important}}

body.app-ui.calculator-page main#page-content{margin-top:10px!important;margin-bottom:10px!important}
@media(max-width:640px){body.app-ui.calculator-page main#page-content{margin-top:10px!important;margin-bottom:10px!important}}
/* The panel itself owns its inset. Transparent outer gutters must not masquerade
   as panel padding, leaving the first/last controls flush against white surfaces. */
body.app-ui.legacy-tool>.wap_body_tool{background:transparent!important;border:0!important;box-shadow:none!important;padding-top:0!important;padding-bottom:0!important}
body.app-ui.legacy-tool .wap_body_tool>.fenge_bg,body.app-ui.legacy-tool .wap_body_tool>.fg_result{box-sizing:border-box;padding:20px!important;border:1px solid #d8e0eb!important;border-radius:12px;background:#fff}
body.app-ui.legacy-tool .fge_tab{border-bottom:1px solid #e4eaf1!important;padding:0 0 16px!important}
body.app-ui.legacy-tool .fge_tab .fge_ul{display:flex!important;gap:0!important;max-width:540px;margin:0!important;height:auto!important}
body.app-ui.legacy-tool .fge_tab .fge_li{display:block!important;flex:1 1 0!important;min-width:0!important;margin:0!important;padding:0!important}
body.app-ui.legacy-tool .fge_tab .fge_li .layui-form-radio{box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;width:100%!important;height:36px!important;margin:0!important;padding:0!important;border-radius:0!important;border:1px solid #cbd8e8!important;position:relative}
body.app-ui.legacy-tool .fge_tab .fge_li+.fge_li .layui-form-radio{border-left:0!important}
body.app-ui.legacy-tool .fge_tab .fge_li:first-child .layui-form-radio{border-radius:8px 0 0 8px!important}
body.app-ui.legacy-tool .fge_tab .fge_li:last-child .layui-form-radio{border-radius:0 8px 8px 0!important}
body.app-ui.legacy-tool .fge_tab .fge_li .layui-form-radio>div{font-size:13px;line-height:20px}
body.app-ui.legacy-tool .fge_tab .layui-form-radioed{box-shadow:inset 0 0 0 1px #1565c0!important}
body.app-ui.legacy-tool .fg_rstit2{padding:0 0 12px!important}
body.app-ui.legacy-tool .fg_start{padding:0!important;display:flex;justify-content:flex-end}
@media(max-width:640px){body.app-ui.legacy-tool .wap_body_tool>.fenge_bg,body.app-ui.legacy-tool .wap_body_tool>.fg_result{padding:12px!important;border-radius:9px}body.app-ui.legacy-tool .fge_tab{padding-bottom:12px!important}}
body.app-ui.legacy-tool .fg_start button{margin:0!important}

/* visitor-fixes.css */
/* Visitor acceptance: long combinations must stay inside the detail area. */
body.app-ui.precise-page #page-content #detail{min-width:0;max-width:100%;overflow-wrap:anywhere}
body.app-ui.precise-page #page-content #detail>p{overflow-wrap:anywhere;word-break:normal}
body.app-ui.precise-page #page-content #detail>.table{width:100%;max-width:100%;min-width:0;max-height:380px;overflow:auto;overscroll-behavior:contain}
@media(max-width:850px){body.app-ui.precise-page #page-content #detail table{width:100%;table-layout:fixed}body.app-ui.precise-page #page-content #detail td{white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;padding:9px 7px!important}body.app-ui.precise-page #page-content #detail td:first-child{width:29%}body.app-ui.precise-page #page-content #detail td:last-child{width:15%}}

/* Keep the numbered plan label separate from its statistics on narrow phones. */
@media(max-width:600px){
 body.app-ui.plan-page #plans-panel table{width:100%!important;table-layout:fixed!important}
 body.app-ui.plan-page #plans-panel th,body.app-ui.plan-page #plans-panel td{box-sizing:border-box;padding-left:4px!important;padding-right:4px!important;white-space:normal!important;overflow-wrap:anywhere}
 body.app-ui.plan-page #plans-panel th:nth-child(1),body.app-ui.plan-page #plans-panel td:nth-child(1){width:30%!important;padding-left:8px!important}
 body.app-ui.plan-page #plans-panel th:nth-child(2),body.app-ui.plan-page #plans-panel td:nth-child(2){width:22%!important}
 body.app-ui.plan-page #plans-panel th:nth-child(3),body.app-ui.plan-page #plans-panel td:nth-child(3){width:13%!important}
 body.app-ui.plan-page #plans-panel th:nth-child(4),body.app-ui.plan-page #plans-panel td:nth-child(4){width:23%!important}
 body.app-ui.plan-page #plans-panel th:nth-child(5),body.app-ui.plan-page #plans-panel td:nth-child(5){width:12%!important;text-align:center!important}
 body.app-ui.plan-page #plans-panel .plan-open{max-width:100%;width:100%;min-width:0}
 body.app-ui.plan-page #plans-panel .plan-open strong{white-space:normal!important;overflow-wrap:anywhere}
 body.app-ui.plan-page #plans-panel .plan-save{width:30px!important;min-width:30px!important;max-width:30px!important;padding:0!important}
}

/* Use the same compact header when navigating every phone page. */
@media(max-width:600px){
 body.app-ui:not(.chat-embedded)>.app-header{height:64px!important;min-height:64px!important;box-sizing:border-box!important;padding:0!important}
 body.app-ui:not(.chat-embedded)>.app-header>.header-inner{height:63px!important;min-height:63px!important;box-sizing:border-box!important;padding:0 12px!important;gap:8px!important;align-items:center!important}
 body.app-ui:not(.chat-embedded)>.app-header .brand{font-size:17px!important;gap:8px!important;line-height:1.2!important;flex-shrink:0}
 body.app-ui:not(.chat-embedded)>.app-header .brand-mark{width:36px!important;height:36px!important;flex-shrink:0}
 body.app-ui:not(.chat-embedded)>.app-header .brand small{display:block!important;font-size:8px!important;line-height:1.5!important;letter-spacing:1px!important;margin-top:3px!important}
 body.app-ui:not(.chat-embedded)>.app-header .header-services{display:flex!important;gap:8px!important;margin-left:auto!important;flex-shrink:0}
}

/* lottery-nav.css */
/* Site navigation selects a service; this navigation selects a feature of one lottery. */
body.app-ui #page-content>.lottery-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:0;margin:0 0 16px;padding:0;border-bottom:1px solid #d8e3ef;background:transparent}
body.app-ui #page-content>.lottery-nav>a,body.app-ui #page-content>.lottery-nav>button{position:relative;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:108px;min-height:42px!important;height:42px!important;padding:10px 14px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#5b6c82!important;font-size:13px!important;line-height:20px;font-weight:550;text-decoration:none;white-space:nowrap;cursor:pointer}
body.app-ui .lottery-nav .nav-icon{display:block;width:16px;height:16px;flex:0 0 16px}
body.app-ui #page-content>.lottery-nav>.selected{color:#1565c0!important;font-weight:700;background:#edf5ff!important;border-radius:7px 7px 0 0!important}
body.app-ui .lottery-nav>.selected:after{content:"";position:absolute;bottom:-1px;left:14px;right:14px;height:3px;border-radius:3px;background:#1565c0}
body.app-ui #page-content>.lottery-nav>a:hover,body.app-ui #page-content>.lottery-nav>button:hover{color:#1565c0!important;background:#f0f6fd!important}
body.app-ui .lottery-nav>:focus-visible{outline:2px solid #1565c0;outline-offset:2px;z-index:1}
@media(max-width:850px){body.app-ui #page-content>.lottery-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:10px}body.app-ui #page-content>.lottery-nav>a,body.app-ui #page-content>.lottery-nav>button{width:100%;min-width:0;height:38px!important;min-height:38px!important;padding:8px 3px!important;gap:4px;font-size:11px!important}body.app-ui .lottery-nav .nav-icon{width:14px;height:14px;flex-basis:14px}body.app-ui .lottery-nav>.selected:after{left:8px;right:8px}}

/* breadcrumbs.css */
body.app-ui>.page-breadcrumb{box-sizing:border-box;display:flex;align-items:center;gap:12px;max-width:var(--site-max-width,1180px);width:calc(100% - 48px);margin:18px auto -8px;padding:0 var(--site-content-inset,24px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:12px;line-height:22px;color:#72849a;flex-wrap:wrap}
body.app-ui .breadcrumb-back{display:inline-flex;align-items:center;gap:7px;color:#1565c0;text-decoration:none;font-weight:600;padding:4px 0}
.breadcrumb-back svg{width:16px;height:16px;flex-shrink:0}.breadcrumb-back:hover{text-decoration:underline}.breadcrumb-divider{color:#b7c5d5}.breadcrumb-back:focus-visible{outline:2px solid #1565c0;outline-offset:3px}
@media(min-width:851px) and (max-width:1199px){body.app-ui>.page-breadcrumb{width:calc(100% - 40px)}}
@media(max-width:850px){body.app-ui>.page-breadcrumb{width:100%;margin:10px auto 0;padding:0 14px;gap:9px;font-size:12px}}

/* subpage-palette.css */
/* Non-semantic legacy tool accents follow the site palette. Lottery balls and result states are excluded. */
body.app-ui.legacy-tool .cal_tit img,body.app-ui.legacy-tool h2 img[src*="tool-section"]{width:18px!important;height:18px!important;object-fit:contain;filter:none!important;opacity:1}
body.app-ui.legacy-tool .lastdib{color:#1565c0!important;font-weight:600;background:transparent!important}
body.app-ui.legacy-tool .cal_tit,body.app-ui.legacy-tool .cose_h2,body.app-ui.legacy-tool .choose_num_bt h2{color:#20344d!important}
body.app-ui.legacy-tool .cal_text,body.app-ui.legacy-tool .cal_text p,body.app-ui.legacy-tool .cal_text em{color:#6b7f98!important}
body.app-ui.legacy-tool .choose_num_bt .btn input,body.app-ui.legacy-tool .choose_num_bt .btn a,body.app-ui.legacy-tool .pstn_btn2 a{background:#1565c0!important;color:white!important;border-color:#1565c0!important;box-shadow:none!important}
body.app-ui.legacy-tool .choose_num_bt .btn input:last-child,body.app-ui.legacy-tool .choose_num_bt .btn a:last-child,body.app-ui.legacy-tool .pstn_btn2 a:last-child{background:#edf4fc!important;color:#1565c0!important;border-color:#d4e2f2!important}
body.app-ui.legacy-tool .main_tnlist .nums_spanli{background:#edf2f8!important;color:#365474!important;box-shadow:none!important}
body.app-ui.legacy-tool .main_tnlist .nums_spanli.on,body.app-ui.legacy-tool .choose_danm .choose_num_bt .btn .danma_btn.active{background:#1565c0!important;color:#fff!important;border-color:#1565c0!important}

/* lottery-spacing.css */
/* All lottery views share one top rhythm, regardless of their legacy page CSS. */
body.app-ui:not(.chat-embedded)>.page-breadcrumb{margin-top:16px;margin-bottom:0}
body.app-ui:not(.chat-embedded) main#page-content:has(>.lottery-nav){margin-top:12px!important;padding-top:0!important}
body.app-ui:not(.chat-embedded) #page-content>.lottery-nav{margin-top:0!important}
@media(max-width:850px){body.app-ui:not(.chat-embedded)>.page-breadcrumb{margin-top:10px}body.app-ui:not(.chat-embedded) main#page-content:has(>.lottery-nav){margin-top:8px!important;padding-top:0!important}}
body.app-ui:not(.chat-embedded) main#page-content:has(>.lottery-nav){border:0!important}

/* hk-gloss.css */
/* Lightweight glossy spheres; only six-number lottery balls. No image downloads. */
html body :is(.hk-ball,.history-ball,.analysis-ball,.hk-number>span[data-color],.hk-history-number>span[data-color],.kind-hk6 #numbers>span,.kind-hk6 .inline-nums b,[data-kind="hk6"] [data-number]){
 --sphere-light:#ff7e83;--sphere-main:#df2438;--sphere-dark:#750819;
 border-radius:50%!important;
 background:radial-gradient(ellipse 19% 9% at 32% 17%,#fff 0%,#fffffff0 44%,#ffffff60 68%,transparent 100%),radial-gradient(ellipse 70% 48% at 35% 13%,#ffffff80 0%,#ffffff10 56%,transparent 76%),radial-gradient(ellipse 75% 70% at 70% 94%,#00000045 0%,transparent 72%),radial-gradient(circle at 35% 30%,var(--sphere-light) 0%,var(--sphere-main) 46%,var(--sphere-dark) 100%)!important;
 color:#fff!important;border:0!important;
 box-shadow:inset 0 1px 1px #ffffffb0,inset -2px -4px 7px #00000038,inset 1px 0 2px #ffffff55,0 3px 4px -1px #17203345!important;
 text-shadow:0 1px 2px #00000085!important;font-variant-numeric:tabular-nums;
}
html body :is(.hk-ball.blue,.history-ball.blue,.analysis-ball.blue,.hk-wave-blue,.hk-number>span[data-color="蓝"],.hk-history-number>span[data-color="蓝"],[data-kind="hk6"] [data-number="3"],.kind-hk6 [data-number="3"],[data-kind="hk6"] [data-number="4"],.kind-hk6 [data-number="4"],[data-kind="hk6"] [data-number="9"],.kind-hk6 [data-number="9"],[data-kind="hk6"] [data-number="10"],.kind-hk6 [data-number="10"],[data-kind="hk6"] [data-number="14"],.kind-hk6 [data-number="14"],[data-kind="hk6"] [data-number="15"],.kind-hk6 [data-number="15"],[data-kind="hk6"] [data-number="20"],.kind-hk6 [data-number="20"],[data-kind="hk6"] [data-number="25"],.kind-hk6 [data-number="25"],[data-kind="hk6"] [data-number="26"],.kind-hk6 [data-number="26"],[data-kind="hk6"] [data-number="31"],.kind-hk6 [data-number="31"],[data-kind="hk6"] [data-number="36"],.kind-hk6 [data-number="36"],[data-kind="hk6"] [data-number="37"],.kind-hk6 [data-number="37"],[data-kind="hk6"] [data-number="41"],.kind-hk6 [data-number="41"],[data-kind="hk6"] [data-number="42"],.kind-hk6 [data-number="42"],[data-kind="hk6"] [data-number="47"],.kind-hk6 [data-number="47"],[data-kind="hk6"] [data-number="48"],.kind-hk6 [data-number="48"]){--sphere-light:#75caff!important;--sphere-main:#126de2!important;--sphere-dark:#092b79!important;}
html body :is(.hk-ball.green,.history-ball.green,.analysis-ball.green,.hk-wave-green,.hk-number>span[data-color="绿"],.hk-history-number>span[data-color="绿"],[data-kind="hk6"] [data-number="5"],.kind-hk6 [data-number="5"],[data-kind="hk6"] [data-number="6"],.kind-hk6 [data-number="6"],[data-kind="hk6"] [data-number="11"],.kind-hk6 [data-number="11"],[data-kind="hk6"] [data-number="16"],.kind-hk6 [data-number="16"],[data-kind="hk6"] [data-number="17"],.kind-hk6 [data-number="17"],[data-kind="hk6"] [data-number="21"],.kind-hk6 [data-number="21"],[data-kind="hk6"] [data-number="22"],.kind-hk6 [data-number="22"],[data-kind="hk6"] [data-number="27"],.kind-hk6 [data-number="27"],[data-kind="hk6"] [data-number="28"],.kind-hk6 [data-number="28"],[data-kind="hk6"] [data-number="32"],.kind-hk6 [data-number="32"],[data-kind="hk6"] [data-number="33"],.kind-hk6 [data-number="33"],[data-kind="hk6"] [data-number="38"],.kind-hk6 [data-number="38"],[data-kind="hk6"] [data-number="39"],.kind-hk6 [data-number="39"],[data-kind="hk6"] [data-number="43"],.kind-hk6 [data-number="43"],[data-kind="hk6"] [data-number="44"],.kind-hk6 [data-number="44"],[data-kind="hk6"] [data-number="49"],.kind-hk6 [data-number="49"]){--sphere-light:#64e7ae!important;--sphere-main:#089c69!important;--sphere-dark:#034e37!important;}

/* member-navigation.css */
body.app-ui .floating-support{position:fixed;right:max(12px,calc((100vw - 1180px)/2 - 54px));top:40%;z-index:55;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:42px;height:64px;border:1px solid #d5e2f1;border-radius:12px;background:#fff;color:#1565c0;text-decoration:none;box-shadow:0 5px 18px #163b6514;font-size:11px;font-weight:600;transition:transform .2s,box-shadow .2s}.floating-support svg{width:22px;height:22px}.floating-support:hover{transform:translateY(-3px);box-shadow:0 8px 22px #163b6528}body.app-ui .desktop-nav~.header-services .member-entry{display:none}.account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:18px;border-top:1px solid #e1e9f2;margin-top:20px}.account-shortcuts a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px;border-radius:9px;background:#f4f8fd;color:#1565c0;font-size:12px;text-decoration:none}.account-shortcuts svg{width:22px;height:22px}
@media(max-width:850px){body.app-ui .mobile-dock{grid-template-columns:repeat(5,minmax(0,1fr))!important}body.app-ui .home-reading{display:none!important}body.app-ui .header-services .member-entry{display:inline-flex!important}body.app-ui .floating-support{right:10px;top:auto;bottom:158px;width:38px;height:52px;border-radius:11px}body:has(.plan-chat-dock[open]) .floating-support{display:none}body.app-ui .header-services{margin-left:auto}}
@media(prefers-reduced-motion:reduce){body.app-ui .floating-support{transition:none}}

@media(max-width:850px){body.app-ui .mobile-dock a{gap:4px!important;font-size:11px!important;font-weight:500;color:#7c8b9d!important}body.app-ui .mobile-dock a>span{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:30px!important;border-radius:10px!important;background:transparent!important}body.app-ui .mobile-dock .nav-icon{width:23px!important;height:23px!important;stroke-width:1.65!important}body.app-ui .mobile-dock a.current{color:#1565c0!important;font-weight:650}body.app-ui .mobile-dock a.current>span{background:#e6f0fc!important}body.app-ui .mobile-dock a.current .nav-icon{stroke-width:1.9!important}body.app-ui .mobile-dock a:active>span{background:#e6f0fc!important;transform:scale(.94)}}

/* Refined mobile navigation: consistent optical sizing and restrained active marker. */
@media(max-width:850px){body.app-ui .mobile-dock{height:66px!important;padding:5px 6px calc(5px + env(safe-area-inset-bottom))!important;box-sizing:content-box!important;background:#fffffffa!important;border-top:1px solid #e3e9f1!important;box-shadow:0 -5px 24px #18355508!important;backdrop-filter:blur(16px)}body.app-ui .mobile-dock a{position:relative;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:10px!important;line-height:14px!important;letter-spacing:.5px;color:#8995a6!important;font-weight:500!important;padding:0!important;background:none!important}body.app-ui .mobile-dock a>span{position:relative;width:44px!important;height:30px!important;border-radius:11px!important;background:transparent!important;transition:background .2s,color .2s}body.app-ui .mobile-dock .nav-icon{width:24px!important;height:24px!important;stroke-width:1.55!important;filter:none!important}body.app-ui .mobile-dock a.current{color:#164d91!important;font-weight:650!important}body.app-ui .mobile-dock a.current>span{background:linear-gradient(145deg,#f0f6ff,#e4eefb)!important;box-shadow:inset 0 0 0 1px #d9e6f5}body.app-ui .mobile-dock a.current .nav-icon{stroke-width:1.85!important}body.app-ui .mobile-dock a.current:before{content:'';position:absolute;top:0;width:14px;height:2px;border-radius:2px;background:#1c63b8}body.app-ui .mobile-dock a:active>span{transform:scale(.95)}}

/* Keep plan rate and sample count intact on narrow screens. */
body.app-ui.plan-page #plan-list .plan-rate-value{white-space:nowrap;font-variant-numeric:tabular-nums}body.app-ui.plan-page #plan-list .plan-rate-sample{white-space:nowrap;font-size:11px;color:#71829a;margin-left:6px}body.app-ui.plan-page #plan-list .plan-open strong{white-space:nowrap}
@media(max-width:850px){body.app-ui.plan-page #plan-list .plan-rate-value{display:block;font-size:12px;line-height:1.5}body.app-ui.plan-page #plan-list .plan-rate-sample{display:block;font-size:10px;line-height:1.5;margin:2px 0 0}body.app-ui.plan-page #plan-list .plan-open strong{font-size:12px}}

body.app-ui.plan-page .plan-streak-heading{vertical-align:middle}body.app-ui.plan-page .plan-streak-heading span{white-space:nowrap}body.app-ui.plan-page .plan-streak-heading span+span:before{content:' / ';white-space:pre}@media(max-width:850px){body.app-ui.plan-page .plan-streak-heading span{display:block;line-height:1.5;font-size:10px}body.app-ui.plan-page .plan-streak-heading span+span:before{content:none}body.app-ui.plan-page #plan-list td:nth-child(3){white-space:nowrap;font-variant-numeric:tabular-nums}}

@media(max-width:850px){body.app-ui .header-services .header-register{align-items:center;justify-content:center;padding:7px 11px!important;border:1px solid #d3e3f6;border-radius:8px;background:#edf5ff;color:#1565c0;font-size:11px!important;font-weight:600;line-height:18px;text-decoration:none}body.app-ui .header-services:empty{display:none!important}}

.header-member{position:relative}.header-member summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:7px 9px;border:1px solid #dce7f4;border-radius:9px;background:#f4f8fe;color:#174f93;font-size:12px}.header-member summary::-webkit-details-marker{display:none}.header-member-name{max-width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}.header-level{font-size:9px;line-height:16px;border-radius:5px;background:#dfeafd;padding:0 4px;font-weight:700}.header-member summary svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}.header-member[open] summary svg{transform:rotate(180deg)}.header-member-panel{position:absolute;z-index:200;right:0;top:calc(100% + 9px);width:224px;padding:16px;background:white;border:1px solid #dbe5f1;border-radius:13px;box-shadow:0 12px 38px #16365c24;color:#243b56;box-sizing:border-box}.header-member-panel strong,.header-member-panel small{display:block;overflow-wrap:anywhere}.header-member-panel strong{font-size:14px}.header-member-panel small{font-size:11px;color:#6b7e95;margin-top:5px}.header-member-panel p{font-size:11px;line-height:1.6;color:#6b7e95;margin:12px 0}.header-member-panel a{display:block;padding:9px 0;border-top:1px solid #edf1f6;font-size:12px;color:#1565c0}.header-member-panel button{width:100%;height:32px;min-height:32px!important;margin-top:9px;border:0;border-radius:6px;background:#f2f5f9;color:#6b7e95;font-size:11px;cursor:pointer}

body.app-ui .header-member-panel{white-space:normal;line-height:1.5}body.app-ui .header-member-panel p{white-space:normal}body.app-ui .header-member-panel button{background:#f2f5f9!important;color:#64778e!important;min-height:32px!important;padding:4px!important;border-radius:6px!important}

.floating-support{position:fixed}.support-unread{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e53935;color:#fff;font:normal 11px/18px sans-serif;text-align:center}.support-unread[hidden]{display:none}

/* Registration is a single compact action with a consistent account-plus icon. */
body.app-ui .desktop-nav~.header-services .header-register{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:9px 13px;border:1px solid #d6e4f5;border-radius:10px;background:#f1f6fe;color:#1565c0;font-size:13px;font-weight:600;line-height:20px;text-decoration:none;transition:background .18s,border-color .18s}
body.app-ui .header-register .register-icon{display:block;width:19px;height:19px;flex:none}
body.app-ui .header-register:hover{background:#e4effd;border-color:#a8c8ee}
body.app-ui .header-register:focus-visible{outline:2px solid #1565c0;outline-offset:3px}
@media(max-width:850px){body.app-ui .header-register .register-icon{width:17px;height:17px}body.app-ui .header-services .header-register{gap:5px}}
body.app-ui .desktop-nav~.header-services .header-register{flex-direction:row!important;align-items:center!important;gap:7px!important}
body.app-ui .header-register>span{display:inline;line-height:20px}
body.app-ui .desktop-nav~.header-services .header-register{display:inline-flex!important;flex-wrap:nowrap!important}

/* alignment.css */
body.app-ui>.app-header .header-inner{align-items:center!important}body.app-ui>.app-header .header-services{align-items:center!important;align-self:center!important;margin-top:0!important;margin-bottom:0!important}body.app-ui>.app-header .header-member{display:block!important;margin:0!important;padding:0!important;border:0!important;align-self:center!important}body.app-ui>.app-header .header-member>summary{display:flex!important;align-items:center!important;justify-content:center;box-sizing:border-box;min-height:36px!important;height:36px!important;margin:0!important;padding:6px 10px!important;line-height:22px!important;gap:6px!important}body.app-ui>.app-header .header-member>summary>*{align-self:center;line-height:20px}body.app-ui>.app-header .header-member>summary svg{flex:0 0 12px;width:12px;height:12px}
body.app-ui #plan-form label{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;gap:6px!important;align-self:stretch;line-height:20px!important;margin:0!important}body.app-ui #plan-form label input,body.app-ui #plan-form label select{box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;width:100%!important;margin:0!important;line-height:20px!important;padding-top:8px!important;padding-bottom:8px!important}body.app-ui #plan-form>button{height:38px!important;min-height:38px!important;align-self:end!important}
.unified-communication .communication-tabs{display:flex;gap:0;padding:8px 10px;background:#f4f8fc;border-bottom:1px solid #dce6f0}.unified-communication .communication-tabs>*{position:relative;display:flex;align-items:center;justify-content:center;flex:1;border:1px solid #cad9eb;background:white;color:#64778e;padding:8px!important;min-height:36px!important;height:36px!important;font:600 13px/20px sans-serif!important;text-decoration:none;cursor:pointer;border-radius:0!important}.unified-communication .communication-tabs>*:first-child{border-radius:7px 0 0 7px!important}.unified-communication .communication-tabs>*:last-child{border-radius:0 7px 7px 0!important}.unified-communication .communication-tabs>[aria-selected=true]{background:#1565c0;color:white;border-color:#1565c0}.unified-communication iframe[hidden]{display:none!important}.unified-communication .communication-tabs[hidden]{display:none}.unified-communication:not([open]) .communication-tabs,.unified-communication:not([open]) iframe{display:none!important}
body.app-ui.support-embedded main#page-content.support-shell{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.app-ui.support-embedded .support-chat{border:0;border-radius:0;height:100dvh!important;min-height:0;display:flex;flex-direction:column}body.app-ui.support-embedded .support-chat>header{padding:9px 12px}body.app-ui.support-embedded .support-chat>header h1{font-size:15px!important}body.app-ui.support-embedded #support-stream{height:auto;min-height:60px;flex:1}body.app-ui.support-embedded #support-body{height:60px!important;min-height:60px!important}body.app-ui.support-embedded .support-chat form{flex-shrink:0;padding:10px}
body.app-ui main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]),body.app-ui main select{box-sizing:border-box!important;min-height:38px!important;height:38px!important;max-height:38px!important;vertical-align:middle;margin-top:0!important;margin-bottom:0!important}body.app-ui main select{padding-top:7px!important;padding-bottom:7px!important}body.app-ui #plan-form label{min-width:0}body.app-ui #plan-form label>input,body.app-ui #plan-form label>select{flex-shrink:0}
body.app-ui.plan-page main#page-content #plan-form label>input,body.app-ui.plan-page main#page-content #plan-form label>select{height:38px!important;min-height:38px!important;max-height:38px!important;align-self:stretch!important}body.app-ui.plan-page main#page-content #plan-form label{justify-content:flex-end!important;align-items:stretch!important}
html:has(body.app-ui){overflow-y:scroll!important;scrollbar-gutter:stable}body.app-ui{max-width:100%!important}body.app-ui>.app-header{max-width:100%!important;box-sizing:border-box}
/* 手机交流占满可见屏幕；键盘弹出时跟随可见区域缩小。 */
@media(max-width:850px){
 html:has(body.app-ui .unified-communication[open]),body.app-ui:has(.unified-communication[open]){overflow:hidden!important;overscroll-behavior:none}
 body.app-ui .unified-communication[open]{position:fixed!important;inset:auto!important;left:0!important;right:0!important;top:var(--communication-top,0px)!important;bottom:auto!important;width:100%!important;max-width:none!important;height:var(--communication-height,100dvh)!important;max-height:none!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;margin:0!important;z-index:1000!important;transform:none!important;overflow:hidden!important;animation:communication-rise .24s cubic-bezier(.2,.8,.2,1)}
 body.app-ui .unified-communication[open]>summary{display:flex!important;align-items:center!important;flex:0 0 auto!important;box-sizing:border-box!important;width:100%!important;height:calc(48px + env(safe-area-inset-top))!important;min-height:48px!important;padding:calc(12px + env(safe-area-inset-top)) 16px 12px!important;border-radius:0!important;writing-mode:horizontal-tb!important}
 body.app-ui .unified-communication[open]>.communication-tabs{flex:0 0 auto;box-sizing:border-box;padding:8px 12px!important}
 body.app-ui .unified-communication[open]>iframe:not([hidden]){display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;width:100%!important;border:0!important}
 body.app-ui:has(.unified-communication[open])>.mobile-dock{display:none!important}
 @keyframes communication-rise{from{opacity:.6;translate:0 28px}to{opacity:1;translate:0 0}}
}
@media(prefers-reduced-motion:reduce){body.app-ui .unified-communication[open]{animation:none!important}}
@media(max-width:850px){html body.app-ui .plan-chat-dock.unified-communication[open]{left:0!important;right:0!important;width:100%!important;max-width:100%!important;padding:0!important;border-radius:0!important}html body.app-ui .plan-chat-dock.unified-communication[open]>iframe:not([hidden]){height:calc(var(--communication-height,100dvh) - 100px - env(safe-area-inset-top))!important;flex:none!important;min-height:0!important;max-height:none!important}html body.app-ui .plan-chat-dock.unified-communication[open]>summary{height:calc(48px + env(safe-area-inset-top))!important;min-height:48px!important;margin:0!important}html body.app-ui .plan-chat-dock.unified-communication[open]>.communication-tabs{height:52px!important;margin:0!important}}
@media(max-width:850px){html:has(body.app-ui .unified-communication[open]){scrollbar-gutter:auto!important}}
html:has(body.support-embedded),html:has(body.chat-embedded){scrollbar-gutter:auto!important;overflow:hidden!important}
@media(max-width:850px){html body.app-ui .plan-chat-dock.unified-communication:not([open]){display:none!important}body.app-ui .mobile-dock [data-nav=chat]{position:relative;overflow:visible!important}body.app-ui .mobile-dock .communication-hint{position:absolute!important;bottom:calc(100% + 12px)!important;left:50%!important;translate:-50% 0;display:block!important;white-space:nowrap;width:auto!important;height:auto!important;padding:8px 11px!important;border-radius:9px!important;background:#173d68!important;color:#fff!important;font:500 12px/18px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif!important;box-shadow:0 4px 16px #16365c22;pointer-events:none;z-index:5}body.app-ui .mobile-dock .communication-hint:after{content:'';position:absolute;top:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-top-color:#173d68}body.app-ui .mobile-dock .communication-invite>span:first-child{animation:communication-breathe 1.2s ease-in-out 3}@keyframes communication-breathe{50%{background:#dcecff;box-shadow:0 0 0 5px #1565c00e;transform:translateY(-2px)}}}
@media(prefers-reduced-motion:reduce){body.app-ui .mobile-dock .communication-invite>span:first-child{animation:none!important}}
/* 交流轻弹两次并泛起光晕，不改变导航占位。 */
@media(max-width:850px){
 body.app-ui .mobile-dock .communication-nudge>span:first-child{animation:communication-spark 2s cubic-bezier(.2,.7,.3,1) both!important;transform-origin:50% 85%}
 @keyframes communication-spark{
  0%,100%{transform:translateY(0) rotate(0) scale(1);background:transparent;color:inherit;box-shadow:0 0 0 0 #1565c000}
  18%{transform:translateY(-4px) rotate(-7deg) scale(1.08);background:#e3efff;color:#1565c0;box-shadow:0 0 0 5px #1565c014}
  32%{transform:translateY(-1px) rotate(5deg) scale(1.04);background:#e3efff;color:#1565c0}
  47%{transform:translateY(-3px) rotate(-3deg) scale(1.06);background:#e3efff;color:#1565c0;box-shadow:0 0 0 9px #1565c000}
  65%{transform:translateY(0) rotate(0) scale(1);background:#edf5ff;color:#1565c0}
 }
}
@media(prefers-reduced-motion:reduce){body.app-ui .mobile-dock .communication-nudge>span:first-child{animation:none!important}}
/* 退出聊天：高对比、完整文字，保持标题和退出入口两端对齐。 */
html body.app-ui .unified-communication[open]>summary .chat-launch-close{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;margin-left:auto!important;flex:0 0 auto;background:#fff!important;color:#155ab0!important;border:1px solid #ffffffd9;border-radius:8px;padding:7px 11px!important;font-size:13px!important;line-height:20px!important;font-weight:600!important;box-shadow:0 2px 5px #063b7520;white-space:nowrap}
html body.app-ui .unified-communication[open]>summary .chat-launch-close svg{display:block;width:16px;height:16px;flex-shrink:0}
html body.app-ui .unified-communication[open]>summary:hover .chat-launch-close{background:#edf5ff!important}
html body.app-ui .unified-communication[open]>summary:focus-visible .chat-launch-close{outline:2px solid white;outline-offset:3px}
/* 展开后顶部仅一行：交流方式切换 + 退出。 */
html body.app-ui .unified-communication[open]>summary{display:none!important}
html body.app-ui .unified-communication>.communication-topbar{box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;height:58px!important;min-height:58px!important;flex:0 0 auto;background:#1565c0!important;border:0!important;margin:0!important;border-radius:12px 12px 0 0}
html body.app-ui .communication-topbar>nav{display:flex;align-items:center;gap:4px;min-width:0;margin:0;padding:0}
html body.app-ui .communication-topbar>nav>[data-communication],html body.app-ui .communication-topbar>nav>a{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:7px 10px!important;height:34px!important;min-height:34px!important;margin:0!important;border:1px solid transparent!important;border-radius:7px!important;font:500 13px/18px inherit;color:#e4efff!important;background:transparent!important;white-space:nowrap}
html body.app-ui .communication-topbar>nav>[aria-selected=true]{background:#fff!important;color:#155ab0!important;font-weight:600!important;box-shadow:0 1px 4px #07386e22}
html body.app-ui .communication-topbar>nav>[data-communication]:hover,html body.app-ui .communication-topbar>nav>a:hover{border-color:#ffffff88!important}
html body.app-ui .communication-topbar>.communication-exit{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;height:34px!important;min-height:34px!important;padding:7px 9px!important;margin:0!important;background:#ffffff1a!important;color:#fff!important;border:1px solid #ffffff99!important;border-radius:7px!important;font-size:12px!important;line-height:18px!important;font-weight:600!important;white-space:nowrap;flex-shrink:0;cursor:pointer}
html body.app-ui .communication-topbar>.communication-exit:hover{background:#fff!important;color:#155ab0!important}
html body.app-ui .communication-topbar button:focus-visible{outline:2px solid white;outline-offset:2px}
@media(max-width:850px){html body.app-ui .plan-chat-dock.unified-communication[open]>.communication-topbar{height:calc(58px + env(safe-area-inset-top))!important;min-height:58px!important;padding-top:calc(10px + env(safe-area-inset-top))!important;border-radius:0!important}html body.app-ui .plan-chat-dock.unified-communication[open]>iframe:not([hidden]){height:calc(var(--communication-height,100dvh) - 58px - env(safe-area-inset-top))!important}}
@media(max-width:350px){html body.app-ui .unified-communication>.communication-topbar{gap:5px;padding-left:8px!important;padding-right:8px!important}html body.app-ui .communication-topbar>nav>[data-communication]{padding-left:7px!important;padding-right:7px!important;font-size:12px!important}}
html body.app-ui .communication-topbar>nav{flex:0 1 auto!important;background:#ffffff12!important;border:1px solid #ffffff44!important;border-radius:8px!important;padding:2px!important;width:auto!important}
html body.app-ui .communication-topbar>nav>[data-communication],html body.app-ui .communication-topbar>nav>a{flex:0 0 auto!important;width:auto!important;font-family:inherit!important;font-size:13px!important;line-height:18px!important}
html body.app-ui .communication-topbar>.communication-exit{flex:0 0 auto!important;width:auto!important;margin-left:auto!important}
/* 顶部交流切换为无内边距的相连按钮组，只有一圈外边线。 */
html body.app-ui .communication-topbar>nav{gap:0!important;padding:0!important;background:transparent!important;border:1px solid #ffffff88!important;border-radius:8px!important;overflow:hidden}
html body.app-ui .communication-topbar>nav>[data-communication],html body.app-ui .communication-topbar>nav>a{border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important;height:34px!important;padding:7px 11px!important}
html body.app-ui .communication-topbar>nav>:not(:first-child){border-left:1px solid #ffffff66!important}
/* 相连按钮组保留两端圆角。 */
html body.app-ui .communication-topbar>nav{border-radius:9px!important;clip-path:inset(0 round 9px)}
html body.app-ui .communication-topbar>nav>:first-child{border-radius:8px 0 0 8px!important}
html body.app-ui .communication-topbar>nav>:last-child{border-radius:0 8px 8px 0!important}
/* One continuous outline; clipping a bordered nav cut off its right edge. */
html body.app-ui .communication-topbar>nav{display:inline-flex!important;flex:0 0 auto!important;align-items:stretch!important;max-width:none!important;clip-path:none!important;overflow:hidden!important;isolation:isolate;border:1px solid #a5c7ef!important;border-radius:9px!important;box-sizing:border-box!important}
html body.app-ui .communication-topbar>nav>[data-communication],html body.app-ui .communication-topbar>nav>a{position:relative;flex:0 0 auto!important;border-radius:0!important}
html body.app-ui .communication-topbar>nav>:first-child{border-radius:8px 0 0 8px!important}
html body.app-ui .communication-topbar>nav>:last-child{border-radius:0 8px 8px 0!important}
/* The mode nav is the header's first child, not a segmented button itself. */
html body.app-ui .plan-chat-dock.unified-communication>.communication-topbar>nav:first-child{border-radius:9px!important}
.chat-orbit,.chat-launch-desktop small{display:none}
@media(min-width:851px){
html body.app-ui .plan-chat-dock.unified-communication:not([open]){left:var(--chat-anchor-left,calc(100% - 160px))!important;right:auto!important;top:auto!important;bottom:18vh!important;width:148px!important;min-width:148px!important;border:0!important;border-radius:22px 22px 22px 6px!important;overflow:visible!important;background:linear-gradient(135deg,#104991,#176bca)!important;box-shadow:0 10px 25px #104b9228,inset 0 1px 0 #ffffff40!important;transform:translateY(var(--chat-follow,0px));transition:box-shadow .25s}
html body.app-ui .unified-communication:not([open])>summary{position:relative;display:flex!important;flex-direction:row!important;align-items:center!important;gap:11px!important;width:148px!important;height:66px!important;min-height:66px!important;padding:12px!important;border-radius:inherit!important;background:transparent!important;writing-mode:horizontal-tb!important;letter-spacing:0!important;list-style:none;box-sizing:border-box;outline-offset:5px}
html body.app-ui .unified-communication>summary::marker{content:''}html body.app-ui .unified-communication>summary::-webkit-details-marker{display:none}
html body.app-ui .unified-communication:not([open]) .chat-launch-icon,html body.app-ui .unified-communication:not([open]) .chat-launch-mobile,html body.app-ui .unified-communication:not([open]) .chat-launch-close{display:none!important}
html body.app-ui .unified-communication:not([open]) .chat-orbit{display:block;flex:0 0 40px;width:40px;height:40px;transform:rotate(-8deg);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.chat-orbit svg{display:block;width:40px;height:40px;filter:drop-shadow(0 3px 4px #052c6030)}
html body.app-ui .unified-communication:not([open]) .chat-launch-desktop{display:block!important;writing-mode:horizontal-tb!important;letter-spacing:1px!important;font-size:16px!important;line-height:23px!important;font-weight:650!important;white-space:nowrap;color:white}
html body.app-ui .unified-communication:not([open]) .chat-launch-desktop small{display:block;font-size:10px;line-height:16px;letter-spacing:1px;color:#c8e5ff;font-weight:400}
html body.app-ui .unified-communication:not([open]):hover{box-shadow:0 14px 30px #104b9240,inset 0 1px 0 #ffffff70!important}
html body.app-ui .unified-communication:not([open])>summary:hover .chat-orbit{transform:rotate(3deg) translateY(-3px)}
html body.app-ui .unified-communication:not([open])>summary:after{content:'房间交流 / 私密咨询';position:absolute;right:calc(100% + 10px);top:20px;padding:6px 10px;background:#fff;color:#28527d;border:1px solid #dbe8f5;border-radius:8px;font-size:11px;white-space:nowrap;opacity:0;transform:translateX(5px);pointer-events:none;transition:opacity .2s,transform .2s}
html body.app-ui .unified-communication:not([open])>summary:is(:hover,:focus-visible):after{opacity:1;transform:translateX(0)}
}
@media(prefers-reduced-motion:reduce){.chat-orbit{transition:none!important}}
.community-mobile-switch{display:none}
html body.app-ui .community-support-entry{display:flex!important;align-items:center;gap:12px;width:100%;padding:15px!important;margin:0 0 18px!important;border:1px solid #bfd9f5!important;border-radius:12px!important;background:linear-gradient(120deg,#e4f0ff,#f0fbff)!important;color:#125aae!important;cursor:pointer;text-align:left;box-sizing:border-box}
.community-support-entry svg{flex:0 0 28px;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.community-support-entry>span:nth-child(2){flex:1}.community-support-entry strong{display:block;font-size:15px;line-height:24px}.community-support-entry small{display:block;font-size:11px;line-height:18px;color:#557ca2}
html body.app-ui .community-support-entry:hover,html body.app-ui .community-support-entry[aria-pressed=true]{background:#1565c0!important;color:white!important;border-color:#1565c0!important}.community-support-entry:is(:hover,[aria-pressed=true]) small{color:#d9edff}
html body.app-ui .chat-conversation[hidden],html body.app-ui #community-support-panel[hidden]{display:none!important}
#community-support-panel{min-width:0;height:100%;overflow:hidden;background:#fff}#community-support-panel iframe{display:block;border:0;width:100%;height:100%;min-height:600px}
.community-support-active #chat-rooms .selected{background:#edf2f8!important;color:#526781!important}
@media(max-width:700px){body.app-ui.chat-page:not(.chat-embedded) .community-mobile-switch{display:flex;gap:0;margin:0 0 12px;border:1px solid #bed2e9;border-radius:9px;overflow:hidden}body.app-ui .community-mobile-switch button{flex:1;border:0!important;border-radius:0!important;padding:10px!important;background:#fff!important;color:#526781!important}body.app-ui .community-mobile-switch button[aria-pressed=true]{background:#1565c0!important;color:#fff!important}#community-support-panel iframe{min-height:calc(100dvh - 190px)}}
@media(min-width:701px){html body.app-ui.chat-page #page-content>.community-mobile-switch{display:none!important}}
html body.app-ui #community-support-panel:not([hidden]){display:grid;grid-template-rows:64px minmax(0,1fr)}
.community-support-heading{display:flex;align-items:center;gap:14px;padding:0 22px;border-bottom:1px solid #dbe5f1;background:#f7faff}.community-support-heading strong{font-size:17px;color:#183452}.community-support-heading span{font-size:12px;color:#64809d}
html body.app-ui #community-support-panel iframe{min-height:0;height:100%}
/* Match the support entry to the sidebar search field's horizontal inset. */
html body.app-ui .chat-sidebar>.community-support-entry{width:calc(100% - 36px)!important;margin:0 18px 18px!important;max-width:calc(100% - 36px)!important}
/* Conversational bubbles and discoverable room navigation. */
html body.app-ui #chat-rooms .chat-room-button{position:relative;transition:background .18s,color .18s,transform .18s,box-shadow .18s;cursor:pointer}
html body.app-ui #chat-rooms .chat-room-button:not(.selected):hover{background:#e5effc!important;color:#145eae!important;transform:translateX(3px);box-shadow:inset 3px 0 #2580d8}
html body.app-ui #chat-rooms .chat-room-button:focus-visible{outline:2px solid #2580d8;outline-offset:2px}
html body.app-ui .chat-room-tabs .chat-room-tab:hover{background:#e8f2ff!important;border-color:#85b2e5!important;color:#145eae!important}
html body.app-ui .chat-message .chat-message-body,html body.app-ui .support-message p{position:relative;background:#f0f1f4!important;color:#172333!important;border:0!important;border-radius:18px!important;padding:10px 15px!important;box-shadow:0 1px 2px #19395809!important;line-height:1.65!important;max-width:min(85%,620px);overflow:visible;isolation:isolate}
html body.app-ui .chat-message .chat-message-body:before,html body.app-ui .support-message p:before{content:'';position:absolute;left:-4px;bottom:0;width:13px;height:13px;background:#f0f1f4;border-radius:0 0 11px 0;transform:skewX(-22deg);z-index:-1}
html body.app-ui .chat-message.mine .chat-message-body,html body.app-ui .support-message.mine p{background:#1565c0!important;color:white!important;border-radius:18px!important}
html body.app-ui .chat-message.mine .chat-message-body:before,html body.app-ui .support-message.mine p:before{left:auto;right:-4px;background:#1565c0;border-radius:0 0 0 11px;transform:skewX(22deg)}
html body.app-ui .chat-message{margin-bottom:20px}
@media(prefers-reduced-motion:reduce){html body.app-ui #chat-rooms .chat-room-button{transition:none;transform:none!important}}
html body.app-ui .chat-message-actions .chat-review-remind{min-height:30px!important;padding:4px 11px!important;border:1px solid #b8d0ec!important;border-radius:8px!important;background:#edf5ff!important;color:#145eae!important;font-size:12px!important;font-weight:600;cursor:pointer}
html body.app-ui .chat-message-actions .chat-review-remind:disabled{opacity:.6;cursor:default}
.community-review-entry{display:block;margin:0 18px 14px;font-size:14px;font-weight:600}

/* Shared desktop launcher: identical geometry on home and inner pages. */
@media(min-width:851px){html body.app-ui .plan-chat-dock.unified-communication:not([open]){height:66px!important;min-height:66px!important;max-height:66px!important;padding:0!important}html body.app-ui .plan-chat-dock.unified-communication:not([open])>summary{height:66px!important;min-height:66px!important;max-height:66px!important;margin:0!important;padding:12px!important}}

/* communication-type.css */
/* 房间交流、客服及浮层共用文字层级，避免页面旧样式与字重继承。 */
body.app-ui,body.support-desk{--talk-title:16px;--talk-text:14px;--talk-label:13px;--talk-meta:11px;--talk-input:16px}
html body.app-ui .unified-communication[open]>summary{font-family:inherit!important;font-size:var(--talk-title)!important;font-weight:600!important;line-height:24px!important;letter-spacing:0!important}html body.app-ui .unified-communication .chat-launch-close{font-size:13px!important;font-weight:500!important;line-height:20px!important}
html body.app-ui .unified-communication .communication-tabs>*{font-family:inherit!important;font-size:var(--talk-text)!important;font-weight:600!important;line-height:20px!important}
html body.app-ui.support-page .support-message p,html body.support-desk .support-message p,html body.app-ui.chat-page .chat-message .chat-message-body{font-family:inherit!important;font-size:var(--talk-text)!important;font-weight:400!important;line-height:1.65!important;letter-spacing:0!important}
html body.app-ui.support-page .support-message small,html body.support-desk .support-message small,html body.app-ui.chat-page .chat-message-meta time{font-size:var(--talk-meta)!important;font-weight:400!important;line-height:1.5!important;color:#7a899c!important}
html body.app-ui.chat-page .chat-message-meta strong{font-size:12px!important;font-weight:600!important;line-height:18px!important}html body.app-ui.chat-page .chat-level-badge,html body.app-ui.chat-page .chat-member-number{font-size:10px!important;line-height:16px!important}
html body.app-ui.support-page #support-body,html body.support-desk #desk-body,html body.app-ui.chat-page #chat-body,html body.app-ui.chat-page #chat-nickname{font-family:inherit!important;font-size:var(--talk-input)!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0!important}
html body.app-ui.support-page #support-body::placeholder,html body.support-desk #desk-body::placeholder,html body.app-ui.chat-page #chat-body::placeholder,html body.app-ui.chat-page #chat-nickname::placeholder{font-size:13px!important;font-weight:400!important;color:#8a98a9!important;opacity:1}
html body.app-ui.support-page .support-send-row span,html body.support-desk .support-send-row span,html body.app-ui.chat-page #chat-status,html body.app-ui.chat-page #chat-send-hint,html body.app-ui.chat-page #chat-identity,html body.app-ui.chat-page #chat-length,html body.app-ui.chat-page #chat-connection{font-size:var(--talk-meta)!important;font-weight:400!important;line-height:1.5!important;color:#7a899c!important}
html body.app-ui.support-page .support-send-row button,html body.support-desk .support-send-row button,html body.app-ui.chat-page #chat-send,html body.app-ui.chat-page #chat-join-button{font-family:inherit!important;font-size:var(--talk-text)!important;font-weight:600!important;line-height:20px!important;letter-spacing:0!important}
html body.app-ui.support-page .support-empty,html body.app-ui.chat-page .chat-empty{font-size:13px!important;font-weight:400!important;line-height:1.6!important}
html body.app-ui.chat-page .chat-room-tab{font-size:13px!important;font-weight:500!important;line-height:20px!important}
@media(min-width:851px){body.app-ui,body.support-desk{--talk-text:15px;--talk-meta:12px}}
/* 信息结构：第一行昵称与简短身份，第二行编号、时间和操作。 */
html body.app-ui.chat-page .chat-message .chat-message-meta{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin-bottom:6px!important}html body.app-ui.chat-page .chat-message.mine .chat-message-meta{align-items:flex-end!important}
html body.app-ui.chat-page .chat-meta-identity,html body.app-ui.chat-page .chat-meta-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;line-height:16px}
html body.app-ui.chat-page .chat-meta-identity strong{font-size:12px!important;font-weight:500!important;color:#52657b!important;line-height:18px!important}
html body.app-ui.chat-page .chat-meta-secondary .chat-member-number,html body.app-ui.chat-page .chat-meta-secondary time,html body.app-ui.chat-page .chat-meta-secondary .chat-message-actions>span{font-size:10px!important;font-weight:400!important;line-height:16px!important;color:#8a97a7!important}
html body.app-ui.chat-page .chat-meta-secondary .chat-message-actions{display:flex;gap:7px;margin:0!important}html body.app-ui.chat-page .chat-meta-secondary .chat-message-actions button{font-size:10px!important;font-weight:400!important;line-height:16px!important;min-height:16px!important;padding:0!important;color:#8a97a7!important}
html body.app-ui.chat-page .chat-meta-identity .chat-level-badge{font-size:9px!important;font-weight:500!important;line-height:15px!important;padding:0 4px!important;border:0!important;border-radius:4px!important;background:#edf3fa!important;color:#7187a0!important}
html body.app-ui.chat-page .chat-meta-identity .chat-moderator-badge{font-size:9px!important;font-weight:500!important;line-height:15px!important;padding:0 4px!important;border:0!important;background:#edf3fa!important;color:#7187a0!important}
html body.app-ui.chat-page .chat-room-tabs .chat-room-tab{font-size:12px!important;font-weight:500!important;line-height:20px!important}html body.app-ui.chat-page #chat-join-button,html body.app-ui.chat-page #chat-send,html body.app-ui.support-page .support-send-row button{font-size:13px!important;font-weight:500!important}
html body.app-ui .unified-communication .communication-tabs>*{font-size:13px!important;font-weight:500!important}html body.app-ui .unified-communication[open]>summary{font-size:15px!important;font-weight:600!important}
html body.app-ui.chat-page .chat-message{margin-bottom:16px!important}html body.app-ui.chat-page .chat-message-body{padding:9px 12px!important}
/* 房间选项是次级操作，加入是主操作；不与顶部功能切换抢层级。 */
html body.app-ui.chat-page .chat-room-picker .chat-room-tab,html body.app-ui.chat-page #chat-room-picker .chat-room-tab{height:30px!important;min-height:30px!important;padding:5px 10px!important;font-size:12px!important;line-height:18px!important;font-weight:500!important;border-radius:7px!important;box-shadow:none!important}
html body.app-ui.chat-page main#page-content form#chat-join{gap:8px!important;padding:8px 10px!important;align-items:center!important}
html body.app-ui.chat-page main#page-content form#chat-join input#chat-nickname{height:36px!important;min-height:36px!important;max-height:36px!important;font-size:16px!important;padding:7px 11px!important;border-radius:8px!important}
html body.app-ui.chat-page main#page-content form#chat-join button#chat-join-button{height:36px!important;min-height:36px!important;max-height:36px!important;padding:7px 13px!important;font-size:13px!important;line-height:20px!important;font-weight:600!important;border-radius:8px!important}

/* control-consistency.css */
/* 前台操作控件：同一行内使用一致的尺寸与基线，不影响号码及图标按钮。 */
html body.app-ui main form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]),
html body.app-ui main form select,
html body.app-ui main form button:not([aria-label]):not(.icon-button){
 box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 margin-top:0!important;margin-bottom:0!important;border-radius:8px!important;
 font-family:inherit!important;font-size:14px!important;line-height:20px!important;
}
html body.app-ui main form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]){padding:8px 12px!important}
html body.app-ui main form select{padding-top:8px!important;padding-bottom:8px!important;padding-left:12px!important;padding-right:34px!important;background-position:right 12px center!important}
html body.app-ui main form button:not([aria-label]):not(.icon-button){padding:8px 18px!important;white-space:nowrap;font-weight:500;cursor:pointer;vertical-align:middle}
html body.app-ui main form input::placeholder{font-size:13px!important;font-weight:400!important}
html body.app-ui main form label{line-height:20px}
html body.app-ui main form button:focus-visible,html body.app-ui main form input:focus-visible,html body.app-ui main form select:focus-visible{outline:2px solid #1565c0;outline-offset:2px}
html body.app-ui.articles-page .guide-filter{align-items:flex-end;gap:12px;padding:12px;background:#f5f8fc;border-color:#d8e4ef}
html body.app-ui.articles-page .guide-filter label{gap:6px;font-size:12px}
@media(max-width:850px){html body.app-ui main form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=color]),html body.app-ui main form select{font-size:16px!important}html body.app-ui.articles-page .guide-filter button{flex-shrink:0}html body.app-ui.articles-page .guide-filter label:nth-child(2){min-width:0}}
html body.app-ui.articles-page main#page-content .guide-filter select,
html body.app-ui.plan-page main#page-content form#plan-form button,
html body.app-ui.legacy-tool .wap_body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
html body.app-ui.legacy-tool .wap_body select,
html body.app-ui.legacy-tool .wap_body button{
 box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;
 border-radius:8px!important;font-family:inherit!important;font-size:14px!important;line-height:20px!important;
 padding-top:8px!important;padding-bottom:8px!important;vertical-align:middle;
}
html body.app-ui.legacy-tool .wap_body select{padding-right:34px!important;background-position:right 12px center!important}
@media(max-width:850px){html body.app-ui.legacy-tool .wap_body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html body.app-ui.legacy-tool .wap_body select{font-size:16px!important}}
html body.app-ui main#page-content #plan-form>button{height:38px!important;min-height:38px!important;max-height:38px!important;box-sizing:border-box!important;align-self:end!important}
html body.app-ui main#page-content #calculator select{width:100%!important;min-width:0!important;margin:0!important;height:38px!important;min-height:38px!important;max-height:38px!important;box-sizing:border-box!important;align-self:stretch!important}
html body.app-ui.calculator-page #calculator .fields{align-items:end}
html body.app-ui.calculator-page #calculator label{min-width:0}
html body.app-ui.calculator-page main#page-content>h1{margin-top:0!important}
html body.app-ui.plan-page main#page-content{--action-height:38px}

/* page-stability.css */
/* 稳定首屏：导航状态由服务端渲染，异步数据区域预留必要尺寸。 */
html{background:#f5f8fc}html body.app-ui .app-header .desktop-nav>a{font-weight:600!important}
html body.app-ui .draw-compact #countdown{min-width:116px;min-height:34px;font-variant-numeric:tabular-nums}
html body.app-ui .draw-compact #draw-at,html body.app-ui .draw-compact #draw-interval{min-height:20px}
html body.app-ui #plan-state{min-height:20px}
html body.app-ui #plan-list:empty:after{content:'正在加载计划…';display:table-cell;height:360px;vertical-align:top;padding:16px;color:#8090a5;font-size:13px}
html body.app-ui .brand img{aspect-ratio:1;object-fit:contain}
@view-transition{navigation:auto}
::view-transition-old(root){animation:page-fade-out .10s ease-out both}
::view-transition-new(root){animation:page-fade-in .14s ease-out both}
@keyframes page-fade-out{to{opacity:0}}@keyframes page-fade-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-old(root),::view-transition-new(root){animation:none!important}}
/* Old tool reset files must never resize the shared page root. */
html:has(body.app-ui){width:100%!important;max-width:none!important;margin:0!important}
body.app-ui.precise-page #message{min-height:22px;margin:12px 0;line-height:22px}
body.app-ui.precise-page #plans{min-height:38px}
body.app-ui.precise-page #detail{min-height:500px}
body.app-ui .draw-snapshot .draw-progress[hidden]{display:block!important;visibility:hidden}
/* Layui builds radio/select wrappers asynchronously: reserve their final rows. */
body.app-ui.legacy-tool .fge_ul{min-height:36px}
body.app-ui.legacy-tool .fg_selbox{min-height:38px}

/* block-spacing.css */
/* Frontend section spacing. Keep component interiors and joined controls independent. */
body.app-ui{--block-gap:10px}
body.app-ui:not(.chat-embedded) main#page-content{margin-top:var(--block-gap)!important;margin-bottom:var(--block-gap)!important}
body.app-ui:not(.chat-embedded)>.page-breadcrumb{margin-top:var(--block-gap)!important;margin-bottom:0!important}
body.app-ui .site-footer{margin-top:var(--block-gap)!important}
body.app-ui.legacy-tool{--tool-page-gap:10px;--tool-section-gap:10px}
body.app-ui .precise-components,
body.app-ui .tool-featured,
body.app-ui .tool-sections,
body.app-ui .tool-center-grid,
body.app-ui .guide-grid,
body.app-ui .history-cards,
body.app-ui .hk-link-grid{gap:var(--block-gap)!important}
body.app-ui .precise-components,
body.app-ui #plan-dialog,
body.app-ui .guide-pagination{margin-top:var(--block-gap)!important}
body.app-ui .tool-featured,
body.app-ui .hk-latest,
body.app-ui .hk-filters,
body.app-ui .hk-link-grid,
body.app-ui .history-pagination{margin-block:var(--block-gap)!important}
body.app-ui .history-heading,
body.app-ui .guide-heading,
body.app-ui .guide-filter{margin-bottom:var(--block-gap)!important}
body.app-ui .history-results-heading,
body.app-ui .hk-library{margin-top:var(--block-gap)!important}

body.app-ui:not(.chat-embedded) main#page-content:has(>.lottery-nav){margin-top:var(--block-gap)!important}
/* Place the mobile gap above the entire plan canvas, directly below the brand header. */
@media(max-width:850px){body.app-ui.plan-page:not(:has(>.page-breadcrumb)){background:#fff!important}body.app-ui:not(.chat-embedded):not(:has(>.page-breadcrumb)) main#page-content:has(>.lottery-nav){margin-top:10px!important;padding-top:0!important}}
/* No extra mobile gutter between lottery tabs and their draw summary. */
@media(max-width:850px){body.app-ui.plan-page #page-content>.lottery-nav{margin-bottom:0!important}body.app-ui.plan-page #page-content>.lottery-nav+.draw-compact{margin-top:0!important}}

/* Unified desktop header is 58px. Subtract the header and both 1px dock borders from the dock height.
   Percentage heights do not resolve reliably inside the details content wrapper. */
@media(min-width:851px){html body.app-ui .plan-chat-dock.unified-communication[open]>iframe:not([hidden]){display:block!important;height:min(600px,calc(100dvh - 180px))!important;min-height:0!important;max-height:none!important}}

/* Unified page canvas across desktop and mobile. */
html,html body,html body.app-ui{background:#fff!important;background-image:none!important}
