:root{--orange:#ff970d;--orange-deep:#d47a00;--brown:#483212;--muted:#a69570;--line:#dfcfa9;--paper:#fffcf5;--cream:#fff2d5;--pale:#fff8e9;--red:#e74618;--green:#20a04f;--shadow:0 4px 0 #ebd9b0;--radius:17px;--font:"Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif}
*{box-sizing:border-box}html{background:#fff2d5;scroll-behavior:smooth}body{margin:0;color:var(--brown);font:14px/1.55 var(--font);background:linear-gradient(180deg,#fff6e3 0,#fff0d0 65%,#fff6e6 100%);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #7c4ce1;outline-offset:3px}a{color:inherit;text-decoration:none}.topbar{background:linear-gradient(100deg,#ffaf34,#ff9100 70%);box-shadow:0 2px 0 #e68b0b;color:white}.topbar-inner,.subbar-inner{max-width:1560px;margin:auto;display:flex;align-items:center;padding:0 28px}.topbar-inner{min-height:70px;gap:32px}.brand{display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:25px;font-weight:900;letter-spacing:.04em;text-shadow:0 2px 2px #c8730070}.brand-mark{display:grid;place-items:center;font-size:27px;font-weight:500}.brand small{font-size:11px;font-weight:700;letter-spacing:0;padding:3px 7px;border:1px solid #ffffff9c;border-radius:7px;text-shadow:none;background:#ffffff25}.topnav{display:flex;align-self:stretch;gap:4px;flex:1}.topnav button,.top-actions button{border:0;background:transparent;color:#fff;font-weight:700}.topnav button{padding:0 16px;position:relative;white-space:nowrap;opacity:.82}.topnav button:hover,.topnav button.active{opacity:1;background:#ffffff19}.topnav button.active:after{content:"";position:absolute;left:17px;right:17px;bottom:0;height:3px;background:#fff4d7;border-radius:8px 8px 0 0}.top-actions{display:flex;align-items:center;gap:14px}.demo-pill{background:#c87900;color:#fff7df;border-radius:30px;padding:6px 11px;font-size:12px;font-weight:700;white-space:nowrap}.demo-pill span,.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#67e68e;margin-right:6px}.icon-button{font-size:23px;width:38px;height:38px;border-radius:50%!important}.icon-button:hover{background:#ffffff25}.subbar{background:#ffa11a;border-bottom:4px solid #e48806;color:white}.subbar-inner{min-height:61px;justify-content:space-between}.subbar-title{display:flex;align-items:center;gap:12px}.subbar-title strong{font-size:20px;font-weight:900;letter-spacing:.02em}.subbar-muted{font-size:14px;color:#ffe6b8}.eight-ball{width:27px;height:27px;background:linear-gradient(145deg,#525b60,#272b30);border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 0 #bd6d02;font:700 12px/1 Georgia;color:#fff}.count-pill{background:#d77b00;padding:6px 14px;border-radius:13px;font-weight:800;font-size:13px}.app-shell{max-width:1560px;margin:22px auto 0;padding:0 28px 30px;display:grid;grid-template-columns:218px minmax(0,1fr) 270px;gap:18px;align-items:start}.panel{background:var(--paper);border:1.5px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.sidebar{padding:18px 12px;position:sticky;top:16px;max-height:calc(100vh - 30px);display:flex;flex-direction:column}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:900;padding:0 6px 12px}.mini-tag{color:#cc7a00;background:#fff0cf;border-radius:20px;font-size:12px;padding:2px 9px}.search-wrap{display:flex;align-items:center;gap:7px;background:#fbf4e4;border:1px solid #eadbb8;border-radius:10px;padding:7px 10px;margin-bottom:10px;color:#ae9a72;font-size:20px;line-height:1}.search-wrap input{min-width:0;width:100%;border:0;background:transparent;outline:none!important;font-size:12px;color:var(--brown)}.game-list{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e5cf9d transparent}.game-group{font-size:11px;color:#b29e78;font-weight:800;padding:12px 8px 5px}.game-item{width:100%;border:0;background:transparent;border-radius:9px;text-align:left;padding:8px;color:#756442;display:flex;align-items:center;gap:9px;font-size:13px}.game-item:hover{background:#fff3d7}.game-item.active{background:#fff0c8;color:#cb7300;font-weight:900}.game-dot{width:7px;height:7px;border-radius:50%;background:#d5c39b;flex:none}.game-item.active .game-dot{background:#ff970d}.sidebar-foot{margin:12px 5px 0;padding-top:12px;border-top:1px solid #f0e3c8;font-size:11px;color:#a99670}.sidebar-foot .status-dot{background:#ffad25}.main-column,.right-column{min-width:0}.right-column{display:grid;gap:16px}.notice{min-height:56px;display:flex;align-items:center;gap:14px;padding:12px 18px;margin-bottom:16px}.notice strong{font-size:16px;color:var(--orange-deep);white-space:nowrap}.notice-divider{width:1px;height:22px;background:#dfcfa9}.notice-text{color:#8c7b59;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice button,.link-button{border:0;background:none;color:var(--orange-deep);font-weight:800;white-space:nowrap}.card{padding:20px}.card+.card{margin-top:16px}.section-heading{display:flex;align-items:center;gap:9px;margin:0 0 16px;font-size:18px;font-weight:900;line-height:1.2}.section-heading:before{content:"";width:5px;height:20px;background:var(--orange);border-radius:10px}.section-heading .subhead{font-size:12px;color:#b29e77;font-weight:600;margin-left:2px}.section-heading .right{margin-left:auto;color:#d37e00;font-size:12px;font-weight:800}.card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tag{display:inline-flex;align-items:center;gap:5px;background:#fff0d0;border:1px solid #eddaa9;color:#bd740a;padding:3px 8px;border-radius:7px;font-size:11px;font-weight:800}.tag.demo{background:#fff3e4;color:#bd6f08}.hint{color:var(--muted);font-size:12px}.latest-header{display:flex;align-items:start;justify-content:space-between;gap:12px}.latest-name{font-size:22px;font-weight:900;line-height:1.25}.latest-name small{font-size:12px;color:#ad9870;font-weight:500;margin-left:8px}.draw-number{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0 12px}.ball{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ffbc4c,#f9990d);border:1px solid #ed9214;box-shadow:inset 0 1px #ffe3a4,0 2px 0 #dc8a16;color:#fff;font-family:Arial,sans-serif;font-size:23px;font-weight:900;text-shadow:0 1px 1px #c17600}.latest-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px}.latest-details{display:flex;gap:18px;color:#9e8a63;font-size:12px}.latest-details strong{color:#665335}.draw-actions{display:flex;gap:7px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1.5px solid #dfc995;border-radius:10px;background:#fff8e9;color:#8c6934;padding:8px 12px;font-weight:800;line-height:1.25}.btn:hover{background:#ffedc5;border-color:#e2b65d}.btn.primary{background:#ff9b0c;color:white;border-color:#f39810;box-shadow:0 3px 0 #d7830b}.btn.primary:hover{background:#ef8c00}.btn.small{font-size:12px;padding:6px 10px}.btn:disabled{opacity:.5;cursor:not-allowed}.opportunity-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.opportunity-head .section-heading{margin-bottom:5px}.opportunity-meta{margin-left:14px;font-size:12px;color:#b39e76}.rank-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.rank-category h3{font-size:14px;color:#d47b00;margin:0 0 8px;font-weight:900}.rank-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.rank-card{width:100%;min-height:112px;padding:12px 10px;border:1.5px solid #e8d2a5;background:#fff6e2;border-radius:13px;text-align:left;color:#513a17;display:grid;grid-template-columns:23px minmax(0,1fr);gap:7px;transition:transform .15s,box-shadow .15s}.rank-card:hover{transform:translateY(-2px);box-shadow:0 5px 12px #b66e0022}.rank-card.high{background:#fff0d3;border-color:#db991c}.rank-card.hot{background:#ffddd0;border-color:#e15121}.rank-card.gold{background:#ffdc51;border-color:#ffa600;box-shadow:inset 0 0 0 2px #ffba10,0 3px 8px #e8a62c40}.rank-card.red{background:#ed481c;border-color:#ed481c;color:white}.rank-card.green{background:#1aa351;border-color:#1aa351;color:white}.rank-badge{width:22px;height:22px;display:grid;place-items:center;background:#ff9600;color:white;border-radius:50%;font-size:12px;font-weight:900;margin-top:5px}.rank-card:nth-child(2) .rank-badge{background:#b6a17a}.rank-card.red .rank-badge,.rank-card.green .rank-badge{background:#fff;color:#d44a20}.rank-top{display:flex;align-items:baseline;gap:5px;justify-content:space-between}.rank-value{font-size:19px;font-weight:900;line-height:1.2;word-break:break-word}.rank-ratio{font-size:19px;font-weight:900;color:#d93d17;white-space:nowrap}.rank-card.gold .rank-ratio{color:#715000}.rank-card.red .rank-ratio,.rank-card.green .rank-ratio{color:white}.rank-missing{font-size:12px;font-weight:800;color:#8c7852}.rank-card.red .rank-missing,.rank-card.green .rank-missing{color:#fff1e7}.rank-game{font-size:12px;color:#a28d65;margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-card.red .rank-game,.rank-card.green .rank-game{color:#fff5e8}.rank-link{font-size:11px;font-weight:800;color:#d6820d;margin-top:3px}.rank-card.red .rank-link,.rank-card.green .rank-link{color:#fff0d7}.unknown-card{min-height:112px;border:1.5px dashed #e8d8b8;background:#fffaf0;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#b3a17c;font-size:12px}.unknown-card strong{color:#a8946c}.opportunity-note{margin:18px 0 0;color:#aa9873;font-size:12px;line-height:1.7}.expand-row{text-align:center;margin-top:17px}.checkin-card{padding:18px}.checkin-title{display:flex;justify-content:space-between;align-items:center}.checkin-title .section-heading{font-size:16px;margin:0}.checkin-title strong{color:#ce7900;font-size:12px}.check-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}.check-stat{background:#fcf3de;border:1px solid #e9d8af;border-radius:10px;text-align:center;padding:9px 2px}.check-stat b{display:block;color:#d87c00;font:900 20px/1.25 Arial,sans-serif}.check-stat span{font-size:10px;color:#ae9c77}.week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin-bottom:10px}.week-row span{font-size:10px;text-align:center;border-radius:6px;background:#fcf3df;border:1px solid #ead8ad;color:#b09d79;padding:5px 0}.week-row span.checked{background:#e2f5e6;border-color:#79c58a;color:#2d9d54;font-weight:800}.check-button{width:100%;border:1px solid #79be88;background:#e0f4e4;color:#299c4b;border-radius:10px;padding:9px;font-weight:900}.check-button:disabled{cursor:default;opacity:1}.check-caption{text-align:center;color:#b3a17b;font-size:11px;margin:9px 0 0}.side-title{font-size:15px;font-weight:900;margin:0 0 12px}.source-card{padding:18px}.source-item{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#aa9875;padding:7px 0;border-bottom:1px solid #f4e9d4}.source-item:last-of-type{border:0}.source-item b{color:#78633f;font-weight:700}.source-card .btn{margin-top:12px;width:100%}.quick-links{display:grid;gap:7px}.quick-links button{border:1px solid #efdfbe;border-radius:10px;background:#fffaf0;color:#886c3e;text-align:left;padding:9px 10px;font-weight:700}.quick-links button:hover{background:#fff2d6}.quick-links button span{float:right;color:#db950e}.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.controls .spacer{flex:1}.segmented{display:inline-flex;flex-wrap:wrap;background:#f9efdb;border:1px solid #eadbbd;padding:3px;border-radius:10px;gap:2px}.segmented button{border:0;background:transparent;border-radius:7px;color:#978563;padding:6px 11px;font-size:12px;font-weight:800}.segmented button.active{background:#ff9b0e;color:#fff;box-shadow:0 2px 3px #dd9c3b40}.select,.text-input{border:1px solid #e4d1aa;border-radius:9px;padding:8px 10px;background:#fffdf8;color:#594528;min-width:0}.select{min-width:130px}.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.stat-tile{background:#fff7e6;border:1px solid #eddfc3;border-radius:11px;padding:12px}.stat-tile span{font-size:11px;color:#aa9873}.stat-tile strong{display:block;font-size:21px;color:#b97000;margin-top:4px}.table-scroll{overflow-x:auto;border:1px solid #eadfc8;border-radius:11px}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.data-table th{background:#fff2d8;color:#9b8359;font-weight:800;text-align:left}.data-table th,.data-table td{padding:10px 12px;border-bottom:1px solid #f1e6d1}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fffbf2}.number-inline{display:inline-flex;gap:4px}.number-inline b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffa120;color:white;font:800 13px Arial}.trend-table th,.trend-table td{text-align:center;padding:7px 6px}.trend-table th:first-child,.trend-table td:first-child{text-align:left}.trend-hit{display:inline-grid;place-items:center;background:#ff9c0a;color:#fff;border-radius:50%;height:22px;width:22px;font-weight:900}.trend-miss{color:#c0b393}.table-empty{text-align:center;padding:24px!important;color:#b19f7b}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:13px;color:#a18e69;font-size:12px}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.field label{display:block;font-size:11px;color:#aa9873;font-weight:700;margin-bottom:5px}.field input,.field select{width:100%}.number-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:7px;margin-top:14px}.number-chip{background:#fff5e1;border:1px solid #ebdbba;color:#7b5a2b;border-radius:9px;text-align:center;padding:8px;font:800 15px Arial}.form-note{margin:12px 0;color:#ad9b77;font-size:12px;line-height:1.7}.upload-box{border:1.5px dashed #dec99c;background:#fff9ec;border-radius:13px;padding:22px;text-align:center;margin:15px 0}.upload-box b{display:block;font-size:15px}.upload-box p{color:#ae9c76;font-size:12px}.upload-box input{max-width:100%;font-size:12px}.code-box{font:12px/1.7 Consolas,monospace;background:#f7f0e1;color:#806b49;border:1px solid #ebdfc5;border-radius:10px;padding:12px;white-space:pre-wrap}.footer{text-align:center;color:#bda981;font-size:11px;padding:24px 4px}.footer span{margin-left:10px}.mobile-nav{display:none}.loading{padding:40px;text-align:center;color:#a99570}.modal-overlay{position:fixed;inset:0;background:#432a10a3;display:grid;place-items:center;padding:18px;z-index:20}.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fffcf5;border:2px solid #e5c78a;border-radius:20px;box-shadow:0 18px 55px #4d321354;padding:20px}.modal-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.modal-title h2{font-size:19px;margin:0}.close-modal{border:0;background:#fff0d1;color:#a97624;border-radius:50%;width:31px;height:31px;font-size:21px}.modal-candidate{font-size:28px;font-weight:900;color:#cf7800;margin:16px 0 0}.gap-bars{display:flex;gap:5px;align-items:end;min-height:78px;padding:12px 4px 0;border-bottom:1px solid #e9d9b7}.gap-column{flex:1;min-width:10px;max-width:30px;display:flex;flex-direction:column;align-items:center;justify-content:end;color:#a38b60;font:10px Arial}.gap-column i{width:100%;min-height:3px;background:#ffad31;border-radius:4px 4px 0 0;margin-top:3px}.dialog-note{color:#ac9974;font-size:12px;margin-top:14px}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#594322;color:#fff8e9;padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:all .2s;z-index:30;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1200px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.right-column{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))}.right-column .quick-card{display:none}.topbar-inner{gap:16px}.topnav button{padding:0 10px}.topbar-inner,.subbar-inner,.app-shell{padding-left:18px;padding-right:18px}}
@media(max-width:760px){.topbar-inner{min-height:58px;justify-content:center}.brand{font-size:22px}.brand-mark{font-size:24px}.brand small{font-size:10px}.topnav,.top-actions,.sidebar{display:none}.subbar-inner{min-height:56px}.subbar-title strong{font-size:18px}.app-shell{display:flex;flex-direction:column;margin-top:14px;padding:0 12px 75px;gap:14px}.main-column,.right-column{width:100%}.right-column{display:grid;grid-template-columns:1fr}.right-column .checkin-card{grid-row:1}.right-column .source-card{display:none}.notice{min-height:52px;margin-bottom:14px;padding:10px 13px}.notice-text{font-size:12px}.notice button{font-size:12px}.card{padding:15px}.card+.card{margin-top:14px}.panel{border-radius:15px}.section-heading{font-size:17px}.rank-list{grid-template-columns:1fr;gap:14px}.rank-card{min-height:98px}.rank-value,.rank-ratio{font-size:18px}.latest-grid{grid-template-columns:1fr}.draw-actions{margin-top:-4px}.ball{width:40px;height:40px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-strip{grid-template-columns:repeat(2,1fr)}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;height:61px;display:flex;justify-content:space-around;background:#fffcf5;border-top:1px solid #e7d5ad;box-shadow:0 -4px 15px #ad7b1c1c;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav button{border:0;background:none;color:#a9936d;font-size:10px;font-weight:700;min-width:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.mobile-nav button span{font-size:20px;line-height:1.1}.mobile-nav button.active{color:#ed8b00}.footer{padding-bottom:10px}.footer span{display:block;margin:3px 0}.subbar-muted{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.rank-missing,.rank-game,.rank-link{display:block}.checkin-inline{display:none}
@media(max-width:760px){.checkin-inline{display:block;margin-bottom:14px}.right-column{display:none}}
.topnav{overflow-x:auto;scrollbar-width:none}.topnav::-webkit-scrollbar{display:none}.topnav button{padding-left:12px;padding-right:12px}.topnav button:disabled{opacity:.42;cursor:not-allowed}.topnav button:disabled:hover{background:transparent}
body[data-page="analysis"] .app-shell,body[data-page="query"] .app-shell{grid-template-columns:minmax(0,1fr)}body[data-page="analysis"] .sidebar,body[data-page="query"] .sidebar,body[data-page="analysis"] .right-column,body[data-page="query"] .right-column{display:none}
.analysis-top .controls{margin-bottom:13px}.analysis-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;border-top:1px solid #f0e2c7;padding-top:15px}.parameter-panel{background:#fff9ec;border:1px solid #e9d8b6;border-radius:12px;overflow:hidden;align-self:start}.parameter-title{display:flex;justify-content:space-between;align-items:center;padding:12px 11px 7px;font-size:14px;font-weight:900}.parameter-title span{font-size:10px;font-weight:700;color:#af9a73}.parameter-search{display:flex;gap:4px;padding:0 8px 9px}.parameter-search input{width:100%;font-size:11px;padding:7px;min-width:0}.parameter-search button{padding:5px 7px}.parameter-section{padding:7px 11px;color:#c57a06;background:#fff0d0;font-size:12px;font-weight:800}.parameter-list{max-height:650px;overflow:auto;padding:5px}.parameter-item{display:block;width:100%;border:0;background:transparent;text-align:left;border-radius:7px;padding:7px 8px;color:#7f6c49;font-size:12px}.parameter-item:hover{background:#fff1d2}.parameter-item.active{background:#ffe7b5;color:#c87300;font-weight:900}.parameter-item small{float:right;color:#baa581;font-size:10px}.analysis-content{min-width:0}.analysis-heading{margin:1px 0 11px}.analysis-heading strong{font-size:18px}.analysis-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;color:#8e7a55;font-size:12px}.analysis-filters input:not([type=checkbox]){font-size:12px;padding:6px 8px}.analysis-filters .threshold-input{width:65px}.check-label{display:inline-flex;gap:4px;align-items:center}.check-label input{accent-color:#ff970d}.table-link{padding:0}.accent-value{color:#d84a1a}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 7px;font-size:13px}.detail-numbers{display:flex;flex-wrap:wrap;gap:5px;max-height:125px;overflow:auto;border:1px solid #efe1c3;background:#fff9ed;border-radius:9px;padding:8px}.detail-numbers span{display:inline-block;color:#8a6025;background:#fff0d4;border-radius:5px;padding:3px 6px;font:700 12px Arial}
.query-layout{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(300px,1.1fr);gap:14px}.query-section{background:#fffaf0;border:1px solid #ead9b6;border-radius:13px;padding:15px;min-width:0}.query-section h3{margin:0 0 8px;font-size:15px;color:#a76200}.query-section .hint{font-size:12px}.query-input{display:block;width:100%;min-height:160px;resize:vertical;background:#fffdf8;border:1px solid #e1ceaa;border-radius:10px;padding:11px;color:#584326;line-height:1.6;font-family:Consolas,monospace}.query-actions{margin:9px 0!important;gap:5px}.query-submit{width:100%;margin-top:4px}.query-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.query-stats div{text-align:center;background:#fff2d7;border:1px solid #ecd7ad;border-radius:9px;padding:10px 2px}.query-stats strong,.query-stats span{display:block}.query-stats strong{font-size:18px;color:#c87300}.query-stats span{font-size:10px;color:#a18e6b}.query-empty{min-height:110px;display:grid;place-items:center;text-align:center;color:#b5a27c;font-size:12px}.route-title{margin-top:18px!important;border-top:1px solid #eddfc5;padding-top:15px}.route-title small{font-size:11px;color:#ae9a74;font-weight:500}.query-route{display:flex;align-items:stretch;gap:6px;overflow:auto;padding-bottom:5px}.route-current,.route-item{flex:none;min-width:85px;text-align:center;border:1px solid #e7d3a8;border-radius:9px;background:#fff4dd;padding:8px}.route-current{background:#fff0c9;border-color:#eab75b}.route-current b,.route-current span,.route-item b,.route-item span{display:block}.route-current b,.route-item b{color:#bf7100;font-size:18px}.route-current span,.route-item span{font-size:10px;color:#a5906b}
@media(max-width:760px){body[data-page="analysis"] .app-shell,body[data-page="query"] .app-shell{display:flex}.analysis-layout{grid-template-columns:1fr}.parameter-list{display:flex;gap:4px;overflow:auto;max-height:none}.parameter-item{width:auto;flex:none;white-space:nowrap}.parameter-search{max-width:300px}.analysis-filters .text-input:not(.threshold-input){max-width:140px}.query-layout{grid-template-columns:1fr}.query-stats{grid-template-columns:repeat(4,1fr)}.query-input{min-height:120px}}
.history-layout{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:12px}.draw-list-panel,.draw-history{min-width:0;border:1px solid #ead7ae;border-radius:12px;overflow:hidden;background:#fffcf6}.draw-list-heading,.draw-history-head{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#fff5df;border-bottom:1px solid #ead7ae;font-size:13px;font-weight:800}.draw-history-head strong{color:#b96d00}.draw-history-head .spacer{flex:1}.platform-filters{display:flex;gap:5px;flex-wrap:wrap;padding:9px;background:#fffbf1}.platform-filters button{border:1px solid #ead5a7;background:#fffaf0;color:#927d58;border-radius:20px;padding:4px 8px;font-size:11px}.platform-filters button.active{background:#ff9d11;border-color:#ff9d11;color:white;font-weight:800}.draw-list{max-height:680px;overflow:auto}.draw-group{padding:5px 10px;background:#ffedd0;color:#ad8544;font-size:11px;font-weight:800}.draw-game{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;border:0;border-bottom:1px solid #f1e7d4;background:#fffcf6;color:#685434;text-align:left;padding:8px 10px}.draw-game:hover,.draw-game.active{background:#fff1d5}.draw-game.active strong{color:#d77c00}.draw-game-name{min-width:0}.draw-game-name strong,.draw-game-name small{display:block;white-space:nowrap}.draw-game-name small{font-size:10px;color:#b2a07b}.draw-game .number-inline{gap:2px}.draw-game .number-inline b{width:19px;height:19px;font-size:11px}.history-table th,.history-table td{text-align:center}.history-table .number-inline{justify-content:center}.shape-tag,.shape-hit{display:inline-block;border-radius:5px;background:#e4f2fb;color:#4381a3;padding:2px 6px;font-size:11px;font-weight:700}.trend-full{min-width:1280px}.trend-full th,.trend-full td{min-width:22px;padding:5px 3px;text-align:center}.trend-full th:first-child,.trend-full td:first-child{text-align:center}.trend-full .trend-hit{height:19px;width:19px;font-size:11px}.trend-full .shape-hit{white-space:nowrap;padding:2px 3px;font-size:10px}
@media(min-width:761px){.topbar{background:#fffbf1;color:#7e6844;box-shadow:0 2px 0 #ead8b3}.topbar-inner{min-height:50px;gap:18px}.brand{color:#d77b00;font-size:20px;text-shadow:none}.brand-mark{font-size:23px}.brand small{color:#d47a00;border-color:#efce91;background:#fff3d8}.topnav{align-items:center}.topnav button{align-self:center;min-height:34px;color:#8b7652;opacity:1;border-radius:10px;padding:0 10px}.topnav button.active{color:white;background:linear-gradient(#ffb12f,#f28f00);box-shadow:0 2px 0 #d48204}.topnav button.active:after{display:none}.topnav button:hover:not(:disabled):not(.active){background:#fff0d1}.top-actions button{color:#b27c27}.demo-pill{background:#fff0d8;color:#ca7600}.subbar{display:none}.app-shell{margin-top:12px}.notice{min-height:45px;padding:9px 14px;margin-bottom:12px}.notice strong{font-size:14px}body[data-page="history"] .app-shell,body[data-page="trend"] .app-shell{grid-template-columns:minmax(0,1fr)}body[data-page="history"] .sidebar,body[data-page="history"] .right-column,body[data-page="trend"] .sidebar,body[data-page="trend"] .right-column{display:none}}
@media(max-width:760px){.history-layout{grid-template-columns:1fr}.draw-list{max-height:260px}.draw-history-head{flex-wrap:wrap}.mobile-nav button{min-width:46px}.history-table .number-inline b{width:21px;height:21px;font-size:11px}}
.shrink-layout{display:grid;grid-template-columns:1fr 1fr;gap:13px}.shrink-section{border:1px solid #ead9b8;background:#fffaf0;border-radius:12px;padding:14px;margin-bottom:12px}.shrink-section h3{margin:0 0 6px;font-size:14px;color:#a76000}.shrink-section p.hint{margin:4px 0 10px}.position-row,.numeric-row{display:flex;align-items:flex-start;gap:9px;margin:8px 0}.position-row>strong,.numeric-row>strong{flex:none;min-width:65px;padding-top:5px;color:#8c7042;font-size:12px}.chip-row{display:flex;gap:4px;flex-wrap:wrap}.chip-button{min-width:29px;height:29px;padding:0 6px;background:#fffdf7;color:#8a7350;border:1px solid #e6d6b5;border-radius:7px;font-weight:700;font-size:12px}.chip-button:hover,.chip-button.active{background:#ff9a0c;color:white;border-color:#ee920c}.chip-button.shortcut{background:#f9efd9;color:#a38960}.chip-button.include{color:#1f9250;border-color:#47ad6b;background:#e2f5e8}.chip-button.exclude{color:#d94527;border-color:#dc6b55;background:#ffe9e4;text-decoration:line-through}.chip-separator{width:5px}.shrink-textarea{min-height:75px;margin-bottom:8px}.shape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.shape-filter{display:flex;align-items:center;gap:5px;font-size:12px;padding:4px 0}.shape-filter strong{min-width:35px}.shape-filter button{border:1px solid #e4d1aa;border-radius:6px;background:#fffdf7;color:#a89472;padding:3px 7px}.shape-filter button.keep{color:#178a4d;background:#e4f7e9;border-color:#73bb88}.shape-filter button.kill{color:#c5432c;background:#ffebe4;border-color:#d98870}.shape-filter button:disabled{opacity:.45}.shape-filter small{color:#af9d79}.numeric-row{border-bottom:1px solid #f1e7d4;padding-bottom:8px}.numeric-row:last-child{border-bottom:0}.result-heading{display:flex;justify-content:space-between;align-items:center}.result-heading h3{margin:0}.shrink-results{max-height:340px;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(62px,1fr))}.shrink-results .number-chip{font-size:13px;padding:6px}
@media(min-width:761px){body[data-page="groups"] .app-shell{grid-template-columns:minmax(0,1fr)}body[data-page="groups"] .sidebar,body[data-page="groups"] .right-column{display:none}}
@media(max-width:760px){.shrink-layout{grid-template-columns:1fr}.position-row,.numeric-row{gap:5px}.position-row>strong,.numeric-row>strong{min-width:54px}.shape-filter small{display:none}}
.bet-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:13px}.bet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bet-fields input,.bet-fields select{width:100%}.bet-mode{margin:5px 0 13px}.bet-table th,.bet-table td{text-align:right}.bet-table-panel{min-width:0}.profit-positive{color:#15964d;font-weight:800}.profit-negative{color:#d94b29;font-weight:800}
@media(min-width:761px){body[data-page="bet"] .app-shell{grid-template-columns:minmax(0,1fr)}body[data-page="bet"] .sidebar,body[data-page="bet"] .right-column{display:none}}
@media(max-width:760px){.bet-layout{grid-template-columns:1fr}.mobile-nav{overflow-x:auto;justify-content:space-between}.mobile-nav button{flex:1 0 44px}}
.recent-strip{display:flex;gap:7px;overflow:auto;padding:8px 0 2px}.recent-strip>div{flex:none;border:1px solid #edddb9;background:#fff8e8;border-radius:9px;padding:6px 8px}.recent-strip small{display:block;color:#aa9978;font-size:10px;margin-bottom:4px}.recent-strip .number-inline b{width:19px;height:19px;font-size:11px}.hot-chart-toggle{display:flex;align-items:center;gap:12px;border:1px solid #ead9b5;border-radius:10px;background:#fff8e9;padding:9px 12px;margin:10px 0}.hot-chart-toggle .hint{margin-left:auto}.hot-chart{border:1px solid #eadbbf;border-radius:10px;background:#fffdf8;padding:10px;margin-bottom:12px}.hot-chart svg{display:block;width:100%;height:140px}.hot-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:10px}.hot-table{overflow-x:auto;border:1px solid #ead9b5;border-radius:11px}.hot-header,.hot-row{display:grid;grid-template-columns:150px minmax(400px,1fr) minmax(400px,1fr);gap:8px;min-width:1000px;padding:8px;border-bottom:1px solid #efdfbf}.hot-header{background:#fff1d6;color:#9a7d4e;font-weight:800;font-size:12px}.hot-row:last-child{border-bottom:0}.hot-draw{display:flex;flex-direction:column;justify-content:center;gap:5px}.hot-draw small{font-size:10px;color:#a99571}.hot-draw .number-inline b{height:20px;width:20px;font-size:11px}.hot-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.hot-tile{background:#fcf4e3;border:1px solid #e7d8b9;border-radius:6px;padding:4px 5px;color:#826c47;font-size:11px;white-space:nowrap}.hot-tile strong{color:#6a5231}.hot-tile small{display:block;color:#b0a080;font-size:10px}.hot-tile.up,.hot-tile.new{background:#e8f6e8;border-color:#97cfa1}.hot-tile.up strong,.hot-tile.new strong{color:#26984e}.hot-tile.down{background:#ffebe5;border-color:#e3a28d}.hot-tile.down strong{color:#d64d28}
@media(min-width:761px){body[data-page="hot"] .app-shell,body[data-page="opportunities"] .app-shell{grid-template-columns:minmax(0,1fr)}body[data-page="hot"] .sidebar,body[data-page="hot"] .right-column,body[data-page="opportunities"] .sidebar,body[data-page="opportunities"] .right-column{display:none}}

.topnav{min-width:0}
.notice-list{display:flex;flex:1;min-width:0;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin}
.notice .notice-entry{color:#6c5231;background:#fff3d9;border:1px solid #edddb9;border-radius:7px;padding:4px 8px;font-size:11px;font-weight:700}
.notice-entry span{color:#a8610a;font-size:10px;margin-right:3px}
.notice-entry:hover{background:#ffecc4}
.footer .link-button{font-size:inherit}
.plan-results{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;color:#876d48;font-size:12px;margin:-4px 0 15px}
.plan-results>div{display:flex;gap:3px;flex-wrap:wrap}
.plan-status{display:inline-block;border-radius:5px;background:#fff0ce;color:#88530a;padding:2px 7px;font-size:11px;font-weight:800}
.plan-status.success{background:#dff4e6;color:#176840}
.plan-status.failed{background:#fbe9e2;color:#a43c25}
.plan-author{display:inline-flex;align-items:center;gap:7px}
.plan-author i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f9e9c8;color:#956520;font-style:normal;font-weight:800}
.plan-actions{display:flex;align-items:center;gap:7px}
.recommendation-table td,.recommendation-table th{padding:8px 11px}
.notice-cards,.help-topics{display:grid;gap:8px}
.notice-card{width:100%;display:grid;grid-template-columns:auto minmax(145px,.7fr) minmax(0,1.5fr) auto;gap:10px;align-items:center;text-align:left;color:#6b502d;background:#fff9eb;border:1px solid #eadab6;border-radius:9px;padding:13px}
.notice-card:hover{background:#fff2d4}
.notice-card-description{font-size:12px;color:#846f4e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-card-arrow{font-size:17px;color:#a96912}
.notice-dialog-body{line-height:1.8;color:#705636;margin:15px 0 0}
.help-topics details{border:1px solid #eadab6;border-radius:9px;background:#fff9ed;padding:11px 14px}
.help-topics summary{cursor:pointer;font-weight:800;color:#6b502d}
.help-topics p{margin:8px 0 0;color:#705d40;font-size:13px}
.help-topics button{padding:6px 0 0}
.dialog-actions{margin:13px 0 0}
.tag.cloud{background:#e5f4eb;border-color:#bcdbc7;color:#246746}
.history-settings{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--pale)}
.history-settings .controls{margin:8px 0 0}
.history-settings .form-note{margin:6px 0 0}
.data-actions{margin-top:15px}
.draw-actions,.latest-details{flex-wrap:wrap}
.trend-metric .trend-hit{width:auto;min-width:22px;padding:0 4px;border-radius:8px}
@media(min-width:761px){
  body:is([data-page="recommendations"],[data-page="announcements"],[data-page="help"]) .app-shell{grid-template-columns:minmax(0,1fr)}
  body:is([data-page="recommendations"],[data-page="announcements"],[data-page="help"]) :is(.sidebar,.right-column){display:none}
}
@media(max-width:760px){
  .notice{gap:8px}.notice .notice-entry{flex:none}
  .notice-card{grid-template-columns:auto minmax(0,1fr) auto}
  .notice-card-description{display:none}
  .section-heading{flex-wrap:wrap}
}
