:root{--bg:#f6f7fb;--card:#fff;--ink:#1d2433;--mute:#6b7385;--line:#e5e8f0;--acc:#4f46e5;--acc2:#eef0ff;--ok:#0f9d58;--okbg:#e7f7ee;--warn:#b45309;--warnbg:#fff4e0;--bad:#b91c1c;--badbg:#fdecec}
*{box-sizing:border-box}html,body{margin:0}body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);font-size:15px}
a{color:var(--acc)}.hidden{display:none!important}
.top{position:sticky;top:0;z-index:10;display:flex;gap:20px;align-items:center;padding:12px 24px;background:#fff;border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:19px;white-space:nowrap;color:var(--ink);text-decoration:none}.brand span{background:linear-gradient(90deg,#4f46e5,#06b6d4);-webkit-background-clip:text;background-clip:text;color:transparent}
.nav{display:flex;gap:4px;flex:1;align-items:center}.nav .s{display:none}.nav a{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:10px;color:var(--mute);text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap}
.nav a.on,.nav a:hover{background:var(--acc2);color:var(--acc)}
.nav-ic{width:22px;height:22px;flex-shrink:0;display:none}
.nav a.nav-settings{padding:8px;width:40px;height:40px;justify-content:center;gap:0}
.nav a.nav-settings .nav-ic{display:block}
.nav a.nav-settings .nav-txt{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.badge{display:inline-block;min-width:18px;padding:1px 6px;border-radius:999px;background:var(--bad);color:#fff;font-size:11px;text-align:center;margin-inline-start:3px}
.nav a[data-r=alertes]{position:relative}
.who{font-size:13px;color:var(--mute);display:flex;gap:10px;align-items:center;white-space:nowrap}
.who-ibtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:var(--acc2);color:var(--acc);cursor:pointer;flex-shrink:0}
.who-ibtn:hover{filter:brightness(1.08)}
.who-ibtn svg{width:22px;height:22px;display:block}
.page{max-width:1200px;margin:0 auto;padding:22px 24px 90px}
h1{font-size:24px;margin:4px 0 16px}h2{font-size:17px;margin:22px 0 12px}
.muted{color:var(--mute)}.small{font-size:13px}
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border:0;border-radius:10px;background:var(--acc);color:#fff;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none}
.btn:hover{filter:brightness(1.08)}.btn.ghost{background:var(--acc2);color:var(--acc)}.btn.danger{background:var(--badbg);color:var(--bad)}.btn.sm{padding:6px 10px;font-size:13px}
.btn[disabled]{opacity:.55;cursor:wait}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.stat .v{font-size:28px;font-weight:800}.stat .l{color:var(--mute);font-size:13px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.lc{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;position:relative}
.lc .thumb{aspect-ratio:4/3;background:#eef0f5;display:flex;align-items:center;justify-content:center;color:#a0a6b4;font-size:13px}
.lc .thumb{overflow:hidden}.lc .thumb img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;display:block}
.lc .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}
.lc .price{font-size:22px;font-weight:800}.lc .price s{font-size:13px;color:var(--mute);font-weight:500;margin-left:6px}
.price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px}
.price-drop-badge{display:inline-block;font-size:11px;font-weight:700;color:var(--ok);background:var(--okbg);border-radius:999px;padding:2px 8px;line-height:1.3}
.price-drop-amt{font-size:12px;font-weight:600;color:var(--ok)}
.price-hist-wrap{position:relative;display:inline-flex;align-items:center}
.price-hist-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:var(--acc2);color:var(--acc);cursor:pointer}
.price-hist-btn svg{width:18px;height:18px;display:block}
.price-hist-pop{position:absolute;top:calc(100% + 4px);inset-inline-start:0;z-index:30;min-width:220px;max-width:280px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(29,36,51,.14)}
.price-hist-head{font-size:13px;font-weight:700;margin-bottom:6px}
.price-hist-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:180px;overflow:auto}
.price-hist-list li{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.price-hist-list .ph-date{color:var(--mute)}
.price-hist-list .ph-amt{font-weight:600}
.lc .title{font-size:14px;line-height:1.35;max-height:2.7em;overflow:hidden}
.lc .actions{display:flex;gap:6px;margin-top:auto}
.lc .fav{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:18px;cursor:pointer;color:#9aa0ad}
.lc .fav.on{color:#e11d48}
.lc.gone{opacity:.6}
.tags{display:flex;flex-wrap:wrap;gap:5px}.tag{font-size:11.5px;padding:3px 8px;border-radius:999px;background:var(--bg);color:#3b4356}
.tag.site{background:var(--acc2);color:var(--acc);font-weight:600}.tag.forum{background:#fef9c3;color:#854d0e}.tag.social{background:#ede9fe;color:#5b21b6}.tag.ok{background:var(--okbg);color:var(--ok);font-weight:600}
.tag.warn{background:var(--warnbg);color:var(--warn)}.tag.bad{background:var(--badbg);color:var(--bad)}
.spark{width:100%;height:44px}.spark polyline{fill:none;stroke:var(--acc);stroke-width:2}.spark circle{fill:var(--acc)}
.list{display:flex;flex-direction:column;gap:10px}
.row{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;flex-wrap:wrap}
.row .grow{flex:1;min-width:200px}.row .t{font-weight:700}.row.unread{border-left:4px solid var(--acc)}
.form{display:grid;gap:14px;max-width:760px}.form.two{grid-template-columns:1fr 1fr}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3b4356}
input,select,textarea{font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus{outline:2px solid var(--acc2);border-color:var(--acc)}
input[type=checkbox]{width:auto}
.checks{display:flex;flex-wrap:wrap;gap:8px}.checks label{display:flex;gap:6px;align-items:center;font-size:13.5px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer}
.seg{display:inline-flex;background:var(--bg);border-radius:10px;padding:3px;border:1px solid var(--line)}.seg button{border:0;background:none;padding:8px 14px;border-radius:8px;cursor:pointer;font-weight:600;color:var(--mute)}
.seg button.on{background:#fff;color:var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.searchbar{display:flex;gap:8px;flex-wrap:wrap}.searchbar input{flex:1;min-width:220px}
.banner{max-width:1200px;margin:14px auto 0;padding:12px 16px;border-radius:12px;background:var(--warnbg);color:var(--warn);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.banner .btn{margin-left:auto}
.notice{padding:12px 16px;border-radius:12px;background:var(--acc2);color:var(--acc);font-size:14px}.notice.err{background:var(--badbg);color:var(--bad)}.notice.ok{background:var(--okbg);color:var(--ok)}
.toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;z-index:50;font-size:14px;max-width:90vw}
.center-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.auth-wrap{display:flex;justify-content:center;padding-top:30px}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;max-width:420px;width:100%;display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 40px rgba(20,30,60,.06)}
.auth-card h1{margin:0}.auth-card .brand{font-size:22px}
.sep{height:1px;background:var(--line);margin:6px 0}
.codes{font-family:ui-monospace,monospace;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--bg);padding:12px;border-radius:10px}
.qr{width:200px;height:200px}
.sites{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.empty{padding:30px;text-align:center;color:var(--mute);background:#fff;border:1px dashed var(--line);border-radius:16px}
table.t{width:100%;border-collapse:collapse;font-size:13px}table.t td,table.t th{padding:8px;border-bottom:1px solid var(--line);text-align:left}
@media (max-width:860px){
  .top{padding:10px 14px;gap:10px}.who .email{display:none}
  .nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:20;gap:4px}
  .nav a{flex:1;max-width:72px;font-size:0;padding:8px 4px;min-height:48px;justify-content:center;text-align:center;border-radius:12px}
  .nav .nav-txt,.nav .l,.nav .s{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .nav .nav-ic,.nav a.nav-settings .nav-ic{display:block;width:24px;height:24px}
  .nav a.nav-settings{width:auto;height:auto;padding:8px 4px}
  .nav a.on,.nav a:hover{background:var(--acc2);color:var(--acc)}
  .nav a[data-r=alertes] .badge{position:absolute;top:4px;inset-inline-end:8px;margin:0;min-width:16px;padding:0 5px;font-size:10px;line-height:16px;z-index:1}
  .page{padding:16px 14px 100px}.form.two{grid-template-columns:1fr}.grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
  .lc .price{font-size:18px}
  .price-hist-btn{width:40px;height:40px;min-width:40px;min-height:40px}
}
.lc .searchbar input{min-width:0;flex:1}.lc .searchbar{flex-wrap:nowrap}
/* ---------- unified search (ported from the :8000 UI, same design system) ---------- */
body.anon .nav a.auth{display:none}
.langsel{width:auto;padding:6px 8px;font-size:13px;border-radius:9px}
.langdd{position:relative;display:inline-flex;align-items:center}
.langdd-btn{display:inline-flex;align-items:center;gap:6px;margin:0;padding:5px 8px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:700;letter-spacing:.02em;cursor:pointer;line-height:1;white-space:nowrap}
.langdd-btn:hover,.langdd.open .langdd-btn{border-color:#c5cae0;background:#f8f9fd}
.langdd-flag{width:18px;height:12px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.18);object-fit:cover;flex-shrink:0;display:block;background:#e8eaf0}
.langdd-code{font-size:12px;font-weight:700;letter-spacing:.04em}
.langdd-list{position:absolute;top:calc(100% + 4px);inset-inline-end:0;z-index:40;min-width:13.5rem;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(29,36,51,.14);max-height:min(70vh,22rem);overflow:auto}
.langdd-list[hidden]{display:none}
.langdd-opt{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;cursor:pointer;font-size:13px;line-height:1.2;color:var(--ink);white-space:nowrap}
.langdd-opt:hover,.langdd-opt.active{background:var(--acc2)}
.langdd-opt[aria-selected="true"]{font-weight:700}
.langdd-opt .langdd-name{font-weight:500;color:var(--ink);min-width:0;unicode-bidi:isolate}
.langdd-opt .langdd-code{color:var(--mute);min-width:1.6em}
.langbtn{display:flex;align-items:center;gap:8px}
.langbtn .langdd-flag{width:18px;height:12px}
.searchbar.big{background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 6px 24px rgba(20,30,60,.05)}
.searchbar.big input[type=search]{border:0;font-size:16px;min-width:200px}

.search-mode{display:flex;gap:4px;align-items:stretch;flex:0 0 auto;background:var(--acc2,#eef2ff);border-radius:999px;padding:3px}
.mode-btn{border:0;background:transparent;border-radius:999px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer;color:var(--muted,#445);white-space:nowrap}
.mode-btn.on{background:#fff;color:var(--acc,#254);box-shadow:0 1px 4px rgba(20,30,60,.12);font-weight:600}
.new-results-banner{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:10px 0 0;padding:10px 16px;border:1px solid var(--acc,#3a6);border-radius:12px;background:var(--okbg,#e8f7ee);color:var(--ok,#146);font:inherit;font-size:14px;cursor:pointer;box-shadow:0 2px 10px rgba(20,30,60,.06)}
.new-results-banner:hover{filter:brightness(.98)}
.new-results-banner .banner-action{font-weight:700;text-decoration:underline}
.new-results-banner.hidden{display:none}
@media(max-width:720px){.search-mode{flex:1 1 100%;justify-content:center}}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:13.5px;cursor:pointer;white-space:nowrap}
.chip.loc{background:var(--acc2);color:var(--acc);border-color:transparent;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.chip.small{padding:5px 10px;font-size:12.5px}
.locpanel{margin-top:10px;display:grid;gap:10px}
.loced{display:grid;gap:10px}.loced .row0{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:10px}
.loced.compact .row0{grid-template-columns:1fr 1fr}
.inline{display:flex;gap:8px;align-items:center}.inline input{flex:1;min-width:0}
.radius{display:flex;gap:12px;align-items:center}.radius input{flex:1}
.row0{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row0 .grow,.grow{flex:1}
.progress{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.pchip{font-size:12.5px;padding:5px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);display:inline-flex;gap:4px;align-items:center}
.pchip.ok{border-color:#bfe8cf}.pchip.blocked,.pchip.challenge,.pchip.error{border-color:#f5c2c2;background:var(--badbg)}.pchip.needs_keys{background:var(--warnbg)}
.spinner{display:inline-block;width:12px;height:12px;border:2px solid var(--acc2);border-top-color:var(--acc);border-radius:50%;animation:spin .8s linear infinite;margin-inline-end:6px;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}
.layout{display:grid;grid-template-columns:270px 1fr;gap:18px;align-items:start;margin-top:10px}
.layout .main{min-width:0}
.filters{position:sticky;top:76px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 96px);overflow:auto}
.filters:empty,.filters.hidden{display:none}
.layout:has(.filters.hidden){grid-template-columns:1fr}
.fsec h3{font-size:13px;margin:0 0 8px;color:#3b4356;display:flex;justify-content:space-between;gap:6px;align-items:baseline}
.fsec .mini,.mini{font-size:11.5px;font-weight:500}
.checklist{display:flex;flex-direction:column;gap:4px}.checklist label{display:flex;gap:6px;align-items:center;font-size:13.5px;cursor:pointer}
.checklist label .n{margin-inline-start:auto;color:var(--mute);font-size:12px}.checklist label.disabled{opacity:.55}
.pricef{display:grid;gap:6px}
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:12px}
.toolbar select{width:auto}
.lc .rank{position:absolute;top:10px;inset-inline-start:10px;background:rgba(29,36,51,.85);color:#fff;font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;z-index:1}
.lc .deal{position:absolute;top:40px;inset-inline-start:10px;background:var(--ok);color:#fff;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;z-index:1}
.lc .deal.neg{background:#6b7385}
.lc .fav{inset-inline-end:10px;right:auto}
[dir=ltr] .lc .fav{right:10px}
.lc .price small{display:block;font-size:12px;color:var(--mute);font-weight:500}
.lc.newwin{border-color:#0f9d58;box-shadow:0 0 0 2px #e7f7ee}
.tag.new{background:#e0f2fe;color:#0369a1;font-weight:600}.tag.dlv{background:#f3f4f6}
.newnote{font-size:12.5px;color:var(--ok);font-weight:600}
.highlights{display:grid;gap:8px;margin-bottom:12px}
.hl{display:flex;gap:12px;align-items:center;background:var(--okbg);border:1px solid #bfe8cf;border-radius:14px;padding:10px 14px;font-size:14px}
.hl.plain{background:#fff;border-color:var(--line)}.hl img{width:56px;height:42px;object-fit:cover;border-radius:8px}
.foot{margin-top:18px;display:grid;gap:6px}
.empty.intro{margin-top:18px;display:grid;gap:8px;justify-items:center}.empty .big{font-size:40px}
.examples{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.sitepick{border-color:var(--acc)}
.st{font-size:11px;padding:2px 7px;border-radius:999px;background:var(--bg);color:var(--mute);white-space:nowrap}
.st.implemented{background:var(--okbg);color:var(--ok)}.st.blocked{background:var(--badbg);color:var(--bad)}
.st.needs_keys{background:var(--warnbg);color:var(--warn)}.st.planned{background:var(--acc2);color:var(--acc)}.st.closed{background:#eee;color:#777}
.langgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.langbtn{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font:inherit;text-align:start}
.langbtn.on{border-color:var(--acc);background:var(--acc2);color:var(--acc)}
.fsub{display:grid;gap:8px;padding:12px;border:1px dashed var(--line);border-radius:12px}
.scroll{overflow-x:auto}
.notice.info{background:var(--acc2)}
[dir=rtl] table.t td,[dir=rtl] table.t th{text-align:right}
[dir=rtl] .banner .btn{margin-left:0;margin-right:auto}
@media (max-width:860px){
  .layout{grid-template-columns:1fr}
  .filters{position:static;max-height:none;order:2}
  .layout .main{order:1}
  .loced .row0,.loced.compact .row0{grid-template-columns:1fr}
  .searchbar.big{flex-wrap:wrap}.searchbar.big input[type=search]{flex:1 1 100%}
  .searchbar.big .chip.loc{flex:1}
  .who .langdd{max-width:none}
  .who .langdd-btn{max-width:none}
  .lc .deal{top:36px}
}

/* prices: original currency first, conversion smaller */
.price .orig { font-weight: 700; }
.price .conv { font-size: .78em; font-weight: 500; color: var(--muted, #6b7385); white-space: nowrap; }
.cursel { max-width: 6.5rem; }

/* ---- classifier badges, cote, product page (p5) ---- */
.tag.kind{font-weight:600}
.tag.k-console_complete{background:#e0f2fe;color:#075985}
.tag.k-console_only{background:#fef3c7;color:#92400e}
.tag.k-accessory{background:#f3e8ff;color:#6b21a8}
.tag.k-game{background:#dcfce7;color:#166534}
.tag.k-bundle{background:#ffe4e6;color:#9f1239}
.tag.k-for_parts{background:#fee2e2;color:#991b1b}
.tag.k-wanted{background:#e5e7eb;color:#374151}
.lc.suspect{outline:2px solid var(--bad)}
.lc .deal.hot{background:#047857}
.cotelink{display:inline-block;margin-top:2px}
.product-page h1{margin:0 0 6px}
.product-page h2{margin:28px 0 10px;font-size:1.15rem}
.product-head{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;margin:12px 0 8px}
.cote-box{background:#eef2ff;border-radius:12px;padding:14px 18px;min-width:220px}
.cote-val{font-size:28px;font-weight:800;color:#312e81}
.cote-val .conv,.vprice .conv,.product-teaser .conv{font-size:.55em;font-weight:550;color:var(--muted,#6b7385);white-space:nowrap}
.chart-wrap{background:#fff;border-radius:12px;padding:8px 8px 4px;border:1px solid #e5e7eb;max-width:720px}
.cote-chart{width:100%;height:auto;display:block}
.cote-chart .band{fill:#c7d2fe;opacity:.55}
.cote-chart .med{fill:none;stroke:#3730a3;stroke-width:2.2}
.cote-chart .cote-line{stroke:#047857;stroke-width:1.5;stroke-dasharray:5 4}
.cote-chart .axis{font-size:10px;fill:#6b7280}
.chart-legend{padding:4px 8px 8px}
.chart-legend .lg.med::before,.chart-legend .lg.band::before{content:"";display:inline-block;width:12px;height:3px;margin-inline-end:5px;vertical-align:middle}
.chart-legend .lg.med::before{background:#3730a3}
.chart-legend .lg.band::before{background:#c7d2fe;height:8px}
a.product-teaser{text-decoration:none;color:inherit;display:block}
a.product-teaser:hover{box-shadow:0 4px 16px rgba(79,70,229,.12)}
.fsec .chk{display:block;margin:4px 0;font-size:13.5px}

.variant-bar { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .8rem 0 1rem; }
.vchip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--border, #ccc);
  text-decoration: none; color: inherit; background: var(--card, #fff); font-size: .9rem; }
.vchip.on { border-color: var(--accent, #1a6); background: var(--accent-bg, #e8f6ee); font-weight: 600; }
.vchip .vprice { font-weight: 600; font-size: .95rem; }
.deal.fallback { font-style: italic; }

/* a11y polish */
.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: #1e1b4b; color: #fff; padding: .4rem .8rem; border-radius: 6px;
}
.skip-link:focus { top: .5rem; }
:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

.from-box{background:#ecfdf5;border-radius:12px;padding:14px 18px;min-width:220px}
.from-val{font-size:28px;font-weight:800;color:#065f46}
.from-val .conv{font-size:.55em;font-weight:550;color:var(--muted,#6b7385);white-space:nowrap}

/* Alerts: actions on their own row; page title not squeezed by "mark all read". */
.row.note{align-items:flex-start;flex-wrap:nowrap;gap:14px}
.row.note .note-main{flex:1;min-width:0;display:flex;gap:12px;align-items:flex-start}
.row.note .note-main .grow{min-width:0}
.row.note .grow > .tag{display:inline-block;margin-bottom:6px}
.row.note .note-actions{display:flex;gap:8px;flex-shrink:0;align-items:center;align-self:center}
.row.note .note-ibtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:var(--acc2);color:var(--acc);text-decoration:none;cursor:pointer;flex-shrink:0}
.row.note .note-ibtn:hover{filter:brightness(1.08)}
.row.note .note-ibtn svg,.row.note .note-ic{width:22px;height:22px;display:block}
.row.note .note-ibtn.is-read,.row.note .note-ibtn.is-read[disabled]{background:#ecfdf5;color:#059669;cursor:default;opacity:1;filter:none}
.row.note .note-thumbs{position:relative;flex-shrink:0;width:76px;aspect-ratio:4/3}
.row.note .note-thumb{position:absolute;inset:0;border-radius:10px;overflow:hidden;background:#eef0f5;display:flex;align-items:center;justify-content:center;color:#a0a6b4;border:1px solid #fff;box-shadow:0 1px 4px rgba(29,36,51,.16)}
.row.note .note-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.row.note .note-thumbs.stack .note-thumb{inset:6px}
.row.note .note-thumbs.stack .note-thumb:nth-child(1){transform:rotate(-8deg) translate(-2px,1px);z-index:1}
.row.note .note-thumbs.stack-3 .note-thumb:nth-child(2){transform:rotate(7deg) translate(3px,0);z-index:2}
.row.note .note-thumbs.stack .note-thumb:last-of-type{transform:rotate(.4deg);z-index:3;box-shadow:0 2px 8px rgba(29,36,51,.22)}
.row.note .note-more{position:absolute;z-index:4;inset-inline-end:0;bottom:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#1d2433;color:#fff;font-size:10px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 1px 3px rgba(29,36,51,.25)}
.row.note .note-ph{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.row.note .note-ph svg{width:22px;height:22px}
.alerts-head{align-items:center;flex-wrap:nowrap;gap:12px}
.alerts-head h1{margin:4px 0 16px}
@media (max-width:860px){
  .top{flex-wrap:nowrap;padding:8px 12px;gap:8px}
  .brand{font-size:16px}
  .who{gap:6px;min-width:0;margin-inline-start:auto}
  .who .langsel.cursel{max-width:72px;padding:4px 6px;font-size:12px}
  .who .langdd-btn{padding:4px 6px;gap:4px;font-size:12px;border-radius:8px}
  .who .langdd-flag{width:16px;height:11px}
  .who .langdd-list{min-width:12.5rem;inset-inline-end:0}
  .who .btn.sm{padding:5px 8px;font-size:12px;white-space:nowrap}
  .alerts-head{flex-direction:column;align-items:flex-start;flex-wrap:wrap;gap:8px}
  .alerts-head h1{margin:4px 0 0}
  .row.note{flex-direction:column;flex-wrap:wrap;align-items:stretch;gap:10px}
  .row.note .note-main{flex-wrap:nowrap}
  .row.note .note-thumbs{width:64px}
  .row.note .note-ph svg{width:20px;height:20px}
  .row.note .note-actions{align-self:flex-start;width:auto;flex-wrap:wrap;margin-top:2px;min-height:40px}
}

/* search query autocomplete (uses theme tokens so it follows light/dark) */
.suggest-wrap{position:relative;flex:1;min-width:200px;display:flex}
.suggest-wrap input[type=search]{flex:1;min-width:0;width:100%}
.suggest-list{position:absolute;top:calc(100% + 4px);inset-inline-start:0;inset-inline-end:0;z-index:35;margin:0;padding:6px;list-style:none;background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(29,36,51,.14);max-height:min(50vh,16rem);overflow:auto;color:var(--ink);text-align:start}
.suggest-list[hidden]{display:none}
.suggest-opt{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:14px;text-align:start;cursor:pointer;line-height:1.3}
.suggest-opt:hover,.suggest-opt.is-active{background:var(--acc2);color:var(--acc)}
.suggest-opt mark{background:var(--acc2);color:inherit;font-weight:700;padding:0;border-radius:2px}
@media (max-width:860px){
  .searchbar.big .suggest-wrap{flex:1 1 100%;min-width:0}
}
@media (prefers-color-scheme: dark){
  .suggest-list{box-shadow:0 10px 28px rgba(0,0,0,.4)}
}
