#quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 4px;
  width: 100%;
}

#quick-actions::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  width: 26px;
  flex: 0 0 26px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #ffffff 88%);
  display: none;
}

.ai-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid rgba(195, 210, 232, 0.95);
  background: rgba(248, 250, 252, 0.96);
  color: #16304f;
  padding: 11px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ai-quick-chip:hover {
  background: #ffffff;
  border-color: #b8cde8;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 74, 132, 0.12);
}

.ai-quick-chip:focus-visible {
  outline: none;
  border-color: #7ea6d8;
  box-shadow: 0 0 0 3px rgba(35, 74, 132, 0.16);
}

.ai-quick-chip-primary {
  background: #234A84;
  color: #fff;
  border-color: rgba(35, 74, 132, 0.32);
  box-shadow: 0 12px 28px rgba(35, 74, 132, 0.24);
}

.ai-quick-chip-primary:hover {
  background: #234A84;
  border-color: rgba(26, 55, 98, 0.35);
  color: #fff;
}

.ai-quick-chip-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 16px;
}

.ai-quick-chip-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-quick-chip-label {
  display: inline-block;
  line-height: 1;
}

#input-area {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.94);
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

#input-area input {
  flex: 1;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#input-area input::placeholder {
  color: #94a3b8;
}

#input-area input:focus {
  border-color: rgba(35, 74, 132, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(35, 74, 132, 0.13);
}

#input-area button {
  background: #234A84;
  border: 1px solid rgba(35, 74, 132, 0.32);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  box-shadow: 0 12px 24px rgba(35, 74, 132, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#input-area button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(35, 74, 132, 0.28);
  filter: saturate(1.06);
}

.card button:disabled,
#input-area button:disabled,
.ai-quick-chip:disabled,
.ai-inline-action-button:disabled,
.ai-chat-new:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  #quick-actions {
    padding: 12px 12px 16px;
  }

  .ai-quick-chip {
    padding: 10px 13px;
    font-size: 12.5px;
  }
}
