.exitfriction-popup {
  width: 380px;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef2f6;
  background: #1b1f2a;
}

.exitfriction-popup * {
  box-sizing: border-box;
}

.ef-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ef-mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #1b1f2a, #b45309 65%, #f5a623);
  position: relative;
}

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

.ef-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f4f4f5;
}

.ef-sub {
  margin: 1px 0 0;
  font-size: 11px;
  color: #9aa3b2;
  word-break: break-word;
}

.ef-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #12151d;
  border: 1px solid #2a2f3d;
}

.ef-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.ef-score {
  font-size: 26px;
  font-weight: 800;
  color: #f5a623;
  line-height: 1;
}

.ef-score-label {
  font-size: 9.5px;
  color: #7d8697;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.ef-risk {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  flex: 1;
}

.ef-risk.clear { color: #2dd4bf; }
.ef-risk.caution { color: #f5a623; }
.ef-risk.high { color: #ef4444; }

.ef-log-btn {
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: #f5a623;
  color: #1b1f2a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ef-log-btn:hover {
  background: #e0951c;
}

.ef-log-btn:disabled {
  background: #7a5a24;
  color: #cbb489;
  cursor: progress;
}

.ef-status {
  margin: 7px 0 4px;
  font-size: 11px;
  color: #7d8697;
  text-align: center;
}

.ef-steps {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ef-empty {
  font-size: 11.5px;
  color: #7d8697;
  padding: 6px 2px;
  line-height: 1.5;
}

.ef-step {
  border: 1px solid #2a2f3d;
  border-radius: 7px;
  padding: 7px 8px;
  background: #12151d;
}

.ef-step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  font-weight: 600;
  color: #d6dbe4;
}

.ef-step-score {
  color: #f5a623;
  font-weight: 700;
}

.ef-step-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ef-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: #3a2a12;
  color: #f5a623;
}

.ef-tag-clean {
  background: #0f2e29;
  color: #2dd4bf;
}

.ef-actions {
  display: flex;
  gap: 8px;
}

.ef-export-btn,
.ef-reset-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #2a2f3d;
  border-radius: 8px;
  background: #12151d;
  color: #eef2f6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ef-export-btn:not(:disabled):hover,
.ef-reset-btn:not(:disabled):hover {
  background: #1c212d;
}

.ef-export-btn:disabled,
.ef-reset-btn:disabled {
  color: #565d6b;
  cursor: not-allowed;
}

.ef-footnote {
  margin: 9px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
}
