.tutor-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2d6cdf;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 24px;
  z-index: 9999;
}

.tutor-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 9999;
}

.tutor-window.open { display: flex; }

.tutor-header {
  padding: 12px 16px;
  background: #2d6cdf;
  color: white;
  font-weight: 600;
}

.tutor-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f6f8fb;
}

.tutor-msg {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 14px;
}

.tutor-msg.user {
  background: #2d6cdf;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.tutor-msg.assistant {
  background: white;
  color: #1a1a1a;
  border: 1px solid #e1e5ec;
  border-bottom-left-radius: 4px;
}

.tutor-input-row {
  display: flex;
  border-top: 1px solid #e1e5ec;
  background: white;
}

.tutor-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.tutor-send {
  background: #2d6cdf;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
}

.tutor-send:disabled { background: #9bb6e3; cursor: not-allowed; }
