/* Harness only: mock browser chrome and the stand-in page. Popup styles live in extension/popup.css. */
* { box-sizing: border-box; }
body {
  margin: 0; padding: 24px 16px 40px;
  background: #e9e4d8; color: #1d2433;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.demo-intro, .demo-note { max-width: 1040px; margin: 0 auto 14px; color: #4a5361; }
.demo-note { margin-top: 14px; font-size: 12.5px; }
.demo-note code { font-size: 12px; background: #f6f2e8; padding: 1px 4px; border-radius: 4px; }

.browser-shell {
  max-width: 1040px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 50px rgba(20, 33, 61, 0.18);
}

.browser-titlebar {
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 0;
  background: #d9dde3;
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin: 0 2px 11px; }
.dot--red { background: #ef6a5e; } .dot--yellow { background: #f4bf4f; } .dot--green { background: #61c454; }

.tabstrip { display: flex; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 0; overflow-x: auto; flex: 1; min-width: 0; }
.tab {
  display: flex; align-items: center; gap: 6px; flex: 0 1 150px; min-width: 64px;
  padding: 7px 10px; border-radius: 8px 8px 0 0; background: #c9ced6; cursor: pointer;
  font-size: 12px; color: #39404c; transition: background 0.15s;
}
.tab:hover { background: #d3d8df; }
.tab--active { background: #f4f5f7; color: #1d2433; }
.tab:focus-visible { outline: 2px solid #b7791f; outline-offset: -2px; }
.tab-fav { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.tab-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.browser-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #f4f5f7; border-bottom: 1px solid #e1e4e9;
}
.urlbar {
  flex: 1; min-width: 0; padding: 6px 12px; border-radius: 999px; background: #fff;
  border: 1px solid #dde1e7; color: #4a5361; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.assistant-chip {
  flex: none; font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #fbe9c9; color: #7a4f12; border: 1px dashed #d8a24a;
}
.assistant-chip--clear { background: #e3ebe1; color: #2f4632; border-color: #8fb093; }

.toolbar-ext-btn {
  position: relative; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.toolbar-ext-btn:hover, .toolbar-ext-btn[aria-expanded="true"] { background: #e3e6eb; }
.toolbar-ext-icon {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(160deg, #14213d 55%, #b7791f 55%);
}
.toolbar-badge {
  position: absolute; right: -2px; bottom: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #b7791f; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px;
}

.browser-body { position: relative; min-height: 460px; background: #fff; }
.popup-panel {
  position: absolute; top: 6px; right: 10px; z-index: 5;
  border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(20, 33, 61, 0.3);
}

.mock-page { --site: #4f7cac; padding: 32px 40px 48px; }
.page-head { border-left: 4px solid var(--site); padding-left: 14px; margin-bottom: 22px; }
.page-site { font-size: 12px; color: #6b7480; text-transform: lowercase; }
.page-head h2 { margin: 2px 0 2px; font-size: 22px; }
.page-head p { margin: 0; color: #5a6371; }
.page-rows { margin: 0; max-width: 560px; }
.page-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.page-row dt { font-weight: 600; }
.page-row dd { margin: 0; color: #444c58; text-align: right; }
.page-empty { color: #9aa3ad; font-size: 20px; text-align: center; padding-top: 140px; }

@media (max-width: 720px) {
  body { padding: 12px 8px; }
  .assistant-chip { display: none; }
  .mock-page { padding: 20px 18px; }
  .popup-panel { left: 6px; right: 6px; }
  .popup-panel .cdk-popup { width: 100%; }
  .page-row { flex-direction: column; gap: 2px; }
  .page-row dd { text-align: left; }
}
