* { box-sizing: border-box; }
body { margin: 0; padding: 20px; background: #dfe5ee; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1c2433; }
.demo-note { max-width: 980px; margin: 0 auto 12px; color: #435069; }
.demo-note b { color: #0b1730; }
.browser { position: relative; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px rgba(11, 23, 48, .25); }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #c9d1de; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #98a3b6; }
.tab { padding: 4px 14px; background: #fff; border-radius: 8px 8px 0 0; font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #eef1f6; border-bottom: 1px solid #d3dae6; }
.urlbar { flex: 1; padding: 5px 12px; background: #fff; border-radius: 999px; font: 12px ui-monospace, Menlo, monospace; color: #435069; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-btn { position: relative; width: 34px; height: 34px; border: 1px solid #c3ccdb; border-radius: 8px; background: #0b1730; color: #e6b450; font-weight: 700; cursor: pointer; }
.ext-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: #d9381e; color: #fff; font: 700 11px/18px system-ui; text-align: center; }
.ext-badge[hidden] { display: none; }
.viewport { position: relative; min-height: 560px; }
.page { padding: 24px 28px 70px; }
.page h2 { margin: 0; }
.page .tag { margin: 2px 0 18px; color: #66728a; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card { padding: 14px; border: 1px solid #dde3ed; border-radius: 8px; }
.card .img { height: 70px; margin-bottom: 8px; border-radius: 6px; background: linear-gradient(135deg, #c8dbe8, #e8eef5); }
.agent-panel { margin-top: 22px; padding: 12px 14px; border: 1px dashed #9aa7bf; border-radius: 8px; background: #f7f9fc; }
.agent-panel h3 { margin: 0 0 6px; font-size: 13px; }
.agent-panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.agent-panel li { padding: 2px 8px; border-radius: 999px; background: #e2e8f2; font: 12px ui-monospace, Menlo, monospace; }
.agent-panel li.flag { background: #ffd9cc; outline: 1px solid #d9381e; }
.agent-panel .hint { margin: 6px 0 0; font-size: 12px; color: #66728a; }
.popup-panel.tp { position: absolute; top: 6px; right: 12px; z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border-radius: 10px; overflow: hidden; border: 1px solid #1d3566; }
.popup-panel[hidden] { display: none; }
/* Simulated content-script pill (the real one lives in extension/content.js). */
.pill { position: absolute; left: 14px; bottom: 14px; font: 600 12px system-ui; background: #0b1730; color: #fff; padding: 6px 10px; border-radius: 999px; border: 1px solid #ff6b3d; }
.pill[hidden] { display: none; }
@media (max-width: 760px) { body { padding: 8px; } .popup-panel { position: static; margin: 8px; } }
