/* Harness only: the fake browser window and the mock search page.
   Popup styling lives in extension/popup.css; badge styling is injected by extension/content.js. */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px 48px;
  background: #e7e5df;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #202124;
}

.browser {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.12);
}

.browser-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px 0; background: #dfe1e5;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #ff5f57; } .yellow { background: #febc2e; } .green { background: #28c840; }
.browser-tab {
  margin-left: 14px; padding: 7px 16px; max-width: 280px;
  background: #fff; border-radius: 8px 8px 0 0; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.browser-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; background: #fff; border-bottom: 1px solid #e3e3e3;
}
.nav-btn { color: #80868b; font-size: 16px; width: 20px; text-align: center; }
.url-bar {
  flex: 1; min-width: 0; padding: 6px 14px; border-radius: 16px; background: #f1f3f4;
  font-size: 13px; color: #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toolbar-btn {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.toolbar-btn:hover, .toolbar-btn[aria-expanded="true"] { background: #e8eaed; }
.toolbar-btn:focus-visible { outline: 2px solid #1a73e8; }
.toolbar-mark {
  width: 13px; height: 16px; background: #1d2433;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 83% 100%, 67% 85%, 50% 100%, 33% 85%, 17% 100%, 0 85%);
}

.browser-body { position: relative; min-height: 640px; }

.popup-panel {
  position: absolute; top: 6px; right: 10px; z-index: 10;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 12px 32px rgba(0,0,0,.18);
}

/* ---- Mock search results page ---- */
.serp { padding: 20px 28px 40px 160px; max-width: 900px; }
.serp-search {
  max-width: 640px; padding: 11px 20px; border: 1px solid #dfe1e5; border-radius: 24px;
  box-shadow: 0 1px 4px rgba(32,33,36,.12);
}
.serp-tabs { display: flex; gap: 22px; margin: 14px 0 18px; font-size: 13px; color: #5f6368; }
.serp-tabs b { color: #1a73e8; border-bottom: 3px solid #1a73e8; padding-bottom: 8px; font-weight: 500; }

.serp-aio {
  max-width: 660px; padding: 16px 20px 10px; border-radius: 16px; background: #f2f6fc;
}
.serp-aio h2 { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: #3c4043; }
.serp-aio p { margin: 0; font-size: 15px; }
.serp-cites { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.serp-cites a {
  font-size: 11px; color: #3c4043; text-decoration: none; background: #fff;
  border: 1px solid #dadce0; border-radius: 10px; padding: 1px 8px;
}

.serp-results { list-style: none; padding: 0; margin: 26px 0 0; max-width: 640px; }
.serp-result { margin-bottom: 24px; }
.serp-site { display: block; font-size: 12px; color: #4d5156; }
.serp-title { font-size: 19px; color: #1a0dab; text-decoration: none; line-height: 1.3; }
.serp-title:hover { text-decoration: underline; }
.serp-result p { margin: 4px 0 0; font-size: 14px; color: #4d5156; }

.harness-note { max-width: 720px; margin: 20px auto 0; font-size: 13px; color: #555; text-align: center; }

@media (max-width: 860px) {
  .serp { padding: 18px 16px 32px; }
  .popup-panel { left: 8px; right: 8px; }
  .popup-panel .rcpt { width: 100%; }
}
