:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 16px 48px;
  background: #eef1f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.browser-frame {
  width: 100%;
  max-width: 860px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #d8dce3;
}

.browser-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #2a2e37;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-title {
  margin-left: 10px;
  color: #b7bdc9;
  font-size: 12px;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f4f5f7;
  border-bottom: 1px solid #e1e4ea;
}

.nav-btn {
  color: #9aa1ad;
  font-size: 14px;
  width: 22px;
  text-align: center;
}

.url-bar {
  flex: 1;
  background: #fff;
  border: 1px solid #dde1e7;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-btn {
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 7px;
  cursor: pointer;
}

.toolbar-btn:hover {
  background: #e5e7eb;
}

.toolbar-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1b1f2a, #b45309 65%, #f5a623);
  position: relative;
}

.toolbar-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-right-color: transparent;
  transform: rotate(-45deg);
}

.browser-body {
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
  background: #fafafa;
}

.popup-panel {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 20;
  border: 1px solid #2a2f3d;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
  overflow: hidden;
}

.popup-panel.exitfriction-popup {
  width: min(380px, calc(100vw - 48px));
}

.mock-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  background: #f8fafc;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ef-mock-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ef-mock-modal {
  border-color: #fbbf24;
  box-shadow: 0 6px 22px rgba(180, 83, 9, 0.14);
}

.ef-mock-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #111827;
}

.ef-mock-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 14px;
}

.ef-mock-plan {
  font-weight: 600;
  color: #1f2937;
}

.ef-mock-timer {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.ef-mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ef-mock-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.ef-mock-btn-primary {
  background: #2563eb;
  color: #fff;
}

.ef-mock-btn-primary:hover {
  background: #1d4ed8;
}

.ef-mock-tiny-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
  text-decoration: underline;
}

.ef-mock-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 16px;
}

.ef-mock-badge {
  display: inline-block;
  background: #f5a623;
  color: #1b1f2a;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.harness-note {
  max-width: 640px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 480px) {
  .mock-page {
    padding: 24px 16px 32px;
  }

  .popup-panel {
    left: 12px;
    right: 12px;
  }
}
