[hidden] { display:none !important; }
body { font-family: Segoe UI, Arial, sans-serif; background:#f4f6f8; margin:0; padding:24px; direction:rtl; }
  .wrap { max-width: 900px; margin: 0 auto; }
  h1 { font-size: 22px; color:#222; }
  #logoutLink { font-size: 13px; font-weight: normal; color:#2563eb; text-decoration: none; margin-inline-start: 10px; }
  #logoutLink:hover { text-decoration: underline; }
  #stats { color:#666; font-size:13px; margin-bottom:16px; }
  .searchbox { display:flex; gap:8px; margin-bottom:12px; }
  #q { flex:1; padding:12px 14px; font-size:16px; border:1px solid #ccc; border-radius:8px; }
  #askBtn { padding:12px 22px; font-size:16px; background:#2563eb; color:#fff; border:none; border-radius:8px; cursor:pointer; }
  #askBtn:hover { background:#1d4ed8; }
  .dateRangeBox { display:flex; align-items:center; gap:8px; margin-bottom:10px; font-size:14px; color:#444; }
  .filterLabel { white-space:nowrap; font-weight:600; color:#333; }
  #dateFrom, #dateTo { padding:9px 10px; font-size:14px; border:1px solid #ccc; border-radius:8px; background:#fff; font-family: inherit; }
  #clearDatesBtn, #clearAgentsBtn { padding:9px 12px; font-size:13px; background:#fff; color:#555; border:1px solid #ccc; border-radius:8px; cursor:pointer; }
  #clearDatesBtn:hover, #clearAgentsBtn:hover { background:#f0f0f0; }
  .agentFilterBox { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:14px; font-size:14px; color:#444; }
  .agentChip { display:inline-flex; align-items:center; gap:4px; background:#fff; border:1px solid #ccc; border-radius:14px; padding:5px 11px; cursor:pointer; font-size:13px; user-select:none; }
  .agentChip:hover { background:#f0f4ff; }
  .agentChip.on { background:#2563eb; border-color:#2563eb; color:#fff; }
  .agentChip input { margin:0; cursor:pointer; }
  .totalsRow td { font-weight:700; border-top:2px solid #333; background:#f8f9fb; }
  .agentLink { display:inline-block; min-width:22px; text-align:center; color:#2563eb; text-decoration:none; font-weight:600; border:1px solid #cbd5e1; border-radius:6px; padding:1px 6px; }
  .agentLink:hover { background:#2563eb; color:#fff; border-color:#2563eb; }
  .pickerBox { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:10px; }
  .pickerBox button { padding:8px 14px; border:1px solid #2563eb; background:#eef2ff; border-radius:8px; cursor:pointer; font-size:14px; }
  .pickerBox button:hover { background:#dbe4ff; }
  #itemSearch { padding:9px 12px; font-size:14px; border:1px solid #ccc; border-radius:8px; width:100%; box-sizing:border-box; margin-top:6px; }
  .itemResults { max-height:260px; overflow-y:auto; margin-top:6px; }
  .itemResult { padding:7px 10px; border-bottom:1px solid #eee; cursor:pointer; font-size:14px; }
  .itemResult:hover { background:#eef2ff; }
  #exportBtn { padding:10px 18px; font-size:14px; background:#16a34a; color:#fff; border:none; border-radius:8px; cursor:pointer; }
  #exportBtn:hover { background:#15803d; }
  .examples { margin-bottom:20px; font-size:13px; color:#555; }
  .example { display:inline-block; background:#fff; border:1px solid #ddd; border-radius:14px; padding:4px 10px; margin:4px; cursor:pointer; }
  .example:hover { background:#eef2ff; }
  #output { background:#fff; border-radius:10px; padding:18px; min-height:60px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-size:15px; line-height:1.7; }
  table { border-collapse: collapse; width:100%; margin-top:10px; }
  th, td { border-bottom:1px solid #eee; padding:6px 8px; text-align:right; font-size:14px; }
  th { background:#f8f9fb; }
  .disambig { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .disambig button { padding:8px 12px; border:1px solid #2563eb; background:#eef2ff; border-radius:8px; cursor:pointer; font-size:14px; }
  .disambig button:hover { background:#dbe4ff; }
  #exportBar { display:none; margin:12px 0; }
  .pickerTitle { margin-bottom:10px; }
  #userBar { font-size:13px; color:#666; margin-bottom:8px; }
/* sign-in page */
body.loginPage { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:0; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.loginBox { background:#fff; padding:40px; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,0.2); text-align:center; max-width:400px; margin:16px; }
.loginBox h2 { color:#222; margin:0 0 12px 0; font-size:24px; }
.loginHint { color:#666; font-size:14px; margin:0 0 20px 0; }
.googleBtn { display:block; padding:12px; font-size:16px; background:#2563eb; color:#fff; border-radius:8px; text-decoration:none; }
.googleBtn:hover { background:#1d4ed8; }
.loginBox .error { color:#dc2626; font-size:13px; margin-top:12px; }
/* header links */
.topLinks { font-size:13px; font-weight:normal; margin-inline-start:10px; }
.topLinks a, .linkBtn { color:#2563eb; text-decoration:none; background:none; border:none; cursor:pointer; font:inherit; padding:0; margin-inline-start:10px; }
.topLinks a:hover, .linkBtn:hover { text-decoration:underline; }
/* admin page */
.adminSection { background:#fff; border-radius:10px; padding:18px; margin-bottom:18px; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.adminSection h2 { font-size:18px; margin:0 0 12px 0; }
.userForm { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.userForm input, .userForm select { padding:8px 10px; font-size:14px; border:1px solid #ccc; border-radius:8px; }
.userForm button, .rowBtn { padding:8px 14px; font-size:14px; border:1px solid #2563eb; background:#eef2ff; border-radius:8px; cursor:pointer; }
.rowBtn.danger { border-color:#dc2626; background:#fef2f2; color:#b91c1c; }
.formMsg { font-size:13px; color:#b91c1c; }
.muted { color:#888; font-size:12px; }
.status-loaded { color:#15803d; } .status-rejected { color:#b91c1c; }
.agentPick { flex-basis:100%; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.agentPick label { display:inline-flex; align-items:center; gap:4px; border:1px solid #ccc; border-radius:14px; padding:4px 10px; font-size:13px; cursor:pointer; background:#fff; }
.agentPick label.on { background:#2563eb; border-color:#2563eb; color:#fff; }
tr.editing td { background:#fffbeb; }
.loadBar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:10px; }
.primaryBtn { padding:10px 18px; font-size:15px; background:#2563eb; color:#fff; border:none; border-radius:8px; cursor:pointer; }
.primaryBtn:hover { background:#1d4ed8; }
.primaryBtn:disabled { background:#94a3b8; cursor:default; }
.subTitle { font-size:15px; margin:18px 0 4px 0; }
#loadResult table { margin-bottom:6px; }
.outcome-loaded { color:#15803d; } .outcome-duplicate { color:#a16207; } .outcome-rejected, .outcome-error { color:#b91c1c; }
.autoBar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:4px 0 12px 0; padding:10px; background:#f8f9fb; border-radius:8px; font-size:14px; }
.autoBar select { padding:6px 8px; border:1px solid #ccc; border-radius:8px; }
.switch { display:inline-flex; align-items:center; gap:6px; font-weight:600; cursor:pointer; }
.loginBox input { width:100%; padding:12px; font-size:16px; border:1px solid #ccc; border-radius:8px; box-sizing:border-box; margin-bottom:12px; text-align:center; }
.loginBox #code { letter-spacing:6px; font-size:20px; direction:ltr; }
.loginBox button.googleBtn { width:100%; border:none; cursor:pointer; }
.loginBox button.googleBtn:disabled { background:#94a3b8; }
.loginLinks { margin:12px 0 0 0; font-size:13px; }
.agentScope { font-size:13px; font-weight:600; color:#15803d; margin-inline-start:6px; }
.agentScope.narrowed { color:#b45309; }
