:root{--paper:#f6f5f1;--white:#fff;--ink:#252925;--muted:#7b7f78;--line:#e7e8e1;--soft:#f2f3ee;--coral:#df624c;--coral-soft:#fbede8;--blue:#5a83b0;--blue-soft:#eaf0f7;--green:#5e7c65;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}input,select{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--white);padding:10px 12px;color:var(--ink);min-height:43px}input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--coral);margin:3px 0 0}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible,.file-label:focus-within{outline:3px solid #df624c55;outline-offset:3px}input[type=number]{font-variant-numeric:tabular-nums}button,.button{transition:background .15s,color .15s,transform .15s}button:active,.button:active{transform:translateY(1px)}h1,h2,h3,p{margin:0}h2{font-size:20px;font-weight:600;letter-spacing:-.5px}h3{font-size:16px;font-weight:600}small{font-size:12px}[hidden]{display:none!important}.muted{color:var(--muted)}.mobile-only{display:none}.site-header{max-width:1240px;margin:auto;height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:650;letter-spacing:2px;line-height:1.1}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:7px;color:var(--muted);font-weight:500}.brand-mark{display:grid;grid-template-columns:repeat(2,7px);gap:5px;padding:12px;background:var(--coral);border-radius:12px;transform:rotate(-8deg)}.brand-mark i{width:7px;height:7px;border-radius:50%;background:white}.brand-mark i:last-child{opacity:.45}.site-header nav{display:flex;align-items:center;gap:26px}.nav-button{font-size:14px;position:relative;padding:10px 0;color:var(--muted)}.nav-button.active{color:var(--ink);font-weight:600}.nav-button.active:after{content:"";position:absolute;bottom:-23px;width:20px;height:3px;border-radius:2px;background:var(--coral);left:50%;transform:translateX(-50%)}.count-badge{font-size:10px;background:#e8e9e2;border-radius:5px;padding:2px 5px;margin-left:3px}.quiet-button{font-size:12px;padding:7px 0;color:var(--muted)}.quiet-button:hover,.text-button:hover{color:var(--coral)}.text-button{font-size:12px;font-weight:500;padding:4px 0;white-space:nowrap}.header-about{color:var(--ink)}main{max-width:1180px;margin:auto;padding:0 24px}.hero{padding:49px 0 37px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:72px}.eyebrow{font-size:11px;font-weight:500;letter-spacing:1.5px;display:flex;align-items:center;gap:7px}.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--coral);flex-shrink:0}.hero h1{font-size:45px;line-height:1.34;font-weight:650;letter-spacing:-1.8px;margin:13px 0 14px}.hero h1 span{color:var(--coral)}.hero p{color:var(--muted);font-size:13px;line-height:1.8}.latest-card{background:#eeeeE7;border:1px solid #e6e7dd;border-radius:var(--radius);padding:23px 25px}.latest-heading{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.latest-heading>span:first-child{display:flex;gap:7px;align-items:center}.live-dot{height:6px;width:6px;display:inline-block;border-radius:100%;background:var(--green)}.latest-issue{display:flex;gap:12px;align-items:baseline;margin:13px 0 17px}.latest-issue strong{font-size:17px;font-weight:550;letter-spacing:.3px}.latest-issue>span{font-size:11px;color:var(--muted)}.ball-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:32px}.ball{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--coral-soft);color:var(--coral);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;flex-shrink:0;letter-spacing:.2px}.ball.extra{background:var(--blue-soft);color:var(--blue)}.ball-divider{font-size:12px;color:#aaa;margin:0 2px}.latest-card .ball{background:#fff9f5}.latest-card .ball.extra{background:#f7faff}.latest-bottom{border-top:1px solid #dddfd4;margin-top:20px;padding-top:14px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;font-size:10px;color:var(--muted)}.latest-bottom>span{max-width:75%;line-height:1.6}.latest-bottom .text-button{font-size:11px}.section-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.game-switch{display:inline-flex;gap:5px;background:#eaece5;border-radius:10px;padding:4px}.game-switch button{border-radius:7px;padding:9px 18px;font-size:13px;color:var(--muted);white-space:nowrap}.game-switch button span{font-size:10px;margin-left:8px;opacity:.7;letter-spacing:1px}.game-switch button.active{background:var(--white);color:var(--ink);box-shadow:0 1px 4px #303a2410;font-weight:550}.toolbar-note{font-size:11px}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}.settings-panel{padding:23px}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:24px}.panel-heading h2{font-size:16px}.step-tag{font-size:10px;font-weight:600;letter-spacing:1px;background:var(--soft);padding:3px 6px;border-radius:4px;color:var(--muted)}.field-label{display:flex;justify-content:space-between;font-size:12px;color:#4f554c;margin:0 0 7px;gap:5px}.field-label>span{font-size:11px;color:var(--muted)}.field-hint{font-size:11px;color:var(--muted);margin:8px 0 22px;min-height:34px}.segmented{display:flex;background:var(--soft);border-radius:9px;padding:4px;gap:3px}.segmented button{flex:1;min-width:0;padding:8px 6px;font-size:12px;border-radius:6px;color:var(--muted)}.segmented button.active{background:#fff;box-shadow:0 1px 4px #20251b0d;color:var(--ink);font-weight:550}.field-space{margin-top:17px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-label{display:flex;gap:10px;align-items:flex-start;margin-top:17px;font-size:12px;cursor:pointer}.check-label small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.plan-summary{border-top:1px dashed var(--line);margin-top:23px;padding-top:18px}.plan-summary>div:first-child{display:flex;align-items:center;justify-content:space-between}.plan-summary>div>span{font-size:12px;color:var(--muted)}.plan-summary strong{font-size:27px;font-weight:550;letter-spacing:-.8px}.plan-summary strong small{font-size:16px;color:var(--muted)}.plan-summary p{font-size:10px;color:var(--muted);text-align:right;margin-top:3px}.plan-summary .probability-line{display:flex;align-items:baseline;justify-content:space-between;margin:16px 0 19px;gap:8px}.plan-summary .probability-line span{font-size:10px}.probability-line>span:last-child{color:var(--ink);text-align:right}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;padding:12px 18px;font-size:12px;font-weight:550;min-height:43px;cursor:pointer}.button-coral{background:var(--coral);color:white}.button-coral:hover{background:#cd523e}.button-dark{background:var(--ink);color:#fff}.button-dark:hover{background:#41473f}.button-outline{border:1px solid #dadcd2;background:#fff}.button-outline:hover{background:var(--soft)}.full-width{width:100%}.fine-print{font-size:10px;color:var(--muted);line-height:1.8;margin-top:12px}.settings-panel .fine-print{text-align:center}.result-panel{padding:27px 28px 0;overflow:hidden}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.subtle{font-size:9px;letter-spacing:1.6px;color:var(--muted);margin-bottom:8px}.result-heading h2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:19px}.soft-tag{font-size:10px;padding:3px 7px;border-radius:5px;background:var(--soft);color:var(--muted);font-weight:400;letter-spacing:0}.result-meta{font-size:10px;color:var(--muted);padding:14px 0 18px;border-bottom:1px solid var(--line)}.ticket-list{padding:3px 0}.ticket-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px dashed #eceee7;min-height:55px}.ticket-row:last-child{border:0}.ticket-index{font-size:10px;min-width:20px;color:#a9ada3;font-variant-numeric:tabular-nums}.ticket-row .ball-row{flex:1;gap:7px}.ticket-row .ball{width:32px;height:32px;font-size:12px}.ticket-row .copy-one{font-size:11px;white-space:nowrap;color:#989e91;padding:6px}.ticket-row .copy-one:hover{color:var(--coral)}.result-actions{border-top:1px solid var(--line);padding:19px 0 22px;display:flex;justify-content:space-between;align-items:end;gap:18px}.save-target{font-size:10px;display:block;flex:1;max-width:260px}.save-target>span{display:flex;justify-content:space-between;margin-bottom:5px}.save-target input{font-size:11px;min-height:39px;padding:8px 10px}.result-actions .button{white-space:nowrap;min-height:39px;padding:10px 17px}.result-foot{background:#fafbf7;border-top:1px solid var(--line);margin:0 -28px;padding:11px 28px;font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px}.research-strip{display:flex;align-items:center;gap:17px;padding:27px 0 38px}.research-symbol{width:43px;height:43px;border:1px solid #dddfd5;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:24px;color:#828b74;flex-shrink:0}.research-strip h3{font-size:12px;font-weight:550;margin-bottom:4px}.research-strip p{font-size:11px;color:var(--muted);max-width:720px}.research-strip>.text-button{margin-left:auto;font-size:11px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:5px 0 24px}.section-title h2{font-size:25px}.section-title p{font-size:12px;margin-top:7px}.button-group{display:flex;gap:9px;align-items:center}.file-label{position:relative}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.empty-state{padding:64px 20px;text-align:center;border:1px dashed #d6dace;border-radius:18px;margin-bottom:60px}.empty-symbol{font-size:32px;color:var(--coral);margin-bottom:15px}.empty-state h3{font-size:17px}.empty-state p{font-size:12px;color:var(--muted);margin:10px 0 22px}.saved-card{padding:23px;margin-bottom:17px}.saved-card-head{display:flex;justify-content:space-between;gap:16px}.saved-card h3{font-size:17px}.saved-card .saved-meta{font-size:11px;color:var(--muted);margin-top:5px}.saved-status{padding:5px 9px;height:max-content;font-size:10px;border-radius:6px;background:var(--soft);color:var(--muted)}.saved-status.won{color:var(--coral);background:var(--coral-soft)}.saved-preview{padding:15px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.saved-preview>span{font-size:11px;color:var(--muted)}.saved-card details{font-size:12px;margin:0 0 12px}.saved-card summary{cursor:pointer;color:var(--muted)}.saved-card details .ticket-row{max-width:650px}.saved-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:15px;border-top:1px solid var(--line)}.saved-actions .button{padding:9px 14px;min-height:37px}.danger-link{font-size:11px;color:#92988c}.danger-link:hover{color:var(--coral)}.history-panel{padding:25px;margin-bottom:20px}.panel-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.panel-toolbar p{font-size:11px;margin-top:6px}.panel-toolbar select{min-height:35px;font-size:11px;padding:7px 10px;width:auto;max-width:150px}.frequency-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px}.frequency-tile{border-radius:9px;padding:12px 4px;background:color-mix(in srgb,var(--coral) var(--strength,10%),#fff);display:flex;align-items:center;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums}.frequency-tile strong{font-size:15px;font-weight:550}.frequency-tile span{font-size:10px;opacity:.65}.frequency-tile[aria-pressed=true]{outline:2px solid var(--coral);outline-offset:2px}.legend{font-size:10px;color:var(--muted);margin:17px 0 10px}.frequency-detail{background:var(--soft);border-radius:8px;padding:10px 13px;font-size:11px;min-height:38px}.history-bottom-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.history-bottom-grid h3{margin-bottom:8px}.history-bottom-grid p{font-size:11px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;color:var(--muted);font-weight:400;padding:15px 10px 10px 0;border-bottom:1px solid var(--line)}td{padding:13px 12px 13px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}td small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.probability-card>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:16px 0;gap:10px;font-size:11px}.probability-card strong{font-size:19px;font-weight:500;letter-spacing:-.4px}.draw-table .ball{width:27px;height:27px;font-size:11px}.draw-table .ball-row{gap:5px}.draw-table td:first-child{width:145px}.draw-table td{padding:13px 0}.view-section{padding-bottom:15px}footer{border-top:1px solid var(--line);max-width:1180px;margin:15px auto 0;display:flex;align-items:center;gap:35px;padding:28px 24px 36px;color:var(--muted)}.footer-brand{color:var(--ink);font-size:17px;font-weight:550;white-space:nowrap}.footer-brand span{font-size:8px;letter-spacing:1px;color:var(--muted);margin-left:7px}footer p{font-size:10px;line-height:1.8}footer>.text-button{margin-left:auto;font-size:10px}.toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);padding:13px 23px;border-radius:10px;background:#252925;color:#fff;box-shadow:0 6px 30px #0002;font-size:12px;z-index:100;max-width:calc(100% - 30px);text-align:center}.error-box{padding:15px;background:var(--coral-soft);color:#a13c2b;border-radius:10px;margin-bottom:20px;font-size:12px}.inline-error{font-size:12px;color:#ab3927;margin-top:10px}.loading{padding:60px 20px;color:var(--muted);text-align:center}dialog{border:1px solid var(--line);border-radius:21px;padding:28px;max-width:600px;width:calc(100% - 32px);max-height:88dvh;color:var(--ink);box-shadow:0 30px 100px #0002}dialog::backdrop{background:#20251b65;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.dialog-head h2{font-size:24px}.close-button{font-size:26px;color:var(--muted);width:38px;height:38px;line-height:1}.dialog-head+.muted{font-size:12px;margin-bottom:20px}.draw-preview{margin-top:14px}.check-summary{margin-top:23px;background:var(--soft);padding:19px;border-radius:12px}.check-summary.won{background:var(--coral-soft)}.check-summary h3{font-size:20px}.check-summary p{font-size:12px;margin-top:8px}.check-summary small{display:block;font-size:10px;color:var(--muted);margin-top:9px}.check-ranks{margin:12px 0;display:grid;gap:7px}.check-ranks>div{display:flex;justify-content:space-between;font-size:13px}.about-content h3{font-size:14px;margin:22px 0 8px}.about-content p{font-size:12px;color:var(--muted);line-height:1.9}.about-content a{color:var(--coral)}
@media(min-width:1100px){.hero h1 br{display:none}.hero h1{font-size:43px}.hero{gap:45px}.latest-card{max-width:460px;justify-self:end;width:100%}}
@media(max-width:900px){.hero{gap:30px}.hero h1{font-size:38px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:16px}.settings-panel{padding:20px}.result-panel{padding:23px 20px 0}.result-foot{margin:0 -20px;padding:11px 20px}.ticket-row{gap:7px}.ticket-row .ball-row{gap:5px}.ticket-row .ball{width:28px;height:28px;font-size:11px}.result-actions{flex-direction:column;align-items:stretch;gap:12px}.save-target{max-width:none}.frequency-grid{grid-template-columns:repeat(9,minmax(0,1fr))}.header-about{display:none}.hero .latest-card{padding:20px}.latest-card .ball{width:30px;height:30px;font-size:12px}.latest-card .ball-row{gap:6px}}
@media(max-width:680px){body{font-size:13px}.site-header{height:auto;padding:19px 20px 0;flex-wrap:wrap;gap:17px}.brand{font-size:22px;gap:10px}.brand-mark{padding:10px}.site-header nav{width:100%;justify-content:space-between;gap:15px}.nav-button{padding:11px 0 15px;font-size:13px}.nav-button.active:after{bottom:-1px}.brand small{font-size:8px}.header-about{display:block;margin-left:auto}main{padding:0 17px}.hero{padding:27px 0 24px;grid-template-columns:1fr;gap:24px}.hero h1{font-size:34px;letter-spacing:-1px;margin:11px 0}.hero h1 br{display:none}.hero p{font-size:12px}.latest-card{padding:17px 18px!important}.latest-issue{margin:9px 0 13px}.latest-bottom{margin-top:14px;padding-top:11px}.latest-card .ball{width:34px;height:34px;font-size:13px}.latest-card .ball-row{gap:8px}.section-toolbar{margin-bottom:14px}.toolbar-note{font-size:9px;max-width:105px;text-align:right}.game-switch button{padding:8px 12px;font-size:12px}.game-switch button span{font-size:9px;margin-left:4px}.workspace{grid-template-columns:1fr;gap:17px}.settings-panel{padding:21px}.panel-heading{margin-bottom:17px}.field-hint{min-height:0;margin-bottom:17px}.plan-summary{margin-top:18px}.result-panel{padding:23px 17px 0}.result-heading h2{font-size:17px}.result-heading .quiet-button{font-size:11px}.result-meta{padding:11px 0 13px}.ticket-row{padding:10px 0;gap:7px}.ticket-index{min-width:15px;font-size:9px}.ticket-row .ball{width:29px;height:29px;font-size:11px}.ticket-row .ball-row{gap:5px}.ticket-row .copy-one{font-size:10px;padding:5px 0}.ball-divider{margin:0}.result-foot{margin:0 -17px;padding:11px 17px;font-size:9px}.result-actions{display:grid;grid-template-columns:1fr;gap:13px}.save-target input{font-size:12px}.research-strip{gap:13px;padding:24px 1px;align-items:flex-start;flex-wrap:wrap}.research-symbol{width:34px;height:34px;font-size:22px}.research-strip>div:nth-child(2){flex:1}.research-strip p{font-size:10px}.research-strip>.text-button{margin-left:47px}.section-title{align-items:flex-start;flex-direction:column;gap:18px;padding-top:5px}.section-title h2{font-size:23px}.section-title p{font-size:11px}.button{font-size:11px;padding:11px 15px}.saved-card{padding:18px}.saved-card h3{font-size:15px}.saved-meta{max-width:230px}.saved-preview .ball{width:29px;height:29px;font-size:11px}.saved-preview .ball-row{gap:5px}.saved-card .saved-meta{font-size:10px}.saved-actions{flex-wrap:wrap}.saved-actions .button{font-size:10px;padding:9px 12px}.saved-actions .button-group{gap:7px}.history-panel{padding:18px}.panel-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.frequency-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.frequency-tile{padding:10px 3px}.frequency-tile strong{font-size:13px}.history-bottom-grid{grid-template-columns:1fr;gap:0}.draw-table .ball{width:24px;height:24px;font-size:10px}.draw-table .ball-row{gap:4px}.draw-table td:first-child{width:90px;font-size:11px}.draw-table td small{font-size:9px}footer{margin-top:10px;padding:22px 18px 29px;gap:13px;flex-wrap:wrap}footer p{width:100%;order:3;font-size:9px}footer>.text-button{margin-left:auto}dialog{padding:22px 19px}.dialog-head h2{font-size:21px}.check-summary h3{font-size:18px}input,select{font-size:16px}.settings-panel select{font-size:14px}.panel-toolbar select{font-size:12px}}
@media(max-width:360px){.hero h1{font-size:29px}.latest-card .ball{width:29px;height:29px}.latest-card .ball-row{gap:6px}.ticket-row .ball{width:25px;height:25px;font-size:10px}.ticket-row .ball-row{gap:4px}.ticket-index{min-width:12px}.ticket-row .copy-one{font-size:9px}.result-heading{gap:6px}.result-heading h2{font-size:16px}.result-heading .soft-tag{font-size:9px}.draw-table .ball{width:21px;height:21px;font-size:9px}.draw-table .ball-row{gap:3px}.draw-table td:first-child{width:76px}.game-switch button{padding:8px 10px}.section-toolbar .toolbar-note{max-width:85px;font-size:8px}.frequency-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:680px){.brand{order:0}.header-about{order:1}.site-header nav{order:2}.latest-card .ball{width:30px;height:30px;font-size:12px}.latest-card .ball-row{gap:6px}.ticket-row .ball{width:26px;height:26px;font-size:11px}.ticket-row .ball-row{gap:4px}}
@media(max-width:360px){.latest-card .ball{width:27px;height:27px;font-size:11px}.latest-card .ball-row{gap:4px}.ticket-row .ball{width:23px;height:23px;font-size:10px}.ticket-row .ball-row{gap:3px}}

.cloud-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 23px;margin-bottom:22px}.cloud-bar strong{font-size:14px;font-weight:550}.cloud-bar p{font-size:11px;color:var(--muted);margin-top:5px}.cloud-bar p[data-state=error]{color:#ab3927}.cloud-bar p[data-state=synced]{color:#52745b}.cloud-description{font-size:12px;color:var(--muted);line-height:1.9}.cloud-divider{display:flex;align-items:center;gap:12px;margin:25px 0 18px;font-size:11px;color:var(--muted)}.cloud-divider:before,.cloud-divider:after{content:"";height:1px;flex:1;background:var(--line)}#sync-code,#cloud-input{font-family:ui-monospace,monospace;font-size:13px}#cloud-dialog .danger-link{display:block}#cloud-dialog .button-group{flex-wrap:wrap}@media(max-width:680px){.cloud-bar{align-items:flex-start;flex-direction:column;padding:18px}.cloud-bar>.button-group{width:100%;flex-wrap:wrap}.cloud-bar .button{flex:1;white-space:nowrap}#sync-code,#cloud-input{font-size:16px}}

.rules-shortcut{display:flex;align-items:center;gap:16px}
.rules-shortcut .text-button{color:var(--coral)}
.rules-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:22px;align-items:start}
.rules-table-panel,.rules-lookup,.rules-explainer{padding:25px}
.rules-table-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.rules-table-heading h3{font-size:16px}
.rules-table-heading select{font-size:11px;min-height:36px;padding:7px 10px}
.rules-description{font-size:12px;color:var(--muted);line-height:1.9}
.rules-table{margin-top:10px}
.rules-table th,.rules-table td{padding:16px 10px;font-size:12px}
.rules-table thead th{font-size:10px;white-space:nowrap}
.rules-table th:first-child,.rules-table td:first-child{padding-left:0}
.rules-table tbody th{font-weight:550;color:var(--ink);white-space:nowrap;border-bottom:1px solid var(--line);vertical-align:top}
.rules-table tbody tr:last-child th{border-bottom:0}
.rules-table td{vertical-align:top}
.rules-table td:not(:nth-child(2)){white-space:nowrap}
.rules-table td:last-child{padding-right:0}
.rules-table tr.matched{background:#fbf2ec}
.rule-match-flag{display:block;color:var(--coral);font-size:9px;font-weight:400;margin-top:4px}
.rule-conditions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:67px}
.rule-pair{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.rule-pair b{display:inline-flex;align-items:center;justify-content:center;background:var(--coral-soft);color:#b54734;border-radius:6px;width:24px;height:26px;font-size:12px;font-weight:600}
.rule-pair b.extra{background:var(--blue-soft);color:#416b98}
.rule-pair>span{font-size:10px;color:var(--muted)}
.rule-or{font-size:10px;color:var(--muted)}
.rules-side{display:grid;gap:18px}
.rules-lookup>.rules-description{margin-top:7px}
.rule-match-result{margin-top:20px;padding:17px;border-radius:11px;background:var(--soft)}
.rule-match-result.won{background:var(--coral-soft)}
.rule-match-result>strong{font-size:22px;font-weight:550}
.rule-match-result p{font-size:12px;line-height:1.9;margin-top:6px}
.rules-explainer p{font-size:12px;color:var(--muted);line-height:1.95;margin-top:10px}
.rules-explainer h3:not(:first-child){margin-top:23px}
.rules-source{display:flex;flex-wrap:wrap;gap:8px 15px;margin-top:20px;padding-top:15px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.rules-source a{color:var(--coral);text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.rules-layout{grid-template-columns:1fr}.rules-side{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.site-header nav{gap:10px}.nav-button{white-space:nowrap;font-size:12px}.rules-shortcut{flex-direction:column;align-items:flex-end;gap:3px}.rules-shortcut .toolbar-note{max-width:125px}.rules-layout{gap:17px}.rules-table-panel,.rules-lookup,.rules-explainer{padding:18px}.rules-side{grid-template-columns:1fr}.rules-table th,.rules-table td{padding:13px 5px;font-size:11px}.rules-table thead th{font-size:9px}.rules-table td small{font-size:9px}.rule-conditions{gap:4px}.rule-pair{gap:2px}.rule-pair b{width:21px;height:24px;font-size:11px}.rule-or{font-size:9px}.rules-description{font-size:11px}.rules-table-heading select{font-size:13px}.rules-table tbody th{white-space:normal;min-width:43px}.rules-table-panel .table-wrap{overflow:visible}}
