/* DEFIGHT site bar (v106 minimalist anti-clutter): slim search + compact single-row low-noise pill strip */
.sitebar{width:100%;max-width:1240px;box-sizing:border-box;margin:0 auto;padding:6px 16px 4px;display:flex;flex-wrap:nowrap;gap:8px 10px;align-items:center;position:relative;z-index:25}
.sb-search{flex:1 1 280px;min-width:0;max-width:none;position:relative;margin:0}
.sb-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sb-box{position:relative;display:flex;align-items:center}
.sb-icon{position:absolute;left:12px;width:17px;height:17px;color:#7a776d;pointer-events:none}
.sitebar input[type=search]{width:100%;min-height:40px;padding:7px 38px 7px 38px;font-size:15px;border:1px solid #d9d4c3;border-radius:11px;background:#fff;color:#111;-webkit-appearance:none;appearance:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.sitebar input[type=search]:focus{outline:none;border-color:#f5b524;box-shadow:0 0 0 2px rgba(245,181,36,.25)}
.sitebar input[type=search]::-webkit-search-cancel-button{display:none}
.sb-clear{position:absolute;right:4px;width:34px;height:34px;border:0;border-radius:17px;background:transparent;font-size:22px;line-height:1;color:#666;cursor:pointer}
.sb-results{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;color:#111;border:1px solid #d9d4c3;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.22);max-height:70vh;max-height:min(70vh,640px);overflow:auto;-webkit-overflow-scrolling:touch;z-index:40}
.sb-count{margin:0;padding:10px 14px 6px;font-size:.9rem;color:#555}
.sb-list{list-style:none;margin:0;padding:0 0 4px}
.sb-list li a{display:block;padding:11px 14px;min-height:52px;box-sizing:border-box;text-decoration:none;color:inherit;border-top:1px solid #eee}
.sb-list li.on a,.sb-list li a:hover,.sb-list li a:focus{background:#fff6dc}
.sb-kind{display:inline-block;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#7a5a00;background:#fbe9b6;border-radius:6px;padding:2px 7px;margin-right:6px;vertical-align:2px}
.sb-t{font-size:1.02rem;font-weight:800;line-height:1.3}
.sb-s{display:block;font-size:.9rem;line-height:1.38;color:#444;margin-top:2px}
.sb-list mark{background:#ffe08a;color:inherit;border-radius:3px;padding:0 1px}
.sb-more{display:block;width:calc(100% - 20px);margin:6px 10px 10px;min-height:44px;border:1px solid #f5b524;border-radius:10px;background:#fff;font-size:.95rem;font-weight:700;cursor:pointer;color:#111}
.sb-quick{display:flex;align-items:center;gap:6px;flex:0 0 auto;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sb-quick::-webkit-scrollbar{display:none}
.sb-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;height:32px;padding:0 11px;border:1px solid rgba(0,0,0,.12);border-radius:999px;background:rgba(0,0,0,.04);color:#2b2b2b;font:inherit;font-size:12.5px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.sb-btn:hover{background:rgba(0,0,0,.08);color:#000}
.sb-btn span{font-size:.92em;opacity:.85}
.sb-btn[aria-current=page]{background:#f5b524;border-color:#f5b524;color:#111;font-weight:800}
.sb-quick .df-lang.df-lang-bar{flex:0 0 auto !important;height:32px !important;min-height:32px !important;padding:0 10px !important;border-radius:999px !important;font-size:12.5px !important;font-weight:600 !important}
@media (max-width:720px){
  .sitebar{flex-wrap:wrap;padding:6px 12px 2px;gap:6px}
  .sb-search{flex-basis:100%}
  .sitebar input[type=search]{min-height:38px;font-size:15px;padding:6px 36px 6px 36px}
  .sb-quick{flex:1 1 100%;flex-wrap:nowrap;gap:6px;justify-content:flex-start}
  .sb-quick .sb-btn{flex:1 1 0;min-width:0;height:30px;min-height:30px;padding:0 8px;font-size:12px;gap:4px}
  .sb-quick .df-lang.df-lang-bar{flex:0 0 auto !important;height:30px !important;min-height:30px !important;padding:0 9px !important;font-size:12px !important}
}
/* feedback box */
.sb-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1000;display:flex;align-items:flex-end;justify-content:center}
.sb-modal[hidden]{display:none}
.sb-card{position:relative;background:#fff;color:#111;width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:18px 18px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));box-sizing:border-box}
@media (min-width:721px){.sb-modal{align-items:center}.sb-card{border-radius:18px}}
.sb-card h2{margin:0 40px 6px 0;font-size:1.5rem}
.sb-muted{color:#555;margin:0 0 12px;font-size:1rem}
.sb-x{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;color:#333}
.sb-field{display:block;margin:0 0 12px}
.sb-field span{display:block;font-weight:700;margin-bottom:5px;font-size:1.02rem}
.sb-field textarea,.sb-field input{width:100%;box-sizing:border-box;font:inherit;font-size:max(17px,1.05rem);padding:12px;border:2px solid #d9d4c3;border-radius:12px;background:#fff;color:#111}
.sb-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sb-err{color:#b00020;min-height:1.2em;margin:0 0 8px;font-weight:700}
.sb-send{display:block;width:100%;min-height:54px;border:0;border-radius:14px;background:#f5b524;color:#111;font:inherit;font-size:1.15rem;font-weight:900;cursor:pointer}
.sb-send:disabled{opacity:.6}
html.sb-lock{overflow:hidden}
@media (prefers-color-scheme:dark){
  .sitebar input[type=search],.sb-results,.sb-card,.sb-more,.sb-field textarea,.sb-field input{background:#151410;color:#f3efe2;border-color:#2d2a20}
  .sb-btn{background:rgba(255,255,255,.06);color:#d8d5ca;border-color:rgba(255,255,255,.1)}
  .sb-btn:hover{background:rgba(255,255,255,.12);color:#fff}
  .sb-s,.sb-count,.sb-muted{color:#c9c2ad}.sb-x,.sb-clear{color:#ddd}.sb-list li a{border-top-color:#2c281d}
  .sb-list li.on a,.sb-list li a:hover,.sb-list li a:focus{background:#2e2817}.sb-kind{background:#4a3a10;color:#ffd770}
  .sb-btn[aria-current=page]{background:#f5b524;border-color:#f5b524;color:#111}
}
/* Dark views (Home / Challenges / Neon / Glow) — ultra-clean low-noise pills */
body.challenges-view .sitebar input[type=search],
html.th-dark .sitebar input[type=search]{background:#14130e;color:#f3f3f3;border:1px solid #2b2820}
body.challenges-view .sitebar input[type=search]:focus,
html.th-dark .sitebar input[type=search]:focus{border-color:#f5b524}
body.challenges-view .sb-btn,
html.th-dark .sb-btn{background:rgba(255,255,255,.055) !important;color:#d6d3c8 !important;border:1px solid rgba(255,255,255,.10) !important}
body.challenges-view .sb-btn:hover,
html.th-dark .sb-btn:hover{background:rgba(255,255,255,.11) !important;color:#fff !important}
body.challenges-view .sb-btn[aria-current=page],
html.th-dark .sb-btn[aria-current=page]{background:#f5b524 !important;border-color:#f5b524 !important;color:#111 !important}
html.th-dark .sb-results,html.th-dark .sb-card,html.th-dark .sb-more,html.th-dark .sb-field textarea,html.th-dark .sb-field input{background:var(--card,#141414);color:var(--ink,#f3f3f3);border-color:var(--line,#2e2b21)}
html.th-dark .sb-s,html.th-dark .sb-count,html.th-dark .sb-muted,html.th-dark .sb-icon{color:var(--muted,#c9c2ad)}
html.th-dark .sb-x,html.th-dark .sb-clear{color:var(--ink,#ddd)}
html.th-dark .sb-list li a{border-top-color:var(--line,#2c281d)}
html.th-dark .sb-list li.on a,html.th-dark .sb-list li a:hover,html.th-dark .sb-list li a:focus{background:var(--blue-soft,#2e2817)}
html.th-dark .sb-kind{background:var(--blue,#f5b524);color:var(--on-accent,#111)}
html.th-dark .sb-list mark{background:var(--blue,#ffe08a);color:var(--on-accent,#111)}
html.th-dark .sb-send{background:var(--blue,#f5b524);color:var(--on-accent,#111)}

/* Nov 17 2026: feedback link in the search results */
.sb-fbline{margin:4px 10px 10px;font-size:.95rem;line-height:1.4}
.sb-fb{min-height:40px;padding:0 6px;border:0;background:none;color:inherit;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
