.wch-app{--bg:#06070b;--card:rgba(255,255,255,.08);--card2:rgba(255,255,255,.045);--line:rgba(255,255,255,.16);--text:#f8f8fb;--muted:rgba(248,248,251,.74);--accent:#9ef5ff;--accent2:#d9b3ff;--hot:#fff1a3;max-width:1280px;margin:0 auto;padding:32px 16px;color:var(--text);background:radial-gradient(circle at 15% 0%,rgba(158,245,255,.12),transparent 30%),radial-gradient(circle at 90% 10%,rgba(217,179,255,.10),transparent 26%),#06070b;border-radius:28px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wch-app *{box-sizing:border-box}.wch-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 285px;gap:24px;align-items:stretch;margin-bottom:22px;padding:36px;border:1px solid var(--line);border-radius:34px;background:radial-gradient(circle at 18% 10%,rgba(158,245,255,.25),transparent 30%),radial-gradient(circle at 85% 30%,rgba(217,179,255,.24),transparent 24%),linear-gradient(135deg,#121522,#06070b);box-shadow:0 24px 85px rgba(0,0,0,.28)}.wch-orb{position:absolute;border-radius:999px;filter:blur(20px);opacity:.65}.wch-orb-a{width:180px;height:180px;background:rgba(158,245,255,.22);left:-50px;bottom:-60px}.wch-orb-b{width:220px;height:220px;background:rgba(217,179,255,.18);right:-75px;top:-80px}.wch-hero>*:not(.wch-orb){position:relative}.wch-kicker{text-transform:uppercase;letter-spacing:.18em;color:var(--accent);font-size:12px;font-weight:900;margin:0 0 12px}.wch-hero h1{font-size:clamp(42px,6vw,78px);line-height:.92;margin:0 0 18px;letter-spacing:-.07em}.wch-subtitle{font-size:18px;line-height:1.55;color:var(--muted);max-width:760px;margin:0}.wch-hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.wch-hero-tags span{border:1px solid var(--line);border-radius:999px;padding:7px 11px;background:rgba(255,255,255,.06);font-size:12px;color:var(--muted)}.wch-hero-card{border:1px solid var(--line);border-radius:26px;padding:22px;background:rgba(255,255,255,.075);display:flex;flex-direction:column;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.wch-hero-card span,.wch-hero-card small{color:var(--muted)}.wch-hero-card strong{font-size:56px;letter-spacing:-.065em;margin:5px 0;background:linear-gradient(135deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}.wch-input-panel,.wch-compare-panel,.wch-card,.wch-submit-box,.wch-summary,.wch-tabs{border:1px solid var(--line);background:linear-gradient(180deg,var(--card),var(--card2));border-radius:24px;padding:20px;margin-bottom:18px;backdrop-filter:blur(14px);box-shadow:0 16px 45px rgba(0,0,0,.16)}.wch-input-panel label{display:block;font-weight:900;margin-bottom:10px}.wch-input-row{display:grid;grid-template-columns:1fr 150px;gap:12px}.wch-submit-row{display:grid;grid-template-columns:1fr 170px;gap:10px}.wch-app textarea,.wch-app input,.wch-app select{width:100%;background:rgba(0,0,0,.30);border:1px solid var(--line);border-radius:18px;color:var(--text);padding:15px 16px;font-size:16px;outline:none}.wch-app textarea:focus,.wch-app input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(158,245,255,.12)}.wch-app button{border:0;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#101018;font-weight:950;padding:13px 16px;cursor:pointer;transition:transform .18s ease,filter .18s ease,border-color .18s ease}.wch-app button:hover{transform:translateY(-1px);filter:brightness(1.05)}.wch-tools-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.wch-tools-row button,.wch-card-head button,.wch-mini-head button,.wch-history button,.wch-match button,.wch-tabs button{background:rgba(255,255,255,.10);border:1px solid var(--line);color:var(--text)}.wch-status{min-height:20px;color:var(--accent);font-weight:850;margin:4px 0 14px}.wch-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wch-summary[hidden]{display:none}.wch-summary div{padding:15px;border:1px solid var(--line);border-radius:18px;background:rgba(0,0,0,.18)}.wch-summary span{display:block;color:var(--muted);font-size:12px}.wch-summary strong{display:block;font-size:28px;margin-top:4px;letter-spacing:-.04em}.wch-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:10px}.wch-tabs button{border-radius:999px;padding:10px 14px}.wch-tabs button.active{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#101018}.wch-tab-panel{display:none}.wch-tab-panel.active{display:block}.wch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wch-wide{grid-column:1/-1}.wch-card h2,.wch-mini-head h2,.wch-submit-box h2{margin:0 0 14px;font-size:20px;letter-spacing:-.02em}.wch-card-head,.wch-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.wch-card-head>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.wch-card-head span{color:var(--muted);font-weight:800}.wch-filter{max-width:190px;padding:10px 12px!important;border-radius:999px!important;font-size:13px!important}.wch-card-sub{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.35}.wch-results-primary{border-color:rgba(158,245,255,.22);box-shadow:0 0 0 1px rgba(158,245,255,.06),0 16px 45px rgba(0,0,0,.20)}.wch-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wch-result{display:block;text-align:left;padding:14px;border:1px solid var(--line)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.055))!important;color:var(--text)!important;min-height:96px}.wch-result span{display:block;color:var(--muted);font-size:12px;line-height:1.2}.wch-result strong{display:block;font-size:27px;margin-top:5px}.wch-result em{display:block;font-style:normal;color:var(--muted);font-size:11px;min-height:14px}.wch-result.repeating-digits strong,.wch-result.famous-number strong,.wch-result.master-number strong,.wch-result.prime strong,.wch-result.palindrome strong{color:var(--accent)}.wch-result.active{border-color:var(--hot)!important;box-shadow:0 0 0 4px rgba(255,241,163,.12)}.wch-breakdown{display:grid;gap:8px;max-height:520px;overflow:auto;padding-right:4px}.wch-letter{display:grid;grid-template-columns:54px 1fr;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.16)}.wch-letter b{font-size:20px}.wch-letter span{color:var(--muted);font-size:13px}.wch-pill-list{display:flex;gap:8px;flex-wrap:wrap}.wch-pill{border:1px solid var(--line);background:rgba(0,0,0,.18);border-radius:18px;padding:10px 12px;color:var(--text);font-size:13px;max-width:100%;overflow-wrap:anywhere}.wch-pill b,.wch-pill small{display:block}.wch-pill small{color:var(--muted);margin-top:3px}.wch-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wch-code-item{border:1px solid var(--line);border-radius:16px;padding:14px;background:rgba(0,0,0,.18);overflow:hidden}.wch-code-item b{display:block;margin-bottom:8px}.wch-code-item code{white-space:normal;overflow-wrap:anywhere;color:var(--accent)}.wch-matches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.wch-match{border:1px solid var(--line);border-radius:16px;padding:12px;background:rgba(0,0,0,.18)}.wch-match b{display:block}.wch-match small{display:block;color:var(--muted);margin:5px 0 8px}.wch-match button{padding:8px 10px;border-radius:12px}.wch-compare-list{display:flex;gap:10px;flex-wrap:wrap}.wch-compare-item{padding:12px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--line);min-width:220px;max-width:380px}.wch-compare-item b,.wch-compare-item small,.wch-compare-item em{display:block}.wch-compare-item small,.wch-compare-item em{color:var(--muted);margin-top:5px;font-style:normal}.wch-history,.wch-number-pages{display:flex;gap:8px;flex-wrap:wrap}.wch-history button,.wch-number-pages a{border-radius:999px;padding:9px 12px;border:1px solid var(--line);background:rgba(255,255,255,.1);color:var(--text);text-decoration:none;font-weight:850}.wch-submit-box[hidden]{display:none!important}.wch-submit-box p{color:var(--muted);margin-top:-6px}.wch-seo-wrap{background:#06070b;min-height:70vh}.wch-seo-hero{max-width:1200px;margin:0 auto;padding:42px 16px 0;color:#fff}.wch-seo-hero p{color:rgba(255,255,255,.7)}.wch-seo-hero h1{font-size:clamp(42px,7vw,86px);letter-spacing:-.07em;margin:0}@media(max-width:980px){.wch-results{grid-template-columns:repeat(3,minmax(0,1fr))}.wch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:840px){.wch-hero,.wch-input-row,.wch-submit-row{grid-template-columns:1fr}.wch-grid,.wch-code-grid,.wch-matches{grid-template-columns:1fr}.wch-hero{padding:24px}.wch-hero-card strong{font-size:42px}}@media(max-width:560px){.wch-results{grid-template-columns:1fr 1fr}.wch-app{padding:20px 10px}.wch-hero h1{font-size:42px}.wch-summary{grid-template-columns:1fr}.wch-card-head,.wch-mini-head{align-items:flex-start;flex-direction:column}.wch-result strong{font-size:23px}.wch-tabs{position:sticky;top:0;z-index:5;border-radius:0;margin-left:-10px;margin-right:-10px;overflow:auto;flex-wrap:nowrap}.wch-tabs button{white-space:nowrap}}@media(max-width:390px){.wch-results{grid-template-columns:1fr}}
.wch-score-box{min-height:160px;display:flex;align-items:center;justify-content:center}.wch-score{text-align:center}.wch-score strong{display:block;font-size:82px;line-height:.9;letter-spacing:-.08em;background:linear-gradient(135deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}.wch-score span{display:block;font-weight:950;margin-top:8px}.wch-score small{display:block;color:var(--muted);margin-top:4px}.wch-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wch-family{border:1px solid var(--line);border-radius:18px;padding:14px;background:rgba(0,0,0,.18)}.wch-family h3{margin:0 0 4px;font-size:16px}.wch-family small{color:var(--muted)}.wch-family div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.wch-family span{display:flex;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:13px;padding:8px 9px;background:rgba(255,255,255,.05);font-size:12px}.wch-family em{font-style:normal;color:var(--accent);font-weight:950}.wch-notes p{margin:0 0 10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.18);color:var(--muted)}@media(max-width:840px){.wch-family-grid,.wch-family div{grid-template-columns:1fr}}

/* V6 discovery, graph and collection upgrades */
.wch-graph{min-height:360px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.015));overflow:hidden;padding:10px}
.wch-graph svg{width:100%;height:auto;display:block}
.wch-graph line{stroke:rgba(120,160,255,.28);stroke-width:1.4}
.wch-graph circle{fill:rgba(255,255,255,.08);stroke:rgba(255,255,255,.26);stroke-width:1.5}
.wch-graph g.main circle{fill:rgba(120,160,255,.22);stroke:rgba(160,190,255,.65)}
.wch-graph g.match circle{fill:rgba(80,220,180,.16);stroke:rgba(100,240,200,.5)}
.wch-graph text{font-size:11px;fill:rgba(255,255,255,.82);text-anchor:middle;pointer-events:none}
.wch-match button[data-vote]{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:inherit;border-radius:999px;padding:8px 12px;margin-left:8px;cursor:pointer}
.wch-match button[data-vote]:hover{background:rgba(255,255,255,.14)}
.wch-pill[href]{text-decoration:none;color:inherit;display:block}
.wch-submit-row input[type=number]{width:100%;min-height:52px;border-radius:16px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:inherit;padding:0 16px;font-size:18px}

/* V8 match engine and meaning-first result layer */
.wch-meaning-card{border-color:rgba(158,245,255,.24);background:radial-gradient(circle at 8% 0%,rgba(158,245,255,.16),transparent 30%),linear-gradient(180deg,var(--card),var(--card2))}
.wch-quick-take{margin-bottom:14px;padding:14px 16px;border:1px solid rgba(158,245,255,.22);border-radius:18px;background:rgba(158,245,255,.08);color:var(--text);font-weight:850;line-height:1.45}
.wch-quick-take p{margin:0;color:var(--text)}
.wch-match-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wch-match-group{border:1px solid var(--line);border-radius:20px;background:rgba(0,0,0,.18);padding:14px;overflow:hidden}
.wch-match-group header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.wch-match-group header strong{display:block;font-size:17px;letter-spacing:-.02em;color:var(--text)}
.wch-match-group header small{display:block;color:var(--muted);margin-top:3px}
.wch-match-group header a{color:#101018;text-decoration:none;background:linear-gradient(135deg,var(--accent),var(--accent2));border-radius:999px;padding:7px 10px;font-size:12px;font-weight:950;white-space:nowrap}
.wch-match-flags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.wch-match-flags span{border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:5px 8px;background:rgba(255,255,255,.08);font-size:11px;color:var(--accent)}
.wch-meaning-list{display:grid;gap:8px;max-height:420px;overflow:auto;padding-right:3px}
.wch-meaning-list.is-compact{max-height:260px}
.wch-meaning-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.045)}
.wch-meaning-row b{font-size:14px;color:var(--text);overflow-wrap:anywhere}
.wch-meaning-row small{display:block;color:var(--muted);font-size:11px;grid-column:1/2;margin-top:2px}
.wch-meaning-row button{padding:7px 9px!important;border-radius:999px!important;font-size:11px!important;background:rgba(255,255,255,.10)!important;color:var(--text)!important;border:1px solid var(--line)!important}
.wch-load-number{margin-top:10px;width:100%;background:rgba(255,255,255,.10)!important;color:var(--text)!important;border:1px solid var(--line)!important}
@media(max-width:840px){.wch-match-groups{grid-template-columns:1fr}.wch-meaning-row{grid-template-columns:1fr}.wch-meaning-row small{grid-column:auto}}

.wch-app h1,.wch-app h2,.wch-app h3,.wch-app p,.wch-app label{color:var(--text)}
.wch-app .wch-hero h1{color:var(--text)}
.wch-app .wch-card,.wch-app .wch-input-panel,.wch-app .wch-summary,.wch-app .wch-tabs{color:var(--text)}
.wch-app .wch-card a{color:var(--accent)}

/* === V8 FINAL UI POLISH: high contrast research interface === */
.wch-app{
  --bg:#070912;
  --panel:#101522;
  --panel2:#151b2b;
  --tile:#1b2234;
  --tile2:#20283c;
  --line:rgba(158,245,255,.18);
  --text:#f7fbff;
  --muted:#aeb8c9;
  --accent:#8deeff;
  --accent2:#cfa7ff;
  --hot:#ffe28a;
  max-width:100% !important;
  width:100% !important;
  margin:0 !important;
  padding:34px 24px 52px !important;
  background:
    radial-gradient(circle at 8% 5%,rgba(141,238,255,.18),transparent 25%),
    radial-gradient(circle at 92% 3%,rgba(207,167,255,.16),transparent 25%),
    linear-gradient(180deg,#080a13 0%,#0a0d17 55%,#070912 100%) !important;
  color:var(--text) !important;
  border-radius:0 !important;
}
.wch-app h1,.wch-app h2,.wch-app h3,.wch-app p,.wch-app label,.wch-app span,.wch-app small,.wch-app b,.wch-app strong,.wch-app em{color:inherit;}
.wch-hero{
  max-width:1380px;
  margin:0 auto 22px !important;
  border-color:rgba(141,238,255,.22) !important;
  background:
    radial-gradient(circle at 16% 10%,rgba(141,238,255,.22),transparent 28%),
    radial-gradient(circle at 86% 18%,rgba(207,167,255,.22),transparent 27%),
    linear-gradient(135deg,#151b2b 0%,#090b12 72%) !important;
}
.wch-hero h1{
  color:#fff !important;
  text-shadow:0 1px 0 rgba(255,255,255,.08),0 18px 60px rgba(0,0,0,.5);
  opacity:1 !important;
}
.wch-kicker{color:var(--accent) !important;}
.wch-subtitle,.wch-hero-card span,.wch-hero-card small,.wch-hero-tags span{color:var(--muted) !important;}
.wch-input-panel,.wch-compare-panel,.wch-card,.wch-submit-box,.wch-summary,.wch-tabs{
  max-width:1380px;
  margin-left:auto !important;
  margin-right:auto !important;
  background:linear-gradient(180deg,rgba(18,24,39,.98),rgba(12,16,27,.98)) !important;
  border:1px solid rgba(141,238,255,.18) !important;
  box-shadow:0 18px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04) !important;
  color:var(--text) !important;
}
.wch-input-panel label,.wch-card h2,.wch-mini-head h2,.wch-submit-box h2{
  color:#ffffff !important;
  font-weight:900 !important;
}
.wch-card h2::after,.wch-mini-head h2::after,.wch-submit-box h2::after{
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
}
.wch-app textarea,.wch-app input,.wch-app select{
  background:#0e1320 !important;
  border:1px solid rgba(141,238,255,.22) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.wch-app textarea::placeholder,.wch-app input::placeholder{color:#7f8aa0 !important;}
.wch-app button{
  color:#07101a !important;
  box-shadow:0 10px 24px rgba(141,238,255,.16) !important;
}
.wch-tools-row button,.wch-card-head button,.wch-mini-head button,.wch-history button,.wch-match button,.wch-tabs button{
  background:#161d2d !important;
  border:1px solid rgba(141,238,255,.18) !important;
  color:#eaf7ff !important;
  box-shadow:none !important;
}
.wch-tabs{position:sticky;top:0;z-index:20;backdrop-filter:blur(16px);}
.wch-tabs button.active,.wch-tabs button:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color:#07101a !important;
}
.wch-status{
  max-width:1380px;
  margin-left:auto !important;
  margin-right:auto !important;
  color:var(--accent) !important;
}
.wch-summary div{
  background:linear-gradient(180deg,#1a2133,#141b2b) !important;
  border:1px solid rgba(141,238,255,.16) !important;
}
.wch-summary span,.wch-card-sub,.wch-result span,.wch-result em,.wch-letter span,.wch-pill small,.wch-match small,.wch-code-item code,.wch-compare-item small,.wch-compare-item em{color:var(--muted) !important;}
.wch-summary strong{
  color:#fff !important;
  font-size:32px !important;
}
.wch-results-primary{border-color:rgba(141,238,255,.28) !important;}
.wch-results{
  gap:14px !important;
}
.wch-result{
  min-height:112px !important;
  background:linear-gradient(180deg,#1b2234,#141b29) !important;
  border:1px solid rgba(141,238,255,.14) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.045) !important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease !important;
}
.wch-result:hover{
  transform:translateY(-2px);
  border-color:rgba(141,238,255,.36) !important;
  box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 1px rgba(141,238,255,.08) !important;
}
.wch-result strong{
  color:#ffffff !important;
  font-size:31px !important;
  line-height:1.05 !important;
  letter-spacing:-.04em !important;
}
.wch-result.repeating-digits strong,.wch-result.famous-number strong,.wch-result.master-number strong,.wch-result.prime strong,.wch-result.palindrome strong{
  color:var(--accent) !important;
  text-shadow:0 0 18px rgba(141,238,255,.28) !important;
}
.wch-result.master-number{border-color:rgba(255,226,138,.38) !important;}
.wch-result.master-number strong{color:var(--hot) !important;text-shadow:0 0 18px rgba(255,226,138,.25) !important;}
.wch-result.active{
  border-color:var(--hot)!important;
  box-shadow:0 0 0 3px rgba(255,226,138,.16),0 16px 40px rgba(0,0,0,.30) !important;
}
.wch-pill,.wch-letter,.wch-code-item,.wch-match,.wch-compare-item,.wch-family{
  background:linear-gradient(180deg,#1b2234,#141b29) !important;
  border:1px solid rgba(141,238,255,.14) !important;
  color:#f7fbff !important;
}
.wch-pill b,.wch-match b,.wch-code-item b,.wch-letter b{color:#fff !important;}
.wch-wide .wch-pill:first-child,
.wch-card .wch-pill-list .wch-pill:first-child{
  border-color:rgba(141,238,255,.38) !important;
}
.wch-filter{background:#151b29 !important;color:#fff !important;}
.wch-matches .wch-match{border-left:4px solid var(--accent) !important;}
.wch-match button{margin-right:6px;margin-top:4px;}
.wch-breakdown{scrollbar-color:rgba(141,238,255,.45) rgba(255,255,255,.05);}
.wch-code-item code{color:var(--accent) !important;}
.wch-number-pages a,.wch-history button{
  background:#161d2d !important;
  color:#eaf7ff !important;
}
.wch-app .wch-empty,.wch-app p:empty{display:none !important;}
/* Make blank/low-data panels less visually broken */
.wch-card:has(.wch-matches:empty),.wch-card:has(.wch-pill-list:empty){min-height:160px;}
.wch-card p{color:var(--muted) !important;}
@media(max-width:980px){.wch-app{padding:24px 14px 42px !important}.wch-hero{grid-template-columns:1fr !important}.wch-results{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media(max-width:560px){.wch-app{padding:18px 10px 36px !important}.wch-results{grid-template-columns:1fr !important}.wch-input-row{grid-template-columns:1fr !important}.wch-hero h1{font-size:42px !important}.wch-result{min-height:96px !important}.wch-result strong{font-size:28px !important}}


/* === V8.2 FINAL CONTAINMENT + EQUAL COLUMN POLISH === */
html:has(.wch-app),
body:has(.wch-app){
  overflow-x:hidden !important;
}
.wch-app{
  width:100% !important;
  max-width:100vw !important;
  overflow-x:hidden !important;
  isolation:isolate;
}
.wch-app,
.wch-app *{
  box-sizing:border-box !important;
}
.wch-app *{
  min-width:0 !important;
}
.wch-hero,
.wch-input-panel,
.wch-compare-panel,
.wch-card,
.wch-submit-box,
.wch-summary,
.wch-tabs,
.wch-status,
.wch-grid{
  width:100% !important;
  max-width:1380px !important;
}
.wch-grid{
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:18px !important;
  align-items:stretch !important;
}
.wch-grid > .wch-card,
.wch-grid > .wch-mini,
.wch-grid > *{
  width:100% !important;
  max-width:100% !important;
}
.wch-grid .wch-card{
  height:100%;
}
.wch-breakdown,
.wch-pill-list,
.wch-matches,
.wch-code-grid,
.wch-results,
.wch-summary{
  max-width:100% !important;
  overflow-x:hidden !important;
}
.wch-card-head,
.wch-mini-head{
  min-width:0 !important;
}
.wch-card-head > div,
.wch-mini-head > div{
  min-width:0 !important;
}
.wch-filter{
  max-width:220px !important;
}
.wch-tabs{
  overflow-x:auto !important;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.wch-tabs button{
  flex:0 0 auto;
}
.wch-result,
.wch-letter,
.wch-pill,
.wch-meaning-row,
.wch-code-item,
.wch-match,
.wch-compare-item{
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}
.wch-letter{
  grid-template-columns:minmax(34px,54px) minmax(0,1fr) !important;
}
.wch-mini-head h2,
.wch-card h2{
  overflow-wrap:anywhere !important;
}
@media(max-width:840px){
  .wch-grid{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:560px){
  .wch-app{
    max-width:100% !important;
  }
  .wch-tabs{
    margin-left:0 !important;
    margin-right:0 !important;
    border-radius:18px !important;
  }
  .wch-hero,
  .wch-input-panel,
  .wch-compare-panel,
  .wch-card,
  .wch-submit-box,
  .wch-summary,
  .wch-tabs{
    max-width:100% !important;
  }
}


/* === V8.3 CLEAN LAUNCH HERO === */
.wch-app .wch-hero{
  grid-template-columns:1fr !important;
}
.wch-app .wch-hero-card{
  display:none !important;
}
.wch-app .wch-hero-main{
  max-width:1120px;
}
.wch-app .wch-hero h1{
  max-width:980px;
}
.wch-app .wch-subtitle{
  max-width:960px;
}


/* V8.4 compact single-line search bar */
.wch-input-row{
  grid-template-columns: minmax(0,1fr) 170px !important;
  align-items: stretch !important;
}
.wch-app #wch-main-input{
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  resize: none !important;
  line-height: 1.25 !important;
  overflow-y: hidden !important;
  display: block !important;
  padding: 20px 22px !important;
  white-space: nowrap !important;
}
.wch-app #wch-calc-btn{
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  align-self: stretch !important;
  padding: 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
}
@media(max-width:840px){
  .wch-input-row{grid-template-columns:1fr !important;}
  .wch-app #wch-main-input,
  .wch-app #wch-calc-btn{
    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;
  }
}

/* V8.9 graph readability upgrade */
.wch-graph-explain{
  margin:14px 0 18px;
  padding:14px 16px;
  border:1px solid rgba(141,225,255,.22);
  border-radius:16px;
  background:rgba(141,225,255,.06);
  color:rgba(255,255,255,.86);
  line-height:1.45;
}
.wch-graph{
  min-height:520px !important;
  padding:18px !important;
  overflow:hidden !important;
}
.wch-graph-key{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
  margin:0 0 12px;
  color:rgba(255,255,255,.78);
  font-size:13px;
}
.wch-graph-key span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.wch-graph-key b{display:inline-block;width:12px;height:12px;border-radius:999px;border:1px solid rgba(255,255,255,.35)}
.wch-graph-key .main-dot{background:rgba(120,160,255,.55);border-color:rgba(170,195,255,.9)}
.wch-graph-key .num-dot{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.4)}
.wch-graph-key .match-dot{background:rgba(80,220,180,.34);border-color:rgba(100,240,200,.78)}
.wch-graph svg{width:100%;height:auto;min-height:520px;display:block;background:radial-gradient(circle at 50% 50%,rgba(141,225,255,.05),transparent 45%)}
.wch-graph line{stroke:rgba(130,165,255,.42) !important;stroke-width:2 !important}
.wch-graph circle{filter:drop-shadow(0 0 14px rgba(141,225,255,.10))}
.wch-graph g.main circle{fill:rgba(120,160,255,.32) !important;stroke:rgba(170,195,255,.95) !important;stroke-width:2.5 !important}
.wch-graph g.num circle{fill:rgba(255,255,255,.09) !important;stroke:rgba(255,255,255,.34) !important;stroke-width:2 !important}
.wch-graph g.match circle{fill:rgba(80,220,180,.22) !important;stroke:rgba(100,240,200,.75) !important;stroke-width:2.2 !important}
.wch-graph text{font-family:inherit;paint-order:stroke;stroke:rgba(8,12,22,.82);stroke-width:4px;stroke-linejoin:round;text-anchor:middle;pointer-events:none}
.wch-graph .wch-node-label{font-size:16px !important;font-weight:800;fill:rgba(255,255,255,.94) !important}
.wch-graph .main .wch-node-label{font-size:18px !important;fill:#fff !important}
.wch-graph .match .wch-node-label{font-size:13px !important;fill:rgba(210,255,245,.96) !important}
.wch-graph .wch-node-sub{font-size:10px !important;font-weight:700;letter-spacing:.04em;text-transform:uppercase;fill:rgba(255,255,255,.55) !important;stroke-width:3px}
.wch-graph .wch-edge-label{font-size:10px !important;font-weight:700;fill:rgba(141,225,255,.58) !important;stroke-width:3px}
.wch-graph-note{margin:14px 0 0;color:rgba(255,255,255,.72);font-size:14px;line-height:1.45}
.wch-graph-empty{color:rgba(255,255,255,.68);padding:28px;text-align:center}
@media (max-width:760px){
  .wch-graph{min-height:420px !important;padding:12px !important;overflow:auto !important}
  .wch-graph svg{min-width:760px;min-height:380px}
  .wch-graph-key{font-size:12px}
}


/* V8.11 graph label readability */
.wch-edge-label{
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
  paint-order:stroke fill!important;
  stroke:rgba(8,12,22,.88)!important;
  stroke-width:5px!important;
  stroke-linejoin:round!important;
  opacity:.9!important;
}
.wch-graph svg .main .wch-node-label{font-size:18px!important;}
.wch-graph svg .main .wch-node-sub{font-size:10px!important;}


/* V8.12 graph label boxes: make cipher labels readable and stop characters/lines overlapping */
.wch-graph .wch-edge-label{display:none!important;}
.wch-graph .wch-edge-label-pill rect{
  fill:rgba(8,16,31,.92)!important;
  stroke:rgba(141,225,255,.38)!important;
  stroke-width:1.2px!important;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.42));
}
.wch-graph .wch-edge-label-text{
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.015em!important;
  fill:rgba(141,225,255,.92)!important;
  stroke:none!important;
  paint-order:normal!important;
  text-shadow:none!important;
  pointer-events:none;
}
.wch-graph .wch-node-label,
.wch-graph .wch-node-sub{
  paint-order:stroke fill;
  stroke:rgba(5,10,20,.92)!important;
  stroke-width:4px!important;
  stroke-linejoin:round!important;
}
.wch-graph .wch-node-sub{stroke-width:3px!important;}

/* V8.13 clean graph: remove edge label clutter and keep graph readable */
.wch-edge-label-pill,
.wch-edge-label-text { display: none !important; }
.wch-graph svg .wch-graph-edge line { opacity: .72; stroke-width: 2; }
.wch-graph svg .main .wch-node-label { font-size: 21px; }
.wch-graph svg .num .wch-node-label { font-size: 20px; }
.wch-graph svg .match .wch-node-label { font-size: 15px; }
.wch-graph svg .wch-node-sub { font-size: 10px; letter-spacing: .08em; opacity: .78; }

/* V8.14 even graph layout: clean radial segments and value labels */
.wch-graph svg{min-height:620px!important;}
.wch-graph svg .num circle{stroke-width:2.2px!important;}
.wch-graph svg .num .wch-node-label{font-size:19px!important;font-weight:900!important;}
.wch-graph svg .num .wch-node-sub{font-size:9px!important;font-weight:800!important;letter-spacing:.09em!important;opacity:.7!important;}
.wch-graph svg .wch-node-detail{font-size:8.5px!important;font-weight:800!important;fill:rgba(141,225,255,.86)!important;stroke:rgba(5,10,20,.94)!important;stroke-width:3px!important;paint-order:stroke fill;text-anchor:middle;letter-spacing:.015em;}
.wch-graph svg .match .wch-node-label{font-size:14px!important;}
.wch-graph svg .match .wch-node-sub{font-size:9px!important;}
.wch-graph svg .main .wch-node-label{font-size:20px!important;}
.wch-graph svg .main .wch-node-sub{font-size:9px!important;}
.wch-graph svg .wch-graph-edge line{opacity:.58!important;stroke-width:1.8!important;}
@media (max-width: 780px){
  .wch-graph svg{min-width:860px!important;min-height:460px!important;}
}


/* V8.15 rectangular graph nodes: centre phrase remains a circle, values and database matches use readable boxes */
.wch-graph svg .num rect,
.wch-graph svg .match rect{
  filter:drop-shadow(0 0 14px rgba(141,225,255,.10));
  stroke-width:2.1px!important;
}
.wch-graph svg .num rect{
  fill:rgba(255,255,255,.075)!important;
  stroke:rgba(160,190,255,.38)!important;
}
.wch-graph svg .match rect{
  fill:rgba(80,220,180,.16)!important;
  stroke:rgba(100,240,200,.64)!important;
}
.wch-graph svg .num .wch-node-label{font-size:22px!important;font-weight:900!important;}
.wch-graph svg .match .wch-node-label{font-size:15.5px!important;font-weight:850!important;}
.wch-graph svg .num .wch-node-sub,
.wch-graph svg .match .wch-node-sub{font-size:10px!important;font-weight:850!important;letter-spacing:.075em!important;}
.wch-graph svg .wch-node-detail{font-size:9.25px!important;font-weight:850!important;}
.wch-graph svg .main .wch-node-label{font-size:21px!important;}
.wch-graph svg .main .wch-node-sub{font-size:9.5px!important;}

/* V10 category grouping for same-value database matches */
.wch-category-bucket{margin:12px 0 14px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025)}
.wch-category-bucket h4{margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8de1ff;font-weight:800}
.wch-tag{display:inline-flex;align-items:center;padding:3px 8px;margin-right:6px;border-radius:999px;background:rgba(141,225,255,.11);border:1px solid rgba(141,225,255,.22);color:#bfefff;font-size:11px;font-weight:700}

/* V11 intelligence layer */
.wch-strongest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.wch-strong-card{border:1px solid rgba(141,225,255,.14);border-radius:18px;padding:15px;background:linear-gradient(135deg,rgba(141,225,255,.08),rgba(255,255,255,.025));box-shadow:0 12px 28px rgba(0,0,0,.18)}
.wch-strong-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.wch-strong-card header b{display:block;color:#fff;font-size:15px;line-height:1.25}
.wch-strong-card header small{display:block;color:rgba(255,255,255,.62);font-size:12px;margin-top:3px}
.wch-rank-score{min-width:42px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(141,225,255,.13);border:1px solid rgba(141,225,255,.28);color:#8de1ff;font-size:14px}
.wch-strong-card ul{list-style:none;margin:10px 0 12px;padding:0;display:grid;gap:7px}
.wch-strong-card li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border-radius:12px;background:rgba(0,0,0,.18)}
.wch-strong-card li button{all:unset;cursor:pointer;color:#fff;font-weight:750;font-size:13px;line-height:1.2;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wch-strong-card li small{color:rgba(255,255,255,.58);font-size:11px;white-space:nowrap}
.wch-strong-card>a{display:inline-flex;color:#8de1ff;text-decoration:none;font-weight:800;font-size:12px}
.wch-filter-stack{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.wch-filter-stack .wch-filter{min-width:170px}
@media(max-width:980px){.wch-strongest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.wch-strongest-grid{grid-template-columns:1fr}.wch-filter-stack{justify-content:stretch}.wch-filter-stack .wch-filter{width:100%}}

/* V11.2 clean match/results refinement */
.wch-match-group{overflow:hidden}
.wch-category-bucket{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.wch-category-bucket h4{display:none!important}
.wch-flat-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.wch-meaning-row{grid-template-columns:1fr auto auto!important;background:rgba(255,255,255,.06)!important;border-color:rgba(158,245,255,.14)!important}
.wch-meaning-row small{grid-column:1!important;margin-top:4px!important}
.wch-meaning-row .wch-tag{font-size:11px!important;color:#9ef5ff!important;background:rgba(158,245,255,.10)!important;border:1px solid rgba(158,245,255,.22)!important;border-radius:999px!important;padding:4px 8px!important;display:inline-flex!important}
.wch-strongest-section{margin-top:18px!important;border-color:rgba(158,245,255,.24)!important;background:linear-gradient(180deg,rgba(14,25,42,.92),rgba(7,11,20,.92))!important}
.wch-strongest-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.wch-strong-card{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035))!important;border:1px solid rgba(158,245,255,.22)!important;border-radius:20px!important;padding:18px!important;box-shadow:0 16px 35px rgba(0,0,0,.24)!important}
.wch-strong-card header b{font-size:17px!important;color:#fff!important}
.wch-strong-card header small{font-size:13px!important;color:rgba(255,255,255,.72)!important}
.wch-rank-score{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(158,245,255,.14);border:1px solid rgba(158,245,255,.35);color:#fff;font-size:15px!important}
.wch-strong-card ul{display:grid!important;gap:8px!important;margin:12px 0!important}
.wch-strong-card li{background:rgba(0,0,0,.22)!important;border:1px solid rgba(255,255,255,.08)!important}
.wch-strong-card li button{color:#f8f8fb!important;max-width:75%!important}
.wch-strong-card li small{color:#9ef5ff!important}
@media(max-width:820px){.wch-strongest-grid{grid-template-columns:1fr!important}.wch-meaning-row{grid-template-columns:1fr!important}.wch-meaning-row small{grid-column:auto!important}}


/* V11.3 clean result labels: no visible category/source badges on front end */
.wch-tag,.wch-category-label,.wch-match-category,.wch-result-tag,.wch-source-badge,.wch-pack-label{display:none!important}
.wch-row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.wch-meaning-row{grid-template-columns:1fr auto!important;align-items:center!important}
.wch-strong-card li small{display:none!important}

/* V11.4.4 match card sort + clean show-all link */
.wch-match-group header > a[href*="/number/"] { display:none !important; }
.wch-match-sort{
    min-width: 150px;
    border: 1px solid rgba(143,225,255,.28);
    background: rgba(12,18,31,.75);
    color: #eaf7ff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    outline: none;
    box-shadow: 0 0 20px rgba(125,220,255,.08);
}
.wch-match-sort option{background:#101827;color:#eaf7ff;}
.wch-load-number{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100%;
    margin-top:12px;
    min-height:54px;
    border-radius:22px;
    border:1px solid rgba(143,225,255,.22);
    background:rgba(255,255,255,.06);
    color:#9eefff !important;
    text-decoration:none !important;
    font-weight:900;
}
.wch-match-group .wch-meaning-list{max-height:720px; overflow:auto;}


/* V11.4.6 show-all stays in the current match card, not reverse search */
.wch-load-number{cursor:pointer;}
.wch-load-number:disabled{opacity:.8;cursor:default;color:#eaf7ff!important;background:rgba(158,245,255,.10)!important;}
.wch-match-group header > a[href*='/number/'], .wch-match-group header > a[href*="/number/"]{display:none!important;}

/* V11.4.7 compact sort control in same-value cards */
.wch-match-group header{
    align-items:flex-start !important;
}
.wch-match-group header > div{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:58% !important;
}
.wch-match-sort{
    flex:0 0 40% !important;
    width:40% !important;
    max-width:40% !important;
    min-width:140px !important;
    box-sizing:border-box !important;
    padding:10px 14px !important;
}
@media(max-width:720px){
    .wch-match-group header{
        flex-direction:column !important;
        align-items:stretch !important;
    }
    .wch-match-group header > div{
        max-width:100% !important;
        width:100% !important;
    }
    .wch-match-sort{
        width:100% !important;
        max-width:100% !important;
        flex:0 0 auto !important;
    }
}

/* V11.4.8 strongest-connection score labels: rectangular, padded, readable */
.wch-strong-card .wch-rank-score,
.wch-rank-score{
    min-width:auto !important;
    width:auto !important;
    height:auto !important;
    padding:10px 16px !important;
    border-radius:14px !important;
    background:linear-gradient(135deg, rgba(158,245,255,.18), rgba(191,149,255,.14)) !important;
    border:1px solid rgba(158,245,255,.42) !important;
    color:#f7fbff !important;
    font-size:18px !important;
    line-height:1 !important;
    font-weight:950 !important;
    letter-spacing:.01em !important;
    box-shadow:0 10px 24px rgba(0,0,0,.22), inset 0 0 18px rgba(158,245,255,.08) !important;
    white-space:nowrap !important;
}
.wch-strong-card header{
    align-items:flex-start !important;
}
.wch-strong-card header > div{
    min-width:0 !important;
    padding-right:8px !important;
}
@media(max-width:680px){
    .wch-strong-card .wch-rank-score,
    .wch-rank-score{
        padding:8px 13px !important;
        font-size:16px !important;
        border-radius:12px !important;
    }
}


/* V11.5 familiar headline breakdown */
.wch-classic-breakdown{position:relative;overflow:hidden;}
.wch-classic-breakdown .wch-card-head{margin-bottom:16px;}
.wch-classic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;}
.wch-classic-row{min-width:0;padding:16px;border:1px solid rgba(142,225,255,.20);border-radius:18px;background:linear-gradient(135deg,rgba(20,31,52,.92),rgba(10,16,29,.86));box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 40px rgba(0,0,0,.22);}
.wch-classic-title{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:end;line-height:1.1;color:#f7fbff;}
.wch-classic-phrase{grid-column:1/-1;font-size:15px;font-weight:850;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:lowercase;}
.wch-classic-system{font-size:17px;color:rgba(235,242,255,.78);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wch-classic-title b{font-size:28px;color:#8deaff;text-shadow:0 0 16px rgba(141,234,255,.28);line-height:.95;}
.wch-classic-items{display:flex;gap:6px;margin-top:12px;align-items:flex-start;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;}
.wch-break-item,.wch-break-space{min-width:38px;padding:6px 7px;border-radius:11px;background:rgba(7,13,24,.72);border:1px solid rgba(142,225,255,.16);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(0,0,0,.16);}
.wch-break-item i,.wch-break-space i{font-style:normal;font-size:15px;line-height:1;color:#fff;border-bottom:1px solid rgba(255,255,255,.55);min-width:18px;text-align:center;padding-bottom:3px;margin-bottom:3px;}
.wch-break-item b,.wch-break-space b{font-size:16px;line-height:1;color:#dce8ff;}
.wch-break-space{opacity:.62;min-width:48px;}
.wch-break-space i{font-size:10px;text-transform:uppercase;letter-spacing:.06em;}
.wch-classic-row small{display:block;margin-top:8px;color:rgba(235,242,255,.58);font-weight:750;line-height:1.25;}
@media(max-width:1050px){.wch-classic-grid{grid-template-columns:1fr}.wch-classic-title{grid-template-columns:1fr auto}.wch-classic-items{flex-wrap:nowrap}}
@media(max-width:700px){.wch-classic-row{padding:14px}.wch-break-item,.wch-break-space{min-width:34px}.wch-break-item i,.wch-break-space b,.wch-break-item b{font-size:14px}.wch-classic-system{font-size:15px}.wch-classic-title b{font-size:24px}}


/* V11.5.2 Hebrew-first compact breakdown polish */
.wch-classic-breakdown .wch-card-head{align-items:flex-end!important;}
.wch-classic-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.wch-classic-row{display:grid!important;grid-template-columns:minmax(260px,360px) 1fr!important;gap:14px!important;align-items:center!important;padding:14px 16px!important;}
.wch-classic-title{display:flex!important;align-items:baseline!important;gap:6px 10px!important;flex-wrap:wrap!important;}
.wch-classic-phrase{display:block!important;flex:0 0 100%!important;max-width:100%!important;width:100%!important;grid-column:auto!important;font-size:18px!important;line-height:1.12!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;}
.wch-classic-system{font-size:18px!important;color:rgba(235,242,255,.72)!important;}
.wch-classic-title b{font-size:30px!important;margin-left:4px!important;}
.wch-classic-items{margin-top:0!important;display:flex!important;align-items:center!important;gap:5px!important;overflow-x:auto!important;padding-bottom:4px!important;}
.wch-classic-row small{grid-column:1/-1;margin-top:2px!important;}
.wch-break-item,.wch-break-space{min-width:40px!important;padding:6px 8px!important;}
@media(max-width:900px){.wch-classic-row{grid-template-columns:1fr!important}.wch-classic-items{margin-top:8px!important}.wch-classic-title b{font-size:26px!important}}

/* V13 useful analysis tabs */
.wch-core-systems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.wch-core-card,.wch-cluster-card,.wch-signal-row{border:1px solid rgba(142,225,255,.20);border-radius:18px;background:linear-gradient(135deg,rgba(21,34,55,.92),rgba(8,14,25,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 45px rgba(0,0,0,.20);}
.wch-core-card{padding:18px;min-height:150px;}
.wch-core-card header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.wch-core-card header strong{display:block;font-size:18px;color:#fff;line-height:1.1;}
.wch-core-card header small{display:block;margin-top:6px;color:rgba(235,242,255,.62);font-weight:750;line-height:1.25;}
.wch-core-card header b{font-size:34px;color:#8deaff;text-shadow:0 0 20px rgba(141,234,255,.22);line-height:1;}
.wch-core-card p{margin:14px 0 0;color:rgba(235,242,255,.78);font-weight:800;}
.wch-shared-clusters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.wch-cluster-card{padding:15px;min-height:118px;}
.wch-cluster-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.wch-cluster-card header strong{font-size:30px;color:#8deaff;line-height:1;}
.wch-cluster-card header span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:rgba(235,242,255,.68);font-weight:900;}
.wch-cluster-card p{margin:0;color:#fff;font-weight:800;font-size:13px;line-height:1.35;}
.wch-cluster-card small{display:block;margin-top:10px;color:rgba(235,242,255,.6);font-weight:800;}
.wch-signal-strength{display:grid;grid-template-columns:1fr;gap:10px;}
.wch-signal-row{position:relative;display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 16px;overflow:hidden;align-items:center;}
.wch-signal-row div,.wch-signal-row em{position:relative;z-index:2;}
.wch-signal-row strong{font-size:26px;color:#fff;margin-right:12px;}
.wch-signal-row span{color:rgba(235,242,255,.72);font-weight:800;}
.wch-signal-row em{font-style:normal;color:#8deaff;font-size:18px;font-weight:950;}
.wch-signal-row i{position:absolute;left:0;bottom:0;height:4px;background:linear-gradient(90deg,#8deaff,#c59bff);opacity:.9;}
.wch-repetition-matrix{overflow:auto;border-radius:18px;border:1px solid rgba(142,225,255,.18);}
.wch-matrix{width:100%;border-collapse:collapse;font-size:14px;}
.wch-matrix th,.wch-matrix td{padding:12px 14px;border-bottom:1px solid rgba(142,225,255,.10);text-align:left;vertical-align:top;}
.wch-matrix th{color:#8deaff;text-transform:uppercase;letter-spacing:.06em;font-size:12px;background:rgba(141,234,255,.04);}
.wch-matrix td{color:rgba(235,242,255,.78);font-weight:750;}
.wch-matrix td b{font-size:18px;color:#fff;}
@media(max-width:1100px){.wch-core-systems{grid-template-columns:1fr 1fr}.wch-shared-clusters{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.wch-core-systems,.wch-shared-clusters{grid-template-columns:1fr}.wch-signal-row{grid-template-columns:1fr}.wch-matrix{font-size:13px}.wch-matrix th,.wch-matrix td{padding:10px}}


/* V14 useful visual intelligence */
.wch-mini-phrases{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:7px;}
.wch-mini-phrases button{width:100%;text-align:left;border:1px solid rgba(142,225,255,.10);background:rgba(5,10,20,.45);color:#f5fbff;border-radius:12px;padding:8px 10px;font-weight:800;cursor:pointer;}
.wch-cluster-meter{height:7px;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden;margin:0 0 10px;}
.wch-cluster-meter i{display:block;height:100%;background:linear-gradient(90deg,#8deaff,#c59bff);border-radius:inherit;}
.wch-signal-row{padding-bottom:20px;}
.wch-signal-row i{height:7px!important;}
.wch-signal-reasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.wch-signal-reasons span,.wch-density-chip{display:inline-flex;align-items:center;border:1px solid rgba(142,225,255,.20);background:rgba(141,234,255,.08);color:#aef4ff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;line-height:1;}
.wch-number-dna{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.wch-dna-card{border:1px solid rgba(142,225,255,.18);border-radius:18px;background:linear-gradient(135deg,rgba(21,34,55,.92),rgba(8,14,25,.88));padding:15px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.wch-dna-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px;}
.wch-dna-card header strong{font-size:30px;color:#8deaff;line-height:1;}
.wch-dna-card header span{font-size:12px;color:rgba(235,242,255,.68);font-weight:900;text-align:right;line-height:1.2;}
.wch-dna-card div:not(:first-child){display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(142,225,255,.08);padding:7px 0;color:rgba(235,242,255,.75);font-weight:800;}
.wch-dna-card b{color:rgba(235,242,255,.62);}
.wch-dna-card em{font-style:normal;color:#fff;text-align:right;word-break:break-word;}
.wch-match-density{display:grid;gap:8px;margin:0 0 18px;}
.wch-density-title{font-weight:950;color:#8deaff;letter-spacing:.03em;text-transform:uppercase;font-size:12px;margin-bottom:2px;}
.wch-density-row{display:grid;grid-template-columns:minmax(0,260px) 1fr;gap:14px;align-items:center;border:1px solid rgba(142,225,255,.12);background:rgba(5,10,20,.36);border-radius:14px;padding:10px 12px;}
.wch-density-row b{display:block;color:#fff;font-weight:900;}
.wch-density-row small{display:block;color:rgba(235,242,255,.58);font-weight:800;margin-top:2px;}
.wch-density-row i{display:block;height:9px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;}
.wch-density-row i span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8deaff,#c59bff);}
.wch-rare-common{display:grid;gap:8px;}
@media(max-width:1100px){.wch-number-dna{grid-template-columns:repeat(2,minmax(0,1fr));}.wch-density-row{grid-template-columns:1fr;gap:8px;}}
@media(max-width:720px){.wch-number-dna{grid-template-columns:1fr;}}


/* V14.1 Core Systems polish: remove signal pills in JS, brighten phrase buttons */
.wch-core-card .wch-match-flags{display:none!important;}
.wch-core-card .wch-mini-phrases button,
.wch-core-card .wch-mini-phrases button:visited,
.wch-core-card .wch-mini-phrases button:hover,
.wch-core-card .wch-mini-phrases button:focus{
    color:#ffffff!important;
    opacity:1!important;
    background:linear-gradient(135deg,rgba(9,17,31,.88),rgba(13,28,46,.82))!important;
    border-color:rgba(142,225,255,.18)!important;
    text-shadow:none!important;
}
.wch-core-card .wch-mini-phrases li{color:#ffffff!important;opacity:1!important;}


/* V12.4.1 standalone internal page template fix */
html:has(body.wch-standalone-page),
body.wch-standalone-page{
    margin:0!important;
    padding:0!important;
    width:100%!important;
    max-width:none!important;
    overflow-x:hidden!important;
    background:#06070b!important;
}
body.wch-standalone-page .wch-standalone-wrap,
body.wch-standalone-page .wch-seo-wrap{
    width:100%!important;
    max-width:none!important;
    min-height:100vh;
    padding:0!important;
    margin:0!important;
    overflow-x:hidden!important;
    background:#06070b!important;
}
body.wch-standalone-page .wch-app{
    width:min(100%,1280px)!important;
    max-width:1280px!important;
    margin:0 auto!important;
    border-radius:28px!important;
}
body.wch-standalone-page .wch-seo-hero{
    width:min(100%,1280px)!important;
    max-width:1280px!important;
    margin:0 auto!important;
    padding:28px 16px 0!important;
    box-sizing:border-box!important;
}
body.wch-standalone-page *{box-sizing:border-box;}
@media(max-width:560px){
    body.wch-standalone-page .wch-app{
        width:100%!important;
        max-width:100%!important;
        margin:0!important;
        border-radius:0!important;
        padding-left:10px!important;
        padding-right:10px!important;
    }
    body.wch-standalone-page .wch-seo-hero{
        width:100%!important;
        max-width:100%!important;
        padding:18px 12px 0!important;
    }
    body.wch-standalone-page .wch-seo-hero h1{
        font-size:clamp(34px,12vw,52px)!important;
        line-height:1!important;
        overflow-wrap:anywhere;
    }
}


/* V12.4.2 number page auto results */
.wch-number-page-intel{margin:0 0 18px;padding:18px;border:1px solid rgba(142,225,255,.22);border-radius:22px;background:linear-gradient(135deg,rgba(18,29,50,.95),rgba(8,14,26,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 16px 40px rgba(0,0,0,.22);}
.wch-number-page-main{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px;}
.wch-number-page-main span{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(235,242,255,.62);}
.wch-number-page-main strong{font-size:clamp(42px,7vw,72px);line-height:.85;color:#8deaff;text-shadow:0 0 20px rgba(141,234,255,.25);}
.wch-number-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.wch-number-page-grid span{display:block;padding:12px;border-radius:15px;background:rgba(8,13,24,.58);border:1px solid rgba(255,255,255,.08);min-width:0;}
.wch-number-page-grid b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:rgba(235,242,255,.56);margin-bottom:5px;}
.wch-number-page-grid em{display:block;font-style:normal;font-weight:850;color:#fff;overflow-wrap:anywhere;}
.wch-number-page-flags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.wch-number-page-flags span{padding:7px 10px;border-radius:999px;background:rgba(141,234,255,.12);border:1px solid rgba(141,234,255,.22);color:#eaf8ff;font-size:12px;font-weight:800;}
.wch-number-page-matches h3{margin:8px 0 12px;color:#fff;font-size:18px;}
@media(max-width:760px){.wch-number-page-grid{grid-template-columns:1fr}.wch-number-page-main{align-items:flex-start;flex-direction:column}.wch-number-page-main strong{font-size:52px}}


/* V12.4.4 internal pages use normal site header/footer but keep app full width */
.wch-internal-app-template{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    background:#06070b;
    overflow-x:hidden;
}
.wch-internal-app-template .wch-app{
    width:min(100%,1280px) !important;
    max-width:1280px !important;
    margin:0 auto !important;
}
.wch-internal-app-template + *{box-sizing:border-box;}
@media(max-width:700px){
    .wch-internal-app-template .wch-app{
        width:100% !important;
        max-width:100% !important;
        padding-left:10px !important;
        padding-right:10px !important;
        border-radius:0 !important;
    }
}

/* V12.4.6 homepage shell route lock: keep app full-width inside Twenty Twenty-Four page-no-title template, including ?wch_number pages */
body.home.page-template-page-no-title .wp-site-blocks,
body.home.page-template-page-no-title main,
body.home.page-template-page-no-title .entry-content,
body.home.page-template-page-no-title .wp-block-post-content,
body.home.page-template-page-no-title .wp-block-group:has(.wch-app){max-width:100%!important;width:100%!important;}
body.home.page-template-page-no-title .entry-content,
body.home.page-template-page-no-title .has-global-padding{padding-left:0!important;padding-right:0!important;}
body.home.page-template-page-no-title .wch-app{width:100%!important;max-width:100%!important;box-sizing:border-box;}


/* V12.4.10 reverse search column layout */
.wch-reverse-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start;}
.wch-reverse-layout .wch-number-page-intel{margin:0;position:sticky;top:12px;}
.wch-reverse-layout .wch-number-page-matches{min-width:0;}
.wch-reverse-layout .wch-number-page-matches .wch-matches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.wch-reverse-layout .wch-number-page-matches .wch-match{height:100%;}
.wch-empty-state{grid-column:1/-1;color:var(--muted);padding:10px 2px;}
@media(max-width:1100px){
  .wch-reverse-layout .wch-number-page-matches .wch-matches{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:840px){
  .wch-reverse-layout{grid-template-columns:1fr;}
  .wch-reverse-layout .wch-number-page-intel{position:static;}
  .wch-reverse-layout .wch-number-page-matches .wch-matches{grid-template-columns:1fr;}
}


/* V12.4.12 definitive reverse search desktop layout */
.wch-reverse-layout,
.wch-reverse-full{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
.wch-reverse-layout .wch-number-page-intel,
.wch-reverse-full .wch-number-page-intel{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 18px 0!important;
  position:static!important;
  top:auto!important;
}
.wch-reverse-layout .wch-number-page-matches,
.wch-reverse-full .wch-number-page-matches,
.wch-number-page-matches-grid{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.wch-reverse-layout .wch-number-page-matches .wch-matches,
.wch-reverse-full .wch-number-page-matches .wch-matches,
.wch-number-page-matches-grid .wch-matches{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
  width:100%!important;
}
.wch-reverse-layout .wch-number-page-matches .wch-match,
.wch-reverse-full .wch-number-page-matches .wch-match,
.wch-number-page-matches-grid .wch-match{
  height:100%!important;
  min-width:0!important;
}
@media(max-width:1380px){
  .wch-reverse-layout .wch-number-page-matches .wch-matches,
  .wch-reverse-full .wch-number-page-matches .wch-matches,
  .wch-number-page-matches-grid .wch-matches{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:1100px){
  .wch-reverse-layout .wch-number-page-matches .wch-matches,
  .wch-reverse-full .wch-number-page-matches .wch-matches,
  .wch-number-page-matches-grid .wch-matches{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:840px){
  .wch-reverse-layout .wch-number-page-matches .wch-matches,
  .wch-reverse-full .wch-number-page-matches .wch-matches,
  .wch-number-page-matches-grid .wch-matches{grid-template-columns:1fr!important;}
}


/* V12.4.13 reverse results full-width fix */
#wch-reverse-results.wch-matches,
#wch-reverse-results{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
#wch-reverse-results > .wch-number-page-intel,
#wch-reverse-results > .wch-number-page-matches,
#wch-reverse-results > .wch-reverse-layout,
#wch-reverse-results > .wch-reverse-full{
  width:100%!important;
  max-width:100%!important;
  grid-column:1/-1!important;
}
#wch-reverse-results .wch-number-page-matches .wch-matches{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
}
#wch-reverse-results .wch-number-page-matches .wch-match{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
}
@media(max-width:1380px){#wch-reverse-results .wch-number-page-matches .wch-matches{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:1100px){#wch-reverse-results .wch-number-page-matches .wch-matches{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:840px){#wch-reverse-results .wch-number-page-matches .wch-matches{grid-template-columns:1fr!important;}}


/* V12.4.14 Discovery page full-width sections */
.wch-discovery-layout{display:grid;grid-template-columns:1fr;gap:18px;}
.wch-discovery-section{width:100%;}
.wch-discovery-section .wch-discovery-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;}
.wch-discovery-number-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch;}
.wch-discovery-number-grid .wch-pill{display:block;width:100%;text-align:left;min-height:74px;}
.wch-discovery-section .wch-match{height:100%;}
@media(max-width:1180px){
  .wch-discovery-section .wch-discovery-grid,.wch-discovery-number-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:840px){
  .wch-discovery-section .wch-discovery-grid,.wch-discovery-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .wch-discovery-section .wch-discovery-grid,.wch-discovery-number-grid{grid-template-columns:1fr!important;}
}


/* V12.7.8 Patterns tab full-width section layout */
.wch-patterns-layout{grid-template-columns:1fr!important;}
.wch-pattern-section .wch-pill-list,
.wch-number-intel-section .wch-pill-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch;}
.wch-pattern-section .wch-pill,
.wch-number-intel-section .wch-pill{display:block;width:100%;min-height:74px;}
@media(max-width:1180px){
  .wch-pattern-section .wch-pill-list,
  .wch-number-intel-section .wch-pill-list{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:860px){
  .wch-pattern-section .wch-pill-list,
  .wch-number-intel-section .wch-pill-list{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .wch-pattern-section .wch-pill-list,
  .wch-number-intel-section .wch-pill-list{grid-template-columns:1fr;}
}


/* V12.7.9 graph edge colour split */
.wch-graph svg .wch-edge-core line{
  stroke: rgba(130,165,255,.62) !important;
  opacity: .66 !important;
}
.wch-graph svg .wch-edge-match line{
  stroke: rgba(100,240,200,.72) !important;
  opacity: .82 !important;
}


/* V12.7.11 graph subtle connection highlight */
.wch-graph svg .wch-edge-linked line{
  stroke: rgba(130,165,255,.68) !important;
  stroke-width: 2.5px !important;
  opacity: .9 !important;
  filter: drop-shadow(0 0 8px rgba(130,165,255,.20));
}
.wch-graph svg .num.linked rect{
  stroke: rgba(170,205,255,.82) !important;
  stroke-width: 2.7px !important;
  filter: drop-shadow(0 0 14px rgba(130,165,255,.16));
}
.wch-graph svg .match.linked rect{
  stroke: rgba(125,250,210,.9) !important;
  stroke-width: 2.7px !important;
  filter: drop-shadow(0 0 14px rgba(100,240,200,.18));
}

.wch-graph svg .wch-edge-core line,
.wch-graph svg .wch-edge-match line{
  stroke: rgba(130,165,255,.62) !important;
  opacity: .66 !important;
}


/* V12.7.16 research tab full-width section layout */
.wch-research-layout{
  grid-template-columns:1fr!important;
  gap:18px!important;
}
.wch-research-layout > .wch-card{
  grid-column:1 / -1!important;
}
.wch-research-section .wch-pill-list,
.wch-research-section .wch-rare-common{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
.wch-research-section .wch-pill,
.wch-research-section .wch-rare-common > *{
  width:100%!important;
  min-width:0!important;
}
.wch-research-score-section .wch-score-box{
  min-height:220px!important;
}
.wch-research-family-section .wch-family-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:1100px){
  .wch-research-section .wch-pill-list,
  .wch-research-section .wch-rare-common{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:840px){
  .wch-research-section .wch-pill-list,
  .wch-research-section .wch-rare-common,
  .wch-research-family-section .wch-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .wch-research-section .wch-pill-list,
  .wch-research-section .wch-rare-common,
  .wch-research-family-section .wch-family-grid{grid-template-columns:1fr!important;}
}


/* V12.7.17 research value accent */
.wch-research-value,
.wch-research-layout .wch-score strong,
.wch-research-layout .wch-family em{
  color:#7FE7FF!important;
  text-shadow:0 0 16px rgba(127,231,255,.22);
}
.wch-research-layout .wch-family em{
  font-weight:950!important;
}
.wch-research-section .wch-pill b .wch-research-value{
  font-size:1.03em;
}


/* === V12.7.19 TAB ORDER + MOBILE SCROLL HINT === */
.wch-tabs-scroll-dots{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:-8px 0 16px;
  pointer-events:none;
}
.wch-tabs-scroll-dots span{
  width:7px;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  border:1px solid rgba(158,245,255,.22);
  transition:all .18s ease;
  box-shadow:none;
}
.wch-tabs-scroll-dots span.active{
  width:18px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border-color:transparent;
  box-shadow:0 0 12px rgba(158,245,255,.26);
}
@media(max-width:560px){
  .wch-tabs{
    position:sticky;
    top:0;
    z-index:20;
    overflow-x:auto !important;
    overflow-y:hidden;
    flex-wrap:nowrap !important;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding-bottom:12px !important;
    mask-image:linear-gradient(90deg,transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image:linear-gradient(90deg,transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .wch-tabs::-webkit-scrollbar{display:none;}
  .wch-tabs::before,
  .wch-tabs::after{
    content:'';
    position:sticky;
    top:0;
    width:18px;
    flex:0 0 18px;
    pointer-events:none;
    z-index:2;
  }
  .wch-tabs::before{
    left:0;
    margin-right:-18px;
    background:linear-gradient(90deg,rgba(6,7,11,.96),rgba(6,7,11,0));
  }
  .wch-tabs::after{
    right:0;
    margin-left:-18px;
    background:linear-gradient(270deg,rgba(6,7,11,.96),rgba(6,7,11,0));
  }
  .wch-tabs-scroll-dots{display:flex;}
}


/* === V12.7.20 CIPHER AUTHORITY LIBRARY === */
.wch-authority-library{display:grid;gap:18px;}
.wch-authority-family{border:1px solid rgba(141,238,255,.16);border-radius:20px;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));}
.wch-authority-family-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.wch-authority-family-head h3{margin:0;font-size:20px;color:#fff;letter-spacing:-.02em;}
.wch-authority-family-head span{font-weight:850;color:var(--accent);font-size:13px;}
.wch-authority-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.wch-authority-cipher{border:1px solid rgba(141,238,255,.14);border-radius:16px;padding:14px;background:linear-gradient(180deg,#1a2133,#111827);min-height:150px;}
.wch-authority-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px;}
.wch-authority-top b{font-size:16px;color:#fff;line-height:1.15;}
.wch-authority-top span{flex:0 0 auto;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:950;letter-spacing:.02em;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#eaf7ff;}
.wch-authority-top .trust-standard,.wch-authority-top .trust-historical{background:rgba(127,231,255,.14);border-color:rgba(127,231,255,.28);color:#7fe7ff;}
.wch-authority-top .trust-popular,.wch-authority-top .trust-modern{background:rgba(217,179,255,.13);border-color:rgba(217,179,255,.30);color:#d9b3ff;}
.wch-authority-top .trust-esoteric{background:rgba(255,241,163,.11);border-color:rgba(255,241,163,.28);color:#fff1a3;}
.wch-authority-top .trust-experimental{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.20);color:#cbd4e6;}
.wch-authority-cipher em{display:block;font-style:normal;color:rgba(234,247,255,.72);font-size:13px;margin-bottom:8px;}
.wch-authority-cipher code{display:block;color:var(--accent);font-weight:850;background:rgba(0,0,0,.22);border:1px solid rgba(141,238,255,.10);border-radius:10px;padding:7px 9px;white-space:normal;overflow-wrap:anywhere;margin-bottom:9px;}
.wch-authority-cipher p{margin:0;color:rgba(234,247,255,.70);font-size:13px;line-height:1.45;}
#wch-trust-summary .wch-pill b,#wch-variant-awareness .wch-pill b,#wch-presets .wch-pill b{color:var(--accent)!important;}
@media(max-width:1020px){.wch-authority-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.wch-authority-grid{grid-template-columns:1fr;}.wch-authority-family{padding:12px;}.wch-authority-family-head{align-items:flex-start;flex-direction:column;}}


/* === V12.7.21 Movies category + match filter/sort polish === */
.wch-filter-stack{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.wch-category-select,
.wch-match-sort-global,
.wch-match-category,
.wch-match-sort{
  min-height:38px;
  border-radius:999px;
  border:1px solid rgba(127,231,255,.22);
  background:rgba(2,8,23,.72);
  color:#fff;
  padding:0 14px;
  max-width:100%;
}
.wch-match-tools{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.wch-match-group header{
  gap:12px;
}
.wch-meaning-row em,
.wch-match em{
  font-style:normal;
  font-size:11px;
  color:#7fe7ff;
  border:1px solid rgba(127,231,255,.22);
  background:rgba(127,231,255,.08);
  border-radius:999px;
  padding:3px 8px;
  margin-left:8px;
  white-space:nowrap;
}
.wch-meaning-row[hidden]{
  display:none !important;
}
.wch-reverse-tools{
  margin:14px 0 10px;
  justify-content:flex-start;
}
@media(max-width:760px){
  .wch-filter-stack,
  .wch-match-tools{
    justify-content:flex-start;
    width:100%;
  }
  .wch-category-select,
  .wch-match-sort-global,
  .wch-match-category,
  .wch-match-sort{
    flex:1 1 140px;
    min-width:0;
  }
}


/* === V12.7.25 Match filter layout fix === */
/* Categories are filter controls only. They should not appear as badges beside match phrases. */
.wch-meaning-row > em,
.wch-match > em{
  display:none !important;
}

.wch-match-tools{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  align-items:flex-end !important;
  justify-content:flex-start !important;
  min-width:210px;
}

.wch-match-tool-label{
  display:flex;
  flex-direction:column;
  gap:4px;
  width:100%;
  color:rgba(255,255,255,.72);
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:700;
}

.wch-match-tool-label select{
  width:100%;
}

.wch-match-group header{
  align-items:flex-start !important;
}

@media(max-width:760px){
  .wch-match-tools{
    align-items:stretch !important;
    width:100%;
    min-width:0;
  }
  .wch-match-group header{
    flex-direction:column;
  }
}


/* === V12.7.27 Category dropdown filter fix === */
.wch-match-tools{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  min-width:230px !important;
  max-width:280px !important;
}

.wch-match-tool-label{
  display:flex !important;
  flex-direction:column !important;
  gap:5px !important;
  width:100% !important;
  color:rgba(255,255,255,.82) !important;
  font-size:12px !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  font-weight:800 !important;
}

.wch-match-category,
.wch-match-sort{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:100% !important;
  min-height:46px !important;
  margin:0 !important;
  border-radius:999px !important;
  border:1px solid rgba(127,231,255,.26) !important;
  background:rgba(7,17,35,.94) !important;
  color:#fff !important;
  padding:0 42px 0 18px !important;
  font-size:17px !important;
  font-weight:800 !important;
  line-height:46px !important;
  appearance:auto !important;
  -webkit-appearance:menulist !important;
}

.wch-meaning-row > em,
.wch-match > em{
  display:none !important;
}

.wch-meaning-row[hidden]{
  display:none !important;
}

@media(max-width:760px){
  .wch-match-tools{
    min-width:0 !important;
    max-width:none !important;
    width:100% !important;
  }
}


/* === V12.7.28 Match control sizing + category normalisation === */
.wch-match-group header{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 230px !important;
  gap:18px !important;
  align-items:start !important;
}

.wch-match-tools{
  min-width:0 !important;
  max-width:230px !important;
  width:230px !important;
  gap:9px !important;
}

.wch-match-tool-label{
  font-size:10.5px !important;
  line-height:1.1 !important;
  letter-spacing:.045em !important;
}

.wch-match-category,
.wch-match-sort{
  min-height:42px !important;
  height:42px !important;
  line-height:42px !important;
  font-size:15px !important;
  padding:0 34px 0 14px !important;
  border-radius:22px !important;
}

.wch-match-group .wch-meaning-list{
  margin-top:10px !important;
}

@media(max-width:1180px){
  .wch-match-group header{
    grid-template-columns:1fr !important;
  }
  .wch-match-tools{
    width:100% !important;
    max-width:none !important;
  }
}

@media(max-width:760px){
  .wch-match-category,
  .wch-match-sort{
    font-size:14px !important;
    min-height:40px !important;
    height:40px !important;
    line-height:40px !important;
  }
}


/* === V12.7.29 Slim left-aligned match controls === */
.wch-match-group header{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:10px !important;
}

.wch-match-tools{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:minmax(170px, 220px) minmax(145px, 170px) !important;
  gap:10px 12px !important;
  align-items:end !important;
  justify-content:start !important;
  margin-top:2px !important;
}

.wch-match-tool-label{
  width:100% !important;
  max-width:220px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:4px !important;
  font-size:9.5px !important;
  line-height:1 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  font-weight:800 !important;
  color:rgba(255,255,255,.70) !important;
}

.wch-match-category,
.wch-match-sort{
  width:100% !important;
  min-width:0 !important;
  min-height:34px !important;
  height:34px !important;
  line-height:34px !important;
  border-radius:17px !important;
  font-size:13px !important;
  font-weight:700 !important;
  padding:0 28px 0 12px !important;
  background:rgba(5,13,27,.88) !important;
  border:1px solid rgba(127,231,255,.20) !important;
  box-shadow:none !important;
}

.wch-match-sort{
  max-width:170px !important;
}

.wch-match-category{
  max-width:220px !important;
}

.wch-match-group .wch-meaning-list{
  margin-top:12px !important;
}

@media(max-width:760px){
  .wch-match-tools{
    grid-template-columns:1fr 1fr !important;
    width:100% !important;
  }

  .wch-match-tool-label,
  .wch-match-category,
  .wch-match-sort{
    max-width:none !important;
  }

  .wch-match-category,
  .wch-match-sort{
    font-size:12px !important;
    min-height:34px !important;
    height:34px !important;
    line-height:34px !important;
  }
}

@media(max-width:480px){
  .wch-match-tools{
    grid-template-columns:1fr !important;
  }
}


/* === V12.7.30 fast typing mode === */
.wch-status{
  transition:opacity .15s ease;
}


/* === V12.7.31 Live fast mode === */
.wch-status:has-text{
  min-height:1em;
}


/* === V12.7.33 instant front-end values === */
.wch-status{
  min-height:1.2em;
}


/* === V12.7.34 instant quick breakdown === */
.wch-classic-breakdown{
  transition:opacity .12s ease;
}


/* === V12.7.35 restore true match totals === */
.wch-match-group small{
  opacity:.84;
}


/* === V12.7.36 Match count value colour === */
.wch-match-count-value{
  color:#7fe7ff !important;
  font-weight:900 !important;
  text-shadow:0 0 14px rgba(127,231,255,.32);
}

.wch-match-group header small .wch-match-count-value,
.wch-strong-card header small .wch-match-count-value{
  font-size:1.02em;
}


/* === V12.7.37 graph match repair === */
.wch-graph .match.linked rect,
.wch-graph svg .match.linked rect{
  filter:drop-shadow(0 0 12px rgba(78,255,217,.25));
}


/* === V12.7.48 Match display + true random === */
.wch-match-group .wch-meaning-list,
.wch-match-group .wch-flat-list{
  max-height: 820px !important; /* about 10 full rows visible */
  overflow-y: auto !important;
  padding-right: 14px !important;
  scrollbar-gutter: stable;
}

.wch-match-group .wch-meaning-row{
  min-height: 72px !important;
}

@media(max-width:760px){
  .wch-match-group .wch-meaning-list,
  .wch-match-group .wch-flat-list{
    max-height: 760px !important;
  }
}


/* === V12.7.58 Match row padding only === */
/* Only reduces row padding/height. No font sizes, headers, or layout logic touched. */
.wch-match-group .wch-meaning-row{
  min-height: 50px !important;
  height: 50px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.wch-match-group .wch-meaning-list,
.wch-match-group .wch-flat-list{
  gap: 8px !important;
  max-height: 580px !important;
  min-height: 580px !important;
}


/* === V12.7.59 Load 30 match results === */
/* 30 rows are loaded/rendered. Container remains scrollable. */
.wch-match-group .wch-meaning-list,
.wch-match-group .wch-flat-list{
  overflow-y:auto !important;
}


/* === V12.7.63 Filter gap fix === */
/* When category filtering hides rows, they must not occupy space. */
.wch-match-group .wch-meaning-row[hidden],
.wch-match-group .wch-flat-list .wch-meaning-row[hidden],
.wch-match-group .wch-meaning-list .wch-meaning-row[hidden]{
  display:none !important;
}


/* === V12.7.67 Graph balanced links === */
.wch-graph svg .match.linked rect{
  filter:drop-shadow(0 0 14px rgba(78,255,217,.28));
}


/* === V12.7.69 Graph dynamic ciphers === */
.wch-graph svg .match.linked rect{
  filter:drop-shadow(0 0 14px rgba(78,255,217,.3));
}


/* === V12.7.72 Privacy + Terms shortcodes === */
.wch-legal-page{
  max-width:1040px;
  margin:0 auto;
  padding:40px 18px 64px;
  color:rgba(236,242,255,.92);
}

.wch-legal-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(127,231,255,.18);
  border-radius:28px;
  padding:34px 34px 32px;
  background:
    radial-gradient(circle at 15% 0%, rgba(127,231,255,.20), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(84,255,210,.12), transparent 32%),
    linear-gradient(135deg, rgba(8,18,39,.96), rgba(4,9,20,.98));
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  margin-bottom:22px;
}

.wch-legal-hero:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(120deg, transparent, rgba(127,231,255,.13), transparent);
  pointer-events:none;
}

.wch-legal-hero .wch-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(127,231,255,.20);
  background:rgba(127,231,255,.08);
  color:#7fe7ff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.wch-legal-hero h1{
  position:relative;
  margin:0;
  color:#fff;
  font-size:clamp(34px, 5vw, 62px);
  line-height:1;
  letter-spacing:-.045em;
}

.wch-legal-hero p{
  position:relative;
  max-width:760px;
  margin:16px 0 0;
  color:rgba(226,235,255,.76);
  font-size:18px;
  line-height:1.58;
}

.wch-legal-card{
  border:1px solid rgba(127,231,255,.16);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(8,18,39,.92), rgba(5,10,22,.96));
  box-shadow:0 18px 60px rgba(0,0,0,.28);
  padding:34px;
}

.wch-legal-card h2{
  margin:0 0 14px;
  color:#fff;
  font-size:28px;
  line-height:1.15;
}

.wch-legal-card h3{
  margin:28px 0 9px;
  color:#7fe7ff;
  font-size:18px;
  line-height:1.25;
  letter-spacing:-.01em;
}

.wch-legal-card p{
  margin:0 0 14px;
  color:rgba(236,242,255,.82);
  font-size:16px;
  line-height:1.72;
}

.wch-legal-card a{
  color:#7fe7ff;
  text-decoration:none;
  border-bottom:1px solid rgba(127,231,255,.35);
}

.wch-legal-card strong{
  color:#fff;
}

.wch-legal-footer{
  margin-top:18px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  padding:16px 18px;
  color:rgba(226,235,255,.72);
  font-size:14px;
  line-height:1.55;
}

.wch-legal-footer strong{
  color:#7fe7ff;
}

@media(max-width:700px){
  .wch-legal-page{
    padding:24px 12px 44px;
  }

  .wch-legal-hero,
  .wch-legal-card{
    border-radius:20px;
    padding:24px 20px;
  }

  .wch-legal-hero p{
    font-size:16px;
  }

  .wch-legal-card h2{
    font-size:24px;
  }
}


/* === V12.7.77 DigifyMe legal footer === */
.wch-legal-footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  padding:14px 18px;
  color:rgba(226,235,255,.72);
  font-size:14px;
  line-height:1.45;
}

.wch-legal-footer span:first-child{
  color:#7fe7ff;
  font-weight:800;
}

@media(max-width:700px){
  .wch-legal-footer{
    flex-direction:column;
  }
}


/* === V12.7.78 Gematria FAQ shortcode === */
.wch-gematria-guide{
  max-width:1120px;
  margin:0 auto;
  padding:42px 18px 72px;
  color:rgba(236,242,255,.92);
}

.wch-guide-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(127,231,255,.18);
  border-radius:30px;
  padding:38px 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(127,231,255,.22), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(84,255,210,.12), transparent 34%),
    linear-gradient(135deg, rgba(8,18,39,.96), rgba(4,9,20,.98));
  box-shadow:0 24px 74px rgba(0,0,0,.35);
  margin-bottom:16px;
}

.wch-guide-eyebrow{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(127,231,255,.20);
  background:rgba(127,231,255,.08);
  color:#7fe7ff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.wch-guide-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(38px, 6vw, 74px);
  line-height:.96;
  letter-spacing:-.055em;
}

.wch-guide-hero p{
  max-width:860px;
  margin:18px 0 0;
  color:rgba(226,235,255,.76);
  font-size:18px;
  line-height:1.62;
}

.wch-guide-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0;
}

.wch-guide-nav a{
  text-decoration:none;
  color:#7fe7ff;
  border:1px solid rgba(127,231,255,.18);
  background:rgba(127,231,255,.07);
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
}

.wch-guide-card{
  border:1px solid rgba(127,231,255,.15);
  border-radius:26px;
  background:linear-gradient(180deg, rgba(8,18,39,.92), rgba(5,10,22,.96));
  box-shadow:0 18px 60px rgba(0,0,0,.28);
  padding:32px;
  margin-top:18px;
}

.wch-guide-card h2{
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(26px, 4vw, 42px);
  line-height:1.05;
  letter-spacing:-.035em;
}

.wch-guide-card h3{
  margin:0 0 8px;
  color:#7fe7ff;
  font-size:18px;
}

.wch-guide-card p{
  margin:0 0 15px;
  color:rgba(236,242,255,.80);
  font-size:16px;
  line-height:1.74;
}

.wch-guide-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:20px;
}

.wch-guide-grid > div{
  border:1px solid rgba(127,231,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  padding:18px;
}

.wch-guide-grid p{
  margin:0;
  font-size:14px;
}

.wch-guide-feature-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}

.wch-guide-feature-list span{
  border:1px solid rgba(127,231,255,.18);
  background:rgba(127,231,255,.08);
  color:#dffaff;
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
}

.wch-guide-faq-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.wch-guide-faq-item{
  border:1px solid rgba(127,231,255,.14);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  overflow:hidden;
}

.wch-guide-faq-item summary{
  cursor:pointer;
  list-style:none;
  padding:16px 18px;
  color:#fff;
  font-weight:850;
  line-height:1.35;
}

.wch-guide-faq-item summary::-webkit-details-marker{
  display:none;
}

.wch-guide-faq-item summary:after{
  content:"+";
  float:right;
  margin-left:14px;
  color:#7fe7ff;
  font-weight:900;
}

.wch-guide-faq-item[open] summary:after{
  content:"−";
}

.wch-guide-faq-item div{
  border-top:1px solid rgba(127,231,255,.10);
  padding:0 18px 16px;
}

.wch-guide-faq-item p{
  margin:13px 0 0;
  font-size:15px;
  line-height:1.65;
}

@media(max-width:860px){
  .wch-guide-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .wch-gematria-guide{
    padding:26px 12px 48px;
  }

  .wch-guide-hero,
  .wch-guide-card{
    border-radius:20px;
    padding:23px 19px;
  }

  .wch-guide-grid{
    grid-template-columns:1fr;
  }

  .wch-guide-hero p,
  .wch-guide-card p{
    font-size:15px;
  }
}


/* === V12.7.82 Graph refresh button === */
.wch-graph-refresh-btn{
  margin-left:auto !important;
  align-self:flex-start !important;
  border-radius:999px !important;
  padding:10px 14px !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(141,238,255,.22) !important;
  color:#eaf7ff !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
.wch-graph-refresh-btn:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color:#07101a !important;
}
.wch-graph-refresh-btn:disabled{
  opacity:.62 !important;
  cursor:wait !important;
  transform:none !important;
}
@media(max-width:640px){
  .wch-card-head .wch-graph-refresh-btn{
    width:100% !important;
    justify-content:center !important;
  }
}


/* === V12.7.83 Graph refresh button fixed === */
.wch-card-head{
  position:relative;
}
.wch-graph-refresh-btn{
  margin-left:auto !important;
  align-self:flex-start !important;
  border-radius:999px !important;
  padding:10px 15px !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(141,238,255,.28) !important;
  color:#eaf7ff !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.wch-graph-refresh-btn:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color:#07101a !important;
}
.wch-graph-refresh-btn:disabled{
  opacity:.62 !important;
  cursor:wait !important;
  transform:none !important;
}
@media(max-width:640px){
  .wch-card-head:has(.wch-graph-refresh-btn){
    align-items:stretch !important;
  }
  .wch-card-head .wch-graph-refresh-btn{
    width:100% !important;
  }
}


/* === V12.7.84 Graph refresh button in PHP graph header === */
.wch-graph-title-row{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
}
.wch-graph-title-row > div{
  min-width:0 !important;
}
.wch-graph-refresh-btn{
  margin-left:auto !important;
  flex:0 0 auto !important;
  border-radius:999px !important;
  padding:10px 15px !important;
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(141,238,255,.28) !important;
  color:#eaf7ff !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.wch-graph-refresh-btn:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent2)) !important;
  color:#07101a !important;
}
.wch-graph-refresh-btn:disabled{
  opacity:.62 !important;
  cursor:wait !important;
  transform:none !important;
}
@media(max-width:640px){
  .wch-graph-title-row{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .wch-graph-refresh-btn{
    width:100% !important;
  }
}


/* === V12.7.89 Mobile tabs + filter polish === */
.wch-output-switcher-title{
  max-width:1380px;
  margin:0 auto 8px !important;
  padding:0 4px;
  color:var(--text);
}
.wch-output-switcher-title h2{
  margin:0 0 5px;
  color:#fff !important;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.wch-output-switcher-title p{
  margin:0;
  color:var(--muted) !important;
  font-size:14px;
  line-height:1.45;
}

/* Keep match controls slim and one-line, especially on mobile */
.wch-match-toolbar select,
.wch-match-controls select,
#wch-category-filter,
#wch-match-sort,
#wch-reverse-category-filter,
#wch-reverse-sort{
  min-height:42px !important;
  height:42px !important;
  max-height:42px !important;
  line-height:1.1 !important;
  padding-top:9px !important;
  padding-bottom:9px !important;
  white-space:nowrap !important;
}

/* Remove side fades/shades from mobile tab carousel while keeping the carousel itself */
.wch-tabs:before,
.wch-tabs:after{
  display:none !important;
  content:none !important;
  background:none !important;
  box-shadow:none !important;
  opacity:0 !important;
}

@media(max-width:560px){
  .wch-output-switcher-title{
    margin-top:8px !important;
    margin-bottom:8px !important;
    padding:0 2px;
  }
  .wch-output-switcher-title h2{
    font-size:19px;
  }
  .wch-output-switcher-title p{
    font-size:13px;
  }

  .wch-tabs{
    background:linear-gradient(180deg,rgba(18,24,39,.98),rgba(12,16,27,.98)) !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
    box-shadow:0 18px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04) !important;
  }

  .wch-match-toolbar select,
  .wch-match-controls select,
  #wch-category-filter,
  #wch-match-sort,
  #wch-reverse-category-filter,
  #wch-reverse-sort{
    min-height:40px !important;
    height:40px !important;
    max-height:40px !important;
    line-height:1 !important;
    padding:8px 12px !important;
    font-size:13px !important;
    border-radius:14px !important;
  }
}


/* === V12.7.91 Mobile category dropdown closed-height fix === */
/* This targets the visible closed select box, not the native opened dropdown list. */
.wch-app select#wch-category-filter,
.wch-app select#wch-reverse-category-filter{
  display:block !important;
  box-sizing:border-box !important;
  min-height:40px !important;
  height:40px !important;
  max-height:40px !important;
  line-height:18px !important;
  padding:8px 38px 8px 12px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
  vertical-align:middle !important;
  border-radius:14px !important;
  font-size:13px !important;
}

@media(max-width:700px){
  .wch-app select#wch-category-filter,
  .wch-app select#wch-reverse-category-filter,
  .wch-app .wch-filter#wch-category-filter,
  .wch-app .wch-filter#wch-reverse-category-filter{
    display:block !important;
    width:100% !important;
    min-height:40px !important;
    height:40px !important;
    max-height:40px !important;
    line-height:18px !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  /* Some mobile browsers expand select height if size is inherited/set. */
  .wch-app select#wch-category-filter[size],
  .wch-app select#wch-reverse-category-filter[size]{
    height:40px !important;
  }
}


/* === V12.7.92 Actual match category select closed-height fix === */
/* The match cards use class="wch-match-category", not #wch-category-filter. */
.wch-app select.wch-match-category,
.wch-app select.wch-match-sort{
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  min-height:44px !important;
  height:44px !important;
  max-height:44px !important;
  line-height:20px !important;
  padding:10px 42px 10px 14px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
  vertical-align:middle !important;
  border-radius:16px !important;
  font-size:15px !important;
}

@media(max-width:700px){
  .wch-app select.wch-match-category,
  .wch-app select.wch-match-sort{
    display:block !important;
    width:100% !important;
    min-height:42px !important;
    height:42px !important;
    max-height:42px !important;
    line-height:20px !important;
    padding:9px 40px 9px 12px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    border-radius:15px !important;
    font-size:14px !important;
    appearance:auto !important;
    -webkit-appearance:menulist !important;
  }

  .wch-app select.wch-match-category[size],
  .wch-app select.wch-match-sort[size]{
    height:42px !important;
    max-height:42px !important;
  }
}


/* === V12.7.93 Filtered match gap fix === */
/* Hidden filtered match rows were still reserving space because .wch-meaning-row uses display:grid!important. */
.wch-app .wch-meaning-list .wch-meaning-row[hidden],
.wch-app .wch-meaning-list .wch-meaning-row.is-hidden,
.wch-app .wch-flat-list .wch-meaning-row[hidden],
.wch-app .wch-flat-list .wch-meaning-row.is-hidden{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

/* Keep the visible filtered rows compact and stacked normally. */
.wch-app .wch-meaning-list .wch-meaning-row:not([hidden]):not(.is-hidden){
  display:grid !important;
}


/* === V12.7.94 Filtered match DOM rebuild gap fix === */
.wch-app .wch-meaning-list.wch-flat-list{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}
.wch-app .wch-meaning-list.wch-flat-list .wch-meaning-row{
  flex:0 0 auto !important;
}
.wch-app .wch-empty-filter-note{
  margin:0 !important;
  padding:14px 16px !important;
  border:1px solid rgba(141,238,255,.16) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.045) !important;
  color:var(--muted) !important;
}


/* === V12.7.96 Local category filter fix === */
.wch-empty-filter-note{
  display:block !important;
}


/* === V12.7.97 Remove global Matching Phrase Database filters === */
/* Removes the top-right global category/search filter from the Matches tab density/header area only.
   Individual match-card filters remain visible and working. */
#wch-category-filter,
#wch-match-search,
.wch-card-head #wch-category-filter,
.wch-card-head #wch-match-search,
.wch-card-head .wch-filter#wch-category-filter,
.wch-card-head input#wch-match-search{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
}

.wch-card-head:has(#wch-category-filter),
.wch-card-head:has(#wch-match-search){
  grid-template-columns:1fr !important;
}

.wch-card-head:has(#wch-category-filter) .wch-card-actions,
.wch-card-head:has(#wch-match-search) .wch-card-actions{
  display:none !important;
}

/* === V12.7.109 Pattern Lab map cleanup === */
.wch-pattern-lab-card{
  overflow:visible;
}
.wch-pattern-lab-title-row{
  align-items:flex-start;
  gap:16px;
}
.wch-pattern-decode-btn,
.wch-pattern-add-layer,
.wch-pattern-clear-layers{
  border:0;
  border-radius:999px;
  padding:11px 17px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
#wch-pattern-decode-btn.wch-pattern-decode-btn,
.wch-card-head #wch-pattern-decode-btn.wch-pattern-decode-btn{
  background:linear-gradient(135deg,var(--accent),var(--accent2))!important;
  color:#101018!important;
  border:0!important;
  box-shadow:none!important;
}
#wch-pattern-decode-btn.wch-pattern-decode-btn:hover,
.wch-card-head #wch-pattern-decode-btn.wch-pattern-decode-btn:hover{
  filter:brightness(1.05)!important;
}
.wch-pattern-decode-btn:disabled{
  opacity:.58;
  cursor:wait;
}
.wch-pattern-lab-shell{
  display:grid;
  gap:14px;
}
.wch-pattern-layer-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.wch-pattern-layer-row{
  min-width:0;
}
.wch-pattern-layer-row{
  position:relative;
  display:grid;
  gap:7px;
  padding:14px;
  border:1px solid rgba(141,238,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  min-width:0;
}
.wch-pattern-layer-row label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.wch-pattern-layer-input{
  width:100%;
  min-height:42px;
  resize:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(0,0,0,.18);
  color:inherit;
  font:inherit;
  line-height:1.35;
  outline:none;
  overflow:hidden;
}
.wch-pattern-layer-input:focus{
  border-color:rgba(141,238,255,.42);
  background:rgba(0,0,0,.25);
}
.wch-pattern-original-row .wch-pattern-layer-input{
  opacity:.88;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.wch-pattern-remove-layer{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:inherit;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.wch-pattern-lab-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.wch-pattern-lab-actions #wch-pattern-decode-btn{
  margin-left:auto;
}
.wch-pattern-add-layer{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#101018;
  border:0;
}
.wch-pattern-clear-layers{
  background:rgba(255,255,255,.06);
  color:inherit;
  border:1px solid rgba(255,255,255,.1);
}
.wch-pattern-lab-results{
  max-height:none;
  overflow:visible;
  display:grid;
  gap:14px;
  border:1px solid rgba(141,238,255,.12);
  border-radius:22px;
  padding:16px;
  background:linear-gradient(180deg,rgba(4,13,34,.52),rgba(0,0,0,.16));
}
.wch-pattern-empty{
  margin:0;
  color:var(--muted);
}
.wch-pattern-map-card,
.wch-pattern-layer-card,
.wch-pattern-section-box{
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.045);
}
.wch-pattern-map-card{
  padding:16px;
  background:linear-gradient(180deg,rgba(8,16,37,.76),rgba(5,10,24,.68));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 20px 40px rgba(0,0,0,.16);
}
.wch-pattern-map-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:10px;
}
.wch-pattern-map-head h3{
  margin:0 0 6px;
}
.wch-pattern-map-head p{
  margin:0;
  color:var(--muted);
}
.wch-pattern-map-key{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px 12px;
  font-size:12px;
  color:var(--muted);
}
.wch-pattern-map-key span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.wch-pattern-map-key b{
  width:11px;
  height:11px;
  border-radius:999px;
  display:inline-block;
  border:1px solid rgba(255,255,255,.26);
}
.wch-pattern-map-key .key-phrase{background:rgba(133,182,255,.45);border-color:rgba(177,208,255,.88);}
.wch-pattern-map-key .key-shared{background:rgba(146,245,255,.28);border-color:rgba(141,238,255,.88);}
.wch-pattern-map-key .key-root{background:rgba(190,150,255,.26);border-color:rgba(215,190,255,.88);}
.wch-pattern-map-key .key-mirror{background:rgba(255,205,132,.26);border-color:rgba(255,218,158,.88);}
.wch-pattern-map-stage{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  -webkit-overflow-scrolling:touch;
  border:1px solid rgba(141,238,255,.08);
  background:
    radial-gradient(circle at 50% 45%, rgba(141,238,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(7,16,36,.88), rgba(3,8,20,.96));
}
.wch-pattern-map-svg{
  width:100%;
  height:auto;
  min-height:560px;
  display:block;
}
.wch-pattern-map-svg text{
  font-family:inherit;
  text-anchor:middle;
  paint-order:stroke fill;
  stroke:rgba(6,12,24,.92);
  stroke-width:4px;
  stroke-linejoin:round;
}
.wch-pattern-map-edge line{
  stroke-width:2.2;
  opacity:.62;
}
.wch-pattern-map-edge.edge-shared line{stroke:rgba(121,230,245,.70);}
.wch-pattern-map-edge.edge-root line{stroke:rgba(198,153,255,.62);stroke-dasharray:7 8;}
.wch-pattern-map-edge.edge-mirror line{stroke:rgba(255,206,133,.72);stroke-dasharray:5 6;}
.wch-pattern-map-node{cursor:pointer;transition:opacity .18s ease, transform .18s ease;}
.wch-pattern-map-node rect,
.wch-pattern-map-node circle{
  transition:opacity .18s ease, transform .18s ease, filter .18s ease, stroke .18s ease;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.26));
}
.wch-pattern-map-node:hover,
.wch-pattern-map-node.is-active{transform:translateY(-2px);}
.wch-pattern-map-node.is-dimmed,
.wch-pattern-map-edge.is-dimmed{opacity:.15;}
.wch-pattern-map-edge.is-active line{opacity:.98;stroke-width:3;}
.wch-pattern-map-node.node-phrase rect{fill:rgba(133,182,255,.17);stroke:rgba(177,208,255,.62);stroke-width:1.8;}
.wch-pattern-map-node.node-shared circle{fill:rgba(141,238,255,.20);stroke:rgba(141,238,255,.88);stroke-width:2.2;}
.wch-pattern-map-node.node-root rect{fill:rgba(185,147,255,.14);stroke:rgba(215,190,255,.68);stroke-width:1.8;}
.wch-pattern-map-node.node-mirror rect{fill:rgba(255,205,132,.14);stroke:rgba(255,218,158,.74);stroke-width:1.8;}
.wch-pattern-map-node.is-active.node-phrase rect{fill:rgba(133,182,255,.24);stroke:rgba(195,219,255,.95);}
.wch-pattern-map-node.is-active.node-shared circle{fill:rgba(141,238,255,.28);stroke:rgba(178,246,255,.96);}
.wch-pattern-map-node.is-active.node-root rect{fill:rgba(185,147,255,.22);stroke:rgba(228,208,255,.95);}
.wch-pattern-map-node.is-active.node-mirror rect{fill:rgba(255,205,132,.22);stroke:rgba(255,224,174,.97);}
.wch-pattern-map-title{font-size:16px;font-weight:800;fill:rgba(255,255,255,.95);}
.wch-pattern-map-value{font-size:24px;font-weight:900;fill:#fff;}
.wch-pattern-map-caption{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;fill:rgba(255,255,255,.68);stroke-width:3px;}
.wch-pattern-focus-rail{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.wch-pattern-focus-chip{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:inherit;
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.wch-pattern-focus-chip.chip-shared{border-color:rgba(141,238,255,.26);}
.wch-pattern-focus-chip.chip-root{border-color:rgba(215,190,255,.28);}
.wch-pattern-focus-chip.chip-mirror{border-color:rgba(255,218,158,.32);}
.wch-pattern-focus-chip.is-active,
.wch-pattern-focus-chip:hover{background:rgba(255,255,255,.12);}
.wch-pattern-focus-hint{font-size:13px;color:var(--muted);}
.wch-pattern-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.wch-pattern-overview div{
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  padding:13px;
  background:rgba(255,255,255,.055);
}
.wch-pattern-overview span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:5px;
}
.wch-pattern-overview strong{
  font-size:24px;
}
.wch-pattern-layer-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.wch-pattern-layer-card header span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}
.wch-pattern-layer-card h3,
.wch-pattern-section-box h3{
  margin:0 0 12px;
}
.wch-pattern-value-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.wch-pattern-value-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid rgba(141,238,255,.11);
  border-radius:13px;
  padding:9px 10px;
  background:rgba(0,0,0,.16);
}
.wch-pattern-value-chip b{
  font-size:18px;
}
.wch-pattern-value-chip small{
  color:var(--muted);
  text-align:right;
  font-size:11px;
}
.wch-pattern-flag-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.wch-pattern-flag-row span{
  border-radius:999px;
  padding:6px 9px;
  background:rgba(141,238,255,.11);
  font-size:12px;
}
.wch-pattern-hit{
  display:grid;
  gap:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:11px 12px;
  margin-bottom:8px;
  background:rgba(0,0,0,.14);
}
.wch-pattern-hit b{
  font-size:18px;
}
.wch-pattern-hit span{
  font-weight:700;
}
.wch-pattern-hit small{
  color:var(--muted);
}
@media (max-width:980px){
  .wch-pattern-map-head{display:grid;}
}
@media (max-width:780px){
  .wch-pattern-lab-title-row{
    display:grid;
  }
  .wch-pattern-decode-btn,
  .wch-pattern-add-layer,
  .wch-pattern-clear-layers{
    width:100%;
  }
  .wch-pattern-lab-actions{
    display:grid;
  }
  .wch-pattern-lab-actions #wch-pattern-decode-btn{
    margin-left:0;
  }
  .wch-pattern-layer-list{
    grid-template-columns:1fr;
  }
  .wch-pattern-overview,
  .wch-pattern-layer-grid,
  .wch-pattern-value-grid{
    grid-template-columns:1fr;
  }
  .wch-pattern-map-svg{
    width:auto;
    max-width:none;
    min-width:1080px;
    min-height:520px;
  }
  .wch-pattern-map-stage{
    overflow:auto;
  }
}

.wch-pattern-add-layer:disabled,
.wch-pattern-add-layer.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:saturate(.75);
}
