/* หน้าร้าน taradsim v2 — แปลงจาก Taradsim_Storefront_V289 (คงลำดับ CSS เดิม) */
/* 001-style */
/* V67.56 number typography experiment: rounded, modern Inter numerals only. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700&display=swap');
.cards .sim .number,
.v6724-recommend .sim .number,
.lucky-card .number {
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: 'tnum' 1, 'lnum' 1 !important;
}

:root{--red:#d82736;--ink:#1c2330;--muted:#6f7886;--line:#e8ebef;--bg:#f7f8fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif}button,input,select{font:inherit}button{cursor:pointer}header{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.nav{max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:16px 22px}.logo{font-weight:850;font-size:26px;letter-spacing:-1.2px}.logo b{color:var(--red)}.nav small{color:var(--muted)}.wrap{max-width:1160px;margin:auto;padding:0 22px}.hero{background:linear-gradient(115deg,#20252e 0%,#323640 55%,#684e4b 100%);color:white;overflow:hidden}.hero-inner{max-width:1160px;margin:auto;padding:65px 22px 80px;position:relative}.hero-inner:after{content:'789';position:absolute;right:5%;top:0;font-size:220px;font-weight:900;letter-spacing:-20px;color:#ffffff0b;transform:rotate(-12deg);pointer-events:none}.eyebrow{color:#ffc3b9;font-weight:700}.hero h1{font-size:clamp(32px,5vw,53px);line-height:1.16;margin:15px 0}.hero p{color:#d8d9dd;line-height:1.8}.searchbar{position:relative;margin:-37px auto 28px;background:white;padding:20px;border-radius:18px;box-shadow:0 12px 38px #202c3b1a;display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}.field label{display:block;font-size:13px;color:#667080;margin-bottom:7px}.field input,.field select,.filter select,.filter input{border:1px solid #dce1e7;border-radius:9px;padding:12px;width:100%;background:#fff;color:var(--ink);min-width:0}.primary{background:var(--red);border:0;color:white;border-radius:9px;padding:13px 24px;font-weight:700}.primary:hover{background:#b91d2a}.secondary{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 14px;color:var(--ink)}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 35px}.chip{border:1px solid #f0cbd0;background:#fff5f6;color:#c72332;border-radius:30px;padding:8px 16px;font-weight:650}.section-title{font-size:23px;margin:22px 0 17px}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.category{background:white;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:0 2px 12px #00000004}.category strong{display:block;margin:9px 0 3px}.category span{color:var(--muted);font-size:13px}.category .emoji{font-size:26px}.workspace{display:grid;grid-template-columns:285px 1fr;gap:22px;align-items:start;margin:35px 0 65px}.filter{background:white;border:1px solid var(--line);border-radius:14px;padding:19px}.filter h3{margin:0 0 18px}.filter .field{margin:15px 0}.positions{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}.positions input{text-align:center;padding:8px 0;border:1px solid #dce1e7;border-radius:5px;min-width:0}.hint{font-size:12px;color:var(--muted);margin:7px 0}.digits{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0}.digit{display:flex;align-items:center;gap:4px;font-size:14px}.digit input{accent-color:var(--red)}.inline{display:grid;grid-template-columns:1fr 1fr;gap:9px}.actions{display:flex;gap:8px;margin-top:17px}.actions>*{flex:1}.results-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.results-top h2{margin:0;font-size:22px}.results-top p{color:var(--muted);font-size:13px;margin:5px 0}.results-top select{padding:10px;border:1px solid var(--line);border-radius:8px;background:white;max-width:200px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sim{background:white;border:1px solid var(--line);border-radius:13px;padding:17px;min-width:0;box-shadow:0 3px 10px #00000006}.sim-head{display:flex;justify-content:space-between;align-items:center}.brand{font-weight:850;font-size:14px}.brand.ais{color:#64aa17}.brand.true{color:#e31e30}.brand.dtac{color:#159bd7}.sum{color:#88919e;font-size:12px}.number{font-size:clamp(16px,1.8vw,23px);font-weight:800;letter-spacing:-.5px;white-space:nowrap;margin:16px 0 8px}.number em{color:var(--red);font-style:normal}.price{color:var(--red);font-size:19px;font-weight:800}.sim-footer{display:flex;justify-content:space-between;align-items:center}.detail{background:#fff2f3;border:0;color:var(--red);border-radius:7px;padding:8px 10px}.paginator{display:flex;justify-content:center;align-items:center;gap:10px;margin:24px 0}.paginator button{border:1px solid var(--line);border-radius:8px;padding:9px 14px;background:white}.empty{background:white;border:1px solid var(--line);border-radius:12px;padding:40px;text-align:center;color:var(--muted);grid-column:1/-1}footer{background:#20252e;color:#c7cbd3;text-align:center;padding:27px;font-size:13px}.demo{background:#fff4e8;color:#895b18;padding:10px 22px;text-align:center;font-size:13px}dialog{border:0;border-radius:16px;max-width:400px;width:calc(100% - 32px);box-shadow:0 20px 90px #0005;padding:27px}dialog::backdrop{background:#10141c99}dialog h2{margin:0 0 12px}dialog p{line-height:1.8}details.mobile-filter{display:none} @media(max-width:850px){.searchbar{grid-template-columns:1fr 1fr}.searchbar .field:first-child{grid-column:1/-1}.searchbar button{grid-column:1/-1}.categories{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:1fr}.filter{display:none}details.mobile-filter{display:block;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:15px}details.mobile-filter summary{padding:15px 18px;font-weight:750;cursor:pointer}details.mobile-filter .filter{display:block;border:0;border-top:1px solid var(--line);border-radius:0}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.hero-inner{padding:46px 22px 68px}.hero-inner:after{font-size:120px;top:25px}.searchbar{grid-template-columns:1fr;margin-top:-29px}.searchbar .field:first-child,.searchbar button{grid-column:auto}.categories{gap:9px}.category{padding:13px}.cards{grid-template-columns:1fr 1fr;gap:8px}.sim{padding:11px}.number{font-size:clamp(14px,4vw,20px);letter-spacing:-.7px}.price{font-size:17px}.sim-footer{align-items:flex-end}.detail{font-size:12px;padding:7px}.results-top{align-items:flex-start}.results-top select{max-width:140px;font-size:12px}.wrap{padding:0 14px}}

.analysis-btn{margin-top:11px;width:100%;border:1px solid #e7b9be;background:#fff7f8;color:#b62231;border-radius:8px;padding:9px;font-weight:700}.analysis-btn:hover{background:#ffecef}.analysis-box{background:#f8f9fb;border:1px solid #e8ebef;border-radius:12px;padding:14px;margin:13px 0}.pair-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pair-tile{border:1px solid #e3e6ec;background:white;border-radius:9px;padding:9px 6px;text-align:center}.pair-tile strong{display:block;font-size:18px;color:#c52a37}.pair-tile span{font-size:11px;color:#5f6773}.analysis-note{font-size:12px;color:#727b86;line-height:1.7}.analysis-modal{max-width:540px;max-height:85vh;overflow-y:auto}.analysis-modal h2{font-size:20px}.analysis-modal p{line-height:1.7}

.lucky-panel{margin:22px 0 30px;padding:25px;border:1px solid #e7e9ee;border-radius:18px;background:linear-gradient(120deg,#fff,#fff7f8)}.lucky-panel h2{margin:0 0 7px;font-size:23px}.lucky-panel p{color:#687280;line-height:1.7}.lucky-options{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.lucky-option{border:1px solid #e0e3e9;background:#fff;padding:10px 14px;border-radius:999px;cursor:pointer}.lucky-option.selected{border-color:#c72b3b;background:#fff0f2;color:#b01c2c;font-weight:700}.lucky-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lucky-note{font-size:12px;color:#737b85;margin-top:14px}.lucky-results{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}.lucky-card{background:white;border:1px solid #e6e8ec;border-radius:12px;padding:15px}.lucky-card .number{font-size:23px}.lucky-card small{color:#777}.lucky-card button{margin-top:10px;border:1px solid #dfb9c0;color:#b32132;background:white;border-radius:8px;padding:8px;width:100%}@media(max-width:600px){.lucky-panel{padding:17px}.lucky-card .number{font-size:20px}}

/* V7: larger, clearly paired digit selectors on mobile and desktop */
.digits{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 7px;margin:12px 0 16px}
.digit{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:6px 2px;border:1px solid #e1e5ea;border-radius:10px;background:#fff;font-size:17px;font-weight:600;cursor:pointer;white-space:nowrap}
.digit input[type=checkbox]{appearance:none;-webkit-appearance:none;width:23px;height:23px;min-width:23px;margin:0;padding:0;border:2px solid #9da5ae;border-radius:6px;background:#fff;position:relative;cursor:pointer}
.digit input[type=checkbox]:checked{background:var(--red);border-color:var(--red)}
.digit input[type=checkbox]:checked:after{content:'✓';position:absolute;inset:-3px 0 0;color:white;text-align:center;font-size:19px;font-weight:800}
.digit:has(input:checked){background:#fff1f3;border-color:#f1aab3;color:#b51e2b}
@media(max-width:520px){.digits{gap:8px 5px}.digit{gap:5px;font-size:16px;min-height:48px}.digit input[type=checkbox]{width:24px;height:24px;min-width:24px}}

/* V9: compact, continuous results */
.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sim{padding:12px 14px;border-radius:10px}
.sim .number{margin:9px 0 6px;font-size:clamp(17px,2vw,23px)}
.sim .price{font-size:17px}
.sim .sim-footer{gap:6px}
.sim .analysis-btn{margin-top:8px}
.load-status{text-align:center;color:#687280;font-size:13px;padding:22px 8px}
.load-sentinel{height:4px}
@media(max-width:520px){.cards{grid-template-columns:1fr;gap:7px}.sim{padding:10px 13px}.sim .number{font-size:21px;margin:5px 0}.sim .analysis-btn{margin-top:5px}.sim .sim-head{font-size:12px}}
.order-warning{background:#fff0d9;border:1px solid #e8bb71;border-radius:10px;padding:12px;margin:12px 0;color:#6d4316;line-height:1.6}.order-warning strong{display:block}.order-number{font-size:25px;font-weight:800;margin:14px 0}.order-number span{display:block;font-size:14px;color:#687381;font-weight:500}.analysis-modal h3{font-size:18px}.analysis-modal ol{padding-left:25px;line-height:1.85}.analysis-modal li{margin:9px 0}.analysis-modal ul{padding-left:20px}.order-refund{color:#bb2433;font-weight:700}.order-contact{line-height:1.85;padding:12px;background:#f5f6f8;border-radius:10px}.order-copy{margin:12px 0;width:100%}
.lucky-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.lucky-card-actions button{margin-top:0;min-width:0;font-size:13px;padding:10px 5px}.lucky-card-actions .lucky-order{background:#d82736;color:white;border-color:#d82736}.order-contact a{color:#b62231;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* V25: circular number selectors, green for wanted and red for excluded */
.filter .digits{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0 17px}
.filter button.digit{appearance:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;min-height:0;max-width:100%;padding:0;margin:auto;border:2px solid #dce1e7;border-radius:50%;background:#f1f3f5;color:#697381;font-size:19px;font-weight:750;line-height:1;cursor:pointer;transition:background .12s,border-color .12s,color .12s}
.filter button.digit:hover{border-color:#929ba8;background:#e9edf1}
.filter button.digit-in.selected,.filter button.digit-in.selected:hover{background:#168348;border-color:#168348;color:white}
.filter button.digit-ex.selected,.filter button.digit-ex.selected:hover{background:#d82736;border-color:#d82736;color:white}
.filter button.digit:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:420px){.filter button.digit{width:43px;height:43px}}
.result-sequence{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;color:#505c6b;background:#eaf0f5;border-radius:7px;padding:4px 7px;margin-right:7px;white-space:nowrap} 
/* V67.32: radio buttons remain visibly selected in mobile filter forms. */
.v6729-logic input[type="radio"]{appearance:none!important;-webkit-appearance:none!important;display:inline-grid!important;place-content:center!important;flex:0 0 19px!important;width:19px!important;height:19px!important;min-width:19px!important;margin:0 5px 0 0!important;padding:0!important;border:2px solid #8995a5!important;border-radius:50%!important;background:#fff!important;box-shadow:none!important;vertical-align:middle!important;cursor:pointer}
.v6729-logic input[type="radio"]:checked{border-color:#1676d2!important;background:#fff!important}
.v6729-logic input[type="radio"]:checked::before{content:"";width:9px;height:9px;border-radius:50%;background:#1676d2}

/* V67.33: explicit accessible AND/OR state, independent of browser native radio styling */
.v6729-logic .v6733-choice{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;min-height:34px!important;padding:3px 2px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:6px!important;box-shadow:none!important;color:#344158!important;font-size:13px!important;font-weight:500!important;line-height:1.3!important;white-space:nowrap!important;cursor:pointer!important}
.v6729-logic .v6733-dot{display:inline-flex!important;flex:0 0 20px!important;width:20px!important;height:20px!important;box-sizing:border-box!important;border:2px solid #8995a5!important;border-radius:50%!important;background:#fff!important;align-items:center!important;justify-content:center!important}
.v6729-logic .v6733-choice.is-active .v6733-dot{border-color:#1676d2!important}
.v6729-logic .v6733-choice.is-active .v6733-dot:after{content:"";display:block;width:10px;height:10px;background:#1676d2;border-radius:50%}
.v6729-logic .v6733-choice:focus-visible{outline:2px solid #1676d2!important;outline-offset:2px!important}

/* 002-style */
/* V6: compact hero and mobile-first detailed search */
.hero-inner{padding:27px 22px 49px}.hero h1{font-size:clamp(25px,3.8vw,36px);margin:0 0 8px}.hero p{margin:0;line-height:1.5;font-size:15px}.hero-inner:after{font-size:125px;top:-20px}.searchbar{margin-top:-24px;margin-bottom:14px}.summary-hint{font-weight:400;font-size:12px;color:#78808d;margin-left:8px}.top-mobile-filter{margin:0 0 20px!important}.top-mobile-filter summary{list-style:none}.top-mobile-filter summary::-webkit-details-marker{display:none}.top-mobile-filter summary:after{content:'⌄';float:right}.top-mobile-filter[open] summary:after{content:'⌃'}.lucky-panel{margin-top:20px!important}.lucky-panel h2{font-size:22px!important;margin-bottom:6px!important}.lucky-panel p{margin-top:0!important}.workspace{margin-top:22px}
@media(max-width:850px){.top-mobile-filter{display:block!important}.workspace{display:block}.workspace>aside.filter{display:none}}
@media(min-width:851px){.top-mobile-filter{display:none!important}}
@media(max-width:520px){.hero-inner{padding:23px 18px 43px}.hero h1{font-size:25px}.hero p{font-size:13px}.hero-inner:after{font-size:95px;top:0}.searchbar{margin-top:-19px;padding:15px;gap:8px}.searchbar .field input,.searchbar .field select{padding:10px}.searchbar .primary{padding:11px}.summary-hint{display:block;margin:4px 0 0;font-size:11px}.top-mobile-filter .filter{padding:14px!important}.lucky-panel{padding:17px!important}.lucky-panel h2{font-size:20px!important}}

/* V9: compact, continuous results */
.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sim{padding:12px 14px;border-radius:10px}
.sim .number{margin:9px 0 6px;font-size:clamp(17px,2vw,23px)}
.sim .price{font-size:17px}
.sim .sim-footer{gap:6px}
.sim .analysis-btn{margin-top:8px}
.load-status{text-align:center;color:#687280;font-size:13px;padding:22px 8px}
.load-sentinel{height:4px}
@media(max-width:520px){.cards{grid-template-columns:1fr;gap:7px}.sim{padding:10px 13px}.sim .number{font-size:21px;margin:5px 0}.sim .analysis-btn{margin-top:5px}.sim .sim-head{font-size:12px}}

/* V10: larger numbers, single compact action row */
.sim .sim-number-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.sim .number{font-size:clamp(27px,3vw,36px);font-weight:800;letter-spacing:.2px;margin:3px 0 11px;white-space:nowrap}
.sim .sum{font-size:12px;white-space:nowrap;color:#89919b}
.sim .sim-one-line{display:flex;align-items:center;gap:8px;min-width:0}
.sim .sim-one-line .brand{flex:0 0 auto;font-size:13px}
.sim .sim-one-line .price{flex:1 1 auto;font-size:clamp(15px,1.5vw,20px);white-space:nowrap;font-weight:800}
.sim .sim-one-line .price small{font-size:11px}
.sim .sim-one-line button{flex:0 0 auto;margin:0;width:auto;min-height:35px;padding:7px 9px;font-size:12px;line-height:1.2;white-space:nowrap;border-radius:9px}
@media(max-width:520px){.sim{padding:12px 10px}.sim .number{font-size:clamp(25px,6.3vw,34px)}.sim .sim-one-line{gap:5px}.sim .sim-one-line .brand{font-size:12px}.sim .sim-one-line .price{font-size:clamp(14px,3.8vw,19px)}.sim .sim-one-line button{font-size:11px;padding:7px 6px}.sim .sum{font-size:11px}}
@media(max-width:370px){.sim .sim-one-line{gap:3px}.sim .sim-one-line button{font-size:10px;padding:6px 4px}.sim .sim-one-line .price{font-size:13px}.sim .sim-one-line .brand{font-size:11px}}
.order-warning{background:#fff0d9;border:1px solid #e8bb71;border-radius:10px;padding:12px;margin:12px 0;color:#6d4316;line-height:1.6}.order-warning strong{display:block}.order-number{font-size:25px;font-weight:800;margin:14px 0}.order-number span{display:block;font-size:14px;color:#687381;font-weight:500}.analysis-modal h3{font-size:18px}.analysis-modal ol{padding-left:25px;line-height:1.85}.analysis-modal li{margin:9px 0}.analysis-modal ul{padding-left:20px}.order-refund{color:#bb2433;font-weight:700}.order-contact{line-height:1.85;padding:12px;background:#f5f6f8;border-radius:10px}.order-copy{margin:12px 0;width:100%}

/* 003-purchase-green-v16 */
/* Only purchase actions use green; search and analysis retain existing colors. */
.sim .sim-one-line button.detail,
.lucky-card-actions button.lucky-order {
  background:#168348 !important;
  border:1px solid #168348 !important;
  color:#ffffff !important;
  font-weight:700;
}
.sim .sim-one-line button.detail:hover,
.lucky-card-actions button.lucky-order:hover {background:#106c3a !important;}
.sim .sim-one-line button.detail:focus-visible,
.lucky-card-actions button.lucky-order:focus-visible {outline:3px solid #86d7a9;outline-offset:2px;}

/* 004-analysis-blue-v17 */
/* Analysis actions are blue; purchase actions remain green. */
.sim .sim-one-line button.analysis-btn,
.lucky-card-actions button[data-analyze] {
  background:#1769c2 !important;
  border:1px solid #1769c2 !important;
  color:#fff !important;
  font-weight:700;
}
.sim .sim-one-line button.analysis-btn:hover,
.lucky-card-actions button[data-analyze]:hover {background:#1056a1 !important;}
.sim .sim-one-line button.analysis-btn:focus-visible,
.lucky-card-actions button[data-analyze]:focus-visible {outline:3px solid #9bc6ff;outline-offset:2px;}

/* 005-equal-action-buttons-v18 */
/* Give both action buttons equal visual width in search results. */
.sim .sim-one-line button.analysis-btn,
.sim .sim-one-line button.detail { flex:1 1 0; min-width:0; text-align:center; }
/* Lucky recommendations already use equal grid columns; keep them equal. */
.lucky-card-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }

/* 006-style */
.mode-panel{background:#fff;border:1px solid #e6e9ee;border-radius:15px;padding:17px 20px;margin:0 0 13px;box-shadow:0 5px 20px #18202b08}.lucky-toggle{display:flex;align-items:center;gap:9px;margin-top:13px;padding:11px 12px;border:1px solid #dfe3e9;border-radius:11px;cursor:pointer}.lucky-toggle:has(input:checked){background:#fff7eb;border-color:#d8aa58}.lucky-toggle input{accent-color:#d82736}.mode-panel h2{font-size:19px;margin:0 0 13px}.mode-options{display:flex;flex-wrap:wrap;gap:9px}.mode-options label{border:1px solid #dfe3e9;border-radius:11px;padding:11px 14px;display:flex;align-items:center;gap:7px;cursor:pointer;background:white}.mode-options label:has(input:checked){background:#fff0f2;border-color:#d82736;color:#b51c2b;font-weight:700}.mode-options input{accent-color:#d82736}.mode-help{color:#727b89;font-size:12px;margin:11px 0 0}.mode-hidden{display:none!important}#searchResults.basic-results{display:block}#searchResults.basic-results #desktopFilter{display:none!important}#searchResults.basic-results>div{width:100%}
@media(max-width:600px){.mode-panel{padding:15px}.mode-options{display:grid;grid-template-columns:1fr;gap:7px}.mode-options label{padding:9px 11px}.mode-panel h2{font-size:17px}}

/* Simplified buyer journey */
.searchbar #quickSearch,.filter .actions,.lucky-actions,.lucky-results,#luckyStatus{display:none!important}
#birthdayPanel{margin:12px 0 0}
.search-submit{background:#fff;border:1px solid #e5e8ee;border-radius:14px;padding:16px;margin:12px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.search-submit #mainSearch{flex:2 1 210px;font-size:17px;padding:14px}
.search-submit #resetAll{flex:1 1 155px;padding:13px}
.search-explain{width:100%;font-size:12px;color:#737c89;margin:0;line-height:1.5}
.active-summary{background:#f6f8fc;border:1px solid #e0e6ee;border-radius:12px;padding:12px 15px;margin:12px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}
.active-summary strong{font-size:16px}.filter-tag{display:inline-block;background:white;border:1px solid #dbe1ea;border-radius:99px;padding:4px 9px;margin:3px 2px;font-size:12px}
#luckyPanel{margin:12px 0 0}#luckyPanel>h2{font-size:17px}#luckyPanel>p{font-size:12px}
@media(max-width:600px){.search-submit{padding:12px}.search-submit #mainSearch,.search-submit #resetAll{flex-basis:100%}}
/* Birthday numerology controls */
.birthday-box{margin:18px 0;padding:16px;border:1px solid #e4e7ed;background:#fff;border-radius:12px}
.birthday-box select{display:block;width:100%;margin-top:9px;padding:11px;border:1px solid #dce1e8;border-radius:9px;background:#fff;font:inherit}
.birthday-checks{display:flex;flex-wrap:wrap;gap:14px;margin:13px 0}.birthday-checks label{display:flex;gap:7px;align-items:center;font-size:14px}
.birthday-checks input{accent-color:#b72233}.birthday-box .hint{font-size:12px;color:#687280;line-height:1.6;margin:7px 0}
 /* Compact search tabs and optional lucky search */
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #dce2eb;border-radius:12px;overflow:hidden}
.mode-options label{justify-content:center;border:0!important;border-radius:0!important;padding:13px 9px!important;text-align:center}
.mode-options label+label{border-left:1px solid #dce2eb!important}
.mode-options label:has(input:checked){background:#b72233!important;color:white!important}
.mode-options label input{position:absolute;opacity:0;width:1px;height:1px}
.mode-options label:focus-within{outline:2px solid #3974bd;outline-offset:-3px}
.lucky-toggle{font-size:15px;font-weight:600}
.lucky-toggle input{width:19px;height:19px}
.mode-panel{margin-top:14px}
@media(max-width:600px){.mode-options{grid-template-columns:1fr 1fr}.mode-options label{padding:12px 4px!important}}

/* 007-unified-search-v26 */
/* One clearly bounded search composer for combined criteria */
.search-composer{background:#e5e9ee;border:1px solid #cbd3dd;border-radius:19px;padding:15px;margin:14px 0 18px;box-shadow:0 5px 22px #202b3810}
.search-composer .mode-panel{margin:0 0 12px;border:0;box-shadow:none;background:transparent;padding:5px 3px 10px}
.search-composer #basicPanel,.search-composer #mobileDetails,.search-composer #luckyPanel,.search-composer #birthdayPanel{background:#fff;border:1px solid #e0e4e9;border-radius:13px;margin:10px 0;padding:16px;box-shadow:none}
.search-composer #mobileDetails{display:block}
.search-composer #mobileDetails>summary{display:none}
.search-composer #mobileDetails>.filter{padding:0;border:0;box-shadow:none;background:transparent}
.search-composer #mobileDetails .filter h3{margin-top:0}
.search-composer .search-submit{background:transparent;border:0;padding:10px 0 0;margin:0;box-shadow:none}
.search-composer .lucky-toggle{background:#fff;margin-top:9px}
.search-composer .lucky-toggle:has(input:checked){background:#fff8ee}
.search-composer .mode-help{margin-bottom:0}
@media(max-width:600px){.search-composer{padding:11px;border-radius:15px}.search-composer #basicPanel,.search-composer #mobileDetails,.search-composer #luckyPanel,.search-composer #birthdayPanel{padding:13px}}

/* V28: readable applied filters and helpful empty state */
.active-summary{display:block;background:#edf1f5;border-color:#d4dbe4;padding:15px 17px}
.summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.summary-clear{background:transparent;border:0;color:#b72233;text-decoration:underline;font-size:12px;padding:5px;cursor:pointer}
.summary-tags{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.summary-tags .filter-tag{margin:0;background:#fff;border-color:#d4dce6;padding:6px 10px}
.empty-help{padding:25px 18px;text-align:center}.empty-help h3{color:#202735;margin:0 0 8px;font-size:19px}.empty-help p{color:#687280;line-height:1.7;margin:8px auto 15px;max-width:480px}
.empty-help-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.empty-help-actions button{padding:11px 16px}

.advanced-total-network{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}.advanced-total-network .field{min-width:0}
/* V30: six lucky topics in exactly two rows (three per row) */
.search-composer .lucky-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.search-composer .lucky-option{width:100%;min-width:0;min-height:46px;display:flex;align-items:center;justify-content:center;text-align:center;padding:9px 4px;font-size:clamp(11px,2.8vw,15px);line-height:1.3;white-space:nowrap}
@media(max-width:380px){.search-composer .lucky-options{gap:5px}.search-composer .lucky-option{font-size:11px;padding:8px 2px}}

/* 008-v34-desktop-advanced-below */
/* V34: Advanced search uses the full-width composer on desktop, like basic search. */
#searchResults.workspace{display:block!important}
#searchResults #desktopFilter{display:none!important}
#searchResults>div{width:100%;min-width:0}
.search-composer #mobileDetails:not(.mode-hidden){display:block!important;width:100%}

/* 009-v35-compact-advanced */
/* Desktop: compact, proportionate advanced-search panel, full-width below tabs. */
@media (min-width:851px){
 .search-composer #mobileDetails{padding:15px 20px!important}
 .search-composer #mobileFilter{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px;row-gap:12px;align-items:start}
 #mobileFilter>h3{display:none}
 #mobileFilter>.field{margin:0;min-width:0}
 #mobileFilter>.field:nth-child(2){grid-column:1/-1}
 #mobileFilter>.field:nth-child(3){grid-column:1/-1}
 #mobileFilter>.field:nth-child(4){grid-column:1}
 #mobileFilter>.field:nth-child(5){grid-column:2}
 #mobileFilter>.inline{grid-column:auto;min-width:0;gap:12px}
 #mobileFilter>.actions{display:none!important}
 #mobileFilter .positions{display:flex;gap:7px;max-width:650px}
 #mobileFilter .positions input{width:52px;flex:0 1 52px;height:42px;padding:7px 0}
 #mobileFilter .field>input:not([data-pos]),#mobileFilter .field>select{height:42px;padding:8px 11px}
 #mobileFilter>.field:nth-child(3)>input{max-width:650px}
 #mobileFilter .digits{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:8px 0}
 #mobileFilter button.digit{width:37px;height:37px;font-size:16px}
 #mobileFilter .field label{margin-bottom:5px}
 #mobileFilter .hint{margin:4px 0;font-size:12px}
}
@media (min-width:851px) and (max-width:1080px){#mobileFilter button.digit{width:32px;height:32px;font-size:14px}}

/* 010-v36-position-and-group */
@media (min-width:851px){
 #mobileFilter>.field:nth-child(2){grid-column:1!important;grid-row:1}
 #mobileFilter>.field:nth-child(3){grid-column:2!important;grid-row:1}
 #mobileFilter .positions{max-width:none!important;gap:5px!important}
 #mobileFilter .positions input{width:100%!important;min-width:0!important;flex:1 1 0!important;height:42px}
 #mobileFilter>.field:nth-child(3)>input{max-width:none!important;width:100%}
 #mobileFilter>.field:nth-child(3){padding-top:0}
 #mobileFilter{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important}
}
.filter .positions input[readonly]{background:#f0f3f6;color:#344054;font-weight:750;cursor:default}
@media(max-width:850px){.filter .positions input[readonly]{background:#f0f3f6}}

/* 011-v37-balanced-columns */
/* Keep both halves of the advanced search identical in width. */
@media (min-width:851px){
 #mobileFilter{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:22px!important}
 #mobileFilter>.field:nth-child(2),#mobileFilter>.field:nth-child(3),
 #mobileFilter>.field:nth-child(4),#mobileFilter>.field:nth-child(5){min-width:0;width:100%}
 #mobileFilter .digits{grid-template-columns:repeat(10,minmax(0,1fr));width:100%;gap:4px}
 #mobileFilter button.digit{width:min(37px,100%);height:37px;justify-self:center}
}
@media (min-width:851px) and (max-width:1080px){#mobileFilter button.digit{width:min(32px,100%);height:32px}}

/* 012-v39-mobile-advanced-visible */
/* Mobile: the global .filter{display:none} rule must not hide the
   detailed search form nested in #mobileDetails. */
@media (max-width:850px){
  .search-composer #mobileDetails:not(.mode-hidden){display:block!important;}
  .search-composer #mobileDetails #mobileFilter{display:block!important;width:100%;}
  .search-composer #mobileDetails #mobileFilter>.field{margin:13px 0;}
  .search-composer #mobileDetails #mobileFilter>.inline{display:grid;}
  .search-composer #mobileDetails #mobileFilter .positions{grid-template-columns:repeat(10,minmax(0,1fr));}
  .search-composer #mobileDetails #mobileFilter .positions input{min-width:0;width:100%;}
}

/* 013-v45-compact-analysis */
.compact-analysis-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.compact-analysis-head strong{font-size:24px;line-height:1.2}
.compact-analysis-head span{font-size:12px;color:#69717d}
.compact-analysis-title{font-weight:700;font-size:14px;margin:0 0 9px}
.compact-pairs{gap:7px;margin-bottom:12px}
.compact-pairs .pair-tile{padding:10px 5px;min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px}
.compact-pairs .pair-tile strong{font-size:21px;line-height:1.1}
.compact-pairs .pair-tile span{font-size:12px;line-height:1.4;color:#4e5867}
.full-analysis{border-top:1px solid #e8ebef;padding:10px 0 2px;font-size:13px}
.full-analysis summary{cursor:pointer;color:#1769c2;font-weight:700}
.full-analysis p{margin:10px 0;line-height:1.6}
.compact-disclaimer{font-size:11px;line-height:1.5;margin:9px 0 0}
@media(max-width:450px){.compact-pairs .pair-tile{min-height:89px}.analysis-modal{max-height:90vh}}

/* 014-v50-back-to-search-style */
/* V50: compact floating shortcut to the existing search controls. */
#backToSearch{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:1000;display:flex;align-items:center;gap:7px;padding:11px 16px;border:1px solid #b61d2b;border-radius:999px;background:#cf2636;color:#fff;font:700 14px/1.2 inherit;font-family:inherit;box-shadow:0 5px 18px #0003;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s}
#backToSearch.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
#backToSearch:hover{background:#ae1b2a}#backToSearch:focus-visible{outline:3px solid #234da2;outline-offset:3px}
@media(max-width:600px){#backToSearch{right:12px;bottom:calc(14px + env(safe-area-inset-bottom));padding:11px 13px;font-size:13px}}
@media(prefers-reduced-motion:reduce){#backToSearch{transition:none}}

/* 015-v51-styles */
.v51-nav{display:flex;gap:7px;flex-wrap:wrap;max-width:1160px;margin:auto;padding:0 22px 12px}.v51-nav button{border:1px solid #e3e6ec;background:#fff;border-radius:9px;padding:9px 13px;color:#384455;font-weight:700}.v51-nav button.active{background:#cf2636;color:white;border-color:#cf2636}.v51-view{max-width:1160px;margin:26px auto 70px;padding:0 22px}.v51-view[hidden],.v51-hide{display:none!important}.v51-heading{font-size:clamp(24px,4vw,35px);margin:5px 0 8px}.v51-sub{color:#697586;line-height:1.7;margin-bottom:23px}.v51-banner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:17px;margin-bottom:30px}.v51-banner{background:#fff;border:1px solid #e6eaf0;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px #15243b0b}.v51-banner .v51-content{padding:18px}.v51-banner h3{margin:0 0 8px}.v51-banner img,.v51-banner video{width:100%;max-height:260px;object-fit:cover;background:#edf0f5;display:block}.v51-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.v51-post{background:#fff;border:1px solid #e4e8ef;border-radius:14px;padding:20px;overflow-wrap:anywhere}.v51-post h3{margin:6px 0 9px}.v51-post p{white-space:pre-wrap;line-height:1.75;color:#4d5a69}.v51-post img,.v51-post video{width:100%;max-height:330px;object-fit:contain;border-radius:10px;background:#f0f2f6}.v51-date{font-size:12px;color:#788394}.v51-link{color:#b52234;font-weight:700;text-decoration:none;display:inline-block;margin-top:10px}.v51-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.v51-contact{background:white;border:1px solid #e5e9ef;padding:22px;border-radius:14px;overflow-wrap:anywhere}.v51-contact strong{display:block;margin-bottom:10px;font-size:18px}.v51-admin{background:#fff;border:1px solid #e4e8ef;border-radius:16px;padding:20px;margin-bottom:18px}.v51-admin h3{margin:0 0 14px}.v51-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.v51-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;color:#4a5566}.v51-field input,.v51-field select,.v51-field textarea{padding:10px;border:1px solid #d8dfe8;border-radius:8px;width:100%;background:white;color:#202c3a}.v51-field textarea{min-height:90px;resize:vertical}.v51-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.v51-btn{border:1px solid #d6dce6;background:white;border-radius:9px;padding:10px 15px;font-weight:700}.v51-btn.main{background:#c82939;color:white;border-color:#c82939}.v51-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #e7eaf0;padding:12px 0;flex-wrap:wrap}.v51-row small{color:#718092}.v51-tip{background:#fff8e9;border:1px solid #f0d9a8;color:#79561f;border-radius:10px;padding:13px;margin-bottom:17px;line-height:1.65}.v51-empty{padding:20px;background:white;border:1px dashed #d9dfe8;border-radius:12px;color:#748092}.v51-admin-layout{display:grid;grid-template-columns:1fr;gap:15px}.v51-check{display:flex;align-items:center;gap:7px;font-size:14px}.v51-check input{width:auto}.v51-note{font-size:12px;color:#6f7b8b;margin-top:8px;line-height:1.6}@media(max-width:600px){.v51-nav{gap:5px;padding:0 12px 10px}.v51-nav button{font-size:12px;padding:9px 10px}.v51-view{padding:0 15px}.v51-admin{padding:15px}}
<style id="v52-media-style">.v52-media-manager{margin-top:14px;padding:15px;border:1px solid #d9e1ea;background:#f8fafc;border-radius:12px}.v52-media-manager[hidden]{display:none}.v52-preview{margin-top:10px;color:#536171;font-size:13px}.v52-preview video,.v52-preview img{max-width:280px;max-height:175px;width:100%;object-fit:contain;border-radius:9px;background:#e8edf2}.v52-danger{color:#ae2635!important;border-color:#d9a4ab!important}.v52-removed{padding:12px;background:#fff1f2;border-radius:8px;color:#a12434}.v53-media-list{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}.v53-media-list img,.v53-media-list video{width:110px;height:72px;object-fit:contain;border:1px solid #dbe2ea;border-radius:8px;background:#f2f4f7}.v53-media-list .v51-btn{padding:7px 10px;font-size:12px}.v53-media-list small{color:#586577}.v53-row-info{min-width:180px;flex:1}

/* 016-v54-clean-ui */
.v51-banner,.v51-post{box-shadow:none;border:1px solid #e5e8ee;border-radius:12px}.v51-banner .v51-content{padding:18px}.v51-banner:not(:has(.v51-media)) .v51-content{padding:20px}.v51-admin{box-shadow:none;border-radius:12px}.v51-row{align-items:flex-start}.v53-media-list{min-height:30px}.v53-media-list img,.v53-media-list video{width:125px;height:84px}.v51-row>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.v51-row .v51-btn{white-space:nowrap}.v51-row .v52-danger{background:#fff;color:#a72635}.v51-post p,.v51-banner p{line-height:1.65}

/* 017-v654-free-steps */
.v654-steps-free{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin:8px 0 16px}

/* 018-v60-home-news-placement */
/* Replace only the former dark/gray hero with the existing home article feed. */
.v60-home-news{background:linear-gradient(115deg,#20252e,#323640 65%,#584344);padding:17px 0 21px}
.v60-home-news-inner{max-width:1160px;margin:auto;padding:0 22px}
.v60-home-news .v55-home-feed{margin:0;padding:15px 19px;background:#fff;border:0;border-radius:14px;box-shadow:0 8px 24px #0002}
.v60-home-news .v55-feed-heading h2{font-size:18px}
.v60-home-news .v55-feed-row{padding:10px 0}
.v60-home-news .v55-feed-row button{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.v60-home-news{padding:10px 0 13px}.v60-home-news-inner{padding:0 13px}.v60-home-news .v55-home-feed{padding:12px 14px}.v60-home-news .v55-feed-heading h2{font-size:16px}}

/* 019-v61-v55-modern-visual-only */
/* Visual-only layer based on the approved mobile reference; no behavior changed. */
:root{--ink:#101e40;--muted:#62718a;--line:#dce6f4;--bg:#f1f6fd}
html{background:#f1f6fd}
body{font-family:"LINE Seed Sans TH","Noto Sans Thai","Leelawadee UI",Tahoma,system-ui,sans-serif;color:#101e40;background:linear-gradient(160deg,#fff 0%,#edf5ff 65%,#f7faff 100%);font-weight:400}
button,input,select,textarea{font-family:inherit}
header{background:#fff;border-bottom:1px solid #e6edf7;box-shadow:0 2px 14px #19375b0a}
.logo{color:#0c1a42;letter-spacing:-1px}
.v51-nav button{border:1px solid #d6e1f1;background:linear-gradient(#fff,#f9fbff);color:#12234a;border-radius:15px;box-shadow:0 3px 9px #244a7710;font-weight:700}
.v51-nav button.active,.v51-nav button[aria-selected="true"]{background:linear-gradient(165deg,#fa5962,#d9001b);color:#fff;border-color:#ed2d41;box-shadow:0 5px 11px #c82d3630}
.demo{background:#fff2e4;color:#81501e;border:0;border-radius:0}
.v60-home-news{background:linear-gradient(140deg,#f6faff,#e7f1ff)!important;padding:18px 0 20px}
.v60-home-news .v55-home-feed{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #e2ebf7;border-radius:20px;box-shadow:0 8px 20px #234c7c1c;padding:18px 20px}
.v60-home-news .v55-feed-heading h2{font-size:clamp(18px,3.5vw,23px);color:#10234c}
.v55-feed-row{border-color:#e5edf7}
.search-composer,.mode-panel{border-color:#d9e8fa!important;border-radius:22px!important;box-shadow:0 9px 24px #23558a18!important}
.search-composer{background:linear-gradient(140deg,#f6faff,#e1edff)!important;padding:clamp(14px,3vw,24px)!important}
.mode-panel{background:transparent!important;box-shadow:none!important;border:0!important}
.mode-panel h2,.results-top h2{color:#10234b;font-weight:800;letter-spacing:-.35px}
.mode-options{border-radius:15px;overflow:hidden}
.mode-options label{border-color:#d7e5f7!important;background:linear-gradient(#fff,#f9fbff);color:#132448;font-weight:700}
.mode-options label:has(input:checked){background:linear-gradient(160deg,#168fcd,#00539e)!important;color:#fff!important;box-shadow:0 5px 13px #1b6fa632}
.lucky-toggle{border-radius:16px!important;border:1px solid #e1e9f4!important;background:linear-gradient(#fff,#fbfdff)!important;box-shadow:0 4px 10px #244c7610}
.searchbar{background:linear-gradient(#fff,#fcfdff);border:1px solid #e4ecf7;border-radius:19px;box-shadow:0 6px 18px #284d7710}
.field input,.field select,.filter select,.filter input,.results-top select{border:1px solid #bdcee5;border-radius:12px;background:#fff;color:#142449;box-shadow:0 2px 5px #183b5d0a}
.field label{color:#344663}
.primary{background:linear-gradient(165deg,#20a6e0,#0757a8)!important;color:#fff!important;border:1px solid #0c72b9!important;border-radius:13px!important;box-shadow:0 5px 13px #126eb82d;font-weight:750}
.secondary{background:linear-gradient(#fff,#f3f8ff);border:1px solid #cad9ed;border-radius:13px;color:#16335d}
.sim,.lucky-card{background:linear-gradient(135deg,#fff,#fcfdff);border:1px solid #dce8f6;border-radius:18px;box-shadow:0 5px 15px #264f7a17}
.sim .number{color:#071c48;font-weight:850;letter-spacing:.1px;text-align:left}
.sim .number em{color:inherit}
.sim .sum{color:#4e678b;background:#eaf3ff;border-radius:999px;padding:5px 9px}
.sim .result-sequence{background:#eaf2fc;color:#18365e;border-radius:11px}
.sim .price{color:#d72a37}
.sim .sim-one-line button.analysis-btn,.lucky-card-actions button:not(.lucky-order){background:linear-gradient(160deg,#f1f8ff,#d3e6f5)!important;border:1px solid #c5d9eb!important;color:#315573!important;border-radius:13px!important;box-shadow:0 3px 8px #355e831b!important;font-weight:750}
.sim .sim-one-line button.detail,.lucky-card-actions .lucky-order{background:linear-gradient(160deg,#91c879,#3d8b48)!important;border:1px solid #67a568!important;color:#fff!important;border-radius:13px!important;box-shadow:0 4px 9px #427d4529!important;font-weight:750}
#backToSearch{background:linear-gradient(165deg,#f6535f,#ce152f);box-shadow:0 6px 16px #8d1b3633}
@media(max-width:600px){
  .v60-home-news-inner{padding:0 14px}
  .v60-home-news .v55-home-feed{padding:15px}
  .search-composer{padding:13px!important}
  .sim .number{font-size:clamp(29px,7.4vw,37px)!important;line-height:1.15;white-space:nowrap}
  .sim .sim-number-line{align-items:center}
  .sim .sim-one-line button.analysis-btn,.sim .sim-one-line button.detail{border-radius:11px!important}
}
@media(max-width:370px){.sim .number{font-size:clamp(25px,7.2vw,30px)!important}}

/* 020-v61-loopless-font-left-numbers */
/* Typography only + results number alignment. Original V61 scripts remain untouched. */
html,body,button,input,select,textarea,option,summary,dialog{font-family:'Prompt','Noto Sans Thai',Tahoma,sans-serif!important}
body{font-weight:400;letter-spacing:0}
h1,h2,h3,h4,.v55-feed-heading,.mode-panel h2,.results-top h2{font-weight:700;letter-spacing:0}
button,.v51-btn,.v51-nav button,.mode-options label{font-weight:600}
.sim .sim-number-line{position:relative;display:block;min-height:63px;padding-top:23px}
.sim .result-sequence{position:absolute;left:0;top:0}
.sim .sum{position:absolute;right:0;top:0}
.sim .number{display:block;margin:0!important;padding:0!important;text-align:left!important;line-height:1.15;letter-spacing:.1px;font-family:'Prompt',sans-serif!important;font-weight:700}
@media(max-width:600px){
 .sim .sim-number-line{min-height:66px;padding-top:25px}
 .sim .number{font-size:clamp(27px,7.5vw,35px)!important}
}
@media(max-width:380px){.sim .number{font-size:clamp(25px,7.2vw,29px)!important}}

/* 021-v61-mobile-prompt-number-finish */
/* Mobile-only: keep natural Prompt numerals, modestly smaller. */
@media (max-width:600px){
 .sim .number{font-family:'Prompt','Noto Sans Thai',sans-serif!important;font-weight:700!important;font-variant-numeric:normal!important;font-feature-settings:normal!important;letter-spacing:0!important;font-size:clamp(25px,6.95vw,32px)!important;text-align:left!important;white-space:nowrap}
}
@media (max-width:380px){.sim .number{font-size:clamp(24px,6.7vw,28px)!important}}

/* 022-v61-compact-advanced-mobile */
/* Compact only the advanced-search form on phones; basic search stays unchanged. */
@media(max-width:850px){
 #mobileFilter.filter{padding:13px!important}
 #mobileFilter h3{margin:0 0 10px;font-size:19px}
 #mobileFilter .field{margin-bottom:10px!important;gap:5px}
 #mobileFilter .field>label{margin-bottom:3px!important;font-size:13px}
 #mobileFilter .field>input,#mobileFilter .field>select{padding:9px 11px!important;min-height:41px}
 #mobileFilter .positions{gap:3px!important;margin:5px 0!important}
 #mobileFilter .positions input{min-width:0!important;padding:3px 0!important;height:35px!important;font-size:15px!important}
 #mobileFilter .hint{font-size:11px;margin:4px 0 0!important;line-height:1.4}
 #mobileFilter .inline{gap:8px!important;margin-bottom:6px!important}
 #mobileFilter .digits{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px 4px!important;margin:7px 0!important}
 #mobileFilter button.digit{width:41px;height:41px;font-size:17px}
 #mobileFilter .compact-digit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:7px 0 8px}
 #mobileFilter .compact-digit-tabs button{border:1px solid #cddceb;border-radius:11px;padding:10px 5px;background:linear-gradient(#fff,#f5f9ff);color:#1d365c;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
 #mobileFilter .compact-digit-tabs button[aria-selected="true"][data-view="in"]{background:linear-gradient(#e7f5ed,#cde9d9);border-color:#8bc9a4;color:#206a44}
 #mobileFilter .compact-digit-tabs button[aria-selected="true"][data-view="ex"]{background:linear-gradient(#fff0f0,#f7dede);border-color:#e5a4aa;color:#a62d3b}
 #mobileFilter .compact-digit-group[data-hidden="true"]{display:none!important}
 #mobileFilter .compact-digit-group{border:1px solid #e1eaf6;background:#fff;border-radius:13px;padding:9px 10px;margin-bottom:9px}
 #mobileFilter .compact-digit-group .field{margin:0!important}
 #mobileFilter .compact-digit-group .hint{margin-top:5px!important}
 #mobileFilter .compact-scope-line{display:flex;align-items:center;justify-content:space-between;gap:9px}
 #mobileFilter .compact-scope-line label{font-size:12px;font-weight:600;flex:1}
 #mobileFilter .compact-scope-line select{max-width:155px;min-width:120px;padding:7px!important;min-height:36px}
 #mobileFilter .compact-digit-hint{font-size:11px;color:#62718a;margin:0 0 5px}
 #mobileFilter .compact-numeric-choices{margin-top:3px}
}

/* 023-v61-contact-style2 */
/* Contact page only. Other views and admin behavior stay unchanged. */
#v51Contact .v51-contact-grid{display:flex;flex-direction:column;gap:9px;max-width:760px}
#v51Contact .v51-contact{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dce6f4;border-radius:18px;background:linear-gradient(125deg,#fff,#f9fbff);box-shadow:0 4px 12px rgba(25,56,102,.07);min-width:0}
#v51Contact .v61-contact-icon{width:49px;height:49px;flex:0 0 49px;border-radius:15px;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--contact-accent,#6485a7);font-weight:800;font-size:27px;line-height:1}
#v51Contact .v61-contact-icon svg{width:28px;height:28px;display:block;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
#v51Contact .v61-contact-info{flex:1;min-width:0}
#v51Contact .v61-contact-info strong{display:block;margin:0 0 2px;font-size:16px;color:#13244a;font-weight:750;line-height:1.3}
#v51Contact .v61-contact-info p{margin:0;color:#62738d;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
#v51Contact .v61-contact-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:8px 12px;border-radius:22px;background:linear-gradient(#f4f9ff,#e4f0fc);border:1px solid #cbdcf0;color:#17385f;font-size:13px;font-weight:750;text-decoration:none;box-shadow:0 2px 5px #244a7512;white-space:nowrap}
#v51Contact .v61-contact-action svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#v51Contact .v61-contact-unavailable{font-size:12px;color:#8490a1;max-width:85px;text-align:right}
@media(max-width:400px){#v51Contact .v51-contact{gap:9px;padding:11px}#v51Contact .v61-contact-icon{width:43px;height:43px;flex-basis:43px;border-radius:12px}#v51Contact .v61-contact-action{font-size:12px;padding:8px 10px}#v51Contact .v61-contact-info strong{font-size:15px}#v51Contact .v61-contact-info p{font-size:12px}}

/* 024-v61-contact-admin-enhance */
#v61ContactType{width:100%;padding:12px;border:1px solid #d4deeb;border-radius:12px;background:white;color:#13244a;font:inherit}#v61ContactLogo{width:100%;max-width:100%;font:inherit}#v61LogoPreview{display:block;margin-top:6px}#v61RemoveLogo{margin-top:5px;font-size:13px!important}#v51ContactForm .v51-field small{display:block;font-size:12px;color:#64748b;margin-top:5px}

/* 025-v61-contact-round-large */
/* Mobile contact-card refinement: larger screenshot-friendly text and circular icons. */
#v51Contact .v51-contact-grid{gap:12px}
#v51Contact .v51-contact{gap:12px;padding:16px 13px;border-radius:20px;min-height:91px}
#v51Contact .v61-contact-icon{width:58px;height:58px;flex:0 0 58px;border-radius:50%;overflow:hidden;font-size:29px}
#v51Contact .v61-contact-icon svg{width:32px;height:32px}
#v51Contact .v61-contact-icon img{border-radius:50%!important;object-fit:cover!important;background:transparent!important}
#v51Contact .v61-contact-info strong{font-size:19px;line-height:1.32;margin-bottom:4px;letter-spacing:-.2px}
#v51Contact .v61-contact-info p{font-size:16px;line-height:1.45;color:#243859;font-weight:500;overflow-wrap:anywhere}
#v51Contact .v61-contact-action{font-size:13px;min-height:40px;padding:8px 10px}
@media(max-width:400px){
 #v51Contact .v51-contact{gap:10px;padding:13px 10px;min-height:83px}
 #v51Contact .v61-contact-icon{width:52px;height:52px;flex-basis:52px;border-radius:50%}
 #v51Contact .v61-contact-info strong{font-size:18px}
 #v51Contact .v61-contact-info p{font-size:15px}
 #v51Contact .v61-contact-action{font-size:12px;padding:8px 8px;min-height:38px}
}
@media(max-width:340px){#v51Contact .v51-contact{flex-wrap:wrap}#v51Contact .v61-contact-action{margin-left:62px}}

/* 026-v64-style */
.v64-type-panel{background:#fff;border:1px solid #e0e7ef;border-radius:13px;padding:15px;margin-bottom:12px}
.v64-type-panel h2{font-size:17px;margin:0 0 11px;color:#233a57}
.v64-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.v64-type-options button{background:#f2f6fa;color:#29415b;border:1px solid #d7e0eb;border-radius:9px;padding:12px 5px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.v64-type-options button.active{background:#155bb0;color:white;border-color:#155bb0}
.v64-type-hint{font-size:12px;color:#64748b;margin:9px 0 0}
.v64-tags{display:inline-flex;gap:4px;flex-wrap:wrap;margin-left:5px}
.v64-tag{font-size:10px;line-height:1.4;padding:2px 5px;border-radius:5px;background:#e7f2ff;color:#185b9a;font-weight:700}
.v64-tag.beautiful{background:#fff1d9;color:#9c6100}
.v64-tag.special{background:#f0f0f0;color:#666}
@media(max-width:600px){
 .v64-type-panel{padding:12px;margin-bottom:9px}.v64-type-options button{font-size:13px;padding:10px 2px}
 #basicPanel.searchbar{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;align-items:end}
 #basicPanel .field{min-width:0!important;width:auto!important;margin:0!important}
 #basicPanel .field label{font-size:11px!important;white-space:nowrap}
 #basicPanel .field input,#basicPanel .field select{width:100%!important;min-width:0!important;font-size:12px!important;padding:9px 4px!important;height:39px!important;box-sizing:border-box}
 #basicPanel #quickSearch{display:none!important}
 .v64-tags{margin-left:0}
}

/* 027-v65-compact-results */
/* V65: option B, badges before sum on the right; tighter mobile result cards */
.sim .sim-number-line{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center!important;gap:7px!important}
.sim .sim-number-line .result-sequence{grid-column:1;grid-row:1}
.sim .sim-number-line .number{grid-column:1/-1;grid-row:2;min-width:0;margin:2px 0 5px!important}
.sim .v65-right-meta{grid-column:3;grid-row:1;display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.sim .v65-right-meta .v64-tags{display:inline-flex;flex-wrap:nowrap;gap:4px;margin:0}
.sim .v65-right-meta .v64-tag{white-space:nowrap}
.sim .v65-right-meta .sum{margin:0}
@media(max-width:600px){
 .cards{gap:8px!important}
 .cards .sim{padding:9px 11px!important;border-radius:17px!important}
 .sim .sim-number-line{gap:5px!important}
 .sim .sim-number-line .number{font-size:clamp(24px,6vw,33px)!important;line-height:1.14!important;margin:2px 0 6px!important}
 .sim .sim-one-line{min-height:36px!important;gap:5px!important}
 .sim .sim-one-line button{min-height:35px!important}
 .sim .v65-right-meta .v64-tag{font-size:10px;padding:3px 5px}
 .sim .v65-right-meta .sum{font-size:11px}
}
@media(max-width:360px){.sim .v65-right-meta{gap:3px}.sim .v65-right-meta .v64-tags{gap:2px}.sim .v65-right-meta .v64-tag{font-size:9px;padding:2px 3px}.sim .v65-right-meta .sum{font-size:10px;padding:4px 5px}}

/* 028-v65-1-layout-correction */
/* Correct legacy absolute positioning that defeated V65 grid layout. */
.sim .sim-number-line{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;min-height:0!important;padding-top:0!important;align-items:center!important;column-gap:7px!important;row-gap:2px!important}
.sim .sim-number-line .result-sequence{position:static!important;grid-column:1!important;grid-row:1!important;justify-self:start!important;margin:0!important}
.sim .sim-number-line .v65-right-meta{position:static!important;grid-column:2!important;grid-row:1!important;justify-self:end!important;display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
.sim .sim-number-line .v65-right-meta .sum{position:static!important;right:auto!important;top:auto!important;display:inline-flex!important;white-space:nowrap!important}
.sim .sim-number-line .number{position:static!important;grid-column:1/-1!important;grid-row:2!important;min-height:0!important;margin:0 0 3px!important;padding:0!important;line-height:1.15!important}
@media(max-width:600px){.cards .sim{padding:9px 11px!important}.sim .sim-number-line{padding-top:0!important;min-height:0!important}.sim .sim-one-line{margin-top:0!important}}

/* 029-v654-purchase-and-desktop-layout */
.v654-import{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 16px;margin-bottom:14px;border:1px dashed #b5cbe7;background:#f4f8ff;border-radius:12px}
.v654-import>div{flex:1 1 320px}.v654-import strong{color:#1c416e}.v654-import p{font-size:12px;color:#586b82;margin:4px 0 0}.v654-file-button{cursor:pointer;background:#1765b2;color:white;border-radius:9px;padding:10px 13px;font-weight:700;font-size:13px}.v654-import>button{padding:10px 13px;border-radius:9px}.v654-import>span{flex-basis:100%;font-size:12px;color:#255b7f}.v654-order h3{margin:14px 0}.v654-detail{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #e7ebf1}.v654-detail span{color:#69788b}.v654-detail strong{text-align:right;overflow-wrap:anywhere}.v654-steps{line-height:1.8;padding-left:25px}.v654-steps li{margin-bottom:8px;white-space:pre-wrap}.v654-note{white-space:pre-wrap;background:#f8fafc;padding:12px;border-radius:9px}.v654-contact{padding:12px;background:#f2f7fd;border-radius:10px;line-height:1.9;overflow-wrap:anywhere}.v654-empty{margin:16px 0;padding:16px;background:#fff7e6;border-radius:10px;color:#6d4b19}
@media(min-width:851px){
 .search-composer #mobileDetails{padding:22px 24px!important}
 #mobileFilter{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 28px!important;align-items:stretch!important}
 #mobileFilter>.field:nth-child(2){grid-column:1!important;grid-row:1!important}
 #mobileFilter>.field:nth-child(3){grid-column:2!important;grid-row:1!important}
 #mobileFilter>.field:nth-child(4){grid-column:1!important;grid-row:2!important}
 #mobileFilter>.field:nth-child(5){grid-column:2!important;grid-row:2!important}
 #mobileFilter>.inline:nth-child(6){grid-column:1!important;grid-row:3!important}
 #mobileFilter>.inline:nth-child(7){grid-column:2!important;grid-row:3!important}
 #mobileFilter>.field:nth-child(4),#mobileFilter>.field:nth-child(5){display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #e3eaf3;border-radius:12px;background:#fbfcfe}
 #mobileFilter>.field:nth-child(4)>select,#mobileFilter>.field:nth-child(5)>select{width:100%!important;max-width:none!important;box-sizing:border-box}
 #mobileFilter .digits{grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important;margin:6px 0!important}
 #mobileFilter button.digit{width:min(44px,100%)!important;height:auto!important;aspect-ratio:1!important;font-size:17px!important}
 #mobileFilter>.inline{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-content:start;padding:15px 16px;border:1px solid #e3eaf3;border-radius:12px;background:#fbfcfe}
 #mobileFilter>.inline .field{min-width:0!important;width:100%!important;margin:0!important}
 #mobileFilter>.inline input,#mobileFilter>.inline select{width:100%!important;max-width:none!important;box-sizing:border-box}
 #mobileFilter .positions{width:100%;max-width:none!important}
 #mobileFilter>.field:nth-child(2),#mobileFilter>.field:nth-child(3){padding:0 2px}
 #mobileFilter>.field:nth-child(4) .hint{margin-top:auto!important}
}
.v654-contact-link{color:#1263b0;font-weight:700;text-decoration:underline;text-underline-offset:3px}.v654-contact-link:hover{color:#b71d35}.v654-contact small{font-size:11px;color:#687b91}

/* 030-v6543-mobile-bank-actions */
.v654-account-row strong{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-size:clamp(15px,4vw,20px)}
.v654-account-row span{flex:0 0 auto}
.v654-bank-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin:12px 0 14px}
.v654-bank-actions button{width:100%;min-width:0;min-height:44px;padding:10px 5px;font-size:clamp(12px,3.2vw,15px);font-weight:700;line-height:1.35}
.v654-bank-actions button:disabled{opacity:.5;cursor:not-allowed}
.v654-qr-panel{padding:8px 12px 12px;border:1px solid #e1e7ef;border-radius:10px;background:#f8fafc;margin:0 0 15px;text-align:center}
.v654-qr-panel[hidden]{display:none!important}
.v654-qr-panel p{font-size:12px;color:#586b82;line-height:1.6}
@media(max-width:380px){.v654-account-row{gap:7px}.v654-account-row span{font-size:13px}.v654-account-row strong{font-size:15px}}

/* 031-v6544-qr-save */
.v654-qr-image-wrap{position:relative;width:fit-content;max-width:100%;margin:12px auto}
.v654-qr-image-wrap img{margin:0 auto!important}
.v654-qr-save{position:absolute;right:9px;bottom:9px;background:rgba(18,39,65,.9);color:#fff;border:1px solid #ffffffa6;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:700;box-shadow:0 2px 9px #0003}
.v654-qr-save:focus-visible{outline:3px solid #69a7ff;outline-offset:2px}

/* 032-v6547-beauty-analysis */
.beauty-analysis{margin:16px 0;padding:14px;background:#f8fafc;border:1px solid #e1e7ef;border-radius:12px}
.beauty-analysis h3{margin:0 0 12px;font-size:16px;color:#24354d}
.beauty-pattern{background:white;border:1px solid #e4e9f0;border-radius:10px;padding:11px 13px;margin:8px 0}
.beauty-pattern strong{color:#173e70;font-size:15px}
.beauty-pattern p{font-size:13px;color:#5c6877;margin:5px 0 0;line-height:1.55}
.beauty-analysis .hint{margin:10px 0 0;line-height:1.5}
.v6548-related{margin:14px 0;padding:12px;border:1px solid #dbe5dd;border-radius:12px}.v6548-related h3{margin:0 0 6px}.v6548-find{display:block;width:100%;margin:7px 0;padding:10px 12px;border:1px solid #cbdad2;border-radius:9px;background:#f5faf7;color:#17663c;font-weight:600;text-align:left;cursor:pointer}.v6548-banner{padding:12px;margin:8px 0 14px;border:1px solid #bcd6c7;border-radius:10px;background:#f3faf6;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v6548-banner[hidden]{display:none}.v6548-banner button{border:1px solid #9eb8aa;background:white;border-radius:8px;padding:8px;cursor:pointer}
 .v655-match{font-size:11px;color:#17663c;background:#e9f6ed;border-radius:6px;padding:3px 5px;white-space:nowrap}

/* 033-v6554-desktop-advanced-compact */
/* V65.5.4: target the ACTUAL post-JS DOM: two digit fields live inside .compact-numeric-choices. */
@media (min-width:851px){
 .search-composer #mobileFilter{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;column-gap:18px!important;row-gap:16px!important;align-items:start!important}
 .search-composer #mobileFilter>.field:nth-child(2){grid-column:1 / 3!important;grid-row:1!important}
 .search-composer #mobileFilter>.field:nth-child(3){grid-column:3 / 5!important;grid-row:1!important}
 .search-composer #mobileFilter>.compact-numeric-choices{grid-column:1 / -1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;min-width:0!important;width:100%!important;margin:0!important}
 .search-composer #mobileFilter .compact-digit-tabs,.search-composer #mobileFilter .compact-digit-hint{display:none!important}
 .search-composer #mobileFilter .compact-digit-group{display:block!important;min-width:0!important;width:100%!important;margin:0!important}
 .search-composer #mobileFilter .compact-digit-group[data-hidden="true"]{display:block!important}
 .search-composer #mobileFilter .compact-digit-group>.field{width:100%!important;min-width:0!important;margin:0!important}
 .search-composer #mobileFilter .compact-scope-line{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
 .search-composer #mobileFilter .compact-scope-line label{white-space:nowrap!important;margin:0!important}
 .search-composer #mobileFilter .compact-scope-line select{width:auto!important;min-width:145px!important;max-width:220px!important;flex:1!important}
 .search-composer #mobileFilter .compact-digit-group .digits{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
 .search-composer #mobileFilter .compact-digit-group button.digit{width:min(38px,100%)!important;height:38px!important;font-size:16px!important;justify-self:center!important}
 .search-composer #mobileFilter>.inline{display:contents!important}
 .search-composer #mobileFilter>.inline>.field{min-width:0!important;width:100%!important;margin:0!important}
 .search-composer #mobileFilter>.inline>.field:has([data-field="minPrice"]){grid-column:1!important;grid-row:3!important}
 .search-composer #mobileFilter>.inline>.field:has([data-field="maxPrice"]){grid-column:2!important;grid-row:3!important}
 .search-composer #mobileFilter>.inline>.field:has([data-field="total"]){grid-column:3!important;grid-row:3!important}
 .search-composer #mobileFilter>.inline>.field:has([data-field="advancedNetwork"]){grid-column:4!important;grid-row:3!important}
 .search-composer #mobileFilter>.inline>.field>input,.search-composer #mobileFilter>.inline>.field>select{width:100%!important;min-width:0!important}
}

/* 034-v664-search-mode-visibility */
/* V66.4: the mobile three-column quick filter must not override mode-hidden. */
#basicPanel.searchbar.mode-hidden,
.search-composer #basicPanel.searchbar.mode-hidden,
#mobileDetails.mode-hidden,
.search-composer #mobileDetails.mode-hidden { display:none!important; }
/* Hide the redundant quick filter in advanced mode, including narrow screens. */
body:has(input[name="searchMode"][value="advanced"]:checked) #basicPanel {display:none!important;}
body:has(input[name="searchMode"][value="basic"]:checked) #mobileDetails {display:none!important;}

/* 035-v67-unified-style */
/* V67: single authoritative advanced search, no duplicate basic fields. */
.v64-type-panel,.mode-panel,.searchbar#basicPanel,#desktopFilter{display:none!important}
#mobileDetails,#mobileDetails.mode-hidden{display:block!important;opacity:1!important;visibility:visible!important}
#mobileFilter{display:flex!important;flex-direction:column;gap:14px;background:transparent!important;padding:0!important;box-shadow:none!important;border:0!important}
#mobileFilter>h3{display:none!important}
#mobileFilter>.field,#mobileFilter>.inline,#mobileFilter>.v67-digits-accordion{margin:0!important}
#mobileFilter>.field:has(.positions){order:0}
#mobileFilter>.field:has([data-field="group"]){order:1}
#mobileFilter>.inline:has([data-field="minPrice"]){order:2}
#mobileFilter>.inline:has([data-field="total"]){order:3}
#mobileFilter>.v67-digits-accordion{order:4}
#mobileFilter>.actions{display:none!important}
#mobileFilter .positions{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:3px!important}
#mobileFilter .positions [data-pos="0"]{background:#eef2f7!important;color:#273b59!important;font-weight:800!important;cursor:default!important}
#mobileFilter .positions input{min-width:0!important;width:100%!important;box-sizing:border-box!important}
#mobileFilter .field:has(.positions)>label{font-weight:700}
#mobileFilter .field:has(.positions)>.hint{display:none}
.v67-digits-accordion,.v67-extra-accordion{border:1px solid #d9e2ec;border-radius:14px;background:#fff;overflow:hidden}
.v67-digits-accordion>summary,.v67-extra-accordion>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:750;color:#182b4d;display:flex;justify-content:space-between;align-items:center}
.v67-digits-accordion>summary::-webkit-details-marker,.v67-extra-accordion>summary::-webkit-details-marker{display:none}
.v67-digits-accordion>summary:after,.v67-extra-accordion>summary:after{content:'⌄';font-size:21px;color:#60738a}
.v67-digits-accordion[open]>summary:after,.v67-extra-accordion[open]>summary:after{content:'⌃'}
.v67-digits-accordion>.compact-numeric-choices{margin:0 12px 14px!important}
.v67-extra-accordion .v67-extra-body{padding:0 14px 14px}
.v67-extra-accordion .lucky-toggle{display:flex!important;margin:0 0 8px!important}
.v67-extra-accordion #luckyPanel,.v67-extra-accordion #birthdayPanel{margin:8px 0!important}
.v67-extras{display:grid;gap:10px;margin-top:12px}
body.v66-beautiful #v67LuckyWrap,body.v66-beautiful #v67BirthdayWrap{display:none!important}
#v66PrettyPanel[hidden]{display:none!important}
#v66PrettyPanel{margin:12px 0!important}
#mobileFilter>.inline{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
#mobileFilter>.inline .field{min-width:0!important}
#mobileFilter>.inline .field input,#mobileFilter>.inline .field select{width:100%!important;box-sizing:border-box!important}
.search-composer{padding-bottom:15px}
@media(max-width:600px){#mobileFilter .positions input{padding:9px 0!important;text-align:center!important;font-size:15px!important}.v67-extra-accordion>summary{padding:14px}}

/* 036-v671-style */
/* V67.1: visible independent filter switches and expandable content */
.v67-extras{display:grid;gap:10px;margin-top:12px}
.v671-filter{border:1px solid #d8e2ed;border-radius:14px;background:#fff;overflow:hidden}
.v671-header{display:flex;align-items:center;gap:10px;padding:12px 14px;min-height:48px}
.v671-check{appearance:none;-webkit-appearance:none;width:23px;height:23px;min-width:23px;border:2px solid #8794a5;border-radius:5px;background:white;cursor:pointer;position:relative;margin:0}
.v671-check.green{border-color:#168348}.v671-check.red{border-color:#d82736}
.v671-check:checked{background:#375c86;border-color:#375c86}
.v671-check.green:checked{background:#168348;border-color:#168348}
.v671-check.red:checked{background:#d82736;border-color:#d82736}
.v671-check:checked:after{content:'✓';position:absolute;inset:0;color:#fff;font-weight:900;font-size:17px;line-height:19px;text-align:center}
.v671-label{font-size:15px;font-weight:750;color:#182b4d;cursor:pointer;flex:0 1 auto}
.v671-status{font-size:12px;color:#547084;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.v671-disabled .v671-status{color:#8994a0}
.v671-expand{background:#f0f5fa!important;border:1px solid #dce5ef!important;border-radius:8px!important;color:#334b66!important;font-size:21px!important;line-height:1!important;width:36px;height:36px;padding:0!important;flex:none;cursor:pointer}
.v671-body{padding:4px 14px 15px;border-top:1px solid #edf0f4}
.v671-body[hidden]{display:none!important}
.v671-body .compact-digit-group,.v671-body .compact-digit-group[data-hidden="true"]{display:block!important}
.v671-body .compact-digit-group .field{margin:0!important}
.v671-body .compact-digit-group .digits{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.v671-body .compact-digit-group .digit{width:100%!important}
.v671-body #luckyPanel,.v671-body #birthdayPanel{margin:0!important}
.v671-body #luckyPanel.mode-hidden,.v671-body #birthdayPanel.mode-hidden{display:block!important}
#v67LuckyWrap,#v67BirthdayWrap{display:none!important}
body.v66-beautiful #v671LuckyWrap,body.v66-beautiful #v671BirthWrap{display:none!important}
@media(max-width:600px){.v671-header{gap:8px;padding:10px}.v671-label{font-size:14px}.v671-status{font-size:11px}.v671-expand{width:32px;height:32px}}

/* 037-v672-style */
/* The legacy rule panel remains a data source; the new category labels are its UI. */
#v66PrettyPanel{border:0!important;padding:0!important;margin:0!important;background:transparent!important}
#v66PrettyPanel .v66-pretty-heading h2,#v66PrettyPanel .v66-pretty-heading p,#v66PrettyRules{display:none!important}
#v66PrettyPanel .v66-pretty-heading{justify-content:flex-end}
#v672PrettyWrap[hidden]{display:none!important}
body:not(.v66-beautiful) #v672PrettyWrap{display:none!important}
body.v66-beautiful #v672PrettyWrap{display:block!important}
.v672-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:8px 0}
.v672-category{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-size:14px}
.v672-category input{width:18px;height:18px;accent-color:#2563a2;flex-shrink:0}
/* Move the digit buttons into dedicated panels and ensure they remain clickable. */
.v671-body .compact-digit-group{display:block!important;position:relative;pointer-events:auto}
.v671-body .compact-digit-group button.digit{pointer-events:auto;cursor:pointer;touch-action:manipulation}
.v671-body .compact-digit-group button.digit[data-in].selected{background:#168348!important;border-color:#168348!important;color:white!important}
.v671-body .compact-digit-group button.digit[data-ex].selected{background:#d82736!important;border-color:#d82736!important;color:white!important}
@media(max-width:540px){.v672-categories{grid-template-columns:1fr}}

/* 038-v678-desktop-compact */
/* Desktop-only layout; preserve the verified V67.6 mobile layout and search logic. */
@media (min-width: 901px) {
 .v67-extras {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
 .v67-extras>.v671-filter {min-width:0;margin:0}
 .v67-extras .v671-header {padding:10px;gap:7px;min-height:62px}
 .v67-extras .v671-check {width:21px;height:21px;min-width:21px}
 .v67-extras .v671-label {flex:1 1 auto;min-width:0;font-size:clamp(12px,1vw,15px);line-height:1.35}
 .v67-extras .v671-status {display:none}
 .v67-extras .v671-expand {width:30px;height:32px;font-size:18px!important}
 /* Keep all four filter headers fixed in one row; options float below their own header. */
 .search-composer,.top-mobile-filter,.v67-extras {overflow:visible!important}
 .v67-extras {position:relative;overflow:visible!important}
 .v67-extras>.v671-filter {position:relative;overflow:visible!important;align-self:start}
 .v67-extras>.v671-filter.v678-open {grid-column:auto;z-index:60}
 .v67-extras>.v671-filter.v678-open .v671-status {display:none}
 .v67-extras .v671-body:not([hidden]) {position:absolute;top:calc(100% + 7px);left:0;width:min(460px,calc(100vw - 56px));max-height:340px;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;background:#fff;border:1px solid #d3dfed;border-radius:14px;box-shadow:0 16px 36px rgba(25,55,85,.19);padding:14px;z-index:70}
 .v67-extras>.v671-filter:nth-child(3) .v671-body:not([hidden]),
 .v67-extras>.v671-filter:nth-child(4) .v671-body:not([hidden]) {left:auto;right:0}
 .v67-extras .v671-body .compact-digit-group .digits {grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
 .v67-extras .v671-body .compact-digit-group button.digit {min-height:42px!important;height:42px!important;font-size:17px!important;padding:4px!important;border-radius:9px!important}
 .v67-extras .v671-body .field {margin-bottom:10px!important}
 .v67-extras .v671-body select {max-width:100%;height:44px!important;font-size:15px!important}
 .v67-extras .v671-body #luckyPanel {padding:0!important;max-width:100%;box-shadow:none!important;border:0!important}
 .v67-extras .v671-body #luckyPanel h2 {font-size:17px!important;margin:0 0 7px!important}
 .v67-extras .v671-body .lucky-options {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 .v67-extras .v671-body .lucky-option {font-size:13px!important;min-height:40px!important;padding:7px!important}
 .v67-extras .v671-body #birthdayPanel {padding:0!important;max-width:100%;box-shadow:none!important;border:0!important}
 .v67-extras .v671-body #birthdayPanel select {width:100%!important}
 .v67-extras .v671-body .birthday-checks {display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 .v67-extras .v671-body .v672-categories {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 .v67-extras .v671-body .v672-category {padding:7px!important;font-size:13px!important;min-height:38px}
 .v67-extras .v671-body #v66PrettyPanel {padding:0!important;max-width:100%!important}
 .v67-extras .v671-body #v66PrettyRules {display:none!important}
 .v67-extras .v671-body .v66-pretty-heading {display:none!important}
 .search-submit #mainSearch,.search-submit #resetAll {flex:1 1 0!important;min-width:0!important;width:0;box-sizing:border-box}
}

/* 039-v6710-polish */
/* V67.10: polish position digits without changing their input behavior. */
#mobileFilter .positions{gap:clamp(4px,.75vw,11px)!important;margin:9px 0 12px!important}
#mobileFilter .positions input{border-radius:13px!important;border:1px solid #c9d8ea!important;background:#fff!important;box-shadow:0 2px 7px rgba(28,65,115,.055)!important;height:clamp(37px,3.7vw,51px)!important;padding:4px 0!important;text-align:center!important;font-weight:650!important;transition:border-color .18s,box-shadow .18s,background .18s!important}
#mobileFilter .positions input:focus{outline:none!important;border-color:#2789d4!important;box-shadow:0 0 0 3px rgba(35,140,215,.13)!important;background:#f8fcff!important}
#mobileFilter .positions input[readonly]{border-color:#cbd7e4!important;background:#eef3f9!important;color:#263a58!important;box-shadow:none!important}
@media(max-width:600px){#mobileFilter .positions{gap:4px!important}#mobileFilter .positions input{border-radius:9px!important;height:37px!important;font-size:15px!important}}
#resetAll{transition:background .14s,box-shadow .14s,transform .14s,border-color .14s!important}
#resetAll:active{transform:scale(.985)!important;background:#dbeafa!important;box-shadow:inset 0 2px 6px rgba(28,75,130,.16)!important}
#resetAll.v6710-flash{animation:v6710-reset-pulse .55s ease-out!important;border-color:#78a9d6!important}
@keyframes v6710-reset-pulse{0%{background:#cce8ff;box-shadow:0 0 0 0 rgba(33,134,205,.28);transform:scale(.988)}60%{background:#e6f4ff;box-shadow:0 0 0 5px rgba(33,134,205,.06);transform:scale(1)}100%{background:initial;box-shadow:none;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#resetAll.v6710-flash{animation:none!important;background:#e6f4ff!important}}

/* V67.13: compact illustrative patterns alongside pretty-number categories */
.v672-category .v672-category-name{min-width:0;flex:1 1 auto}
.v672-category .v672-category-example{margin-left:auto;flex:0 0 auto;color:#64748b;font-size:12px;font-weight:500;letter-spacing:.15px;white-space:nowrap;text-align:right}
@media(max-width:380px){.v672-category .v672-category-example{font-size:11px}.v672-category{gap:6px!important}}

/* 040-v6715-mobile-search-density */
/* V67.15: mobile-only spacing refinement; preserve field size for touch. */
@media (max-width: 850px) {
  #mobileFilter {gap:7px!important;}
  .search-composer #mobileDetails #mobileFilter>.field {margin:3px 0!important;}
  #mobileFilter>.inline {gap:9px!important;margin:1px 0!important;}
  #mobileFilter>.inline>.field {margin:0!important;}
  #mobileFilter .field:has(.positions) {margin-top:0!important;margin-bottom:2px!important;}
  #mobileFilter .positions {margin:6px 0 5px!important;}
  #mobileFilter .field>label {display:block;margin-bottom:5px!important;}
  #mobileFilter input[data-field=group],
  #mobileFilter input[data-field=minPrice],
  #mobileFilter input[data-field=maxPrice],
  #mobileFilter input[data-field=total],
  #mobileFilter select[data-field=advancedNetwork] {min-height:46px!important;height:46px!important;padding-top:8px!important;padding-bottom:8px!important;}
  .search-composer #mobileDetails {padding:11px 13px!important;margin:5px 0 8px!important;}
  .v67-extras {margin-top:8px!important;gap:8px!important;}
  .v67-extras .v671-header {padding:9px 11px!important;min-height:55px!important;}
  .search-composer {padding-bottom:11px!important;}
}

/* 041-v6716-removable-tags */
.summary-tags .filter-tag{display:inline-flex;align-items:center;gap:7px;max-width:100%;white-space:normal}
.v6716-tag-remove{border:0;background:#edf1f6;color:#556579;border-radius:50%;font-size:19px;font-weight:700;line-height:1;width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;flex:none;cursor:pointer;padding:0}
.v6716-tag-remove:hover,.v6716-tag-remove:focus-visible{background:#dce6f1;color:#1a3856;outline:2px solid #a9c6e5;outline-offset:1px}
.summary-tags:empty{display:none}

/* 042-v6717-desktop-refinement */
/* V67.17: desktop-only improvements; mobile layouts and filtering remain unchanged. */
@media (min-width: 851px) {
  /* Consistent labels, aligned top row and less unused vertical space. */
  .search-composer #mobileFilter .field > label,
  .search-composer #mobileFilter .inline .field > label {font-weight:700!important;color:#263b5c!important;display:block!important;line-height:1.35!important;margin:0 0 9px!important;}
  .search-composer #mobileDetails {padding:16px 22px!important;margin-bottom:10px!important;}
  .search-composer #mobileFilter {row-gap:12px!important;column-gap:18px!important;align-items:start!important;}
  .search-composer #mobileFilter>.field:nth-child(2),
  .search-composer #mobileFilter>.field:nth-child(3) {margin:0!important;padding:0!important;min-width:0!important;}
  .search-composer #mobileFilter .positions {gap:6px!important;margin:0!important;max-width:100%!important;}
  .search-composer #mobileFilter .positions input {height:48px!important;max-width:49px!important;justify-self:start!important;border-radius:11px!important;}
  .search-composer #mobileFilter [data-field="group"] {height:48px!important;min-height:48px!important;box-sizing:border-box!important;margin:0!important;}
  .search-composer #mobileFilter .inline .field {margin:0!important;padding:0!important;}
  .search-composer #mobileFilter .inline .field input,
  .search-composer #mobileFilter .inline .field select {height:48px!important;min-height:48px!important;box-sizing:border-box!important;}
  .search-composer #mobileFilter .field:has(.positions)>.hint{display:none!important;}
  .v67-extras {margin-top:10px!important;}
  /* Contact cards: adapt naturally to two or three channels without a blank right side. */
  #v51Contact .v51-contact-grid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(285px,1fr))!important;gap:14px!important;max-width:none!important;width:100%!important;}
  #v51Contact .v51-contact {min-width:0!important;min-height:112px!important;padding:15px!important;gap:12px!important;}
  #v51Contact .v61-contact-icon {width:49px!important;height:49px!important;flex-basis:49px!important;}
  #v51Contact .v61-contact-info strong {font-size:17px!important;}
  #v51Contact .v61-contact-info p {font-size:14px!important;}
  #v51Contact .v61-contact-action {padding:7px 10px!important;font-size:12px!important;}
  /* Tighten result card height while retaining legible price and actions. */
  .cards .sim {padding:12px 15px!important;}
  .sim .sim-number-line {row-gap:0!important;min-height:0!important;}
  .sim .sim-one-line {margin-top:5px!important;}
}
@media (min-width: 1200px) {
  /* Sequence and phone number share the first row; tags/sum stay on the right. */
  .sim .sim-number-line {display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto!important;column-gap:11px!important;align-items:center!important;}
  .sim .sim-number-line .result-sequence {grid-column:1!important;grid-row:1!important;align-self:center!important;}
  .sim .sim-number-line .number {grid-column:2!important;grid-row:1!important;align-self:center!important;margin:0!important;min-width:0!important;font-size:clamp(25px,2.4vw,37px)!important;line-height:1.13!important;letter-spacing:-.6px!important;}
  .sim .sim-number-line .v65-right-meta {grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;}
}

/* 043-v67-18-contact-polish */
/* V67.18: the entire contact card is the accessible link, not just the action pill. */
#v51Contact a.v67-contact-clickable{display:flex;color:inherit;text-decoration:none;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
#v51Contact a.v67-contact-clickable:hover{border-color:#9ebce1;box-shadow:0 7px 19px rgba(25,56,102,.13);transform:translateY(-1px)}
#v51Contact a.v67-contact-clickable:focus-visible{outline:3px solid #2786df;outline-offset:3px}
@media(min-width:851px){
 #v51Contact .v51-contact-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr))!important;gap:13px!important}
 #v51Contact .v51-contact{min-height:92px!important;padding:12px 15px!important;gap:13px!important;border-radius:17px!important}
 #v51Contact .v61-contact-icon{width:53px!important;height:53px!important;flex-basis:53px!important}
 #v51Contact .v61-contact-info strong{font-size:19px!important;line-height:1.3!important}
 #v51Contact .v61-contact-info p{font-size:19px!important;line-height:1.35!important;font-weight:650!important;color:#122c55!important}
 #v51Contact .v61-contact-action{font-size:12px!important;padding:7px 9px!important;min-height:36px!important}
}

/* 044-v6721-header-layer */
@media(min-width:901px){header{z-index:200!important}}

/* 045-v6722-desktop-results-density */
/* V67.22: compact vertical rhythm only on desktop. No filter or mobile logic changes. */
@media (min-width: 901px) {
  .search-composer {padding-bottom:11px!important;}
  .search-composer .search-submit {padding-top:7px!important;}
  .search-composer .search-explain {margin-top:2px!important;line-height:1.35!important;}
  #activeSummary.active-summary {padding:10px 17px!important;margin:10px 0 8px!important;min-height:0!important;}
  #activeSummary .summary-heading {margin-bottom:0!important;min-height:27px!important;}
  #activeSummary .summary-heading strong {line-height:1.3!important;}
  #activeSummary .summary-tags {margin-top:6px!important;gap:5px 7px!important;}
  #activeSummary .summary-tags .filter-tag {padding:4px 9px!important;}
  #searchResults.workspace {margin-top:10px!important;margin-bottom:45px!important;}
  #searchResults .results-top {margin-bottom:10px!important;}
  #searchResults .results-top h2 {line-height:1.25!important;}
  #searchResults .results-top p {margin:3px 0 0!important;}
}

/* 046-v6723-admin-header-position */
/* Keep demo admin available, visually separate from customer navigation. */
header .nav{position:relative}
header .admin-header-control{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #d6e1f1;border-radius:10px;background:#f7f9fc;color:#526176;padding:7px 13px;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
header .admin-header-control:hover{background:#eaf1fa;color:#243c5b}
header .admin-header-control.active{background:#e8eef8;border-color:#aabdd8;color:#1c406d}
@media(max-width:600px){header .nav{padding:11px 12px;gap:8px}header .logo{font-size:23px}header .nav>small{display:none}header .admin-header-control{position:static;transform:none;margin-left:auto;padding:7px 9px;font-size:11px}}

/* 047-v6724-recommend-style */
.v6724-short{display:none}
.v6724-recommend{max-width:1160px;margin:22px auto 70px}
.v6724-recommend[hidden]{display:none!important}
.v6724-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}
.v6724-heading h2{font-size:clamp(24px,3vw,32px);margin:0 0 4px;color:#142749}
.v6724-heading p{margin:0;color:#66758b;font-size:14px}
#v6724Total{white-space:nowrap;color:#476080;font-weight:600;font-size:13px}
.v6724-recommend h3{font-size:19px;color:#1b3154;margin:19px 0 13px}
.v6724-recommend .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.v6724-recommend .sim{min-width:0}
.v6724-more{text-align:center;margin:23px auto}
.v6724-more button{padding:12px 26px;border-radius:13px}
.v6724-more button[hidden]{display:none}
.v6724-note{font-size:12px;color:#8490a1;margin-top:20px}
.v6724-star{border:1px solid #e6c67c!important;background:#fffaf0!important;color:#b78520!important;border-radius:11px!important;padding:7px 10px!important;font-size:18px!important;line-height:1!important}
.v6724-star.is-on{background:#fff0c7!important;color:#b07800!important}
@media(max-width:850px){
 .v51-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;padding:0 12px 12px!important}
 .v51-nav button{min-width:0!important;padding:10px 2px!important;font-size:clamp(10px,2.55vw,13px)!important;white-space:nowrap!important;letter-spacing:-.35px!important;border-radius:12px!important}
 .v6724-long{display:none}.v6724-short{display:inline}
 .v6724-recommend .cards{grid-template-columns:1fr}
 .v6724-heading{align-items:flex-start;flex-wrap:wrap}
 .v6724-recommend{margin-top:14px}
}
@media(max-width:390px){.v51-nav{gap:4px!important;padding-left:8px!important;padding-right:8px!important}.v51-nav button{font-size:10px!important}}

/* 048-v6725-mobile-card-nav-polish */
/* V67.25: mobile-only; retain original fonts and desktop layout. */
@media (max-width:850px){
  .v51-nav{grid-template-columns:1.16fr 1.13fr .99fr .86fr 1fr!important;gap:5px!important;padding-left:10px!important;padding-right:10px!important}
  .v51-nav button{font-size:clamp(12px,3.15vw,15px)!important;font-weight:750!important;letter-spacing:-.45px!important;padding:12px 1px!important;line-height:1.2!important}
  .cards .sim .sim-number-line,
  .v6724-recommend .sim .sim-number-line{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;column-gap:9px!important;align-items:center!important;position:relative!important;padding-top:23px!important;min-height:0!important;row-gap:0!important}
  .cards .sim .sim-number-line .result-sequence,
  .v6724-recommend .sim .sim-number-line .result-sequence{grid-column:1!important;grid-row:1!important;align-self:center!important;margin:0!important}
  .cards .sim .sim-number-line .number,
  .v6724-recommend .sim .sim-number-line .number{grid-column:2!important;grid-row:1!important;margin:0!important;min-width:0!important;font-size:clamp(29px,7.45vw,36px)!important;line-height:1.14!important;letter-spacing:-.8px!important;white-space:nowrap!important}
  .cards .sim .sim-number-line .v65-right-meta,
  .v6724-recommend .sim .sim-number-line .v65-right-meta{position:absolute!important;top:0!important;right:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin:0!important;max-width:100%!important}
  .cards .sim .sim-one-line,
  .v6724-recommend .sim .sim-one-line{margin-top:8px!important}
}
@media(max-width:390px){
 .v51-nav{gap:3px!important;padding-left:7px!important;padding-right:7px!important}
 .v51-nav button{font-size:clamp(11px,3.05vw,13px)!important;letter-spacing:-.55px!important}
 .cards .sim .sim-number-line .number,.v6724-recommend .sim .sim-number-line .number{font-size:clamp(27px,7.2vw,32px)!important}
}

/* 049-v6727-mobile-compact-number */
/* V67.27: phone number slightly smaller, cards shorter; retain V67.26 fonts and desktop. */
@media(max-width:850px){
 .cards .sim .sim-number-line .number,
 .v6724-recommend .sim .sim-number-line .number{font-size:clamp(25px,6.65vw,30px)!important;letter-spacing:-.65px!important;line-height:1.12!important}
 .cards .sim .sim-number-line,
 .v6724-recommend .sim .sim-number-line{padding-top:17px!important;column-gap:8px!important}
 .cards .sim,.v6724-recommend .sim{padding-top:10px!important;padding-bottom:10px!important}
 .cards .sim .sim-one-line,.v6724-recommend .sim .sim-one-line{margin-top:4px!important}
}
@media(max-width:390px){
 .cards .sim .sim-number-line .number,
 .v6724-recommend .sim .sim-number-line .number{font-size:clamp(24px,6.7vw,27px)!important}
}

/* 050-v6728-empty-search-actions */
/* Empty state: two clear choices, matching the site's existing buttons. */
.empty-help-actions{align-items:center}
@media(max-width:600px){.empty-help-actions{flex-direction:column;align-items:stretch;max-width:330px;margin:0 auto}.empty-help-actions button{width:100%;min-height:43px}}

/* 051-v6729-style */
.v6729-groups{max-width:340px;width:100%;font-size:13px}.v6729-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 7px}.v6729-tags:empty{display:none}.v6729-tag{display:inline-flex;align-items:center;gap:8px;background:#e9f3ff;color:#185c9c;border-radius:7px;padding:5px 8px;font-weight:700}.v6729-tag button{border:0;background:transparent;color:#555;font-size:17px;cursor:pointer;padding:0 2px}.v6729-entry{display:flex;gap:6px;align-items:center}.v6729-entry input{width:130px;min-width:0;flex:1;max-width:165px}.v6729-entry button{white-space:nowrap;background:#1767b1;color:white;border:0;border-radius:7px;padding:9px 10px;cursor:pointer}.v6729-entry button:disabled{opacity:.45}.v6729-entry small{white-space:nowrap;color:#667}.v6729-logic{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:9px}.v6729-logic label{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:3px}.v6729-logic input{width:auto!important;min-width:0!important}

/* 052-v6738-desktop-group-tags-readable */
/* Desktop: larger readable tags, natural wrapping, no horizontal scrolling. */
@media (min-width: 901px) {
  .v6729-groups { max-width: none; width: 100%; min-width: 0; }
  .v6729-tags { display:flex; flex-wrap:wrap; align-items:center; gap:9px; width:100%; min-width:0; overflow:visible; margin-bottom:10px; }
  .v6729-tag { display:inline-flex; flex:0 0 auto; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; font-size:17px; line-height:1.35; font-weight:750; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .v6729-tag button { flex:0 0 auto; font-size:21px; line-height:1; min-width:18px; }
}

/* 053-v3133-front-style */
.v3133-import{margin:16px 0;padding:10px 14px;border:1px solid #e0e5e8;border-radius:12px;font-size:13px;color:#64748b}.v3133-import summary{cursor:pointer}.v3133-import input{max-width:100%;margin-top:10px}.v6724-recommend #v6724RegularCards{margin-top:12px}

/* 054-vdesktop-four-v6739 */
.vdesk-four{display:none}
@media(min-width:901px){
 [data-v6729-ui] .v6729-mobile{display:none!important}
 [data-v6729-ui] .vdesk-four{display:block;width:100%;min-width:0}
 [data-v6729-ui]{max-width:none!important;width:100%!important}
 .vdesk-four-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:10px}
 .vdesk-four-head strong{font-size:15px;color:#172b4d}
 .vdesk-mode{display:flex;gap:16px;flex-wrap:wrap}
 .vdesk-mode label{display:flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap;font-weight:600}
 .vdesk-mode input{width:17px!important;height:17px!important;min-width:17px!important;accent-color:#1769c1}
 .vdesk-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 .vdesk-slots input{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box;border-radius:12px;padding:13px 12px;font-size:16px;background:white;border:1px solid #c8daf3}
 #basicPanel .field:has([data-v6729-ui]){grid-column:1/-1;width:100%;max-width:none}
 #basicPanel .field:has([data-v6729-ui])>label{display:none}
}
@media(max-width:900px){[data-v6729-ui] .vdesk-four{display:none!important}}

/* 055-v6740-approved-desktop-layout */
@media(min-width:901px){
  .search-composer #mobileFilter{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px 16px!important;align-items:start!important}
  .search-composer #mobileFilter>.field:has(.positions){grid-column:1/-1!important;grid-row:1!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,46%) minmax(0,54%)!important;column-gap:14px!important;align-items:end!important}
  .search-composer #mobileFilter>.field:has(.positions)>label{grid-column:1!important;grid-row:1!important}
  .search-composer #mobileFilter>.field:has(.positions)>.positions{grid-column:1!important;grid-row:2!important;min-width:0!important}
  .search-composer #mobileFilter>.field:has(.positions)>.hint{display:none!important}
  .v6740-toolbar{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;padding-right:14px}
  .v6740-modes{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;justify-content:center}
  .v6740-modes label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:clamp(11px,.85vw,15px);font-weight:700;color:#172b4d}
  .v6740-modes input{width:17px!important;height:17px!important;min-width:17px!important;accent-color:#1769c1}
  .v6740-toolbar button{width:auto!important;flex:0 0 auto!important;padding:12px 13px!important;font-size:clamp(11px,.85vw,15px)!important;white-space:nowrap!important;min-height:46px!important;border-radius:12px!important}
  .search-composer #mobileFilter>.field:has([data-v6729-ui="advanced"]){grid-column:1/-1!important;grid-row:2!important;min-width:0!important;background:#eaf3ff;padding:12px 14px;border-radius:14px}
  .search-composer #mobileFilter>.field:has([data-v6729-ui="advanced"])>label{display:none!important}
  .search-composer #mobileFilter .vdesk-four-head{margin:0 0 8px!important}
  .search-composer #mobileFilter .vdesk-four-head .vdesk-mode{display:none!important}
  .search-composer #mobileFilter .vdesk-slots{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  .search-composer #mobileFilter>.inline{display:contents!important}
  .search-composer #mobileFilter>.inline>.field:has([data-field="minPrice"]){grid-column:1!important;grid-row:3!important}
  .search-composer #mobileFilter>.inline>.field:has([data-field="maxPrice"]){grid-column:2!important;grid-row:3!important}
  .search-composer #mobileFilter>.inline>.field:has([data-field="total"]){grid-column:3!important;grid-row:3!important}
  .search-composer #mobileFilter>.inline>.field:has([data-field="advancedNetwork"]){grid-column:4!important;grid-row:3!important}
  .search-composer #mobileFilter>.inline>.field input,.search-composer #mobileFilter>.inline>.field select{width:100%!important;min-width:0!important}
  .search-composer #mobileFilter>.compact-numeric-choices{grid-column:1/-1!important;grid-row:4!important}
  .search-composer>.search-submit{display:none!important}
}
@media(max-width:900px){.v6740-toolbar{display:none!important}}

/* 056-v6741-compact-balanced-desktop */
/* V67.41: compact PC-only input dimensions; mobile untouched. */
@media (min-width:901px){
 .search-composer #mobileFilter{row-gap:10px!important;column-gap:14px!important}
 .search-composer #mobileFilter>.field:has(.positions){grid-template-columns:minmax(0,46%) minmax(0,54%)!important;align-items:end!important;column-gap:12px!important}
 .search-composer #mobileFilter>.field:has(.positions)>.positions{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important;max-width:710px!important;align-items:center!important}
 .search-composer #mobileFilter>.field:has(.positions)>.positions input{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;height:46px!important;min-height:46px!important;padding:4px 0!important;font-size:18px!important;line-height:1.2!important;border-radius:10px!important}
 .search-composer #mobileFilter>.field:has([data-v6729-ui="advanced"]){padding:9px 12px!important;border-radius:13px!important}
 .search-composer #mobileFilter .vdesk-four{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:12px!important;align-items:center!important}
 .search-composer #mobileFilter .vdesk-four-head{margin:0!important;align-self:center!important}
 .search-composer #mobileFilter .vdesk-four-head strong{font-size:15px!important;line-height:1.35!important}
 .search-composer #mobileFilter .vdesk-slots{gap:12px!important;align-items:center!important}
 .search-composer #mobileFilter .vdesk-slots input{box-sizing:border-box!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;font-size:16px!important;line-height:1.25!important;border-radius:11px!important}
 .search-composer #mobileFilter>.inline>.field input,.search-composer #mobileFilter>.inline>.field select{box-sizing:border-box!important;height:46px!important;min-height:46px!important;padding:7px 12px!important;font-size:16px!important;line-height:1.25!important;border-radius:11px!important}
 .search-composer #mobileFilter>.inline>.field label,.search-composer #mobileFilter>.field>label{font-size:15px!important;line-height:1.35!important;margin-bottom:6px!important}
 .v6740-toolbar{padding-right:0!important;gap:10px!important}
 .v6740-modes{gap:14px!important}
 .v6740-toolbar button{height:44px!important;min-height:44px!important;padding:7px 12px!important;font-size:14px!important;border-radius:11px!important}
}
@media (min-width:901px) and (max-width:1250px){
 .search-composer #mobileFilter .vdesk-four{grid-template-columns:165px minmax(0,1fr)!important;gap:9px!important}
 .v6740-modes{gap:8px!important}
 .v6740-modes label{font-size:12px!important}
 .v6740-toolbar button{font-size:12px!important;padding:6px 8px!important}
}

/* 057-v6742-group-width-label-radio-tune */
/* V67.44: PC only, four 200px group inputs and 14px mode labels. */
@media (min-width:901px){
 .search-composer #mobileFilter .vdesk-four{
   display:grid!important;
   grid-template-columns: 265px minmax(0,1fr)!important;
   align-items:center!important;
   column-gap:12px!important;
 }
 .search-composer #mobileFilter .vdesk-four-head{
   display:flex!important;align-items:center!important;justify-content:flex-start!important;
   min-width:0!important;margin:0!important;
 }
 .search-composer #mobileFilter .vdesk-four-head strong{
   white-space:nowrap!important;font-size:16px!important;line-height:1.4!important;
 }
 .search-composer #mobileFilter .vdesk-slots{
   width:min(100%, 836px)!important;
   max-width:100%!important;
   justify-self:start!important;
   grid-template-columns:repeat(4,minmax(0,200px))!important;
   gap:12px!important;
 }
 .search-composer #mobileFilter .vdesk-slots input{height:44px!important;min-height:44px!important;}
 .v6740-modes label{font-size:14px!important;line-height:1.4!important;font-weight:700!important;}
 .v6740-modes input{width:20px!important;height:20px!important;min-width:20px!important;}
}
@media (min-width:901px) and (max-width:1250px){
 .search-composer #mobileFilter .vdesk-four{grid-template-columns:240px minmax(0,1fr)!important;}
 .search-composer #mobileFilter .vdesk-four-head strong{font-size:14px!important;}
 .v6740-modes label{font-size:14px!important;}
 .search-composer #mobileFilter .vdesk-slots{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;}
}

/* 058-v6745-position-row-balance */
/* V67.45: desktop only. Shrink each of ten position boxes by 2px in both dimensions; keep AND/OR at 14px. */
@media (min-width:901px){
 .search-composer #mobileFilter>.field:has(.positions)>.positions{
   grid-template-columns:repeat(10,minmax(0,1fr))!important;
   max-width:690px!important;
   gap:5px!important;
 }
 .search-composer #mobileFilter>.field:has(.positions)>.positions input{
   height:44px!important;min-height:44px!important;
 }
 .v6740-toolbar{gap:10px!important;justify-content:space-between!important;align-items:center!important;}
 .v6740-modes{gap:14px!important;justify-content:center!important;}
 .v6740-modes label{font-size:14px!important;}
}

/* 059-v6748-position-minus1-balanced */
/* V67.48: desktop-only, 1px narrower and 1px shorter per digit box; preserve radio text size. */
@media (min-width:901px){
 .search-composer #mobileFilter>.field:has(.positions)>.positions{max-width:680px!important;gap:5px!important;}
 .search-composer #mobileFilter>.field:has(.positions)>.positions input{height:43px!important;min-height:43px!important;}
 .v6740-toolbar{align-items:center!important;justify-content:space-between!important;}
 .v6740-modes label{font-size:14px!important;}
}

/* 060-v6749-measured-position-balance */
/* V67.49: force an actual 10px total width reduction (1px per position box)
   relative to the available digit-grid width. Earlier max-width tweaks did
   not change the rendered width when the parent grid was already narrower. */
@media (min-width:901px){
 .search-composer #mobileFilter>.field:has(.positions)>.positions{
   width:calc(100% - 10px)!important;
   max-width:none!important;
   min-width:0!important;
   justify-self:start!important;
   grid-template-columns:repeat(10,minmax(0,1fr))!important;
   gap:5px!important;
 }
 .search-composer #mobileFilter>.field:has(.positions)>.positions input{
   width:100%!important;
   height:43px!important;
   min-height:43px!important;
   max-height:43px!important;
 }
 .search-composer #mobileFilter>.field:has(.positions){align-items:center!important;}
 .v6740-toolbar{align-items:center!important;gap:12px!important;min-width:0!important;}
 .v6740-modes{align-items:center!important;gap:14px!important;}
 .v6740-modes label{font-size:14px!important;white-space:nowrap!important;}
 #v6740Reset{background:#c81936!important;color:#fff!important;border-color:#c81936!important;}
}

/* 061-v6750-grey-filters-radio-align */
/* V67.50: neutral-gray four filter tiles; shift OR choice 4px left on desktop. */
@media (min-width:901px){
  .v67-extras > .v671-filter { background:#e3e7ec!important; }
  .v6740-modes label:nth-child(2) { position:relative; left:-4px; }
}

/* 062-v6751-filter-border-and-modes-left */
/* V67.51: shift the AND/OR pair together left slightly; add crisp outlines to four bottom tiles. Desktop only. */
@media (min-width:901px){
  .v6740-modes{position:relative!important;left:-6px!important;}
  .v67-extras > .v671-filter{
    border:1px solid #b8c3d1!important;
    background:#e3e7ec!important;
    box-shadow:0 1px 2px rgba(25,48,80,.045)!important;
  }
}

/* 063-v6752-group-clear-style */
/* Per-slot clear buttons are overlayed, preserving the approved four-column layout. */
.v6752-slot{position:relative;min-width:0;width:100%}
.v6752-slot input{width:100%!important;box-sizing:border-box!important;padding-right:32px!important}
.v6752-slot .v6752-clear{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:23px;height:23px;min-width:23px;min-height:23px;padding:0;border:1px solid #cbd5e1;border-radius:50%;background:#edf2f7;color:#52677e;font-size:19px;line-height:18px;cursor:pointer;z-index:2}
.v6752-slot .v6752-clear:hover{background:#dce6f1;color:#163b61}
.v6752-slot .v6752-clear[hidden]{display:none!important}

/* 064-v6756-pastel-filter-cards */
/* Visual-only experiment: keep V67.56 controls, handlers, and filter state intact. */
.v67-extras>.v671-filter{border-radius:21px!important;box-shadow:0 3px 7px rgba(30,63,110,.055);transition:background-color .15s,border-color .15s}
.v67-extras>.v671-filter:nth-child(1){background:#d9f1df!important;border:1.5px solid #9bd6ad!important}
.v67-extras>.v671-filter:nth-child(2){background:#ffe2e5!important;border:1.5px solid #ffabb4!important}
.v67-extras>.v671-filter:nth-child(3){background:#deebff!important;border:1.5px solid #a4c4ff!important}
.v67-extras>.v671-filter:nth-child(4){background:#fff2c9!important;border:1.5px solid #ffd069!important}
.v67-extras .v671-header{border-radius:20px}
.v67-extras .v671-check{background:#fff!important;border-radius:7px!important;width:27px!important;height:27px!important;min-width:27px!important}
.v67-extras>.v671-filter:nth-child(1) .v671-check{border:2.5px solid #118345!important}
.v67-extras>.v671-filter:nth-child(2) .v671-check{border:2.5px solid #d82435!important}
.v67-extras>.v671-filter:nth-child(3) .v671-check{border:2.5px solid #2175df!important}
.v67-extras>.v671-filter:nth-child(4) .v671-check{border:2.5px solid #eeac0c!important}
.v67-extras>.v671-filter:nth-child(1) .v671-check:checked{background:#118345!important}
.v67-extras>.v671-filter:nth-child(2) .v671-check:checked{background:#d82435!important}
.v67-extras>.v671-filter:nth-child(3) .v671-check:checked{background:#2175df!important}
.v67-extras>.v671-filter:nth-child(4) .v671-check:checked{background:#eeac0c!important}
.v67-extras .v671-label{color:#11294b!important;font-weight:800!important}
.v67-extras .v671-expand{background:#fff!important;border:1px solid #edf2f9!important;border-radius:13px!important;color:#15385e!important;box-shadow:none!important}
/* Dropdown content remains white and readable. */
.v67-extras .v671-body:not([hidden]){background:#fff!important}
@media(max-width:900px){.v67-extras>.v671-filter{border-radius:17px!important}}

/* 065-v67-dual-filter-style */
.v67-dual-filter{display:none;min-width:0;background:#fff1ce;border:2px solid #d9b56c;border-radius:24px;box-sizing:border-box;align-self:start}
.v67-dual-label{display:flex;align-items:center;gap:12px;padding:20px 15px;cursor:pointer;color:#142c4e;font-weight:800;min-height:90px;box-sizing:border-box}
.v67-dual-label input{appearance:none;-webkit-appearance:none;width:39px;height:39px;flex:none;border:3px solid #ae8531;border-radius:10px;background:#fff;position:relative;cursor:pointer}
.v67-dual-label input:checked{background:#ad852f;border-color:#ad852f}
.v67-dual-label input:checked::after{content:'✓';position:absolute;inset:0;text-align:center;line-height:32px;color:#fff;font-size:24px}
.v67-dual-hint{font-size:12px;font-weight:500;color:#7b602c;margin-left:auto;white-space:nowrap}
@media(max-width:650px){.v67-dual-label{min-height:66px;padding:12px}.v67-dual-label input{width:32px;height:32px}.v67-dual-label input:checked::after{line-height:26px;font-size:20px}.v67-dual-hint{display:none}}

/* 066-v67-dual-visibility-layout-fix */
/* Follow the same beautiful-tab body state as the existing pretty-category control. */
body:not(.v66-beautiful) #v67DualWrap{display:none!important}
body.v66-beautiful #v67DualWrap{display:block!important;visibility:visible!important;opacity:1!important}
@media(min-width:901px){body.v66-beautiful #v67DualWrap{grid-column:4;grid-row:1;min-width:0}}
@media(max-width:900px){body.v66-beautiful #v67DualWrap{grid-column:auto}}

/* 067-v67-dual-height-match-fix */
/* Keep the experimental fourth filter tile aligned with its three siblings. */
@media (min-width:901px){
 body.v66-beautiful .v67-extras>#v67DualWrap{
  height:96px!important;min-height:0!important;max-height:96px!important;
  align-self:start!important;box-sizing:border-box!important;overflow:hidden!important;
 }
 body.v66-beautiful #v67DualWrap .v67-dual-label{
  height:100%!important;min-height:0!important;padding:10px 14px!important;
  box-sizing:border-box!important;gap:10px!important;
 }
 body.v66-beautiful #v67DualWrap .v67-dual-label input{
  width:39px!important;height:39px!important;flex:0 0 39px!important;
 }
 body.v66-beautiful #v67DualWrap .v67-dual-hint{font-size:11px!important;white-space:nowrap!important}
}
@media(max-width:900px){
 body.v66-beautiful .v67-extras>#v67DualWrap{height:auto!important;max-height:none!important}
 body.v66-beautiful #v67DualWrap .v67-dual-label{min-height:66px!important}
}

/* 068-v67-dual-compact-equal-height-final */
/* Match the existing three accordion headers, not their expanded panels. */
@media(min-width:901px){
 body.v66-beautiful #v67DualWrap.v67-dual-filter{
  height:96px!important;min-height:96px!important;max-height:96px!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  align-self:start!important;box-sizing:border-box!important;
 }
 body.v66-beautiful #v67DualWrap>.v67-dual-label{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:flex-start!important;height:92px!important;min-height:0!important;
  max-height:92px!important;margin:0!important;padding:10px 14px!important;
  line-height:1.2!important;box-sizing:border-box!important;gap:10px!important;
 }
 body.v66-beautiful #v67DualWrap .v67-dual-label input{
  width:39px!important;height:39px!important;flex:0 0 39px!important;margin:0!important;
 }
 body.v66-beautiful #v67DualWrap .v67-dual-title{
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  font-size:clamp(13px,1vw,16px)!important;white-space:nowrap!important;
 }
}

/* 069-v81-copy-nav-rules */
/* V81: recommended numbers are also selectable; hide on all non-number pages. */
body:has(#v6724Recommended:not([hidden])) #v69Float.v69-show{display:block!important;visibility:visible!important;pointer-events:auto!important}
body:has(#v6724Recommended:not([hidden])) #v69Bar:not(.v79-off-page){display:none!important;visibility:visible!important}
body.v69-mode:has(#v6724Recommended:not([hidden])) #v69Bar:not(.v79-off-page){display:flex!important;visibility:visible!important;pointer-events:auto!important}
body.v69-mode #v6724RegularCards .sim{cursor:pointer}
#v6724RegularCards .v69-check{display:none}
body.v69-mode #v6724RegularCards .sim > .v69-check{display:block!important;position:relative!important;left:auto!important;top:auto!important;margin:0 0 4px 2px!important;width:20px;height:20px;accent-color:#1769b3}
body.v69-mode #v6724RegularCards .sim.v69-picked{outline:2px solid #4c92d3;background:#f2f8ff}
body.v69-mode #v6724RegularCards .sim .sim-number-line{margin-top:0!important}
body:has(#v6724Recommended:not([hidden])) #v73ToolbarSpace{display:none!important}

/* 070-v87-news-menu-layout */
/* V87: retain V86 behavior; only add news navigation and an isolated placeholder. */
#v51News > :not(#v87NewsPlaceholder){display:none!important}
#v87NewsPlaceholder{background:#fff;border:1px solid #dce6f4;border-radius:16px;padding:28px;margin-top:12px;color:#10234b}
#v87NewsPlaceholder h1{font-size:24px;margin:0 0 8px}
#v87NewsPlaceholder p{font-size:14px;color:#62718a;margin:0}
.v87-news-portrait{display:none!important}
@media (max-width:600px) and (orientation:portrait){
 header .nav{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;padding:10px 12px!important}
 header .nav .logo{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important}
 header .nav > small{display:none!important}
 header .nav > .admin-header-control{display:none!important}
 header .nav .v87-news-portrait{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:auto!important;flex:0 0 auto!important;white-space:nowrap!important;border:1px solid #d6e1f1!important;border-radius:12px!important;padding:9px 12px!important;background:linear-gradient(#fff,#f9fbff)!important;color:#12234a!important;font-size:13px!important;font-weight:700!important}
 header .nav .v87-news-portrait.active{background:linear-gradient(165deg,#fa5962,#d9001b)!important;color:#fff!important;border-color:#ed2d41!important}
 .v51-nav{display:grid!important;grid-template-columns:1.16fr 1.13fr .99fr .86fr 1fr!important;gap:5px!important;padding:0 8px 10px!important}
 .v51-nav .v87-news-nav{display:none!important}
 .v51-nav button{min-width:0!important;padding:10px 1px!important;font-size:clamp(10px,2.7vw,13px)!important;white-space:nowrap!important}
}
@media (min-width:601px), (orientation:landscape){
 .v87-news-portrait{display:none!important}
}
@media (max-width:850px) and (orientation:landscape){
 .v51-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important}
 .v51-nav button{min-width:0!important;font-size:clamp(10px,1.6vw,13px)!important;padding:9px 1px!important}
}

/* 071-v88-recommended-structure-fix */
/* Keep the recommendation list and its load-more action in one ordered block. */
#v6724Recommended #v88RecommendedList {display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%;position:relative!important;}
#v6724Recommended #v6724RegularCards {order:0!important;width:100%!important;position:static!important;float:none!important;}
#v6724Recommended #v88RecommendedList > .v6724-more {order:1!important;position:static!important;float:none!important;clear:both!important;transform:none!important;align-self:stretch!important;width:100%!important;display:flex!important;justify-content:center!important;margin:20px 0 0!important;}
#v6724Recommended #v88RecommendedList > .v6724-more button[hidden]{display:none!important;}
#v6724Recommended #v88RecommendedList > .v6724-more:has(button[hidden]){display:none!important;}

/* 073-v278-recommended-page-isolation */
body:has(#v6724Recommended:not([hidden])) #v51SearchMain,
body:has(#v6724Recommended:not([hidden])) #v51SearchHero,
body:has(#v6724Recommended:not([hidden])) #v51DemoNotice,
body:has(#v6724Recommended:not([hidden])) #backToSearch,
body:has(#v6724Recommended:not([hidden])) #searchResults,
body:has(#v6724Recommended:not([hidden])) #cards {
 display:none!important;
}

/* 074-v283-admin-content-styles */
/* V284: device-specific banner typography matches Banner Layout Lab proportions */
#v283Banners{width:calc(100% - 24px);margin:16px auto 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v283-banner{container-type:inline-size;min-width:0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;text-decoration:none;border:1px solid #d8dfeb;border-radius:12px;padding:10px;text-align:center;box-sizing:border-box}
.v283-banner-title{display:block;width:100%;line-height:1.3;overflow-wrap:anywhere;white-space:pre-line}
.v283-banner[role=link]{cursor:pointer}
#v283ArticleTeasers{margin:10px 0 0}
#v283ArticleTeasers .v283-teaser{display:block;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid #e5e9ef;border-radius:0;padding:8px 2px;font-weight:650;cursor:pointer}
#v283ArticleTeasers .v283-teaser:hover{text-decoration:underline}
#v283ArticleTeasers .v283-teaser-title{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:1}
#v283ArticleTeasers .v283-teaser-excerpt{font-size:13px;font-weight:400;color:#64748b;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px}
#v283NewsUI{max-width:1080px;margin:20px auto;padding:0 12px}
#v283NewsUI .v283-news-list{display:grid;gap:12px}
#v283NewsUI .v283-news-item{background:#fff;border:1px solid #dae2ed;border-radius:12px;padding:17px;text-align:left;color:#172a46;cursor:pointer;width:100%}
#v283NewsUI .v283-news-item:hover{border-color:#6488b2}
#v283NewsUI .v283-article-body{background:#fff;border:1px solid #dae2ed;border-radius:12px;padding:clamp(16px,3vw,35px);line-height:1.85;overflow-wrap:anywhere}
#v283NewsUI .v283-article-body img{max-width:100%;height:auto}
#v283NewsUI .v283-back{background:#e7edf6;color:#163254;margin-bottom:14px}
#v51News > :not(#v283NewsUI){display:none!important}
/* V285: override legacy V87 placeholder-only rule, which also hid the real article view. */
#v51News > #v283NewsUI{display:block!important}
#v51News > #v87NewsPlaceholder{display:none!important}
@media(max-width:600px) and (orientation:portrait){#v283Banners{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v283-banner{padding:6px;border-radius:10px}}
@media(max-width:900px) and (orientation:landscape) and (pointer:coarse){#v283Banners{gap:8px}}

/* 075-v286-phone-call-link */
.v654-order a.v654-contact-link[href^="tel:"]{color:#1769c2!important;text-decoration:underline!important;text-underline-offset:3px;font-weight:700;overflow-wrap:anywhere}

/* 076-v289-clickable-purchase-links */
/* Keep purchase links consistently blue after opening another app. */
#modalBody a.v654-contact-link:link,#modalBody a.v654-contact-link:visited,
#modalBody a.v654-contact-link:hover,#modalBody a.v654-contact-link:active,
#modalBody a.v654-contact-link:focus,
#modalBody a.v289-instruction-link:link,#modalBody a.v289-instruction-link:visited,
#modalBody a.v289-instruction-link:hover,#modalBody a.v289-instruction-link:active,
#modalBody a.v289-instruction-link:focus{color:#1769c2!important;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}
#modalBody a.v654-contact-link:focus-visible,#modalBody a.v289-instruction-link:focus-visible{outline:2px solid #1769c2;outline-offset:2px}

/* 079-v55-styles */
.v55-home-feed{margin:26px 0 42px;padding:20px 22px;border:1px solid #e2e6ed;border-radius:14px;background:#fff}.v55-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.v55-feed-heading h2{font-size:19px;margin:0}.v55-text-button{border:0;background:none;color:#a92235;font-weight:700;cursor:pointer}.v55-feed-row{display:flex;gap:12px;align-items:center;border-top:1px solid #eef0f3;padding:13px 0}.v55-feed-row:first-child{border-top:0}.v55-feed-row button{border:0;background:none;text-align:left;cursor:pointer;flex:1;font:inherit;color:#1c2c40}.v55-feed-row small{display:block;color:#7a8490;font-size:12px;margin-top:3px}.v55-archive-tools{display:flex;gap:12px;margin:16px 0 24px}.v55-archive-tools input{flex:1;min-width:0}.v55-archive-tools input,.v55-archive-tools select{padding:12px;border:1px solid #d9dfe8;border-radius:9px;background:#fff}.v55-article-link{cursor:pointer;border:0;background:none;color:#a92337;text-decoration:underline;font:inherit}.v55-detail{max-width:830px;margin:20px auto;padding:25px;background:white;border-radius:14px;border:1px solid #e4e8ef}.v55-detail h1{font-size:28px;line-height:1.3}.v55-detail p{white-space:pre-wrap;line-height:1.85}.v55-detail .v51-media img,.v55-detail .v51-media video{max-width:100%;height:auto}.v55-detail-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.v55-detail-actions button,#v55ArchivePager button{padding:9px 14px;background:white;border:1px solid #d7dce5;border-radius:8px;cursor:pointer}.v55-featured{display:block;margin:14px 0}.v55-hidden-news-link{display:block;text-align:center;padding:20px;color:#a92337}.v55-empty{color:#697586;font-size:14px}#v55ArchivePager{display:flex;justify-content:center;gap:10px;margin:20px}#v55ArticleDetail[hidden],#v55ArchiveList[hidden]{display:none!important}@media(max-width:600px){.v55-home-feed{padding:15px}.v55-archive-tools{flex-direction:column}.v55-detail{padding:15px}}

/* 082-v6555-direct-search-style */
/* The quick-search route reuses the existing search composer and results. */
body.v6555-quickfind #v51SearchHero,
body.v6555-quickfind #v654PurchaseImport,
body.v6555-quickfind .v64-type-panel{display:none!important}
body.v6555-quickfind #v51SearchMain{display:block!important;padding-top:12px}
body.v6555-quickfind .search-composer{margin-top:0}
@media(max-width:600px){.v51-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.v51-nav::-webkit-scrollbar{display:none}.v51-nav button{flex:0 0 auto;white-space:nowrap}}

/* 083-v66-style */
#v66HomeLogo{cursor:pointer}#v66HomeLogo:focus-visible{outline:3px solid #d82736;outline-offset:4px}
.v64-type-panel{display:none!important}.admin-demo-nav{opacity:.65;font-size:12px!important}
.v66-pretty-panel{border:1px solid #e8ebef;background:white;border-radius:14px;padding:18px;margin:15px 0}
.v66-pretty-panel[hidden]{display:none!important}.v66-pretty-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.v66-pretty-heading h2{margin:0;font-size:20px}.v66-pretty-heading p{margin:6px 0 12px;color:#667080;font-size:13px}
.v66-pretty-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v66-rule{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid #e4e8ed;border-radius:9px;font-size:13px;cursor:pointer}.v66-rule input{accent-color:#d82736}.v66-rule small{color:#8b939f;margin-right:8px}
body.v66-beautiful #luckyCombineToggle,body.v66-beautiful #birthdayToggle,body.v66-beautiful #luckyPanel,body.v66-beautiful #birthdayPanel{display:none!important}
body:not(.v66-beautiful) #sort option[value="pretty"]{display:none}
@media(max-width:760px){.v66-pretty-rules{grid-template-columns:repeat(2,minmax(0,1fr))}.v51-nav{flex-wrap:nowrap;overflow-x:auto}.v51-nav button{flex:0 0 auto;white-space:nowrap}}
@media(max-width:460px){.v66-pretty-rules{grid-template-columns:1fr}}

/* 086-style */
.v66-special-editor{border:1px solid #dce5ee;border-radius:12px;padding:14px;margin:12px 0;background:#f7fafc}
.v66-special-editor label{display:block;font-weight:700;margin-bottom:7px}
.v66-special-editor input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #bdcbd8;border-radius:8px;font:inherit}
.v66-special-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.v66-special-actions button{border:1px solid #ccd7e3;border-radius:8px;padding:8px 13px;background:white;cursor:pointer}
.v66-special-actions button:first-child{background:#1976d2;color:white;border-color:#1976d2}
.v64-tag.special[data-v66-edit-special]{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}

/* V66.3: inline expanding choices immediately below their checkbox */
.mode-panel #luckyPanel,.mode-panel #birthdayPanel{margin:7px 0 12px;padding:16px;border:1px solid #dce5ee;border-radius:14px;background:#f8fbff;box-shadow:0 4px 12px #162e4908}
.mode-panel #luckyPanel h2{font-size:17px;margin:0 0 5px}
.mode-panel #luckyPanel p{font-size:13px;margin:5px 0}
.mode-panel #luckyPanel .lucky-options{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mode-panel #luckyPanel .lucky-option{margin:0;min-width:0;white-space:normal;text-align:center}
.mode-panel #birthdayPanel select{margin-top:8px}
.mode-panel .lucky-toggle{margin-top:12px}
.mode-panel .lucky-toggle:has(input:checked){border-color:#79b2d7;background:#eaf5ff}
@media(max-width:420px){.mode-panel #luckyPanel,.mode-panel #birthdayPanel{padding:12px}.mode-panel #luckyPanel .lucky-option{font-size:13px;padding:9px 5px}}

/* 094-v6758-pretty-checkbox-visible */
/* The fifth filter was missed by the four-card pastel overrides. */
#v672PrettyEnable:checked{background:#375c86!important;border-color:#375c86!important}
#v672PrettyEnable:checked::after{content:'✓';position:absolute;inset:0;color:#fff!important;font-weight:900;font-size:18px;line-height:23px;text-align:center}

/* 097-v67-dual-exact-sibling-size */
/* Override legacy label/min-height declarations; match first sibling via measured size. */
body.v66-beautiful .v67-extras > #v67DualWrap{
 height:var(--dual-sibling-height,62px)!important;
 min-height:0!important;max-height:var(--dual-sibling-height,62px)!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 align-self:start!important;box-sizing:border-box!important;
}
body.v66-beautiful .v67-extras > #v67DualWrap > .v67-dual-label{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 height:100%!important;min-height:0!important;max-height:100%!important;
 padding:10px!important;margin:0!important;gap:10px!important;
 box-sizing:border-box!important;
}
body.v66-beautiful #v67DualWrap .v67-dual-label input{
 width:27px!important;height:27px!important;min-width:27px!important;flex:0 0 27px!important;
 border-width:2.5px!important;border-radius:7px!important;
}
body.v66-beautiful #v67DualWrap .v67-dual-title{
 display:block!important;font-size:clamp(12px,1vw,15px)!important;
 line-height:1.35!important;white-space:nowrap!important;
 padding:0!important;margin:0!important;min-height:0!important;
 cursor:pointer!important;
}

/* 099-v67-golden-buzzer-v2 */
/* Only the Golden Buzzer's appearance changes; existing click handler is preserved. */
body.v66-beautiful #v67DualWrap.v67-dual-filter{
 background:linear-gradient(112deg,#f8e4a4 0%,#fff9de 24%,#ffe9a1 47%,#fff4c9 69%,#edcb77 100%)!important;
 border:2px solid #d9b45c!important;
 box-shadow:inset 0 2px 2px #fffef0,0 3px 10px #b8954426!important;
 position:relative;
}
/* Selected is brighter and richer, NOT darker. */
body.v66-beautiful #v67DualWrap.v67-dual-filter:has(#v67DualEnable:checked){
 background:linear-gradient(110deg,#ffe9a1 0%,#fffdf0 25%,#fff0ad 50%,#fff8d5 72%,#f8d774 100%)!important;
 border-color:#d9a536!important;
 box-shadow:inset 0 2px 3px #fff,0 0 0 2px #ffe4a080,0 5px 16px #d9ad4545!important;
}
body.v66-beautiful #v67DualWrap .v67-dual-label{width:100%;gap:10px!important;}
body.v66-beautiful #v67DualWrap .v67-dual-title{
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
 flex:1 1 auto!important;min-width:0;gap:8px!important;width:100%;
 white-space:normal!important;color:#69440d!important;text-shadow:0 1px 0 #fff9e0!important;
}
body.v66-beautiful #v67DualWrap .v67-golden-th{font-size:clamp(12px,1.2vw,16px);font-weight:800;white-space:nowrap}
body.v66-beautiful #v67DualWrap .v67-golden-right{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;flex:1}
body.v66-beautiful #v67DualWrap .v67-golden-en{font-size:clamp(10px,1.08vw,14px);font-weight:800;letter-spacing:.25px;white-space:nowrap;color:#946117}
body.v66-beautiful #v67DualWrap .v67-golden-crown{font-family:Georgia,serif;font-size:clamp(20px,2vw,28px);line-height:1;color:#b47b16;text-shadow:0 1px #fff6ce;flex:none}
body.v66-beautiful #v67DualWrap .v67-dual-label input{background:#fffdf0!important;border-color:#bd923b!important;box-shadow:0 1px 2px #b18d4930!important}
body.v66-beautiful #v67DualWrap .v67-dual-label input:checked{background:#d7a02d!important;border-color:#a87414!important}
@media(max-width:650px){
 body.v66-beautiful #v67DualWrap .v67-dual-label{gap:8px!important;padding:10px!important}
 body.v66-beautiful #v67DualWrap .v67-dual-title{gap:4px!important}
 body.v66-beautiful #v67DualWrap .v67-golden-th{font-size:clamp(11px,3vw,14px)}
 body.v66-beautiful #v67DualWrap .v67-golden-en{font-size:clamp(9px,2.35vw,12px);letter-spacing:0}
 body.v66-beautiful #v67DualWrap .v67-golden-crown{font-size:20px}
 body.v66-beautiful #v67DualWrap .v67-golden-right{gap:3px}
}

/* 100-v67-golden-buzzer-desktop-stack-v3 */
@media (min-width:651px){
 body.v66-beautiful #v67DualWrap .v67-dual-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;padding-right:27px!important;position:relative!important;min-width:0!important}
 body.v66-beautiful #v67DualWrap .v67-golden-th{display:block!important;font-size:clamp(12px,1.1vw,16px)!important;line-height:1.4!important;white-space:nowrap!important}
 body.v66-beautiful #v67DualWrap .v67-golden-right{display:block!important;width:100%!important;min-width:0!important;flex:none!important}
 body.v66-beautiful #v67DualWrap .v67-golden-en{display:block!important;font-size:clamp(9px,.88vw,13px)!important;line-height:1.3!important;letter-spacing:0!important;white-space:nowrap!important}
 body.v66-beautiful #v67DualWrap .v67-golden-crown{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;font-size:clamp(18px,1.7vw,25px)!important}
}

/* 101-v67-soft-borderless-filters-test */
/* Visual experiment only: preserve all filtering, click zones and responsive layout. */
.v67-extras>.v671-filter:nth-child(1),
.v67-extras>.v671-filter:nth-child(2),
.v67-extras>.v671-filter:nth-child(3),
.v67-extras>.v671-filter:nth-child(4){border:1.5px solid transparent!important;box-shadow:none!important}
.v67-extras .v671-check,
.v67-extras>.v671-filter:nth-child(1) .v671-check,
.v67-extras>.v671-filter:nth-child(2) .v671-check,
.v67-extras>.v671-filter:nth-child(3) .v671-check,
.v67-extras>.v671-filter:nth-child(4) .v671-check{
 border:0!important;background:#fff!important;box-shadow:none!important;
}
/* Keep selected state obvious without restoring an outline. */
.v67-extras>.v671-filter:nth-child(1) .v671-check:checked{background:#118345!important}
.v67-extras>.v671-filter:nth-child(2) .v671-check:checked{background:#d82435!important}
.v67-extras>.v671-filter:nth-child(3) .v671-check:checked{background:#2175df!important}
.v67-extras>.v671-filter:nth-child(4) .v671-check:checked{background:#eeac0c!important}
body.v66-beautiful #v67DualWrap.v67-dual-filter,
body.v66-beautiful #v67DualWrap.v67-dual-filter:has(#v67DualEnable:checked){
 border:2px solid transparent!important;box-shadow:none!important;
}
body.v66-beautiful #v67DualWrap .v67-dual-label input,
body.v66-beautiful #v67DualWrap .v67-dual-label input:checked{
 border:0!important;box-shadow:none!important;
}
body.v66-beautiful #v67DualWrap .v67-dual-label input:checked{background:#d7a02d!important}

/* 102-v67-pretty-mobile-gray-tile-fix */
/* Mobile only: make the 13-rule pretty-number category tile neutral gray,
   so its borderless white checkbox remains visible. Desktop unchanged. */
@media (max-width:650px){
  body.v66-beautiful #v672PrettyWrap.v671-filter{
    background:#e3e7ec!important;
  }
}

/* 103-v67-pc-search-frame-slightly-deeper-original-palette */
/* Desktop only: outer search panel approximately 10% darker than approved V67.56. Mobile unchanged. */
@media (min-width:851px){
 .search-composer{background:linear-gradient(140deg,#d5dce6 0%,#c0cee3 100%)!important;border-color:#b3c4da!important}
}

/* 104-v67-pc-lucky-tile-lighter-test */
@media (min-width:851px){
 .v67-extras > .v671-filter:nth-child(3){background:#edf3fc!important;}
}

/* 105-v69-copy-style */
#v69Float{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(86px + env(safe-area-inset-bottom));z-index:999;border:1px solid #b8c8dc;border-radius:999px;background:#fff;color:#294667;box-shadow:0 3px 12px #0002;padding:10px 14px;font-weight:700;cursor:pointer;display:none}
#v69Float.v69-show{display:block}#v69Float:hover{background:#edf5ff}
#v69Bar{display:none;position:sticky;top:8px;z-index:40;background:#eff6ff;border:1px solid #b9cfe9;border-radius:12px;padding:10px;margin:8px 0;gap:8px;align-items:center;flex-wrap:wrap;box-shadow:0 3px 12px #0001}
body.v69-mode #v69Bar{display:flex}#v69Bar button{padding:8px 11px;border-radius:8px;border:1px solid #b4c8e0;background:white;color:#20476c;cursor:pointer;font-size:13px}#v69Bar button.v69-primary{background:#1769b3;color:white;border-color:#1769b3}#v69Bar strong{margin-right:auto;font-size:13px}
body.v69-mode #cards .sim{position:relative;padding-left:40px;cursor:pointer}#cards .v69-check{display:none;position:absolute;left:12px;top:16px;width:19px;height:19px;accent-color:#1769b3;cursor:pointer}body.v69-mode #cards .v69-check{display:block}body.v69-mode #cards .sim.v69-picked{outline:2px solid #4c92d3;background:#f2f8ff}
#v69Confirm{border:1px solid #c5d2df;border-radius:14px;padding:22px;max-width:min(430px,calc(100vw - 32px));box-shadow:0 12px 40px #0003}#v69Confirm::backdrop{background:#0006}#v69Confirm button{padding:9px 15px;margin:6px;border-radius:8px;cursor:pointer}#v69Toast{position:fixed;bottom:155px;left:50%;transform:translateX(-50%);background:#23364a;color:white;padding:10px 18px;border-radius:12px;z-index:1200;display:none;max-width:90vw;text-align:center}
@media(max-width:600px){#v69Float{right:12px;bottom:calc(71px + env(safe-area-inset-bottom));padding:10px 12px;font-size:13px}#v69Bar{top:4px}body.v69-mode #cards .sim{padding-left:36px}#cards .v69-check{left:8px}}

/* 107-v70-copy-layout */
/* The V70 toolbar stays within the existing results column on desktop. */
#v69Bar{display:none!important;flex-direction:column;align-items:stretch;gap:9px;padding:12px 14px;max-width:100%;min-width:0}
body.v69-mode #v69Bar{display:flex!important}
#v69Bar .v70-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
#v69Bar .v70-top strong{font-size:14px;margin:0}
#v69Bar .v70-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
#v69Bar .v70-actions button{min-width:0;white-space:nowrap;font-size:13px;padding:9px 5px;font-weight:650}
#v69Bar #v69Exit{background:transparent;border:1px solid #c7d8e8;color:#506a85}
#v69Bar #v69Clear{background:#fff}
/* Original cards have !important padding, so do not rely on padding-left. */
body.v69-mode #cards .sim{padding-left:inherit!important;cursor:pointer}
body.v69-mode #cards .sim .sim-number-line{margin-top:24px!important}
body.v69-mode #cards .v69-check{left:12px;top:9px;width:19px;height:19px;z-index:3;margin:0}
@media(max-width:600px){#v69Bar{padding:10px;gap:8px}#v69Bar .v70-actions{gap:5px}#v69Bar .v70-actions button{font-size:12px;padding:9px 3px}body.v69-mode #cards .v69-check{left:11px;top:8px}}

/* 108-v71-checkbox-flow-fix */
/* Checkbox gets its own line; no overlap with sequence number. */
body.v69-mode #cards .sim > input.v69-check{position:relative!important;display:block!important;visibility:visible!important;opacity:1!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;float:none!important;clear:both!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:0 0 9px 2px!important;padding:0!important;z-index:5!important;accent-color:#1769b3;cursor:pointer}
body.v69-mode #cards .sim .sim-number-line{margin-top:0!important}

/* 109-v72-compact-toolbar */
/* Desktop: count, three compact actions, and close on one line. */
@media (min-width: 851px){
 #v69Bar{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding:9px 13px!important;flex-wrap:nowrap!important}
 #v69Bar .v70-top{display:contents!important}
 #v69Bar #v69Count{order:0!important;margin-right:auto!important;white-space:nowrap!important;font-size:14px!important}
 #v69Bar .v70-actions{order:1!important;display:flex!important;flex:0 0 auto!important;gap:7px!important;width:auto!important;align-items:center!important}
 #v69Bar .v70-actions button{width:auto!important;min-width:0!important;padding:7px 13px!important;font-size:13px!important;line-height:1.4!important;border-radius:8px!important}
 #v69Bar #v69Exit{order:2!important;flex:0 0 auto!important;padding:7px 12px!important;white-space:nowrap!important}
}
/* Mobile keeps the readable two-row layout rather than shrinking touch targets. */

/* 110-v73-sticky-copy-toolbar */
/* V73: keep the approved compact toolbar visible under the existing sticky header. */
body.v69-mode #v69Bar.v73-docked{
 position:fixed!important;top:var(--v73-header-bottom,0px)!important;
 left:var(--v73-left,0px)!important;width:var(--v73-width,100vw)!important;
 max-width:calc(100vw - 16px)!important;margin:0!important;
 z-index:1001!important;box-sizing:border-box!important;
 box-shadow:0 5px 16px #183b5d24!important;
}
#v73ToolbarSpace{display:none;height:0;pointer-events:none}
body.v69-mode #v73ToolbarSpace{display:block}
@media(max-width:850px){
 body.v69-mode #v69Bar.v73-docked{max-width:calc(100vw - 12px)!important}
}

/* 112-v75-seller-option-style */
/* Add a compact optional attribution checkbox without changing card layouts or copy selection. */
#v69Bar #v75SellerOption{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer;font-size:12px;font-weight:600;color:#294667;min-height:30px;user-select:none}
#v69Bar #v75IncludeSeller{width:15px;height:15px;accent-color:#1769b3;cursor:pointer;margin:0;flex:none}
@media(min-width:851px){#v69Bar .v70-actions{flex-wrap:wrap!important}#v69Bar #v75SellerOption{padding:0 2px}}
@media(max-width:850px){#v69Bar #v75SellerOption{grid-column:1/-1;justify-self:start;padding:2px 1px 0;min-height:22px}#v69Bar .v70-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 113-v76-contact-cards-style */
.v76-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.v76-head h3{margin:0 0 3px}.v76-head small{color:#718096}.v76-admin #v51ContactList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v76-card{border:1px solid #dfe6ef;border-radius:12px;padding:12px;min-width:0;background:#fff}.v76-cardtop{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.v76-identity{min-width:0;flex:1}.v76-identity strong{font-size:15px;color:#14294c}.v76-identity small{display:block;font-size:12px;color:#64748b;overflow-wrap:anywhere;margin-top:3px}.v76-tools{display:flex;gap:4px;flex-shrink:0}.v76-tools .v51-btn{padding:5px 7px;font-size:12px;border-radius:7px;min-height:28px}.v76-tools button:disabled{opacity:.3}.v76-flags{display:flex;flex-wrap:wrap;gap:7px 16px;margin-top:11px;padding-top:9px;border-top:1px solid #edf1f5}.v76-flags label{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;cursor:pointer}.v76-flags input{accent-color:#1769b3;width:16px;height:16px}.v76-admin #v76Editor{margin-top:14px;border:1px solid #dce5f0;border-radius:12px;padding:10px 12px}.v76-admin #v76Editor summary{cursor:pointer;font-weight:700;color:#18385c}.v76-admin #v51ContactForm{margin-top:12px}.v76-admin #v51ContactForm .v51-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v76-admin #v51ContactForm .v51-field{min-width:0}.v76-admin #v51ContactForm .v51-actions{align-items:center}.v76-admin #v51ContactForm .v51-btn{padding:8px 11px}
@media(max-width:850px){.v76-admin #v51ContactList{grid-template-columns:1fr}.v76-admin #v51ContactForm .v51-form-grid{grid-template-columns:1fr}.v76-card{padding:10px}.v76-tools .v51-btn{padding:5px 6px}.v76-head .v51-btn{padding:8px 10px;font-size:13px}}

/* 114-v77-inline-contact-style */
.v76-admin .v77-card{padding:11px 12px}.v77-card .v76-cardtop{align-items:center;margin-bottom:9px}.v77-card .v76-cardtop strong{font-size:14px}.v77-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v77-fields label{min-width:0;display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600;color:#42546d}.v77-fields input,.v77-fields select{width:100%;box-sizing:border-box;min-width:0;height:35px;padding:6px 9px;border:1px solid #d3dfed;border-radius:8px;background:#fff;color:#14294c;font:inherit;font-size:13px}.v77-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}.v77-footer .v76-flags{margin:0;padding:0;border:0}.v77-footer>.v51-btn{padding:6px 12px;min-height:32px;font-size:12px}.v77-card .v76-tools .v51-btn{min-width:27px}.v76-admin #v76Editor{display:none!important}
@media(max-width:600px){.v77-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v77-fields .v77-link{grid-column:1/-1}.v77-card{padding:10px}.v77-footer .v76-flags{gap:7px 12px}}

/* 115-v78-inline-logo-style */
.v78-logo-row{display:flex;align-items:center;gap:9px;margin-top:10px;padding-top:9px;border-top:1px solid #edf1f5;flex-wrap:wrap}.v78-logo-preview{height:38px;width:38px;flex:0 0 38px;border-radius:50%;background:#eef4fa;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#356287}.v78-logo-preview img{width:100%;height:100%;object-fit:cover}.v78-logo-preview svg{height:24px;width:24px}.v78-logo-info{flex:1;min-width:130px;display:flex;flex-direction:column;gap:2px}.v78-logo-info strong{font-size:12px}.v78-logo-info small{font-size:10px;color:#64748b}.v78-upload{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #d3dfed;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:600;white-space:nowrap}.v78-upload input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.v78-remove{padding:6px 8px!important;font-size:12px!important;min-height:30px!important}.v78-remove:disabled{opacity:.4;cursor:default}@media(max-width:600px){.v78-logo-row{gap:7px}.v78-logo-info{min-width:105px}}

/* 116-v79-copy-page-isolation */
/* V79: toolbar and floating control belong exclusively to number search pages. */
#v69Bar.v79-off-page,#v69Float.v79-off-page{display:none!important;visibility:hidden!important;pointer-events:none!important}
body:has(#v51SearchMain.v51-hide):not(:has(#v6724Recommended:not([hidden]))) #v69Bar,
body:has(#v51SearchMain.v51-hide):not(:has(#v6724Recommended:not([hidden]))) #v69Float,
body:has(#v51SearchMain.v51-hide):not(:has(#v6724Recommended:not([hidden]))) #v73ToolbarSpace{display:none!important}

/* 117-v80-admin-card-colors */
.v80-color-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid rgba(120,140,165,.18)}
.v80-color-row label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#42546d}
.v80-color-row input[type=color]{width:38px;height:27px;padding:2px;border:1px solid #cbd7e6;border-radius:7px;background:white;cursor:pointer}
.v80-color-row .v80-reset{padding:4px 9px;font-size:11px;min-height:27px}
.v80-color-row small{font-size:11px;color:#66788c}
.v77-card{transition:background-color .12s ease}
@media(max-width:600px){.v80-color-row{gap:6px}.v80-color-row small{font-size:10px}}

/* 118-v82-recommended-copy-fix */
/* V82: recommended is a number page, even though the search panel is hidden. */
body:has(#v6724Recommended:not([hidden])) #v69Float.v69-show{display:block!important;visibility:visible!important;pointer-events:auto!important}
body.v69-mode:has(#v6724Recommended:not([hidden])) #v69Bar:not(.v79-off-page){display:flex!important;visibility:visible!important;pointer-events:auto!important}
body.v69-mode #v6724RegularCards .sim > input.v69-check{box-sizing:border-box;z-index:5;visibility:visible!important;opacity:1!important;float:none!important;clear:both!important;transform:none!important}
@media(max-width:850px){
 body.v69-mode #v6724RegularCards .sim > input.v69-check{margin:0 0 -8px 2px!important}
 body.v69-mode #v6724RegularCards .sim .sim-number-line{margin-top:0!important}
}

/* 119-v84-recommended-search-shortcut-style */
/* Show the existing red search shortcut on the recommended page too. */
body:has(#v6724Recommended:not([hidden])) #backToSearch.v51-hide.is-visible{display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}

/* 125-v276-banner-hidden */
#v274RelatedBanner[hidden]{display:none!important}

/* 127-v74-mobile-compact-copy-cards */
/* V74: mobile only. Preserve V73 checkbox in normal flow, but reclaim excess vertical whitespace.
   The checkbox stays visible above the sequence badge; desktop remains unchanged. */
@media (max-width: 850px){
  body.v69-mode #cards .sim > input.v69-check{
    margin:0 0 -9px 2px!important;
  }
  body.v69-mode #cards .sim .sim-number-line{
    margin-top:0!important;
  }
}

/* 128-v85-landscape-phone-number-minus-12-percent */
/* V85: V84 baseline; reduce only phone-number typography on landscape phones. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1000px) and (pointer: coarse) {
  .cards .sim .sim-number-line .number,
  .v6724-recommend .sim .sim-number-line .number {
    font-size: clamp(22px, 5.852vw, 26.4px) !important;
  }
}

/* 129-v86-landscape-copy-toolbar-compact */
/* V86: only touch-screen landscape phones. Keep desktop and portrait unchanged. */
@media (orientation:landscape) and (max-height:600px) and (max-width:1000px) and (pointer:coarse){
  body.v69-mode #v69Bar{
    padding:5px 10px!important;gap:4px!important;border-radius:10px!important;
    flex-direction:column!important;align-items:stretch!important;
  }
  body.v69-mode #v69Bar .v70-top{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:6px!important;min-height:26px!important;width:100%!important;
  }
  body.v69-mode #v69Bar .v70-top strong{
    font-size:12px!important;line-height:1.2!important;margin:0!important;
  }
  body.v69-mode #v69Bar #v69Exit{
    padding:3px 9px!important;font-size:12px!important;line-height:1.3!important;
    min-height:26px!important;width:auto!important;
  }
  body.v69-mode #v69Bar .v70-actions{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;
    align-items:center!important;gap:5px!important;width:100%!important;
    flex:none!important;
  }
  body.v69-mode #v69Bar .v70-actions button{
    font-size:12px!important;line-height:1.2!important;padding:6px 5px!important;
    min-height:32px!important;white-space:nowrap!important;
  }
  body.v69-mode #v69Bar #v75SellerOption{
    grid-column:auto!important;justify-self:end!important;padding:0 2px!important;
    margin:0!important;min-height:26px!important;font-size:11px!important;
    white-space:nowrap!important;
  }
  body.v69-mode #v69Bar #v75IncludeSeller{width:14px!important;height:14px!important;}
}

/* Laravel: ซ่อนแผงทดลองนำเข้าไฟล์ JSON ปุ่มจัดการข้อมูลทดลอง และป้ายข้อมูลสมมติ (ข้อมูลจริงมาจาก DB แล้ว) */
#v654PurchaseImport, .v3133-import, #v51DemoNotice, .admin-demo-nav { display: none !important; }

/* Laravel: ป้าย "ตรง n/m กลุ่ม" (ดูเบอร์มงคลที่คล้ายกัน) ไม่มีตำแหน่งใน grid ของบรรทัดเบอร์
   จึงไปอยู่ช่องแรกของแถวใหม่ ทำให้ช่องเลขลำดับกว้างขึ้นและดันเบอร์ออกห่าง ให้ขึ้นแถวใหม่เต็มความกว้างแทน */
.sim .sim-number-line .v655-match { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; }

/* Laravel: บรรทัดเบอร์ในการ์ด (class ts-nl / ts-stack ใส่โดย front-number-layout.js)
   ต้นแบบจัดหลายแบบตามความกว้างจอ เมื่อซูมเข้า เบอร์ถูกป้ายทับหรือถูกดันลงแถวล่างแยกจากเลขลำดับ
   ts-nl: เลขลำดับ | เบอร์ | ป้าย แถวเดียว · ts-stack (เบอร์ล้นช่อง): ยกป้ายขึ้นชิดขอบบนขวา เลขลำดับกับเบอร์อยู่แถวถัดไปด้วยกัน */
.sim .sim-number-line.ts-nl { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-rows: auto !important; align-items: center !important; column-gap: 10px !important; row-gap: 6px !important; position: relative !important; padding-top: 0 !important; margin-top: 0 !important; min-height: 0 !important; }
.sim .sim-number-line.ts-nl .result-sequence { position: static !important; grid-column: 1 !important; grid-row: 1 !important; align-self: center !important; justify-self: start !important; margin: 0 !important; }
.sim .sim-number-line.ts-nl .number { position: static !important; grid-column: 2 !important; grid-row: 1 !important; align-self: center !important; min-width: 0 !important; margin: 0 !important; white-space: nowrap !important; }
.sim .sim-number-line.ts-nl .v65-right-meta { position: static !important; grid-column: 3 !important; grid-row: 1 !important; align-self: center !important; justify-self: end !important; margin: 0 !important; }
.sim .sim-number-line.ts-nl.ts-stack .v65-right-meta { grid-column: 1 / -1 !important; grid-row: 1 !important; }
.sim .sim-number-line.ts-nl.ts-stack .result-sequence { grid-row: 2 !important; }
.sim .sim-number-line.ts-nl.ts-stack .number { grid-column: 2 / -1 !important; grid-row: 2 !important; }
