:root {
  color-scheme: light;
  --bg: #f6f2eb;
  --bg-soft: #faf7f1;
  --card: #ffffff;
  --text: #20304a;
  --muted: #5f6b7a;
  --border: #e6e0d7;
  --accent: #2b6cb0;
  --accent-strong: #1f4f82;
  --shadow: 0 8px 18px rgba(32, 48, 74, 0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  zoom: 0.9;
}

body.terms-lock {
  overflow: hidden;
}

body.login-lock {
  overflow: hidden;
}

.app-shell {
  display: none;
}

.app-shell.app-shell-ready {
  display: block;
}

.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3100;
}

.login-overlay.login-overlay-hidden {
  display: none;
}

.login-panel {
  width: min(460px, 100%);
  background: #fffdf8;
  border: 1px solid #e8dcc8;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-label {
  font-size: 13px;
  font-weight: 700;
  color: #20304a;
}

.login-input {
  border: 1px solid #ccd8e8;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
}

.login-input:focus {
  outline: 2px solid #d9e6f5;
  border-color: #2b6cb0;
}

.captcha-placeholder {
  border: 1px dashed #9db8d8;
  border-radius: 10px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #52739a;
  background: #f6f9fd;
}

.login-feedback {
  min-height: 20px;
  font-size: 12px;
  color: #b42318;
  font-weight: 600;
}

.terms-overlay.terms-overlay-hidden {
  display: none;
}

.terms-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fffdf8;
  border: 1px solid #e8dcc8;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  padding: 26px 28px;
}

.terms-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terms-view-hidden {
  display: none;
}

.terms-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.terms-heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.terms-copy {
  font-size: 14px;
  line-height: 1.7;
  color: #445062;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.terms-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.terms-btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(43, 108, 176, 0.2);
}

.terms-btn-secondary {
  background: #ffffff;
  color: var(--accent-strong);
  border: 1px solid #d9e6f5;
}

.terms-decline-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.terms-decline-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-contact-message {
  min-height: 22px;
  color: var(--accent-strong);
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 32px;
}

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid #2b6cb0;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.topbar-logo img {
  max-width: 100%;
  max-height: 100%;
}

.topbar-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: #152742;
}

.topbar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.topbar-subtitle {
  font-size: 12px;
  color: #5f6b7a;
  line-height: 1.2;
}

.settings-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--accent-strong);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(43, 108, 176, 0.1);
}

.settings-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(34%) sepia(56%) saturate(1563%) hue-rotate(190deg) brightness(92%) contrast(92%);
}

.settings-btn.is-open {
  background: #eef4fb;
  border-color: #d9e6f5;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fffdf8;
  border: 1px solid #e8dcc8;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(32, 48, 74, 0.2);
  padding: 12px 14px;
  display: none;
  z-index: 1200;
  transform-origin: top right;
}

.settings-panel.is-open {
  display: block;
  animation: settingsPop 0.18s ease-out;
}

@keyframes settingsPop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 14px;
  height: 14px;
  background: #fffdf8;
  border-left: 1px solid #e8dcc8;
  border-top: 1px solid #e8dcc8;
  transform: rotate(45deg);
}

.manage-btn:hover {
  transform: scale(1.2);
}


.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.settings-title {
  font-size: 14px;
  font-weight: 700;
}

.manage-btn {
  background: #ffffff;
  border: 1px solid #d9e6f5;
  color: var(--accent-strong);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.client-entry {
  border-top: 1px solid #efe6d6;
  padding: 10px 0;
}

.client-entry:first-of-type {
  border-top: none;
  padding-top: 0;
}

.client-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.client-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
}

.client-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid #2b6cb0;
  border-radius: 16px;
  padding: 12px 16px;
  background: #f2f7fd;
}

.hero .title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}

.description {
  color: #445062;
  font-size: 15px;
  max-width: 640px;
  line-height: 1.5;
}

.top-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 8px;
  padding: 0 0 18px;
}

.top-actions-grid .source-card {
  min-height: 118px;
  padding: 12px 14px;
}

.quick-actions-band {
  margin: 0 0 8px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.section-heading {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  column-gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #152742;
  margin: 8px 0 8px;
}

.section-heading img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  justify-self: center;
}

.source-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  min-height: 146px;
  display: flex;
  flex-direction: column;
}

.source-card.is-active {
  border: 2px solid #2b6cb0;
  box-shadow: 0 10px 20px rgba(43, 108, 176, 0.25);
}

.search-all-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #d9e6f5;
  background: #ffffff;
}

.search-all-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(43, 108, 176, 0.2);
}

.search-all-btn[disabled] {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

.search-all-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 0.8em 1.15em 0.8em 0.9em;
  color: #ffffff;
  background: linear-gradient(135deg, #2b6cb0, #1f4f82);
  border: none;
  letter-spacing: 0.03em;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(43, 108, 176, 0.28);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.search-all-launch-label {
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.search-all-launch-btn svg {
  margin-right: 2px;
  transform: rotate(30deg);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.search-all-launch-btn:hover:not([disabled]) svg {
  transform: translateX(5px) rotate(90deg);
}

.search-all-launch-btn:hover:not([disabled]) .search-all-launch-label {
  transform: translateX(7px);
}

.search-all-launch-btn:hover:not([disabled]) {
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(31, 79, 130, 0.34);
}

.search-all-launch-btn[disabled] {
  opacity: 0.76;
  cursor: default;
  box-shadow: none;
}

.search-all-progress {
  min-height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #2b6cb0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-all-progress.is-done {
  color: #15803d;
}

.search-all-progress.is-done img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.search-all-progress.is-done.is-emphasized {
  font-size: 24px;
  gap: 10px;
  animation: donePop 0.32s ease-out;
}

.search-all-progress.is-done.is-emphasized img {
  width: 28px;
  height: 28px;
}

.search-all-source-progress {
  width: min(230px, 95%);
  display: none;
  align-items: center;
  gap: 8px;
}

.search-all-source-progress.is-active {
  display: flex;
}

.search-all-source-progress-bar {
  flex: 1;
  height: 5px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
}

.search-all-source-progress-fill {
  height: 100%;
  width: 0;
  background: #2b6cb0;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.search-all-source-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: #2b6cb0;
  min-width: 36px;
  text-align: right;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
}

.action-card-main {
  justify-content: center;
}

.action-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f4f82;
  margin-bottom: 2px;
  align-self: flex-start;
  text-align: left;
}

.action-link {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--accent-strong);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.action-link:hover {
  background: #f5f7fb;
}

.client-table-link {
  position: relative;
  border: 1px solid #2b6cb0;
  color: #1f4f82;
  background: #ffffff;
  overflow: hidden;
  z-index: 0;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.client-table-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2b6cb0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  z-index: -1;
}

.client-table-link:hover {
  color: #ffffff;
  border-color: #1f4f82;
}

.client-table-link:hover::before {
  transform: scaleX(1);
}

.client-table-link.is-complete {
  border-color: #16a34a;
  color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  animation: tableDonePop 0.3s ease-out;
}

.client-table-link.is-complete::before {
  background: #16a34a;
  transform: scaleX(0);
}

.client-table-link.is-complete.is-complete-flash::before {
  animation: tableFillFlash 0.7s ease-out;
}

.client-table-label {
  font-size: inherit;
}

.client-table-meta {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #3f4d63;
  white-space: nowrap;
}

.client-table-link.is-disabled {
  pointer-events: none;
  cursor: default;
  background: #eef1f5;
  border-color: #c7ced8;
  color: #778295;
  box-shadow: none;
}

.view-results-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 4px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 0.8em 1.15em 0.8em 0.9em;
  min-width: 0;
  width: fit-content;
  color: #ffffff;
  background: linear-gradient(135deg, #2b6cb0, #1f4f82);
  border: none;
  letter-spacing: 0.03em;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(43, 108, 176, 0.28);
  text-decoration: none;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.view-results-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(31, 79, 130, 0.34);
}

.view-results-btn.is-disabled {
  pointer-events: none;
  cursor: default;
  background: #8f9eb2;
  color: #edf1f6;
  box-shadow: none;
}

.source-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
}

.source-url {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}

.scrape-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(43, 108, 176, 0.2);
}

.scrape-btn:disabled {
  background: #475569;
  cursor: default;
  box-shadow: none;
}

.results {
  margin-top: 10px;
}

.dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.dot {
  height: 8px;
  width: 8px;
  margin-right: 6px;
  border-radius: 10px;
  background-color: #b3d4fc;
  animation: pulse 1.5s infinite ease-in-out;
}

.dot:last-child {
  margin-right: 0;
}

.dot:nth-child(1) {
  animation-delay: -0.3s;
}

.dot:nth-child(2) {
  animation-delay: -0.1s;
}

.dot:nth-child(3) {
  animation-delay: 0.1s;
}

.button-dots-container {
  min-height: 18px;
}

.scrape-btn-loading {
  min-width: 110px;
  padding: 8px 10px;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    background-color: #b3d4fc;
    box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
  }

  50% {
    transform: scale(1.2);
    background-color: #6793fb;
    box-shadow: 0 0 0 10px rgba(178, 212, 252, 0);
  }

  100% {
    transform: scale(0.8);
    background-color: #b3d4fc;
    box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
  }
}

.bottom-loader.content-loader {
  width: fit-content;
  height: auto;
  margin-top: 4px;
  margin-bottom: 10px;
}

.bottom-loader-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.bottom-loader-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-loader-circle,
.bottom-loader-line-1,
.bottom-loader-line-2 {
  background-color: #d1d5db;
  animation: bottom-loader-pulse 1.2s ease-in-out infinite;
}

.bottom-loader-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.bottom-loader-line-1 {
  width: 112px;
  height: 20px;
  border-radius: 999px;
}

.bottom-loader-line-2 {
  width: 144px;
  height: 20px;
  border-radius: 999px;
}

@keyframes bottom-loader-pulse {
  0% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.55;
  }
}

.results details {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 8px;
}

.results summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.results summary .count {
  color: var(--accent-strong);
}

.results summary::-webkit-details-marker {
  display: none;
}

.results summary::before {
  content: "▲";
  font-size: 10px;
  color: var(--muted);
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.results details[open] summary::before {
  transform: rotate(0deg);
}

@keyframes popInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline.pop-in {
  animation: popInUp 0.35s ease;
}

.wrap-up {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  max-height: 0;
  opacity: 0;
}

.results details[open] .wrap-up {
  max-height: 2000px;
  opacity: 1;
}

.headline {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.headline:first-child {
  border-top: none;
}

.headline a {
  color: var(--accent);
  text-decoration: none;
}

.headline a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #eef4fb;
  color: var(--accent-strong);
  border: 1px solid #d9e6f5;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  margin-right: 6px;
  margin-top: 6px;
}

.client-pill {
  display: inline-flex;
  align-items: center;
  background: #2b6cb0;
  color: white;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  margin-top: 6px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  margin-top: 6px;
}

.priority-critical { background: #b91c1c; color: white; }
.priority-high { background: #dc2626; color: white; }
.priority-medium { background: #d97706; color: white; }
.priority-low { background: #475569; color: white; }

.signal-pill {
  display: inline-flex;
  align-items: center;
  background: #eef4fb;
  color: var(--accent-strong);
  border: 1px solid #d9e6f5;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  margin-right: 6px;
  margin-top: 6px;
}

@keyframes donePop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tableDonePop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tableFillFlash {
  0% {
    transform: scaleX(0);
  }
  25% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(32, 48, 74, 0.18);
  overflow: hidden;
  z-index: 3200;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.page-load-bar.is-visible {
  opacity: 1;
}

.page-load-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: #0071e2;
  animation: pageLoadSweep 0.95s ease-in-out infinite;
}

@keyframes pageLoadSweep {
  0% {
    left: -40%;
  }
  50% {
    left: 30%;
  }
  100% {
    left: 100%;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  width: min(1100px, 92vw);
  max-height: 85vh;
  background: #ffffff;
  border: 2px solid #cfe0f5;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  padding: 18px 20px;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efe6d6;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-card {
  border: 2px solid #2b6cb0;
  border-radius: 12px;
  padding: 12px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  box-shadow: 0 6px 12px rgba(43, 108, 176, 0.08);
  color: #152742;
}

.analysis-card a {
  color: #1f4f82;
  font-weight: 700;
  text-decoration: none;
}

.analysis-card a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.footer-attribution {
  margin-top: 8px;
  font-size: 11px;
  color: #7a8799;
}

@media (max-width: 1100px) { .sources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-actions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .analysis-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .navbar-inner {
    padding: 8px 12px;
  }
  .topbar-title {
    font-size: 17px;
  }
  .topbar-subtitle {
    font-size: 10px;
  }
  .settings-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  .container {
    padding: 8px 12px 24px;
  }
  .top-actions-grid {
    padding: 0 0 14px;
  }
  .section-heading {
    font-size: 16px;
  }
  .sources-grid { grid-template-columns: 1fr; }
  .terms-panel {
    padding: 22px 18px;
  }
  .terms-decline-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .terms-heading {
    font-size: 24px;
  }
  .terms-actions {
    flex-direction: column;
  }
  body {
    zoom: 1;
  }
}
