/* ===== COPILOT PAGE ===== */
.copilot-overlay {
  position: absolute;
  inset: 0;
  z-index: 24;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.copilot-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.copilot-page {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: linear-gradient(153deg, #f8f4f2 0%, #fcf3ea 50%, #fdedde 100%);
  border-radius: 32px 32px 0 0;
  font-family: 'Segoe UI Web', 'Segoe UI', sans-serif;
  box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 -8px 16px rgba(0,0,0,0.14);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1), opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.copilot-page.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.copilot-page.half-mode {
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 32px;
}
.copilot-page.dragging {
  transition: none !important;
}
.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  flex-shrink: 0;
}
.copilot-header-btn {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.copilot-header-btn:active {
  opacity: 0.6;
}
.copilot-header-btn svg {
  width: 24px;
  height: 24px;
}
.copilot-header-center {
  display: flex;
  align-items: center;
  gap: 2px;
}
.copilot-header-center svg {
  height: 20px;
  width: auto;
}
.copilot-chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.copilot-user-bubble {
  align-self: flex-end;
  background: #FDE5CD;
  border-radius: 24px;
  padding: 16px 20px;
  margin: 0 24px;
  font-size: 17px;
  color: #282523;
  line-height: 1.4;
  max-width: 80%;
}
.copilot-ai-card {
  padding: 0;
  margin: 0 20px;
  font-size: 17px;
  color: #33302E;
  line-height: 1.5;
}
.copilot-input-wrap {
  margin: 0 18px 8px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 4px 4px 16px 2px rgba(48,43,37,0.1);
  flex-shrink: 0;
}
.copilot-input-row {
  border-radius: 32px;
  padding: 8px;
  display: flex;
  align-items: center;
}
.copilot-input-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.copilot-input-btn:active {
  opacity: 0.6;
}
.copilot-input-btn svg {
  width: 24px;
  height: 24px;
}
.copilot-input-row .copilot-input-btn:last-child svg {
  width: 19px;
  height: 19px;
}
.copilot-input-field {
  flex: 1;
  padding: 4px 8px;
  font-size: 16px;
  color: #635C57;
  opacity: 0.9;
}
.copilot-input-expanded {
  display: none;
  padding: 10px 12px;
}
.copilot-page.composer-active .copilot-input-row {
  display: none;
}
.copilot-page.composer-active .copilot-input-expanded {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.copilot-input-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #272320;
  resize: none;
  min-height: 42px;
  max-height: 80px;
  padding: 4px 4px;
  outline: none;
  font-family: inherit;
  line-height: 1.625;
  box-sizing: border-box;
}
.copilot-input-textarea::placeholder {
  color: #635C57;
  opacity: 0.9;
}
.copilot-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copilot-controls-left,
.copilot-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.copilot-controls-right-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.copilot-smart-tag {
  background: #fff;
  border: 0.5px solid #efeae7;
  border-radius: 9999px;
  padding: 0 12px;
  height: 36px;
  font-size: 12px;
  font-weight: 480;
  color: #272320;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.copilot-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #efeae7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.copilot-add-btn:active {
  opacity: 0.6;
}
.copilot-smart-tag:active {
  opacity: 0.6;
}
.copilot-send-btn {
  width: 36px;
  height: 36px;
  background: #322d29;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.copilot-send-btn:active {
  opacity: 0.8;
}
.copilot-send-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.copilot-keyboard {
  display: none;
  flex-shrink: 0;
}
.copilot-keyboard img {
  width: 100%;
  display: block;
}
.copilot-page.composer-active .copilot-keyboard {
  display: block;
}
.copilot-page.composer-active .copilot-input-wrap {
  margin: 0 8px 8px;
  border-radius: 28px;
  border: 0.5px solid #e2ddd9;
  box-shadow: 4px 4px 16px 2px rgba(48,43,37,0.1);
}
.copilot-page.composer-active .home-indicator {
  display: none;
}
.copilot-suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0 18px 12px;
  flex-shrink: 0;
}
.copilot-chip {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #635c57;
  line-height: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.copilot-chip:active {
  opacity: 0.6;
}
