/* Modern Toolbox popup styles */
:root{
  --bg:#ffffff;
  --muted:#6b7280;
  --accent:#0d6efd;
  --subtle:#f3f4f6;
  --card:#ffffff;
  --radius:10px;
  --shadow: 0 4px 14px rgba(13,110,253,0.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; color:#0f172a;background:var(--bg);}
header.popup-header{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #eef2f7;background:linear-gradient(90deg, #ffffff 0%, #fbfdff 100%);}
.popup-logo{width:36px;height:36px;border-radius:8px;flex:0 0 36px;background:url(icon.png) center/cover no-repeat}
.popup-title{font-weight:700;font-size:15px;color:#0f172a}
.popup-sub{font-size:12px;color:var(--muted)}
.tabs{display:flex;gap:0;border-bottom:2px solid #eef2f7;padding:0 14px;background:#fbfdff}
.tab{flex:1;padding:8px 4px;border:none;background:transparent;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s}
.tab:hover{color:#0f172a}
.tab.active{color:var(--accent);border-bottom-color:var(--accent)}
.container{padding:12px}
.controls{display:flex;gap:10px;align-items:center}
.search-wrap{flex:1;display:flex;align-items:center;background:var(--subtle);padding:6px;border-radius:10px}
.search-wrap input{flex:1;border:0;background:transparent;padding:6px 8px;font-size:14px;outline:none}
.search-icon{width:18px;height:18px;opacity:.6;margin-left:6px}
.status{font-size:12px;color:var(--muted)}
.items-list{list-style:none;margin:10px 0;padding:0;max-height:360px;overflow:auto}
.item-card{display:block;padding:10px;border-radius:8px;background:linear-gradient(180deg,#ffffff,#fbfdff);border:1px solid #eef2f7;margin-bottom:8px;box-shadow:var(--shadow);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.item-card:hover{transform:translateY(-4px)}
.item-row{display:flex;align-items:flex-start;gap:10px}
.item-meta{font-size:12px;color:var(--muted);margin-top:6px}
.item-title{font-weight:600;font-size:14px;color:#0f172a}
.item-excerpt{font-size:13px;color:#374151;margin-top:6px}
.badges{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.badge{background:#eef2f7;color:#0f172a;padding:4px 8px;border-radius:999px;font-size:12px}
.load-more{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:linear-gradient(180deg,var(--accent),#0056d6);color:white;border:none;cursor:pointer}
.loading-more{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.no-results{padding:14px;text-align:center;color:var(--muted);font-size:13px}
.tax{font-size:12px;color:var(--muted);margin-top:4px}
.footer{padding:8px 12px;border-top:1px solid #eef2f7;text-align:center;font-size:12px;color:var(--muted)}
.footer a{color:var(--accent);text-decoration:none}
.footer a:hover{text-decoration:underline}
.hidden{display:none!important}
.item-card.focused{outline:2px solid var(--accent);outline-offset:-2px}
.spinner{width:16px;height:16px;border:2px solid #d1d5db;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
/* Accessibility focus */
.item-card:focus{outline:3px solid rgba(13,110,253,0.12)}
/* Small viewport adjustments */
@media (max-width:380px){.container{padding:10px}.popup-title{font-size:14px}.item-title{font-size:13px}}
