@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

.app-shell.rtl {
  font-family: "IBM Plex Sans Arabic", "Inter", Tahoma, Arial, sans-serif;
}

.content { max-width: 1440px; padding: 38px 40px; }
.brand strong { font-size: 18px; }
.brand span { font-size: 12px; }
.nav-list button { font-size: 16.5px; padding-top: 13px; padding-bottom: 13px; }
.sidebar-profile strong { font-size: 14px; }
.sidebar-profile span { font-size: 12px; }
.mode-switch button { font-size: 14px; padding: 10px 15px; }
.user-chip { font-size: 14px; }
.plan-badge { font-size: 12px; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: 38px; line-height: 1.1; font-weight: 800; }
.page-heading p { font-size: 16px; line-height: 1.6; }
.eyebrow { font-size: 12px; font-weight: 800; }
.btn { min-height: 46px; font-size: 14px; padding-left: 18px; padding-right: 18px; border-radius: 11px; }
.btn.compact { font-size: 13px; }
.saved-profiles button { font-size: 13px; padding: 9px 13px; }
.search-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; }
.search-config { gap: 17px; }
.config-card { padding: 24px; border-radius: 16px; box-shadow: 0 5px 18px rgba(29,45,77,.045); }
.section-title { margin-bottom: 17px; }
.section-title h2 { font-size: 17px; font-weight: 750; }
.section-title small { font-size: 12px; }
.section-title > span { width: 32px; height: 32px; font-size: 12.5px; }
.chip-grid { gap: 9px; }
.chip-grid button,
.source-list button { font-size: 13.25px; line-height: 1.2; padding: 10px 13px; border-radius: 9px; font-weight: 650; }
.custom-entry { margin-top: 13px; }
.custom-entry input,
.custom-entry button { font-size: 13.5px; min-height: 45px; }
.search-summary { padding: 24px; border-radius: 16px; box-shadow: 0 5px 18px rgba(29,45,77,.045); }
.search-summary h2 { font-size: 20px; margin-bottom: 5px; }
.search-summary label { font-size: 13.5px; font-weight: 650; }
.search-summary select,
.search-summary textarea { font-size: 13.5px; }
.summary-metrics { gap: 10px; }
.summary-metrics > div { padding: 16px 10px; border-radius: 11px; }
.summary-metrics strong { font-size: 26px; }
.summary-metrics span { font-size: 11.5px; }
.source-list { gap: 8px; }
.sjh-search-heading-actions { display: inline-flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.sjh-reset-search { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border: 1px solid #b9c7e3; border-radius: 11px; background: #ffffff; color: #42526d; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; box-shadow: 0 4px 12px rgba(29,45,77,.06); transition: .18s ease; }
.sjh-reset-search:hover { transform: translateY(-1px); color: #2855d9; border-color: #99afe0; background: #f7f9ff; }
.app-shell.dark .sjh-reset-search { background: #171f30; border-color: #39455d; color: #d5deed; }
.app-shell.rtl .page-heading h1,
.app-shell.rtl .section-title h2,
.app-shell.rtl .nav-list button,
.app-shell.rtl .btn,
.app-shell.rtl .sjh-reset-search { letter-spacing: 0; }

@media (max-width: 1180px) {
  .search-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .content { padding: 32px; }
}

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-summary { position: static; }
}

@media (max-width: 720px) {
  .content { padding: 22px 16px; }
  .page-heading h1 { font-size: 32px; }
  .sjh-search-heading-actions { flex-wrap: wrap; }
}


.search-heading-actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reset-search-button { border-color: #c9d4e8; color: #51627e; background: #fff; }
.reset-search-button:hover { border-color: #9fb4dc; color: #2855d9; background: #f7f9ff; }
.app-shell.rtl .search-heading-actions { flex-direction: row-reverse; }
body { font-size: 16px; }
.page-heading h1 { font-size: 38px; }
.page-heading p { font-size: 16px; }
.section-title h2 { font-size: 17px; }
.chip-grid button, .source-list button { font-size: 13px; padding: 10px 13px; }
.custom-entry input, .custom-entry button { font-size: 13.5px; min-height: 45px; }
.nav-list button { font-size: 16px; }
.search-summary label { font-size: 13.5px; }
@media (max-width: 720px) { .page-heading h1 { font-size: 32px; } }
